Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Adds or updates a sending authorization policy for the specified identity (an email address or a domain).
Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide .
You can execute this operation no more than once per second.
Synopsis
- putIdentityPolicy :: Text -> Text -> Text -> PutIdentityPolicy
- data PutIdentityPolicy
- pipIdentity :: Lens' PutIdentityPolicy Text
- pipPolicyName :: Lens' PutIdentityPolicy Text
- pipPolicy :: Lens' PutIdentityPolicy Text
- putIdentityPolicyResponse :: Int -> PutIdentityPolicyResponse
- data PutIdentityPolicyResponse
- piprsResponseStatus :: Lens' PutIdentityPolicyResponse Int
Creating a Request
Creates a value of PutIdentityPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pipIdentity
- 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.pipPolicyName
- The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.pipPolicy
- 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 .
data PutIdentityPolicy Source #
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 .
See: putIdentityPolicy
smart constructor.
Instances
Request Lenses
pipIdentity :: Lens' PutIdentityPolicy Text Source #
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.
pipPolicyName :: Lens' PutIdentityPolicy Text Source #
The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
pipPolicy :: Lens' PutIdentityPolicy Text Source #
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 .
Destructuring the Response
putIdentityPolicyResponse Source #
Creates a value of PutIdentityPolicyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
piprsResponseStatus
- -- | The response status code.
data PutIdentityPolicyResponse Source #
An empty element returned on a successful request.
See: putIdentityPolicyResponse
smart constructor.
Instances
Response Lenses
piprsResponseStatus :: Lens' PutIdentityPolicyResponse Int Source #
- - | The response status code.