pub struct CreateOrganizationalUnitRequest {
pub name: String,
pub parent_id: String,
pub tags: Option<Vec<Tag>>,
}
Fields
name: String
The friendly name to assign to the new OU.
parent_id: String
The unique identifier (ID) of the parent root or OU that you want to create the new OU in.
The regex pattern for a parent ID string requires one of the following:
-
Root - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.
-
Organizational unit (OU) - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
A list of tags that you want to attach to the newly created OU. For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty string, but you can't set it to null
. For more information about tagging, see Tagging AWS Organizations resources in the AWS Organizations User Guide.
If any one of the tags is invalid or if you exceed the allowed number of tags for an OU, then the entire request fails and the OU is not created.
Trait Implementations
sourceimpl Clone for CreateOrganizationalUnitRequest
impl Clone for CreateOrganizationalUnitRequest
sourcefn clone(&self) -> CreateOrganizationalUnitRequest
fn clone(&self) -> CreateOrganizationalUnitRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for CreateOrganizationalUnitRequest
impl Default for CreateOrganizationalUnitRequest
sourcefn default() -> CreateOrganizationalUnitRequest
fn default() -> CreateOrganizationalUnitRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateOrganizationalUnitRequest> for CreateOrganizationalUnitRequest
impl PartialEq<CreateOrganizationalUnitRequest> for CreateOrganizationalUnitRequest
sourcefn eq(&self, other: &CreateOrganizationalUnitRequest) -> bool
fn eq(&self, other: &CreateOrganizationalUnitRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateOrganizationalUnitRequest) -> bool
fn ne(&self, other: &CreateOrganizationalUnitRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateOrganizationalUnitRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateOrganizationalUnitRequest
impl Send for CreateOrganizationalUnitRequest
impl Sync for CreateOrganizationalUnitRequest
impl Unpin for CreateOrganizationalUnitRequest
impl UnwindSafe for CreateOrganizationalUnitRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more