Skip to main content

aws_sdk_ssoadmin/client/
add_region.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 [`AddRegion`](crate::operation::add_region::builders::AddRegionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`instance_arn(impl Into<String>)`](crate::operation::add_region::builders::AddRegionFluentBuilder::instance_arn) / [`set_instance_arn(Option<String>)`](crate::operation::add_region::builders::AddRegionFluentBuilder::set_instance_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM Identity Center instance to replicate to the target Region.</p><br>
7    ///   - [`region_name(impl Into<String>)`](crate::operation::add_region::builders::AddRegionFluentBuilder::region_name) / [`set_region_name(Option<String>)`](crate::operation::add_region::builders::AddRegionFluentBuilder::set_region_name):<br>required: **true**<br><p>The name of the Amazon Web Services Region to add to the IAM Identity Center instance. The Region name must be 1-32 characters long and follow the pattern of Amazon Web Services Region names (for example, us-east-1).</p><br>
8    /// - On success, responds with [`AddRegionOutput`](crate::operation::add_region::AddRegionOutput) with field(s):
9    ///   - [`status(Option<RegionStatus>)`](crate::operation::add_region::AddRegionOutput::status): <p>The status of the Region after the Add operation. The status is ADDING when the asynchronous workflow is in progress and changes to ACTIVE when complete.</p>
10    /// - On failure, responds with [`SdkError<AddRegionError>`](crate::operation::add_region::AddRegionError)
11    pub fn add_region(&self) -> crate::operation::add_region::builders::AddRegionFluentBuilder {
12        crate::operation::add_region::builders::AddRegionFluentBuilder::new(self.handle.clone())
13    }
14}