aws_sdk_ses/client/
delete_identity_policy.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteIdentityPolicy`](crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`identity(impl Into<String>)`](crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder::set_identity):<br>required: **true**<br><p>The identity that is associated with the policy to delete. You can specify the identity by using its name or by using its Amazon Resource Name (ARN). Examples: <code>user@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p> <p>To successfully call this operation, you must own the identity.</p><br>
7    ///   - [`policy_name(impl Into<String>)`](crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the policy to be deleted.</p><br>
8    /// - On success, responds with [`DeleteIdentityPolicyOutput`](crate::operation::delete_identity_policy::DeleteIdentityPolicyOutput)
9    /// - On failure, responds with [`SdkError<DeleteIdentityPolicyError>`](crate::operation::delete_identity_policy::DeleteIdentityPolicyError)
10    pub fn delete_identity_policy(&self) -> crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder {
11        crate::operation::delete_identity_policy::builders::DeleteIdentityPolicyFluentBuilder::new(self.handle.clone())
12    }
13}