getIdentityPolicies
inline suspend fun SesClient.getIdentityPolicies(crossinline block: GetIdentityPoliciesRequest.Builder.() -> Unit): GetIdentityPoliciesResponse
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 operation is for the identity owner only. If you have not verified the identity, it returns 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.
Samples
fun main() {
//sampleStart
// The following example returns a sending authorization policy for an identity
val resp = sesClient.getIdentityPolicies {
identity = "example.com"
policyNames = listOf<String>(
"MyPolicy"
)
}
//sampleEnd
}