Skip to main content

aws_sdk_ec2/client/
delete_secondary_subnet.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 [`DeleteSecondarySubnet`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensure Idempotency</a>.</p><br>
7    ///   - [`dry_run(bool)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
8    ///   - [`secondary_subnet_id(impl Into<String>)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::secondary_subnet_id) / [`set_secondary_subnet_id(Option<String>)`](crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::set_secondary_subnet_id):<br>required: **true**<br><p>The ID of the secondary subnet to delete.</p><br>
9    /// - On success, responds with [`DeleteSecondarySubnetOutput`](crate::operation::delete_secondary_subnet::DeleteSecondarySubnetOutput) with field(s):
10    ///   - [`secondary_subnet(Option<SecondarySubnet>)`](crate::operation::delete_secondary_subnet::DeleteSecondarySubnetOutput::secondary_subnet): <p>Information about the secondary subnet being deleted.</p>
11    ///   - [`client_token(Option<String>)`](crate::operation::delete_secondary_subnet::DeleteSecondarySubnetOutput::client_token): <p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
12    /// - On failure, responds with [`SdkError<DeleteSecondarySubnetError>`](crate::operation::delete_secondary_subnet::DeleteSecondarySubnetError)
13    pub fn delete_secondary_subnet(&self) -> crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder {
14        crate::operation::delete_secondary_subnet::builders::DeleteSecondarySubnetFluentBuilder::new(self.handle.clone())
15    }
16}