Module Smaws_Client_Organizations.CreateAccount

Creates an Amazon Web Services account that is automatically a member of the organization whose credentials made the request. This is an asynchronous request that Amazon Web Services performs in the background. Because CreateAccount operates asynchronously, it can return a successful completion message even though account initialization might still be in progress. You might need to wait a few minutes before you can successfully access the account. To check the status of the request, do one of the following:

Additionally, the AccountJoinedOrganization event is logged in CloudTrail and is available only in the management account's event history. This event includes joinedMethod:Created and joinedTime fields to provide context on how and when the account joined the organization.

The user who calls the API to create an account must have the organizations:CreateAccount permission. If you enabled all features in the organization, Organizations creates the required service-linked role named AWSServiceRoleForOrganizations. For more information, see Organizations and service-linked roles in the Organizations User Guide.

If the request includes tags, then the requester must have the organizations:TagResource permission.

Organizations preconfigures the new member account with a role (named OrganizationAccountAccessRole by default) that grants users in the management account administrator permissions in the new member account. Principals in the management account can assume the role. Organizations clones the company name and address information for the new account from the organization's management account.

You can only call this operation from the management account.

For more information about creating accounts, see Creating a member account in your organization in the Organizations User Guide.

When you create a member account with this operation, you can choose whether to create the account with the IAM User and Role Access to Billing Information switch enabled. If you enable it, IAM users and roles that have appropriate permissions can view billing information for the account. If you disable it, only the account root user can access billing information. For information about how to disable this switch for an account, see Granting access to your billing information and tools.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `InvalidInputException of Types.invalid_input_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.create_account_request -> (Types.create_account_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `InvalidInputException of Types.invalid_input_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.create_account_request -> (Types.create_account_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `InvalidInputException of Types.invalid_input_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception | `UnsupportedAPIEndpointException of Types.unsupported_api_endpoint_exception ] * Smaws_Lib.Response.metadata) Stdlib.result