Class CfnOrganization

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:10.380Z") @Stability(Stable) public class CfnOrganization extends CfnResource implements IInspectable
Creates an AWS organization.

The account whose user is calling the CreateOrganization operation automatically becomes the management account of the new organization.

This operation must be called using credentials from the account that is to become the new organization's management account. The principal must also have the relevant IAM permissions .

  • If you delete an organization, you can't recover it. If you created any policies inside of the organization, they're also deleted and you can't recover them.
  • You can delete an organization only after you remove all member accounts from the organization. If you created some of your member accounts using AWS Organizations , you might be blocked from removing those accounts. You can remove a member account only if it has all the information that's required to operate as a standalone AWS account. For more information about how to provide that information and then remove the account, see Leave an organization from your member account in the AWS Organizations User Guide .
  • If you closed a member account before you remove it from the organization, it enters a 'suspended' state for a period of time and you can't remove the account from the organization until it is finally closed. This can take up to 90 days and can prevent you from deleting the organization until all member accounts are completely closed.

For more information, see Deleting an organization in the AWS Organizations User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.organizations.*;
 CfnOrganization cfnOrganization = CfnOrganization.Builder.create(this, "MyCfnOrganization")
         .featureSet("featureSet")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnOrganization

      protected CfnOrganization(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnOrganization

      protected CfnOrganization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnOrganization

      @Stability(Stable) public CfnOrganization(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnOrganizationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnOrganization

      @Stability(Stable) public CfnOrganization(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of an organization.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The unique identifier (ID) of an organization.
    • getAttrManagementAccountArn

      @Stability(Stable) @NotNull public String getAttrManagementAccountArn()
      The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.
    • getAttrManagementAccountEmail

      @Stability(Stable) @NotNull public String getAttrManagementAccountEmail()
      The email address that is associated with the AWS account that is designated as the management account for the organization.
    • getAttrManagementAccountId

      @Stability(Stable) @NotNull public String getAttrManagementAccountId()
      The unique identifier (ID) of the management account of an organization.
    • getAttrRootId

      @Stability(Stable) @NotNull public String getAttrRootId()
      The unique identifier (ID) for the root.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getFeatureSet

      @Stability(Stable) @Nullable public String getFeatureSet()
      Specifies the feature set supported by the new organization.

      Each feature set supports different levels of functionality.

    • setFeatureSet

      @Stability(Stable) public void setFeatureSet(@Nullable String value)
      Specifies the feature set supported by the new organization.

      Each feature set supports different levels of functionality.