1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutIdentityPolicy`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity(impl Into<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::set_identity):<br>required: **true**<br><p>The identity to which that the policy applies. You can specify an 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>
    ///   - [`policy_name(impl Into<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the policy.</p> <p>The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.</p><br>
    ///   - [`policy(impl Into<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::policy) / [`set_policy(Option<String>)`](crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::set_policy):<br>required: **true**<br><p>The text of the policy in JSON format. The policy cannot exceed 4 KB.</p> <p>For information about the syntax of sending authorization policies, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization-policies.html">Amazon SES Developer Guide</a>.</p><br>
    /// - On success, responds with [`PutIdentityPolicyOutput`](crate::operation::put_identity_policy::PutIdentityPolicyOutput)
    /// - On failure, responds with [`SdkError<PutIdentityPolicyError>`](crate::operation::put_identity_policy::PutIdentityPolicyError)
    pub fn put_identity_policy(&self) -> crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder {
        crate::operation::put_identity_policy::builders::PutIdentityPolicyFluentBuilder::new(self.handle.clone())
    }
}