aws_sdk_pinpointsmsvoicev2/client/
disassociate_origination_identity.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 [`DisassociateOriginationIdentity`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`pool_id(impl Into<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::pool_id) / [`set_pool_id(Option<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::set_pool_id):<br>required: **true**<br><p>The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.</p><important>  <p>If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
7    ///   - [`origination_identity(impl Into<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::origination_identity) / [`set_origination_identity(Option<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::set_origination_identity):<br>required: **true**<br><p>The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use <code>DescribePhoneNumbers</code> find the values for PhoneNumberId and PhoneNumberArn, or use <code>DescribeSenderIds</code> to get the values for SenderId and SenderIdArn.</p><important>  <p>If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).</p> </important><br>
8    ///   - [`iso_country_code(impl Into<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::iso_country_code) / [`set_iso_country_code(Option<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::set_iso_country_code):<br>required: **true**<br><p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p><br>
9    ///   - [`client_token(impl Into<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
10    /// - On success, responds with [`DisassociateOriginationIdentityOutput`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput) with field(s):
11    ///   - [`pool_arn(Option<String>)`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput::pool_arn): <p>The Amazon Resource Name (ARN) of the pool.</p>
12    ///   - [`pool_id(Option<String>)`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput::pool_id): <p>The PoolId of the pool no longer associated with the origination identity.</p>
13    ///   - [`origination_identity_arn(Option<String>)`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput::origination_identity_arn): <p>The PhoneNumberArn or SenderIdArn of the origination identity.</p>
14    ///   - [`origination_identity(Option<String>)`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput::origination_identity): <p>The PhoneNumberId or SenderId of the origination identity.</p>
15    ///   - [`iso_country_code(Option<String>)`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityOutput::iso_country_code): <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p>
16    /// - On failure, responds with [`SdkError<DisassociateOriginationIdentityError>`](crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError)
17    pub fn disassociate_origination_identity(
18        &self,
19    ) -> crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder {
20        crate::operation::disassociate_origination_identity::builders::DisassociateOriginationIdentityFluentBuilder::new(self.handle.clone())
21    }
22}