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 |
Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.
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 DeleteEmailIdentityPolicy = DeleteEmailIdentityPolicy' {
- emailIdentity :: Text
- policyName :: Text
- newDeleteEmailIdentityPolicy :: Text -> Text -> DeleteEmailIdentityPolicy
- deleteEmailIdentityPolicy_emailIdentity :: Lens' DeleteEmailIdentityPolicy Text
- deleteEmailIdentityPolicy_policyName :: Lens' DeleteEmailIdentityPolicy Text
- data DeleteEmailIdentityPolicyResponse = DeleteEmailIdentityPolicyResponse' {
- httpStatus :: Int
- newDeleteEmailIdentityPolicyResponse :: Int -> DeleteEmailIdentityPolicyResponse
- deleteEmailIdentityPolicyResponse_httpStatus :: Lens' DeleteEmailIdentityPolicyResponse Int
Creating a Request
data DeleteEmailIdentityPolicy Source #
Represents a request to delete 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: newDeleteEmailIdentityPolicy
smart constructor.
DeleteEmailIdentityPolicy' | |
|
Instances
newDeleteEmailIdentityPolicy Source #
:: Text | |
-> Text | |
-> DeleteEmailIdentityPolicy |
Create a value of DeleteEmailIdentityPolicy
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:DeleteEmailIdentityPolicy'
, deleteEmailIdentityPolicy_emailIdentity
- The email identity.
$sel:policyName:DeleteEmailIdentityPolicy'
, deleteEmailIdentityPolicy_policyName
- The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
Request Lenses
deleteEmailIdentityPolicy_emailIdentity :: Lens' DeleteEmailIdentityPolicy Text Source #
The email identity.
deleteEmailIdentityPolicy_policyName :: Lens' DeleteEmailIdentityPolicy Text Source #
The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
Destructuring the Response
data DeleteEmailIdentityPolicyResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newDeleteEmailIdentityPolicyResponse
smart constructor.
DeleteEmailIdentityPolicyResponse' | |
|
Instances
Eq DeleteEmailIdentityPolicyResponse Source # | |
Read DeleteEmailIdentityPolicyResponse Source # | |
Show DeleteEmailIdentityPolicyResponse Source # | |
Generic DeleteEmailIdentityPolicyResponse Source # | |
NFData DeleteEmailIdentityPolicyResponse Source # | |
Defined in Amazonka.SESV2.DeleteEmailIdentityPolicy rnf :: DeleteEmailIdentityPolicyResponse -> () # | |
type Rep DeleteEmailIdentityPolicyResponse Source # | |
Defined in Amazonka.SESV2.DeleteEmailIdentityPolicy type Rep DeleteEmailIdentityPolicyResponse = D1 ('MetaData "DeleteEmailIdentityPolicyResponse" "Amazonka.SESV2.DeleteEmailIdentityPolicy" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "DeleteEmailIdentityPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDeleteEmailIdentityPolicyResponse Source #
Create a value of DeleteEmailIdentityPolicyResponse
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:DeleteEmailIdentityPolicyResponse'
, deleteEmailIdentityPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
deleteEmailIdentityPolicyResponse_httpStatus :: Lens' DeleteEmailIdentityPolicyResponse Int Source #
The response's http status code.