aws_sdk_ec2/client/enable_address_transfer.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 [`EnableAddressTransfer`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`allocation_id(impl Into<String>)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::allocation_id) / [`set_allocation_id(Option<String>)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::set_allocation_id):<br>required: **true**<br><p>The allocation ID of an Elastic IP address.</p><br>
7 /// - [`transfer_account_id(impl Into<String>)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::transfer_account_id) / [`set_transfer_account_id(Option<String>)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::set_transfer_account_id):<br>required: **true**<br><p>The ID of the account that you want to transfer the Elastic IP address to.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::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>
9 /// - On success, responds with [`EnableAddressTransferOutput`](crate::operation::enable_address_transfer::EnableAddressTransferOutput) with field(s):
10 /// - [`address_transfer(Option<AddressTransfer>)`](crate::operation::enable_address_transfer::EnableAddressTransferOutput::address_transfer): <p>An Elastic IP address transfer.</p>
11 /// - On failure, responds with [`SdkError<EnableAddressTransferError>`](crate::operation::enable_address_transfer::EnableAddressTransferError)
12 pub fn enable_address_transfer(&self) -> crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder {
13 crate::operation::enable_address_transfer::builders::EnableAddressTransferFluentBuilder::new(self.handle.clone())
14 }
15}