pub struct Builder { /* private fields */ }
Expand description
A builder for EnableIpamOrganizationAdminAccountInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
A check for 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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
A check for 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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn delegated_admin_account_id(self, input: impl Into<String>) -> Self
pub fn delegated_admin_account_id(self, input: impl Into<String>) -> Self
The Organizations member account ID that you want to enable as the IPAM account.
sourcepub fn set_delegated_admin_account_id(self, input: Option<String>) -> Self
pub fn set_delegated_admin_account_id(self, input: Option<String>) -> Self
The Organizations member account ID that you want to enable as the IPAM account.
sourcepub fn build(
self
) -> Result<EnableIpamOrganizationAdminAccountInput, BuildError>
pub fn build(
self
) -> Result<EnableIpamOrganizationAdminAccountInput, BuildError>
Consumes the builder and constructs a EnableIpamOrganizationAdminAccountInput
.
Examples found in repository?
56027 56028 56029 56030 56031 56032 56033 56034 56035 56036 56037 56038 56039 56040 56041 56042 56043 56044 56045 56046 56047 56048 56049 56050 56051 56052 56053 56054 56055 56056 56057 56058 56059 56060 56061 56062 56063 56064 56065 56066 56067 56068 56069 56070 56071 56072 56073
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableIpamOrganizationAdminAccount,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::EnableIpamOrganizationAdminAccountError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::EnableIpamOrganizationAdminAccountOutput,
aws_smithy_http::result::SdkError<
crate::error::EnableIpamOrganizationAdminAccountError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}