AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PutIdentityPolicyInput

import "github.com/aws/aws-sdk-go/service/ses"

type PutIdentityPolicyInput struct { Identity *string `type:"string" required:"true"` Policy *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"` }

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 (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html).

Identity

Type: *string

The identity that the policy will apply to. 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.

Identity is a required field

Policy

Type: *string

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 (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html).

Policy is a required field

PolicyName

Type: *string

The name of the policy.

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

PolicyName is a required field

Method

GoString

func (s PutIdentityPolicyInput) GoString() string

GoString returns the string representation

SetIdentity

func (s *PutIdentityPolicyInput) SetIdentity(v string) *PutIdentityPolicyInput

SetIdentity sets the Identity field's value.

SetPolicy

func (s *PutIdentityPolicyInput) SetPolicy(v string) *PutIdentityPolicyInput

SetPolicy sets the Policy field's value.

SetPolicyName

func (s *PutIdentityPolicyInput) SetPolicyName(v string) *PutIdentityPolicyInput

SetPolicyName sets the PolicyName field's value.

String

func (s PutIdentityPolicyInput) String() string

String returns the string representation

Validate

func (s *PutIdentityPolicyInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: