You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Organizations::Types::CreateAccountStatus

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb

Overview

Contains the status about a CreateAccount or CreateGovCloudAccount request to create an AWS account or an AWS GovCloud (US) account in an organization.

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

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.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#account_nameString

The account name given to the account when it was created.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#completed_timestampTime

The date and time that the account was created and the request completed.

Returns:

  • (Time)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#failure_reasonString

If the request failed, a description of the reason for the failure.

  • ACCOUNT_LIMIT_EXCEEDED: The account could not be created because you have reached the limit on the number of accounts in your organization.

  • EMAIL_ALREADY_EXISTS: The account could not be created because another AWS account with that email address already exists.

  • GOVCLOUD_ACCOUNT_ALREADY_EXISTS: The account in the AWS GovCloud (US) Region could not be created because this Region already includes an account with that email address.

  • INVALID_ADDRESS: The account could not be created because the address you provided is not valid.

  • INVALID_EMAIL: The account could not be created because the email address you provided is not valid.

  • INTERNAL_FAILURE: The account could not be created because of an internal failure. Try again later. If the problem persists, contact AWS Support.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#gov_cloud_account_idString

If the account was created successfully, the unique identifier (ID) of the new account in the AWS GovCloud (US) Region.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#idString

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 lower-case letters or digits.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#requested_timestampTime

The date and time that the request was made for the account creation.

Returns:

  • (Time)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end

#stateString

The status of the request.

Returns:

  • (String)


681
682
683
684
685
686
687
688
689
690
691
# File 'gems/aws-sdk-organizations/lib/aws-sdk-organizations/types.rb', line 681

class CreateAccountStatus < Struct.new(
  :id,
  :account_name,
  :state,
  :requested_timestamp,
  :completed_timestamp,
  :account_id,
  :gov_cloud_account_id,
  :failure_reason)
  include Aws::Structure
end