You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SES::Types::PutIdentityPolicyRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb

Overview

Note:

When making an API call, you may pass PutIdentityPolicyRequest data as a hash:

{
  identity: "Identity", # required
  policy_name: "PolicyName", # required
  policy: "Policy", # required
}

Represents a request to add or update a sending authorization policy for an identity. Sending authorization is an Amazon SES feature that enables you to authorize other senders to use your identities. For information, see the Amazon SES Developer Guide.

Instance Attribute Summary collapse

Instance Attribute Details

#identityString

The identity to which the policy will apply. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

Returns:

  • (String)


2330
2331
2332
2333
2334
2335
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 2330

class PutIdentityPolicyRequest < Struct.new(
  :identity,
  :policy_name,
  :policy)
  include Aws::Structure
end

#policyString

The text of the policy in JSON format. The policy cannot exceed 4 KB.

For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Returns:

  • (String)


2330
2331
2332
2333
2334
2335
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 2330

class PutIdentityPolicyRequest < Struct.new(
  :identity,
  :policy_name,
  :policy)
  include Aws::Structure
end

#policy_nameString

The name of the policy.

The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

Returns:

  • (String)


2330
2331
2332
2333
2334
2335
# File 'gems/aws-sdk-ses/lib/aws-sdk-ses/types.rb', line 2330

class PutIdentityPolicyRequest < Struct.new(
  :identity,
  :policy_name,
  :policy)
  include Aws::Structure
end