Smaws_Client_Organizations.Typestype nonrec transfer_participant = {management_account_email : email option;Email address for the management account.
*)management_account_id : account_id option;ID for the management account.
*)}Contains details for a participant in a transfer. A transfer is the arrangement between two management accounts where one account designates the other with specified responsibilities for their organization.
type nonrec responsibility_transfer = {active_handshake_id : handshake_id option;ID for the handshake of the transfer.
*)end_timestamp : timestamp option;Timestamp when the transfer ends.
*)start_timestamp : timestamp option;Timestamp when the transfer starts.
*)target : transfer_participant option;Account that manages the specified responsibilities for another organization.
*)source : transfer_participant option;Account that allows another account external to its organization to manage the specified responsibilities for the organization.
*)status : responsibility_transfer_status option;Status for the transfer.
*)type_ : responsibility_transfer_type option;The type of transfer. Currently, only BILLING is supported.
id : responsibility_transfer_id option;ID for the transfer.
*)name : responsibility_transfer_name option;Name assigned to the transfer.
*)arn : responsibility_transfer_arn option;Amazon Resource Name (ARN) for the transfer.
*)}Contains details for a transfer. A transfer is the arrangement between two management accounts where one account designates the other with specified responsibilities for their organization.
type nonrec update_responsibility_transfer_response = {responsibility_transfer : responsibility_transfer option;}type nonrec update_responsibility_transfer_request = {name : responsibility_transfer_name;New name you want to assign to the transfer.
*)id : responsibility_transfer_id;ID for the transfer.
*)}This action isn't available in the current Amazon Web Services Region.
type nonrec too_many_requests_exception = {message : exception_message option;type_ : exception_type option;}You have sent too many requests in too short a period of time. The quota helps protect against denial-of-service attacks. Try again later.
For information about quotas that affect Organizations, see Quotas for Organizations in the Organizations User Guide.
Organizations can't complete your request because of an internal service error. Try again later.
We can't find a transfer that you specified.
type nonrec invalid_input_exception_reason = | INVALID_END_DATE| END_DATE_TOO_EARLY| END_DATE_NOT_END_OF_MONTH| INVALID_START_DATE| START_DATE_TOO_LATE| START_DATE_TOO_EARLY| START_DATE_NOT_BEGINNING_OF_DAY| START_DATE_NOT_BEGINNING_OF_MONTH| UNSUPPORTED_ACTION_IN_RESPONSIBILITY_TRANSFER| CALLER_REQUIRED_FIELD_MISSING| NON_DETACHABLE_POLICY| UNSUPPORTED_RESOURCE_IN_RESOURCE_POLICY| UNSUPPORTED_POLICY_TYPE_IN_RESOURCE_POLICY| UNSUPPORTED_ACTION_IN_RESOURCE_POLICY| INVALID_PRINCIPAL| INVALID_RESOURCE_POLICY_JSON| INVALID_EMAIL_ADDRESS_TARGET| TARGET_NOT_SUPPORTED| DUPLICATE_TAG_KEY| INVALID_SYSTEM_TAGS_PARAMETER| INVALID_ROLE_NAME| UNRECOGNIZED_SERVICE_PRINCIPAL| INVALID_FULL_NAME_TARGET| MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS| MAX_FILTER_LIMIT_EXCEEDED| INVALID_PAGINATION_TOKEN| INPUT_REQUIRED| INVALID_PATTERN_TARGET_ID| INVALID_PATTERN| IMMUTABLE_POLICY| MIN_VALUE_EXCEEDED| MIN_LENGTH_EXCEEDED| MAX_VALUE_EXCEEDED| MAX_LENGTH_EXCEEDED| INVALID_LIST_MEMBER| INVALID_ENUM_POLICY_TYPE| INVALID_ENUM| INVALID_SYNTAX_POLICY| INVALID_SYNTAX_ORGANIZATION| INVALID_PARTY_TYPE_TARGETtype nonrec invalid_input_exception = {reason : invalid_input_exception_reason option;message : exception_message option;}The requested operation failed because you provided invalid values for one or more of the request parameters. This exception includes a reason that contains additional information about the violated limit:
Some of the reasons in the following list might not be applicable to this specific API or operation.
NextToken parameter from the response to a previous call of the operation.AWSServiceRoleFor.type nonrec constraint_violation_exception_reason = | UNSUPPORTED_PRICING| TRANSFER_RESPONSIBILITY_SOURCE_DELETION_IN_PROGRESS| TRANSFER_RESPONSIBILITY_TARGET_DELETION_IN_PROGRESS| ACTIVE_RESPONSIBILITY_TRANSFER_PROCESS| RESPONSIBILITY_TRANSFER_MAX_TRANSFERS_QUOTA_VIOLATION| RESPONSIBILITY_TRANSFER_MAX_OUTBOUND_QUOTA_VIOLATION| RESPONSIBILITY_TRANSFER_MAX_INBOUND_QUOTA_VIOLATION| RESPONSIBILITY_TRANSFER_MAX_LEVEL_VIOLATION| ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED| CANNOT_REGISTER_SUSPENDED_ACCOUNT_AS_DELEGATED_ADMINISTRATOR| ACCOUNT_CREATION_NOT_COMPLETE| INVALID_PAYMENT_INSTRUMENT| SERVICE_ACCESS_NOT_ENABLED| CLOSE_ACCOUNT_REQUESTS_LIMIT_EXCEEDED| CLOSE_ACCOUNT_QUOTA_EXCEEDED| CANNOT_CLOSE_MANAGEMENT_ACCOUNT| MASTER_ACCOUNT_MISSING_BUSINESS_LICENSE| POLICY_TYPE_ENABLED_FOR_THIS_SERVICE| DELEGATED_ADMINISTRATOR_EXISTS_FOR_THIS_SERVICE| CANNOT_REMOVE_DELEGATED_ADMINISTRATOR_FROM_ORG| CANNOT_REGISTER_MASTER_AS_DELEGATED_ADMINISTRATOR| MAX_DELEGATED_ADMINISTRATORS_FOR_SERVICE_LIMIT_EXCEEDED| TAG_POLICY_VIOLATION| MAX_TAG_LIMIT_EXCEEDED| WAIT_PERIOD_ACTIVE| EMAIL_VERIFICATION_CODE_EXPIRED| CREATE_ORGANIZATION_IN_BILLING_MODE_UNSUPPORTED_REGION| ORGANIZATION_NOT_IN_ALL_FEATURES_MODE| MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED| MASTER_ACCOUNT_MISSING_CONTACT_INFO| MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE| ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED| MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED| MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED| ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION| ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA| ACCOUNT_CANNOT_LEAVE_ORGANIZATION| MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED| MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED| POLICY_CONTENT_LIMIT_EXCEEDED| POLICY_NUMBER_LIMIT_EXCEEDED| OU_DEPTH_LIMIT_EXCEEDED| OU_NUMBER_LIMIT_EXCEEDED| HANDSHAKE_RATE_LIMIT_EXCEEDED| ACCOUNT_NUMBER_LIMIT_EXCEEDEDtype nonrec constraint_violation_exception = {reason : constraint_violation_exception_reason option;message : exception_message option;}Performing this operation violates a minimum or maximum value limit. For example, attempting to remove the last service control policy (SCP) from an OU or root, inviting or creating too many accounts to the organization, or attaching too many policies to an account, OU, or root. This exception includes a reason that contains additional information about the violated limit:
Some of the reasons in the following list might not be applicable to this specific API or operation.
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. If you need more accounts, contact Amazon Web Services Support to request an increase in your limit.
Or the number of invitations that you tried to send would cause you to exceed the limit of accounts in your organization. Send fewer invitations or contact Amazon Web Services Support to request an increase in the number of accounts.
Deleted and closed accounts still count toward your limit.
If you get this exception when running a command immediately after creating the organization, wait one hour and try again. After an hour, if the command continues to fail with this error, contact Amazon Web Services Support.
SERVICE_ACCESS_NOT_ENABLED:
EnableAWSServiceAccess API first.EnableAWSServiceAccess API first.Your account isn't a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization.
You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
type nonrec policy_summary = {aws_managed : aws_managed_policy option;A boolean value that indicates whether the specified policy is an Amazon Web Services managed policy. If true, then you can attach the policy to roots, OUs, or accounts, but you cannot edit it.
*)type_ : policy_type option;The type of policy.
*)description : policy_description option;The description of the policy.
*)name : policy_name option;The friendly name of the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)arn : policy_arn option;The Amazon Resource Name (ARN) of the policy.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : policy_id option;The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}Contains information about a policy, but does not include the content. To see the content of a policy, see DescribePolicy.
type nonrec policy = {content : policy_content option;The text content of the policy.
*)policy_summary : policy_summary option;A structure that contains additional details about the policy.
*)}Contains rules to be applied to the affected accounts. Policies can be attached directly to accounts, or to roots and OUs to affect all accounts in those hierarchies.
type nonrec update_policy_response = {policy : policy option;A structure that contains details about the updated policy, showing the requested changes.
*)}type nonrec update_policy_request = {content : policy_content option;If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see SCP syntax in the Organizations User Guide.
The maximum size of a policy document depends on the policy's type. For more information, see Maximum and minimum values in the Organizations User Guide.
*)description : policy_description option;If provided, the new description for the policy.
*)name : policy_name option;If provided, the new name for the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)policy_id : policy_id;ID for the policy that you want to update.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}We can't find a policy with the PolicyId that you specified.
Changes to the effective policy are in progress, and its contents can't be returned. Try the operation again later.
The provided policy document doesn't meet the requirements of the specified policy type. For example, the syntax might be incorrect. For details about service control policy syntax, see SCP syntax in the Organizations User Guide.
A policy with the same name already exists.
The target of the operation is currently being modified by a different request. Try again later.
type nonrec organizational_unit = {path : path option;The path in the organization where this OU exists.
*)name : organizational_unit_name option;The friendly name of this OU.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)arn : organizational_unit_arn option;The Amazon Resource Name (ARN) of this OU.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : organizational_unit_id option;The unique identifier (ID) associated with this OU. The ID is unique to the organization only.
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.
*)}Contains details about an organizational unit (OU). An OU is a container of Amazon Web Services accounts within a root of an organization. Policies that are attached to an OU apply to all accounts contained in that OU and in any child OUs.
type nonrec update_organizational_unit_response = {organizational_unit : organizational_unit option;A structure that contains the details about the specified OU, including its new name.
*)}type nonrec update_organizational_unit_request = {name : organizational_unit_name option;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.
*)organizational_unit_id : organizational_unit_id;ID for 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.
*)}We can't find an OU with the OrganizationalUnitId that you specified.
An OU with the same name already exists.
type nonrec tag_keys = tag_key listtype nonrec untag_resource_request = {tag_keys : tag_keys;The list of keys for tags to remove from the specified resource.
*)resource_id : taggable_resource_id;The ID of the resource to remove a tag from.
You can specify any of the following taggable resources.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-{i 1a2b-34uvwxyz} Root – specify the root ID that begins with r- and looks similar to:
r-{i 1a2b} Policy – specify the policy ID that begins with p- andlooks similar to:
p-{i 12abcdefg3} }We can't find a root, OU, account, or policy with the TargetId that you specified.
type nonrec terminate_responsibility_transfer_response = {responsibility_transfer : responsibility_transfer option;A ResponsibilityTransfer object. Contains details for a transfer.
}type nonrec terminate_responsibility_transfer_request = {end_timestamp : timestamp option;Timestamp when the responsibility transfer is to end.
*)id : responsibility_transfer_id;ID for the transfer.
*)}type nonrec responsibility_transfer_already_in_status_exception = {message : exception_message option;}The responsibility transfer is already in the status that you specified.
type nonrec invalid_responsibility_transfer_transition_exception = {message : exception_message option;}The responsibility transfer can't transition to the requested state because it's not in a valid state for this operation.
type nonrec tag = {value : tag_value;The string value that's associated with the key of the tag. You can set the value of a tag to an empty string, but you can't set the value of a tag to null.
*)key : tag_key;The key identifier, or name, of the tag.
*)}A custom key-value pair associated with a resource within your organization.
You can attach tags to any of the following organization resources.
type nonrec tags = tag listtype nonrec tag_resource_request = {resource_id : taggable_resource_id;The ID of the resource to add a tag to.
You can specify any of the following taggable resources.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-{i 1a2b-34uvwxyz} Root – specify the root ID that begins with r- and looks similar to:
r-{i 1a2b} Policy – specify the policy ID that begins with p- andlooks similar to:
p-{i 12abcdefg3} }We can't find a source root or OU with the ParentId that you specified.
type nonrec policy_type_summary = {status : policy_type_status option;The status of the policy type as it relates to the associated root. To attach a policy of the specified type to a root or to an OU or account in that root, it must be available in the organization and enabled for that root.
*)type_ : policy_type option;The name of the policy type.
*)}Contains information about a policy type and its status in the associated root.
type nonrec policy_types = policy_type_summary listtype nonrec root = {policy_types : policy_types option;The types of policies that are currently enabled for the root and therefore can be attached to the root or to its OUs or accounts.
Even if a policy type is shown as available in the organization, you can separately enable and disable them at the root level by using EnablePolicyType and DisablePolicyType. Use DescribeOrganization to see the availability of the policy types in that organization.
name : root_name option;The friendly name of the root.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)arn : root_arn option;The Amazon Resource Name (ARN) of the root.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : root_id option;The unique identifier (ID) for the root. The ID is unique to the organization only.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
*)}Contains details about a root. A root is a top-level parent node in the hierarchy of an organization that can contain organizational units (OUs) and accounts. The root contains every Amazon Web Services account in the organization.
type nonrec roots = root listWe can't find a root with the RootId that you specified.
type nonrec responsibility_transfers = responsibility_transfer listtype nonrec resource_policy_summary = {arn : resource_policy_arn option;The Amazon Resource Name (ARN) of the resource policy.
*)id : resource_policy_id option;The unique identifier (ID) of the resource policy.
*)}A structure that contains resource policy ID and Amazon Resource Name (ARN).
We can't find a resource policy request with the parameter that you specified.
type nonrec resource_policy = {content : resource_policy_content option;The policy text of the resource policy.
*)resource_policy_summary : resource_policy_summary option;A structure that contains resource policy ID and Amazon Resource Name (ARN).
*)}A structure that contains details about a resource policy.
type nonrec remove_account_from_organization_request = {account_id : account_id;ID for the member account that you want to remove from the organization.
The regex pattern for an account ID string requires exactly 12 digits.
*)}You can't remove a management account from an organization. If you want the management account to become a member account in another organization, you must first delete the current organization of the management account.
We can't find an Amazon Web Services account with the AccountId that you specified, or the account whose credentials you used to make this request isn't a member of an organization.
type nonrec register_delegated_administrator_request = {service_principal : service_principal;The service principal of the Amazon Web Services service for which you want to make the member account a delegated administrator.
*)account_id : account_id;The account ID number of the member account in the organization to register as a delegated administrator.
*)}The specified account is already a delegated administrator for this Amazon Web Services service.
type nonrec put_resource_policy_response = {resource_policy : resource_policy option;A structure that contains details about the resource policy.
*)}type nonrec put_resource_policy_request = {content : resource_policy_content;If provided, the new content for the resource policy. The text must be correctly formatted JSON that complies with the syntax for the resource policy's type. For more information, see SCP syntax in the Organizations User Guide.
*)}The specified policy type isn't currently enabled in this root. You can't attach policies of the specified type to entities in a root until you enable that type in the root. For more information, see Enabling all features in your organization in the Organizations User Guide.
type nonrec policy_type_not_available_for_organization_exception = {message : exception_message option;}You can't use the specified policy type with the feature set currently enabled for this organization. For example, you can enable SCPs only after you enable all features in the organization. For more information, see Managing Organizations policiesin the Organizations User Guide.
The specified policy type is already enabled in the specified root.
type nonrec policy_target_summary = {type_ : target_type option;The type of the policy target.
*)name : target_name option;The friendly name of the policy target.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)arn : generic_arn option;The Amazon Resource Name (ARN) of the policy target.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)target_id : policy_target_id option;The unique identifier (ID) of the policy target.
The regex pattern for a target ID string requires one of the following:
}Contains information about a root, OU, or account that a policy is attached to.
type nonrec policy_targets = policy_target_summary listThe policy isn't attached to the specified target in the specified root.
The policy is attached to one or more entities. You must detach it from all roots, OUs, and accounts before performing this operation.
type nonrec policy_ids = policy_id listtype nonrec policies = policy_summary listtype nonrec paths = path listtype nonrec parent = {type_ : parent_type option;The type of the parent entity.
*)id : parent_id option;The unique identifier (ID) of the parent entity.
The regex pattern for a parent ID string requires one of the following:
}Contains information about either a root or an organizational unit (OU) that can contain OUs or accounts in an organization.
type nonrec parents = parent listWe can't find a root or OU with the ParentId that you specified.
type nonrec organizational_units = organizational_unit listThe specified OU is not empty. Move all accounts to another root or to other OUs, remove all child OUs, and try the operation again.
The organization isn't empty. To delete an organization, you must first remove all accounts except the management account.
type nonrec organization = {available_policy_types : policy_types option;Do not use. This field is deprecated and doesn't provide complete information about the policies in your organization.
To determine the policies that are enabled and available for use in your organization, use the ListRoots operation instead.
master_account_email : email option;The email address that is associated with the Amazon Web Services account that is designated as the management account for the organization.
*)master_account_id : account_id option;The unique identifier (ID) of the management account of an organization.
The regex pattern for an account ID string requires exactly 12 digits.
*)master_account_arn : account_arn option;The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)feature_set : organization_feature_set option;Specifies the functionality that currently is available to the organization. If set to "ALL", then all features are enabled and policies can be applied to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing functionality is available. For more information, see Enabling all features in your organization in the Organizations User Guide.
*)arn : organization_arn option;The Amazon Resource Name (ARN) of an organization.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : organization_id option;The unique identifier (ID) of an organization.
The regex pattern for an organization ID string requires "o-" followed by from 10 to 32 lowercase letters or digits.
*)}Contains details about an organization. An organization is a collection of accounts that are centrally managed together using consolidated billing, organized hierarchically with organizational units (OUs), and controlled with policies .
type nonrec move_account_request = {destination_parent_id : parent_id;ID for the root or organizational unit that you want to move the account to.
The regex pattern for a parent ID string requires one of the following:
source_parent_id : parent_id;ID for the root or organizational unit that you want to move the account from.
The regex pattern for a parent ID string requires one of the following:
account_id : account_id;ID for the account that you want to move.
The regex pattern for an account ID string requires exactly 12 digits.
*)}That account is already present in the specified destination.
We can't find the destination container (a root or OU) with the ParentId that you specified.
type nonrec list_targets_for_policy_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
targets : policy_targets option;A list of structures, each of which contains details about one of the entities to which the specified policy is attached.
*)}type nonrec list_targets_for_policy_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
policy_id : policy_id;ID for the policy whose attachments you want to know.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}type nonrec list_roots_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
roots : roots option;A list of roots that are defined in an organization.
*)}type nonrec list_roots_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
}type nonrec list_policies_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
policies : policies option;A list of policies that match the filter criteria in the request. The output list doesn't include the policy contents. To see the content for a policy, see DescribePolicy.
}type nonrec list_policies_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
filter : policy_type;Specifies the type of policy that you want to include in the response. You must specify one of the following values:
}type nonrec list_policies_for_target_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
policies : policies option;The list of policies that match the criteria in the request.
*)}type nonrec list_policies_for_target_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
filter : policy_type;The type of policy that you want to include in the returned list. You must specify one of the following values:
target_id : policy_target_id;ID for the root, organizational unit, or account whose policies you want to list.
The regex pattern for a target ID string requires one of the following:
}type nonrec list_parents_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
parents : parents option;A list of parents for the specified child account or OU.
*)}type nonrec list_parents_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
child_id : child_id;ID for the OU or account whose parent containers you want to list. Don't specify a root.
The regex pattern for a child ID string requires one of the following:
}We can't find an organizational unit (OU) or Amazon Web Services account with the ChildId that you specified.
type nonrec list_outbound_responsibility_transfers_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
responsibility_transfers : responsibility_transfers option;An array of ResponsibilityTransfer objects. Contains details for a transfer.
}type nonrec list_outbound_responsibility_transfers_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
type_ : responsibility_transfer_type;The type of responsibility. Currently, only BILLING is supported.
}type nonrec list_organizational_units_for_parent_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
organizational_units : organizational_units option;A list of the OUs in the specified root or parent OU.
*)}type nonrec list_organizational_units_for_parent_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
parent_id : parent_id;ID for the root or OU whose child OUs you want to list.
The regex pattern for a parent ID string requires one of the following:
}type nonrec list_inbound_responsibility_transfers_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
responsibility_transfers : responsibility_transfers option;A ResponsibilityTransfers object. Contains details for a transfer.
}type nonrec list_inbound_responsibility_transfers_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
id : responsibility_transfer_id option;ID for the transfer.
*)type_ : responsibility_transfer_type;The type of responsibility. Currently, only BILLING is supported.
}type nonrec handshake_party = {type_ : handshake_party_type;The type of ID for the participant.
*)id : handshake_party_id;ID for the participant: Acccount ID, organization ID, or email address.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}Contains details for a participant in a handshake.
type nonrec handshake_parties = handshake_party listtype handshake_resource = {resources : handshake_resources option;An array of HandshakeResource objects. When needed, contains additional details for a handshake. For example, the email address for the sender.
type_ : handshake_resource_type option;The type of information being passed, specifying how the value is to be interpreted by the other party:
value : handshake_resource_value option;Additional information for the handshake. The format of the value string must match the requirements of the specified type.
*)}Contains additional details for a handshake.
and handshake_resources = handshake_resource listtype nonrec handshake = {resources : handshake_resources option;An array of HandshakeResource objects. When needed, contains additional details for a handshake. For example, the email address for the sender.
action : action_type option;The type of handshake:
expiration_timestamp : timestamp option;Timestamp when the handshake expires.
*)requested_timestamp : timestamp option;Timestamp when the handshake request was made.
*)state : handshake_state option;Current state for the handshake.
parties : handshake_parties option;An array of HandshakeParty objects. Contains details for participant in a handshake.
arn : handshake_arn option;Amazon Resource Name (ARN) for the handshake.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : handshake_id option;ID for the handshake.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}Contains details for a handshake. A handshake is the secure exchange of information between two Amazon Web Services accounts: a sender and a recipient.
Note: Handshakes that are CANCELED, ACCEPTED, DECLINED, or EXPIRED show up in lists for only 30 days after entering that state After that they are deleted.
type nonrec handshakes = handshake listtype nonrec list_handshakes_for_organization_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
handshakes : handshakes option;An array of Handshakeobjects. Contains details for a handshake.
}type nonrec handshake_filter = {parent_handshake_id : handshake_id option;The parent handshake. Only used for handshake types that are a child of another type.
If you specify ParentHandshakeId, you cannot also specify ActionType.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)action_type : action_type option;The type of handshake.
If you specify ActionType, you cannot also specify ParentHandshakeId.
}Contains the filter used to select the handshakes for an operation.
type nonrec list_handshakes_for_organization_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
filter : handshake_filter option;A HandshakeFilter object. Contains the filer used to select the handshakes for an operation.
}type nonrec list_handshakes_for_account_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
handshakes : handshakes option;An array of Handshakeobjects. Contains details for a handshake.
}type nonrec list_handshakes_for_account_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
filter : handshake_filter option;A HandshakeFilter object. Contains the filer used to select the handshakes for an operation.
}type nonrec effective_policy_validation_error = {contributing_policies : policy_ids option;path_to_error : path_to_error option;The path within the effective policy where the validation error occurred.
*)error_message : error_message option;The error message for the validation error.
*)error_code : error_code option;The error code for the validation error. For example, ELEMENTS_TOO_MANY.
}Contains details about the validation errors that occurred when generating or enforcing an effective policy, such as which policies contributed to the error and location of the error.
type nonrec effective_policy_validation_errors =
effective_policy_validation_error listtype nonrec list_effective_policy_validation_errors_response = {effective_policy_validation_errors : effective_policy_validation_errors option;The EffectivePolicyValidationError object contains details about the validation errors that occurred when generating or enforcing an effective policy, such as which policies contributed to the error and location of the error.
next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
evaluation_timestamp : timestamp option;The time when the latest effective policy was generated for the specified account.
*)path : path option;The path in the organization where the specified account exists.
*)policy_type : effective_policy_type option;The specified policy type. One of the following values:
account_id : account_id option;The ID of the specified account.
*)}type nonrec list_effective_policy_validation_errors_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
policy_type : effective_policy_type;The type of policy that you want information about. You can specify one of the following values:
account_id : account_id;The ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.
*)}If you ran this action on the management account, this policy type is not enabled. If you ran the action on a member account, the account doesn't have an effective policy of this type. Contact the administrator of your organization about attaching a policy of this type to the account.
type nonrec delegated_service = {delegation_enabled_date : timestamp option;The date that the account became a delegated administrator for this service.
*)service_principal : service_principal option;The name of an Amazon Web Services service that can request an operation for the specified service. This is typically in the form of a URL, such as:
{i servicename}.amazonaws.com.
*)}Contains information about the Amazon Web Services service for which the account is a delegated administrator.
type nonrec delegated_services = delegated_service listtype nonrec list_delegated_services_for_account_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
delegated_services : delegated_services option;The services for which the account is a delegated administrator.
*)}type nonrec list_delegated_services_for_account_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
account_id : account_id;The account ID number of a delegated administrator account in the organization.
*)}The specified account is not a delegated administrator for this Amazon Web Services service.
type nonrec delegated_administrator = {delegation_enabled_date : timestamp option;The date when the account was made a delegated administrator.
*)joined_timestamp : timestamp option;The date when the delegated administrator's account became a part of the organization.
*)joined_method : account_joined_method option;The method by which the delegated administrator's account joined the organization.
*)state : account_state option;Each state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
*)status : account_status option;The status of the delegated administrator's account in the organization.
*)name : account_name option;The friendly name of the delegated administrator's account.
*)email : email option;The email address that is associated with the delegated administrator's Amazon Web Services account.
*)arn : account_arn option;The Amazon Resource Name (ARN) of the delegated administrator's account.
*)id : account_id option;The unique identifier (ID) of the delegated administrator's account.
*)}Contains information about the delegated administrator.
type nonrec delegated_administrators = delegated_administrator listtype nonrec list_delegated_administrators_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
delegated_administrators : delegated_administrators option;The list of delegated administrators in your organization.
*)}type nonrec list_delegated_administrators_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
service_principal : service_principal option;Specifies a service principal name. If specified, then the operation lists the delegated administrators only for the specified service.
If you don't specify a service principal, the operation lists all delegated administrators for all services in your organization.
*)}type nonrec create_account_failure_reason = | UPDATE_EXISTING_RESOURCE_POLICY_WITH_TAGS_NOT_SUPPORTED| INVALID_PAYMENT_INSTRUMENT| MISSING_PAYMENT_INSTRUMENT| UNKNOWN_BUSINESS_VALIDATION| INVALID_IDENTITY_FOR_BUSINESS_VALIDATION| PENDING_BUSINESS_VALIDATIONv| FAILED_BUSINESS_VALIDATION| MISSING_BUSINESS_VALIDATION| GOVCLOUD_ACCOUNT_ALREADY_EXISTS| INTERNAL_FAILURE| CONCURRENT_ACCOUNT_MODIFICATION| INVALID_EMAIL| INVALID_ADDRESS| EMAIL_ALREADY_EXISTS| ACCOUNT_LIMIT_EXCEEDEDtype nonrec create_account_status = {failure_reason : create_account_failure_reason option;If the request failed, a description of the reason for the failure.
gov_cloud_account_id : account_id option;If the account was created successfully, the ID for the new account in the Amazon Web Services GovCloud (US) Region.
*)account_id : account_id option;If the account was created successfully, the unique identifier (ID) of the new account.
The regex pattern for an account ID string requires exactly 12 digits.
*)completed_timestamp : timestamp option;The date and time that the account was created and the request completed.
*)requested_timestamp : timestamp option;The date and time that the request was made for the account creation.
*)state : create_account_state option;The status of the asynchronous request to create an Amazon Web Services account.
*)account_name : create_account_name option;The account name given to the account when it was created.
*)id : create_account_request_id option;The unique identifier (ID) that references this request. You get this value from the response of the initial CreateAccount request to create the account.
The regex pattern for a create account request ID string requires "car-" followed by from 8 to 32 lowercase letters or digits.
*)}Contains the status about a CreateAccount or CreateGovCloudAccount request to create an Amazon Web Services account or an Amazon Web Services GovCloud (US) account in an organization.
type nonrec create_account_statuses = create_account_status listtype nonrec list_create_account_status_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
create_account_statuses : create_account_statuses option;A list of objects with details about the requests. Certain elements, such as the accountId number, are present in the output only after the account has been successfully created.
*)}type nonrec create_account_states = create_account_state listtype nonrec list_create_account_status_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
states : create_account_states option;A list of one or more states that you want included in the response. If this parameter isn't present, all requests are included in the response.
*)}type nonrec child = {type_ : child_type option;The type of this child entity.
*)id : child_id option;The unique identifier (ID) of this child entity.
The regex pattern for a child ID string requires one of the following:
}Contains a list of child entities, either OUs or accounts.
type nonrec children = child listtype nonrec list_children_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
children : children option;The list of children of the specified parent container.
*)}type nonrec list_children_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
child_type : child_type;Filters the output to include only the specified child type.
*)parent_id : parent_id;The unique identifier (ID) for the parent root or OU whose children you want to list.
The regex pattern for a parent ID string requires one of the following:
}type nonrec account = {joined_timestamp : timestamp option;The date the account became a part of the organization.
*)joined_method : account_joined_method option;The method by which the account joined the organization.
*)paths : paths option;The paths in the organization where the account exists.
*)state : account_state option;Each state represents a specific phase in the account lifecycle. Use this information to manage account access, automate workflows, or trigger actions based on account state changes.
For more information about account states and their implications, see Monitor the state of your Amazon Web Services accounts in the Organizations User Guide.
*)status : account_status option;The status of the account in the organization.
The Status parameter in the Account object will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.
name : account_name option;The friendly name of the account.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)email : email option;The email address associated with the Amazon Web Services account.
The regex pattern for this parameter is a string of characters that represents a standard internet email address.
*)arn : account_arn option;The Amazon Resource Name (ARN) of the account.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference.
*)id : account_id option;The unique identifier (ID) of the account.
The regex pattern for an account ID string requires exactly 12 digits.
*)}Contains information about an Amazon Web Services account that is a member of an organization.
type nonrec accounts = account listtype nonrec list_accounts_with_invalid_effective_policy_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
policy_type : effective_policy_type option;The specified policy type. One of the following values:
accounts : accounts option;The accounts in the organization which have an invalid effective policy for the specified policy type.
*)}type nonrec list_accounts_with_invalid_effective_policy_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
policy_type : effective_policy_type;The type of policy that you want information about. You can specify one of the following values:
}type nonrec list_accounts_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
accounts : accounts option;A list of objects in the organization.
The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.
}type nonrec list_accounts_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
}type nonrec list_accounts_for_parent_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
accounts : accounts option;A list of the accounts in the specified root or OU.
The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.
}type nonrec list_accounts_for_parent_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
parent_id : parent_id;The unique identifier (ID) for the parent root or organization unit (OU) whose accounts you want to list.
*)}type nonrec enabled_service_principal = {date_enabled : timestamp option;The date that the service principal was enabled for integration with Organizations.
*)service_principal : service_principal option;The name of the service principal. This is typically in the form of a URL, such as:
{i servicename}.amazonaws.com.
*)}A structure that contains details of a service principal that represents an Amazon Web Services service that is enabled to integrate with Organizations.
type nonrec enabled_service_principals = enabled_service_principal listtype nonrec list_aws_service_access_for_organization_response = {next_token : next_token option;If present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null.
enabled_service_principals : enabled_service_principals option;A list of the service principals for the services that are enabled to integrate with your organization. Each principal is a structure that includes the name and the date that it was enabled for integration with Organizations.
*)}type nonrec list_aws_service_access_for_organization_request = {max_results : max_results option;The maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
next_token : next_token option;The parameter for receiving additional results if you receive a NextToken response in a previous request. A NextToken response indicates that more output is available. Set this parameter to the value of the previous call's NextToken response to indicate where the output should continue from.
}type nonrec invite_organization_to_transfer_responsibility_response = {handshake : handshake option;}type nonrec invite_organization_to_transfer_responsibility_request = {source_name : responsibility_transfer_name;Name you want to assign to the transfer.
*)start_timestamp : timestamp;Timestamp when the recipient will begin managing the specified responsibilities.
*)notes : handshake_notes option;Additional information that you want to include in the invitation.
*)target : handshake_party;A HandshakeParty object. Contains details for the account you want to invite. Currently, only ACCOUNT and EMAIL are supported.
type_ : responsibility_transfer_type;The type of responsibility you want to designate to your organization. Currently, only BILLING is supported.
}type nonrec handshake_constraint_violation_exception_reason = | LEGACY_PERMISSIONS_STILL_IN_USE| UNUSED_PREPAYMENT_BALANCE| SOURCE_AND_TARGET_CANNOT_MATCH| RESPONSIBILITY_TRANSFER_ALREADY_EXISTS| MANAGEMENT_ACCOUNT_EMAIL_NOT_VERIFIED| ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED| ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD| PAYMENT_INSTRUMENT_REQUIRED| INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES| ORGANIZATION_IS_ALREADY_PENDING_ALL_FEATURES_MIGRATION| ORGANIZATION_ALREADY_HAS_ALL_FEATURES| ALREADY_IN_AN_ORGANIZATION| HANDSHAKE_RATE_LIMIT_EXCEEDED| ACCOUNT_NUMBER_LIMIT_EXCEEDEDtype nonrec handshake_constraint_violation_exception = {reason : handshake_constraint_violation_exception_reason option;message : exception_message option;}The requested operation would violate the constraint identified in the reason code.
Some of the reasons in the following list might not be applicable to this specific API or operation:
ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on the number of accounts in an organization. Note that deleted and closed accounts still count toward your limit.
If you get this exception immediately after creating the organization, wait one hour and try again. If after an hour it continues to fail with this error, contact Amazon Web Services Support.
A handshake with the same action and target already exists. For example, if you invited an account to join your organization, the invited account might already have a pending invitation from this organization. If you intend to resend an invitation to an account, ensure that existing handshakes that might be considered duplicates are canceled or declined.
type nonrec invite_account_to_organization_response = {handshake : handshake option;A structure that contains details about the handshake that is created to support this invitation request.
*)}type nonrec invite_account_to_organization_request = {notes : handshake_notes option;Additional information that you want to include in the generated email to the recipient account owner.
*)target : handshake_party;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:
\{ "Type": "ACCOUNT", "Id": "<{i {b account id number} }>" \}If you use the 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 Amazon Web Services 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
}Organizations couldn't perform the operation because your organization hasn't finished initializing. This can take up to an hour. Try again later. If after one hour you continue to receive this error, contact Amazon Web Services Support.
You can't invite an existing account to your organization until you verify that you own the email address associated with the management account. For more information, see Email address verification in the Organizations User Guide.
You can't perform the operation on the handshake in its current state. For example, you can't cancel a handshake that was already accepted or accept a handshake that was already declined.
We can't find a handshake with the HandshakeId that you specified.
The specified handshake is already in the requested state. For example, you can't accept a handshake that was already accepted.
type nonrec enable_policy_type_response = {root : root option;A structure that shows the root with the updated list of enabled policy types.
*)}type nonrec enable_policy_type_request = {policy_type : policy_type;The policy type that you want to enable. You can specify one of the following values:
root_id : root_id;ID for the root in which you want to enable a policy type. You can get the ID from the ListRoots operation.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
*)}type nonrec enable_all_features_response = {handshake : handshake option;A structure that contains details about the handshake created to support this request to enable all features in the organization.
*)}type nonrec enable_aws_service_access_request = {service_principal : service_principal;The service principal name of the Amazon Web Services service for which you want to enable integration with your organization. This is typically in the form of a URL, such as
{i service-abbreviation}.amazonaws.com.
*)}type nonrec effective_policy = {policy_type : effective_policy_type option;The policy type.
*)target_id : policy_target_id option;The account ID of the policy target.
*)last_updated_timestamp : timestamp option;The time of the last update to this policy.
*)policy_content : policy_content option;The text content of the policy.
*)}Contains rules to be applied to the affected accounts. The effective policy is the aggregation of any policies the account inherits, plus any policy directly attached to the account.
The selected policy is already attached to the specified target.
type nonrec disable_policy_type_response = {root : root option;A structure that shows the root with the updated list of enabled policy types.
*)}type nonrec disable_policy_type_request = {policy_type : policy_type;The policy type that you want to disable in this root. You can specify one of the following values:
root_id : root_id;ID for the root in which you want to disable a policy type. You can get the ID from the ListRoots operation.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
*)}type nonrec disable_aws_service_access_request = {service_principal : service_principal;The service principal name of the Amazon Web Services service for which you want to disable integration with your organization. This is typically in the form of a URL, such as
{i service-abbreviation}.amazonaws.com.
*)}type nonrec detach_policy_request = {target_id : policy_target_id;ID for the root, OU, or account that you want to detach the policy from. You can get the ID from the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.
The regex pattern for a target ID string requires one of the following:
policy_id : policy_id;ID for the policy you want to detach. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}type nonrec describe_responsibility_transfer_response = {responsibility_transfer : responsibility_transfer option;A ResponsibilityTransfer object. Contains details for a transfer.
}type nonrec describe_responsibility_transfer_request = {id : responsibility_transfer_id;ID for the transfer.
*)}type nonrec describe_resource_policy_response = {resource_policy : resource_policy option;A structure that contains details about the resource policy.
*)}type nonrec describe_policy_response = {policy : policy option;A structure that contains details about the specified policy.
*)}type nonrec describe_policy_request = {policy_id : policy_id;ID for the policy that you want details about. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}type nonrec describe_organizational_unit_response = {organizational_unit : organizational_unit option;A structure that contains details about the specified OU.
*)}type nonrec describe_organizational_unit_request = {organizational_unit_id : organizational_unit_id;ID for the organizational unit that you want details about. 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.
*)}type nonrec describe_organization_response = {organization : organization option;A structure that contains information about the organization.
The AvailablePolicyTypes part of the response is deprecated, and you shouldn't use it in your apps. It doesn't include any policy type supported by Organizations other than SCPs. In the China (Ningxia) Region, no policy type is included. To determine which policy types are enabled in your organization, use the
[ListRoots] operation.
*)}type nonrec describe_handshake_response = {handshake : handshake option;A Handshake object. Contains details for the handshake.
}type nonrec describe_handshake_request = {handshake_id : handshake_id;ID for the handshake that you want information about.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}type nonrec describe_effective_policy_response = {effective_policy : effective_policy option;The contents of the effective policy.
*)}type nonrec describe_effective_policy_request = {target_id : policy_target_id option;When you're signed in as the management account, specify the ID of the account that you want details about. Specifying an organization root or organizational unit (OU) as the target is not supported.
*)policy_type : effective_policy_type;The type of policy that you want information about. You can specify one of the following values:
}type nonrec describe_create_account_status_response = {create_account_status : create_account_status option;A structure that contains the current status of an account creation request.
*)}type nonrec describe_create_account_status_request = {create_account_request_id : create_account_request_id;Specifies the Id value that uniquely identifies the CreateAccount request. You can get the value from the CreateAccountStatus.Id response in an earlier CreateAccount request, or from the ListCreateAccountStatus operation.
The regex pattern for a create account request ID string requires "car-" followed by from 8 to 32 lowercase letters or digits.
*)}We can't find an create account request with the CreateAccountRequestId that you specified.
type nonrec describe_account_response = {account : account option;A structure that contains information about the requested account.
The Status parameter in the API response will be retired on September 9, 2026. Although both the account State and account Status parameters are currently available in the Organizations APIs (DescribeAccount, ListAccounts, ListAccountsForParent), we recommend that you update your scripts or other code to use the State parameter instead of Status before September 9, 2026.
}type nonrec describe_account_request = {account_id : account_id;The unique identifier (ID) of the Amazon Web Services account that you want information about. You can get the ID from the ListAccounts or ListAccountsForParent operations.
The regex pattern for an account ID string requires exactly 12 digits.
*)}type nonrec deregister_delegated_administrator_request = {service_principal : service_principal;The service principal name of an Amazon Web Services service for which the account is a delegated administrator.
Delegated administrator privileges are revoked for only the specified Amazon Web Services service from the member account. If the specified service is the only service for which the member account is a delegated administrator, the operation also revokes Organizations read action permissions.
*)account_id : account_id;The account ID number of the member account in the organization that you want to deregister as a delegated administrator.
*)}type nonrec delete_policy_request = {policy_id : policy_id;ID for the policy that you want to delete. You can get the ID from the ListPolicies or ListPoliciesForTarget operations.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}type nonrec delete_organizational_unit_request = {organizational_unit_id : organizational_unit_id;ID for the organizational unit that you want to delete. 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.
*)}type nonrec decline_handshake_response = {handshake : handshake option;A Handshake object. Contains details for the declined handshake.
}type nonrec decline_handshake_request = {handshake_id : handshake_id;ID for the handshake that you want to decline. You can get the ID from the ListHandshakesForAccount operation.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}type nonrec create_policy_response = {policy : policy option;A structure that contains details about the newly created policy.
*)}type nonrec create_policy_request = {type_ : policy_type;The type of policy to create. You can specify one of the following values:
name : policy_name;The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
*)description : policy_description;An optional description to assign to the policy.
*)content : policy_content;The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy type you specify in the Type parameter.
The maximum size of a policy document depends on the policy's type. For more information, see Maximum and minimum values in the Organizations User Guide.
*)}type nonrec create_organizational_unit_response = {organizational_unit : organizational_unit option;A structure that contains details about the newly created OU.
*)}type nonrec create_organizational_unit_request = {name : organizational_unit_name;The friendly name to assign to the new OU.
*)parent_id : parent_id;ID for 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:
}type nonrec create_organization_response = {organization : organization option;A structure that contains details about the newly created organization.
*)}type nonrec create_organization_request = {feature_set : organization_feature_set option;Specifies the feature set supported by the new organization. Each feature set supports different levels of functionality.
CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the management account. For more information, see Consolidated billing in the Organizations User Guide.
The consolidated billing feature subset isn't available for organizations in the Amazon Web Services GovCloud (US) Region.
ALL: In addition to all the features supported by the consolidated billing feature set, the management account can also apply any policy type to any member account in the organization. For more information, see All features in the Organizations User Guide.}This account is already a member of an organization. An account can belong to only one organization at a time.
type nonrec access_denied_for_dependency_exception = {reason : access_denied_for_dependency_exception_reason option;message : exception_message option;}The operation that you attempted requires you to have the iam:CreateServiceLinkedRole for organizations.amazonaws.com permission so that Organizations can create the required service-linked role. You don't have that permission.
type nonrec create_gov_cloud_account_response = {create_account_status : create_account_status option;}type nonrec create_gov_cloud_account_request = {iam_user_access_to_billing : iam_user_access_to_billing option;If set to ALLOW, the new linked account in the commercial Region enables IAM users to access account billing information if they have the required permissions. If set to DENY, only the root user of the new account can access account billing information. For more information, see About IAM access to the Billing and Cost Management console in the Amazon Web Services Billing and Cost Management User Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required permissions can access billing information for the new account.
role_name : role_name option;(Optional)
The name of an IAM role that Organizations automatically preconfigures in the new member accounts in both the Amazon Web Services GovCloud (US) Region and in the commercial Region. This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.
If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole.
For more information about how to use this role to access the member account, see the following links:
The regex pattern that is used to validate this parameter. The pattern can include uppercase letters, lowercase letters, digits with no spaces, and any of the following characters: =,.@-
*)account_name : create_account_name;The friendly name of the member account.
The account name can consist of only the characters [a-z],[A-Z],[0-9], hyphen (-), or dot (.) You can't separate characters with a dash (–).
*)email : email;Specifies the email address of the owner to assign to the new member account in the commercial Region. This email address must not already be associated with another Amazon Web Services account. You must use a valid email address to complete account creation.
The rules for a valid email address:
The local name can't contain any of the following characters:
whitespace, " ' ( ) < > [ ] : ; , \ | % &
You can't access the root user of the account or remove an account that was created with an invalid email address. Like all request parameters for CreateGovCloudAccount, the request for the email address for the Amazon Web Services GovCloud (US) account originates from the commercial Region, not from the Amazon Web Services GovCloud (US) Region.
}type nonrec create_account_response = {create_account_status : create_account_status option;A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned CreateAccountStatus ID as a parameter to DescribeCreateAccountStatus to get status about the progress of the request at later times. You can also check the CloudTrail log for the CreateAccountResult event. For more information, see Logging and monitoring in Organizations in the Organizations User Guide.
}type nonrec create_account_request = {iam_user_access_to_billing : iam_user_access_to_billing option;If set to ALLOW, the new account enables IAM users to access account billing information if they have the required permissions. If set to DENY, only the root user of the new account can access account billing information. For more information, see About IAM access to the Billing and Cost Management console in the Amazon Web Services Billing and Cost Management User Guide.
If you don't specify this parameter, the value defaults to ALLOW, and IAM users and roles with the required permissions can access billing information for the new account.
role_name : role_name option;The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.
If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole.
For more information about how to use this role to access the member account, see the following links:
The regex pattern that is used to validate this parameter. The pattern can include uppercase letters, lowercase letters, digits with no spaces, and any of the following characters: =,.@-
*)account_name : create_account_name;The friendly name of the member account.
*)email : email;The email address of the owner to assign to the new member account. This email address must not already be associated with another Amazon Web Services account. You must use a valid email address to complete account creation.
The rules for a valid email address:
The local name can't contain any of the following characters:
whitespace, " ' ( ) < > [ ] : ; , \ | % &
You can't access the root user of the account or remove an account that was created with an invalid email address.
*)}The request failed because it conflicts with the current state of the specified resource.
type nonrec close_account_request = {account_id : account_id;Retrieves the Amazon Web Services account Id for the current CloseAccount API request.
}You attempted to close an account that is already closed.
type nonrec cancel_handshake_response = {handshake : handshake option;A Handshake object. Contains for the handshake that you canceled.
}type nonrec cancel_handshake_request = {handshake_id : handshake_id;ID for the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization operation.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}type nonrec attach_policy_request = {target_id : policy_target_id;ID for the root, OU, or account that you want to attach the policy to. You can get the ID by calling the ListRoots, ListOrganizationalUnitsForParent, or ListAccounts operations.
The regex pattern for a target ID string requires one of the following:
policy_id : policy_id;ID for the policy that you want to attach to the target. You can get the ID for the policy by calling the ListPolicies operation.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
*)}type nonrec accept_handshake_response = {handshake : handshake option;A Handshake object. Contains details for the handshake.
}type nonrec accept_handshake_request = {handshake_id : handshake_id;ID for the handshake that you want to accept.
The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lowercase letters or digits.
*)}