aws_sdk_elasticbeanstalk/client/swap_environment_cnames.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 [`SwapEnvironmentCNAMEs`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`source_environment_id(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_id) / [`set_source_environment_id(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_id):<br>required: **false**<br><p>The ID of the source environment.</p> <p>Condition: You must specify at least the <code>SourceEnvironmentID</code> or the <code>SourceEnvironmentName</code>. You may also specify both. If you specify the <code>SourceEnvironmentId</code>, you must specify the <code>DestinationEnvironmentId</code>.</p><br>
7 /// - [`source_environment_name(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::source_environment_name) / [`set_source_environment_name(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_source_environment_name):<br>required: **false**<br><p>The name of the source environment.</p> <p>Condition: You must specify at least the <code>SourceEnvironmentID</code> or the <code>SourceEnvironmentName</code>. You may also specify both. If you specify the <code>SourceEnvironmentName</code>, you must specify the <code>DestinationEnvironmentName</code>.</p><br>
8 /// - [`destination_environment_id(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_id) / [`set_destination_environment_id(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_id):<br>required: **false**<br><p>The ID of the destination environment.</p> <p>Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the <code>DestinationEnvironmentName</code>. You may also specify both. You must specify the <code>SourceEnvironmentId</code> with the <code>DestinationEnvironmentId</code>.</p><br>
9 /// - [`destination_environment_name(impl Into<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::destination_environment_name) / [`set_destination_environment_name(Option<String>)`](crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::set_destination_environment_name):<br>required: **false**<br><p>The name of the destination environment.</p> <p>Condition: You must specify at least the <code>DestinationEnvironmentID</code> or the <code>DestinationEnvironmentName</code>. You may also specify both. You must specify the <code>SourceEnvironmentName</code> with the <code>DestinationEnvironmentName</code>.</p><br>
10 /// - On success, responds with [`SwapEnvironmentCnamEsOutput`](crate::operation::swap_environment_cnames::SwapEnvironmentCnamEsOutput)
11 /// - On failure, responds with [`SdkError<SwapEnvironmentCNAMEsError>`](crate::operation::swap_environment_cnames::SwapEnvironmentCNAMEsError)
12 pub fn swap_environment_cnames(&self) -> crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder {
13 crate::operation::swap_environment_cnames::builders::SwapEnvironmentCNAMEsFluentBuilder::new(self.handle.clone())
14 }
15}