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 a list of sending authorization policies that are attached to
the given identity (an email address or a domain). This API returns only
a list. If you want the actual policy content, you can use
GetIdentityPolicies
.
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 ListIdentityPolicies = ListIdentityPolicies' {}
- newListIdentityPolicies :: Text -> ListIdentityPolicies
- listIdentityPolicies_identity :: Lens' ListIdentityPolicies Text
- data ListIdentityPoliciesResponse = ListIdentityPoliciesResponse' {
- httpStatus :: Int
- policyNames :: [Text]
- newListIdentityPoliciesResponse :: Int -> ListIdentityPoliciesResponse
- listIdentityPoliciesResponse_httpStatus :: Lens' ListIdentityPoliciesResponse Int
- listIdentityPoliciesResponse_policyNames :: Lens' ListIdentityPoliciesResponse [Text]
Creating a Request
data ListIdentityPolicies Source #
Represents a request to return a list of sending authorization policies that are attached to 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: newListIdentityPolicies
smart constructor.
ListIdentityPolicies' | |
|
Instances
newListIdentityPolicies Source #
Create a value of ListIdentityPolicies
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:identity:ListIdentityPolicies'
, listIdentityPolicies_identity
- The identity that is associated with the policy for which the policies
will be listed. 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.
Request Lenses
listIdentityPolicies_identity :: Lens' ListIdentityPolicies Text Source #
The identity that is associated with the policy for which the policies
will be listed. 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.
Destructuring the Response
data ListIdentityPoliciesResponse Source #
A list of names of sending authorization policies that apply to an identity.
See: newListIdentityPoliciesResponse
smart constructor.
ListIdentityPoliciesResponse' | |
|
Instances
newListIdentityPoliciesResponse Source #
Create a value of ListIdentityPoliciesResponse
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:ListIdentityPoliciesResponse'
, listIdentityPoliciesResponse_httpStatus
- The response's http status code.
$sel:policyNames:ListIdentityPoliciesResponse'
, listIdentityPoliciesResponse_policyNames
- A list of names of policies that apply to the specified identity.
Response Lenses
listIdentityPoliciesResponse_httpStatus :: Lens' ListIdentityPoliciesResponse Int Source #
The response's http status code.
listIdentityPoliciesResponse_policyNames :: Lens' ListIdentityPoliciesResponse [Text] Source #
A list of names of policies that apply to the specified identity.