// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`InviteAccountToOrganization`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`target(HandshakeParty)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::target) / [`set_target(Option<HandshakeParty>)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::set_target):<br>required: **true**<br><p>The identifier (ID) of the Amazon Web Services account that you want to invite to join your organization. This is a JSON object that contains the following elements:</p> <p><code>{ "Type": "ACCOUNT", "Id": "<<i> <b>account id number</b> </i>>" }</code></p> <p>If you use the CLI, you can submit this as a single string, similar to the following example:</p> <p><code>--target Id=123456789012,Type=ACCOUNT</code></p> <p>If you specify <code>"Type": "ACCOUNT"</code>, you must provide the Amazon Web Services account ID number as the <code>Id</code>. If you specify <code>"Type": "EMAIL"</code>, you must specify the email address that is associated with the account.</p> <p><code>--target Id=diego@example.com,Type=EMAIL</code></p><br>
/// - [`notes(impl Into<String>)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::notes) / [`set_notes(Option<String>)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::set_notes):<br>required: **false**<br><p>Additional information that you want to include in the generated email to the recipient account owner.</p><br>
/// - [`tags(Tag)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::set_tags):<br>required: **false**<br><p>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 <code>null</code>. For more information about tagging, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tagging.html">Tagging Organizations resources</a> in the Organizations User Guide.</p><important> <p>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 <i> <b>not</b> </i> 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.</p> </important> <note> <p>If any one of the tags is not valid or if you exceed the allowed number of tags for an account, then the entire request fails and invitations are not sent.</p> </note><br>
/// - On success, responds with [`InviteAccountToOrganizationOutput`](crate::operation::invite_account_to_organization::InviteAccountToOrganizationOutput) with field(s):
/// - [`handshake(Option<Handshake>)`](crate::operation::invite_account_to_organization::InviteAccountToOrganizationOutput::handshake): <p>A structure that contains details about the handshake that is created to support this invitation request.</p>
/// - On failure, responds with [`SdkError<InviteAccountToOrganizationError>`](crate::operation::invite_account_to_organization::InviteAccountToOrganizationError)
pub fn invite_account_to_organization(
&self,
) -> crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder {
crate::operation::invite_account_to_organization::builders::InviteAccountToOrganizationFluentBuilder::new(self.handle.clone())
}
}