pub struct InviteAccountToOrganizationRequest {
pub notes: Option<String>,
pub tags: Option<Vec<Tag>>,
pub target: HandshakeParty,
}
Fields
notes: Option<String>
Additional information that you want to include in the generated email to the recipient account owner.
A list of tags that you want to attach to the account when it becomes a member of the organization. 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.
Any tags in the request are checked for compliance with any applicable tag policies when the request is made. The request is rejected if the tags in the request don't match the requirements of the policy at that time. Tag policy compliance is not checked again when the invitation is accepted and the tags are actually attached to the account. That means that if the tag policy changes between the invitation and the acceptance, then that tags could potentially be non-compliant.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account, then the entire request fails and invitations are not sent.
target: HandshakeParty
The identifier (ID) of the AWS account that you want to invite to join your organization. This is a JSON object that contains the following elements:
{ "Type": "ACCOUNT", "Id": "< account id number >" }
If you use the AWS CLI, you can submit this as a single string, similar to the following example:
--target Id=123456789012,Type=ACCOUNT
If you specify "Type": "ACCOUNT"
, you must provide the AWS account ID number as the Id
. If you specify "Type": "EMAIL"
, you must specify the email address that is associated with the account.
--target Id=diego@example.com,Type=EMAIL
Trait Implementations
sourceimpl Clone for InviteAccountToOrganizationRequest
impl Clone for InviteAccountToOrganizationRequest
sourcefn clone(&self) -> InviteAccountToOrganizationRequest
fn clone(&self) -> InviteAccountToOrganizationRequest
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 InviteAccountToOrganizationRequest
impl Default for InviteAccountToOrganizationRequest
sourcefn default() -> InviteAccountToOrganizationRequest
fn default() -> InviteAccountToOrganizationRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<InviteAccountToOrganizationRequest> for InviteAccountToOrganizationRequest
impl PartialEq<InviteAccountToOrganizationRequest> for InviteAccountToOrganizationRequest
sourcefn eq(&self, other: &InviteAccountToOrganizationRequest) -> bool
fn eq(&self, other: &InviteAccountToOrganizationRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InviteAccountToOrganizationRequest) -> bool
fn ne(&self, other: &InviteAccountToOrganizationRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for InviteAccountToOrganizationRequest
Auto Trait Implementations
impl RefUnwindSafe for InviteAccountToOrganizationRequest
impl Send for InviteAccountToOrganizationRequest
impl Sync for InviteAccountToOrganizationRequest
impl Unpin for InviteAccountToOrganizationRequest
impl UnwindSafe for InviteAccountToOrganizationRequest
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