Struct aws_sdk_organizations::operation::update_organizational_unit::builders::UpdateOrganizationalUnitFluentBuilder
source · pub struct UpdateOrganizationalUnitFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateOrganizationalUnit
.
Renames the specified organizational unit (OU). The ID and ARN don't change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached.
This operation can be called only from the organization's management account.
Implementations§
source§impl UpdateOrganizationalUnitFluentBuilder
impl UpdateOrganizationalUnitFluentBuilder
sourcepub fn as_input(&self) -> &UpdateOrganizationalUnitInputBuilder
pub fn as_input(&self) -> &UpdateOrganizationalUnitInputBuilder
Access the UpdateOrganizationalUnit as a reference.
sourcepub async fn send(
self
) -> Result<UpdateOrganizationalUnitOutput, SdkError<UpdateOrganizationalUnitError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateOrganizationalUnitOutput, SdkError<UpdateOrganizationalUnitError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateOrganizationalUnitOutput, UpdateOrganizationalUnitError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateOrganizationalUnitOutput, UpdateOrganizationalUnitError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn organizational_unit_id(self, input: impl Into<String>) -> Self
pub fn organizational_unit_id(self, input: impl Into<String>) -> Self
The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent
operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
sourcepub fn set_organizational_unit_id(self, input: Option<String>) -> Self
pub fn set_organizational_unit_id(self, input: Option<String>) -> Self
The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent
operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
sourcepub fn get_organizational_unit_id(&self) -> &Option<String>
pub fn get_organizational_unit_id(&self) -> &Option<String>
The unique identifier (ID) of the OU that you want to rename. You can get the ID from the ListOrganizationalUnitsForParent
operation.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The new name that you want to assign to the OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The new name that you want to assign to the OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The new name that you want to assign to the OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
Trait Implementations§
source§impl Clone for UpdateOrganizationalUnitFluentBuilder
impl Clone for UpdateOrganizationalUnitFluentBuilder
source§fn clone(&self) -> UpdateOrganizationalUnitFluentBuilder
fn clone(&self) -> UpdateOrganizationalUnitFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateOrganizationalUnitFluentBuilder
impl !RefUnwindSafe for UpdateOrganizationalUnitFluentBuilder
impl Send for UpdateOrganizationalUnitFluentBuilder
impl Sync for UpdateOrganizationalUnitFluentBuilder
impl Unpin for UpdateOrganizationalUnitFluentBuilder
impl !UnwindSafe for UpdateOrganizationalUnitFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more