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 |
Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.
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 GetEmailIdentityPolicies = GetEmailIdentityPolicies' {}
- newGetEmailIdentityPolicies :: Text -> GetEmailIdentityPolicies
- getEmailIdentityPolicies_emailIdentity :: Lens' GetEmailIdentityPolicies Text
- data GetEmailIdentityPoliciesResponse = GetEmailIdentityPoliciesResponse' {}
- newGetEmailIdentityPoliciesResponse :: Int -> GetEmailIdentityPoliciesResponse
- getEmailIdentityPoliciesResponse_policies :: Lens' GetEmailIdentityPoliciesResponse (Maybe (HashMap Text Text))
- getEmailIdentityPoliciesResponse_httpStatus :: Lens' GetEmailIdentityPoliciesResponse Int
Creating a Request
data GetEmailIdentityPolicies Source #
A request to return the policies of an email identity.
See: newGetEmailIdentityPolicies
smart constructor.
GetEmailIdentityPolicies' | |
|
Instances
newGetEmailIdentityPolicies Source #
Create a value of GetEmailIdentityPolicies
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:GetEmailIdentityPolicies'
, getEmailIdentityPolicies_emailIdentity
- The email identity.
Request Lenses
getEmailIdentityPolicies_emailIdentity :: Lens' GetEmailIdentityPolicies Text Source #
The email identity.
Destructuring the Response
data GetEmailIdentityPoliciesResponse Source #
Identity policies associated with email identity.
See: newGetEmailIdentityPoliciesResponse
smart constructor.
Instances
Eq GetEmailIdentityPoliciesResponse Source # | |
Read GetEmailIdentityPoliciesResponse Source # | |
Show GetEmailIdentityPoliciesResponse Source # | |
Defined in Amazonka.SESV2.GetEmailIdentityPolicies | |
Generic GetEmailIdentityPoliciesResponse Source # | |
NFData GetEmailIdentityPoliciesResponse Source # | |
Defined in Amazonka.SESV2.GetEmailIdentityPolicies rnf :: GetEmailIdentityPoliciesResponse -> () # | |
type Rep GetEmailIdentityPoliciesResponse Source # | |
Defined in Amazonka.SESV2.GetEmailIdentityPolicies type Rep GetEmailIdentityPoliciesResponse = D1 ('MetaData "GetEmailIdentityPoliciesResponse" "Amazonka.SESV2.GetEmailIdentityPolicies" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "GetEmailIdentityPoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "policies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetEmailIdentityPoliciesResponse Source #
Create a value of GetEmailIdentityPoliciesResponse
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:policies:GetEmailIdentityPoliciesResponse'
, getEmailIdentityPoliciesResponse_policies
- A map of policy names to policies.
$sel:httpStatus:GetEmailIdentityPoliciesResponse'
, getEmailIdentityPoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
getEmailIdentityPoliciesResponse_policies :: Lens' GetEmailIdentityPoliciesResponse (Maybe (HashMap Text Text)) Source #
A map of policy names to policies.
getEmailIdentityPoliciesResponse_httpStatus :: Lens' GetEmailIdentityPoliciesResponse Int Source #
The response's http status code.