Copyright | (c) 2013-2021 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 |
Creates the specified sending authorization policy for the given identity (an email address or a domain).
This API is for the identity owner only. If you have not verified the identity, this API will return an error.
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
- data CreateEmailIdentityPolicy = CreateEmailIdentityPolicy' {
- emailIdentity :: Text
- policyName :: Text
- policy :: Text
- newCreateEmailIdentityPolicy :: Text -> Text -> Text -> CreateEmailIdentityPolicy
- createEmailIdentityPolicy_emailIdentity :: Lens' CreateEmailIdentityPolicy Text
- createEmailIdentityPolicy_policyName :: Lens' CreateEmailIdentityPolicy Text
- createEmailIdentityPolicy_policy :: Lens' CreateEmailIdentityPolicy Text
- data CreateEmailIdentityPolicyResponse = CreateEmailIdentityPolicyResponse' {
- httpStatus :: Int
- newCreateEmailIdentityPolicyResponse :: Int -> CreateEmailIdentityPolicyResponse
- createEmailIdentityPolicyResponse_httpStatus :: Lens' CreateEmailIdentityPolicyResponse Int
Creating a Request
data CreateEmailIdentityPolicy Source #
Represents a request to create 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: newCreateEmailIdentityPolicy
smart constructor.
CreateEmailIdentityPolicy' | |
|
Instances
newCreateEmailIdentityPolicy Source #
:: Text | |
-> Text | |
-> Text | |
-> CreateEmailIdentityPolicy |
Create a value of CreateEmailIdentityPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:emailIdentity:CreateEmailIdentityPolicy'
, createEmailIdentityPolicy_emailIdentity
- The email identity.
$sel:policyName:CreateEmailIdentityPolicy'
, createEmailIdentityPolicy_policyName
- The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
$sel:policy:CreateEmailIdentityPolicy'
, createEmailIdentityPolicy_policy
- 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.
Request Lenses
createEmailIdentityPolicy_emailIdentity :: Lens' CreateEmailIdentityPolicy Text Source #
The email identity.
createEmailIdentityPolicy_policyName :: Lens' CreateEmailIdentityPolicy Text Source #
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
createEmailIdentityPolicy_policy :: Lens' CreateEmailIdentityPolicy 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
data CreateEmailIdentityPolicyResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newCreateEmailIdentityPolicyResponse
smart constructor.
CreateEmailIdentityPolicyResponse' | |
|
Instances
Eq CreateEmailIdentityPolicyResponse Source # | |
Read CreateEmailIdentityPolicyResponse Source # | |
Show CreateEmailIdentityPolicyResponse Source # | |
Generic CreateEmailIdentityPolicyResponse Source # | |
NFData CreateEmailIdentityPolicyResponse Source # | |
Defined in Amazonka.SESV2.CreateEmailIdentityPolicy rnf :: CreateEmailIdentityPolicyResponse -> () # | |
type Rep CreateEmailIdentityPolicyResponse Source # | |
Defined in Amazonka.SESV2.CreateEmailIdentityPolicy type Rep CreateEmailIdentityPolicyResponse = D1 ('MetaData "CreateEmailIdentityPolicyResponse" "Amazonka.SESV2.CreateEmailIdentityPolicy" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "CreateEmailIdentityPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateEmailIdentityPolicyResponse Source #
Create a value of CreateEmailIdentityPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateEmailIdentityPolicyResponse'
, createEmailIdentityPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
createEmailIdentityPolicyResponse_httpStatus :: Lens' CreateEmailIdentityPolicyResponse Int Source #
The response's http status code.