Interface PutPolicyRequest.Builder

    • Method Detail

      • arn

        PutPolicyRequest.Builder arn​(String arn)

        The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.

        Parameters:
        arn - The Amazon Resource Name (ARN) of the resource for which the policy needs to be updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policy

        PutPolicyRequest.Builder policy​(String policy)

        The resource-based policy.

        If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

        Parameters:
        policy - The resource-based policy.

        If you set the value of the effect parameter in the policy to Deny for the PutPolicy operation, you must also set the value of the effect parameter to Deny for the AddPolicyStatement operation.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • token

        PutPolicyRequest.Builder token​(String token)

        A unique identifier for the current revision of the policy.

        Parameters:
        token - A unique identifier for the current revision of the policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.