describeCreateAccountStatus

Retrieves the current status of an asynchronous request to create an account.

This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.

Samples


fun main() { 
   //sampleStart 
   // The following example shows how to request the status about a previous request to create an account
// in an organization. This operation can be called only by a principal from the organization s master
// account. In the example, the specified "createAccountRequestId" comes from the response of the original call
// to "CreateAccount"
val resp = organizationsClient.describeCreateAccountStatus {
    createAccountRequestId = "car-exampleaccountcreationrequestid"
} 
   //sampleEnd
}