aws_sdk_pinpointsmsvoicev2/client/
release_sender_id.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 [`ReleaseSenderId`](crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`sender_id(impl Into<String>)`](crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder::sender_id) / [`set_sender_id(Option<String>)`](crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder::set_sender_id):<br>required: **true**<br><p>The sender ID to release.</p><br>
7    ///   - [`iso_country_code(impl Into<String>)`](crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder::iso_country_code) / [`set_iso_country_code(Option<String>)`](crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder::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>
8    /// - On success, responds with [`ReleaseSenderIdOutput`](crate::operation::release_sender_id::ReleaseSenderIdOutput) with field(s):
9    ///   - [`sender_id_arn(String)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::sender_id_arn): <p>The Amazon Resource Name (ARN) associated with the SenderId.</p>
10    ///   - [`sender_id(String)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::sender_id): <p>The sender ID that was released.</p>
11    ///   - [`iso_country_code(String)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::iso_country_code): <p>The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.</p>
12    ///   - [`message_types(Vec::<MessageType>)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::message_types): <p>The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.</p>
13    ///   - [`monthly_leasing_price(String)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::monthly_leasing_price): <p>The monthly price, in US dollars, to lease the sender ID.</p>
14    ///   - [`registered(bool)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::registered): <p>True if the sender ID is registered.</p>
15    ///   - [`registration_id(Option<String>)`](crate::operation::release_sender_id::ReleaseSenderIdOutput::registration_id): <p>The unique identifier for the registration.</p>
16    /// - On failure, responds with [`SdkError<ReleaseSenderIdError>`](crate::operation::release_sender_id::ReleaseSenderIdError)
17    pub fn release_sender_id(&self) -> crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder {
18        crate::operation::release_sender_id::builders::ReleaseSenderIdFluentBuilder::new(self.handle.clone())
19    }
20}