listIdentityPolicies
inline suspend fun SesClient.listIdentityPolicies(crossinline block: ListIdentityPoliciesRequest.Builder.() -> Unit): ListIdentityPoliciesResponse
Returns a list of sending authorization policies that are attached to the given identity (an email address or a domain). This operation returns only a list. To get the actual policy content, use GetIdentityPolicies
.
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 list of sending authorization policies that are attached to an
// identity
val resp = sesClient.listIdentityPolicies {
identity = "example.com"
}
//sampleEnd
}