Class CfnOrganization
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.organizations.CfnOrganization
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:13.372Z")
@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:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnOrganization
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnOrganization
(software.amazon.jsii.JsiiObjectRef objRef) CfnOrganization
(software.constructs.Construct scope, String id) CfnOrganization
(software.constructs.Construct scope, String id, CfnOrganizationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of an organization.The unique identifier (ID) of an organization.The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.The email address that is associated with the AWS account that is designated as the management account for the organization.The unique identifier (ID) of the management account of an organization.The unique identifier (ID) for the root.Specifies the feature set supported by the new organization.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setFeatureSet
(String value) Specifies the feature set supported by the new organization.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- 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 classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of an organization. -
getAttrId
The unique identifier (ID) of an organization. -
getAttrManagementAccountArn
The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization. -
getAttrManagementAccountEmail
The email address that is associated with the AWS account that is designated as the management account for the organization. -
getAttrManagementAccountId
The unique identifier (ID) of the management account of an organization. -
getAttrRootId
The unique identifier (ID) for the root. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFeatureSet
Specifies the feature set supported by the new organization.Each feature set supports different levels of functionality.
-
setFeatureSet
Specifies the feature set supported by the new organization.Each feature set supports different levels of functionality.
-