aws-sdk-organizations 1.119.1

AWS SDK for AWS Organizations
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`InviteOrganizationToTransferResponsibility`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`r#type(ResponsibilityTransferType)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::type) / [`set_type(Option<ResponsibilityTransferType>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_type):<br>required: **true**<br><p>The type of responsibility you want to designate to your organization. Currently, only <code>BILLING</code> is supported.</p><br>
    ///   - [`target(HandshakeParty)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::target) / [`set_target(Option<HandshakeParty>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_target):<br>required: **true**<br><p>A <code>HandshakeParty</code> object. Contains details for the account you want to invite. Currently, only <code>ACCOUNT</code> and <code>EMAIL</code> are supported.</p><br>
    ///   - [`notes(impl Into<String>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::notes) / [`set_notes(Option<String>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_notes):<br>required: **false**<br><p>Additional information that you want to include in the invitation.</p><br>
    ///   - [`start_timestamp(DateTime)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::start_timestamp) / [`set_start_timestamp(Option<DateTime>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_start_timestamp):<br>required: **true**<br><p>Timestamp when the recipient will begin managing the specified responsibilities.</p><br>
    ///   - [`source_name(impl Into<String>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::source_name) / [`set_source_name(Option<String>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_source_name):<br>required: **true**<br><p>Name you want to assign to the transfer.</p><br>
    ///   - [`tags(Tag)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags that you want to attach to the transfer. 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 transfer. 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 a transfer, then the entire request fails and invitations are not sent.</p> </note><br>
    /// - On success, responds with [`InviteOrganizationToTransferResponsibilityOutput`](crate::operation::invite_organization_to_transfer_responsibility::InviteOrganizationToTransferResponsibilityOutput) with field(s):
    ///   - [`handshake(Option<Handshake>)`](crate::operation::invite_organization_to_transfer_responsibility::InviteOrganizationToTransferResponsibilityOutput::handshake): <p>Contains details for a handshake. A handshake is the secure exchange of information between two Amazon Web Services accounts: a sender and a recipient.</p> <p><b>Note:</b> Handshakes that are <code>CANCELED</code>, <code>ACCEPTED</code>, <code>DECLINED</code>, or <code>EXPIRED</code> show up in lists for only 30 days after entering that state After that they are deleted.</p>
    /// - On failure, responds with [`SdkError<InviteOrganizationToTransferResponsibilityError>`](crate::operation::invite_organization_to_transfer_responsibility::InviteOrganizationToTransferResponsibilityError)
    pub fn invite_organization_to_transfer_responsibility(
        &self,
    ) -> crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder {
        crate::operation::invite_organization_to_transfer_responsibility::builders::InviteOrganizationToTransferResponsibilityFluentBuilder::new(
            self.handle.clone(),
        )
    }
}