aws_sdk_ec2/client/delete_secondary_network.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 [`DeleteSecondaryNetwork`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::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_network::builders::DeleteSecondaryNetworkFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::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_network_id(impl Into<String>)`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::secondary_network_id) / [`set_secondary_network_id(Option<String>)`](crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::set_secondary_network_id):<br>required: **true**<br><p>The ID of the secondary network.</p><br>
9 /// - On success, responds with [`DeleteSecondaryNetworkOutput`](crate::operation::delete_secondary_network::DeleteSecondaryNetworkOutput) with field(s):
10 /// - [`secondary_network(Option<SecondaryNetwork>)`](crate::operation::delete_secondary_network::DeleteSecondaryNetworkOutput::secondary_network): <p>Information about the secondary network.</p>
11 /// - [`client_token(Option<String>)`](crate::operation::delete_secondary_network::DeleteSecondaryNetworkOutput::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<DeleteSecondaryNetworkError>`](crate::operation::delete_secondary_network::DeleteSecondaryNetworkError)
13 pub fn delete_secondary_network(&self) -> crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder {
14 crate::operation::delete_secondary_network::builders::DeleteSecondaryNetworkFluentBuilder::new(self.handle.clone())
15 }
16}