- Implements: IAccount, ITaggableResource
Creates or imports an AWS account that is automatically a member of the organization whose credentials made the request.
AWS Organizations automatically copies the information from the management account to the new member account
import { Account } from '@pepperize/cdk-organizations'
new Account(scope: Construct, id: string, props: AccountProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
AccountProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: AccountProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
attachPolicy |
Attach a policy. |
delegateAdministrator |
Enables trusted access for the AWS service (trusted service) as Delegated Administrator, which performs tasks in your organization and its accounts on your behalf. |
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public toString(): string
Returns a string representation of this construct.
public attachPolicy(policy: IPolicy): void
Attach a policy.
Before you can attach the policy, you must enable that policy type for use. You can use policies when you have all features enabled.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
- Type: IPolicy
public delegateAdministrator(servicePrincipal: string, region?: string, props?: {[ key: string ]: any}): void
Enables trusted access for the AWS service (trusted service) as Delegated Administrator, which performs tasks in your organization and its accounts on your behalf.
- Type: string
The supported AWS service that you specify.
- Type: string
The region to delegate in.
- Type: {[ key: string ]: any}
additional DelegatedAdministrator props.
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Account } from '@pepperize/cdk-organizations'
Account.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
accountArn |
string |
The Amazon Resource Name (ARN) of the account. |
accountId |
string |
If the account was created successfully, the unique identifier (ID) of the new account. |
accountName |
string |
The friendly name of the account. |
email |
string |
The email address of the owner to assign to the new member account. |
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly accountArn: string;
- Type: string
The Amazon Resource Name (ARN) of the account.
public readonly accountId: string;
- Type: string
If the account was created successfully, the unique identifier (ID) of the new account.
Exactly 12 digits.
public readonly accountName: string;
- Type: string
The friendly name of the account.
public readonly email: string;
- Type: string
The email address of the owner to assign to the new member account.
This email address must not already be associated with another AWS account. You must use a valid email address to complete account creation. You can't access the root user of the account or remove an account that was created with an invalid email address.
public readonly tags: TagManager;
- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
Enables the specified member account to administer the Organizations features of the specified AWS service.
It grants read-only access to AWS Organizations service data. The account still requires IAM permissions to access and administer the AWS service.
You can run this action only for AWS services that support this feature. For a current list of services that support it, see the column Supports Delegated Administrator in the table at AWS Services that you can use with AWS Organizations in the AWS Organizations User Guide.
https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-delegated-admin.html
import { DelegatedAdministrator } from '@pepperize/cdk-organizations'
new DelegatedAdministrator(scope: Construct, id: string, props: DelegatedAdministratorProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
DelegatedAdministratorProps |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { DelegatedAdministrator } from '@pepperize/cdk-organizations'
DelegatedAdministrator.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Enables the integration of an AWS service (the service that is specified by ServicePrincipal) with AWS Organizations.
When you enable integration, you allow the specified service to create a service-linked role in all the accounts in your organization. This allows the service to perform operations on your behalf in your organization and its accounts.
This operation can be called only from the organization's management account and only if the organization has enabled all features.
import { EnableAwsServiceAccess } from '@pepperize/cdk-organizations'
new EnableAwsServiceAccess(scope: Construct, id: string, props: EnableAwsServiceAccessProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
EnableAwsServiceAccessProps |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { EnableAwsServiceAccess } from '@pepperize/cdk-organizations'
EnableAwsServiceAccess.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Enables and disables Enables a policy type in a root.
After you enable a policy type in a root, you can attach policies of that type to the root, any organizational unit (OU), or account in that root.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_enable-disable.html
import { EnablePolicyType } from '@pepperize/cdk-organizations'
new EnablePolicyType(scope: Construct, id: string, props: EnablePolicyTypeProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
EnablePolicyTypeProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: EnablePolicyTypeProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { EnablePolicyType } from '@pepperize/cdk-organizations'
EnablePolicyType.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
- Implements: IOrganization
import { Organization } from '@pepperize/cdk-organizations'
new Organization(scope: Construct, id: string, props?: OrganizationProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
OrganizationProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: OrganizationProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
attachPolicy |
Attach a policy. |
enableAwsServiceAccess |
Enables trusted access for a supported AWS service (trusted service), which performs tasks in your organization and its accounts on your behalf. |
enablePolicyType |
Enables policy types in the following two broad categories: Authorization policies and Management policies. |
public toString(): string
Returns a string representation of this construct.
public attachPolicy(policy: IPolicy): void
Attach a policy.
Before you can attach the policy, you must enable that policy type for use. You can use policies when you have all features enabled.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
- Type: IPolicy
public enableAwsServiceAccess(servicePrincipal: string): void
Enables trusted access for a supported AWS service (trusted service), which performs tasks in your organization and its accounts on your behalf.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services_list.html
- Type: string
The supported AWS service that you specify.
public enablePolicyType(policyType: PolicyType): void
Enables policy types in the following two broad categories: Authorization policies and Management policies.
- Type: PolicyType
: the type of the policy that you specify.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
of |
Describe the organization that the current account belongs to. |
import { Organization } from '@pepperize/cdk-organizations'
Organization.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
import { Organization } from '@pepperize/cdk-organizations'
Organization.of(scope: Construct, id: string)
Describe the organization that the current account belongs to.
https://docs.aws.amazon.com/organizations/latest/APIReference/API_DescribeOrganization.html
- Type: constructs.Construct
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
featureSet |
FeatureSet |
Specifies the functionality that currently is available to the organization. |
managementAccountArn |
string |
The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization. |
managementAccountEmail |
string |
The email address that is associated with the AWS account that is designated as the management account for the organization. |
managementAccountId |
string |
The unique identifier (ID) of the management account of an organization. |
organizationArn |
string |
The Amazon Resource Name (ARN) of an organization. |
organizationId |
string |
The unique identifier (ID) of an organization. |
principal |
aws-cdk-lib.aws_iam.IPrincipal |
The principal that represents this AWS Organization. |
root |
Root |
The root of the current organization, which is automatically created. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly featureSet: FeatureSet;
- Type: FeatureSet
Specifies the functionality that currently is available to the organization.
If set to "ALL", then all features are enabled and policies can be applied to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing functionality is available.
public readonly managementAccountArn: string;
- Type: string
The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.
public readonly managementAccountEmail: string;
- Type: string
The email address that is associated with the AWS account that is designated as the management account for the organization.
public readonly managementAccountId: string;
- Type: string
The unique identifier (ID) of the management account of an organization.
public readonly organizationArn: string;
- Type: string
The Amazon Resource Name (ARN) of an organization.
public readonly organizationId: string;
- Type: string
The unique identifier (ID) of an organization.
The regex pattern for an organization ID string requires "o-" followed by from 10 to 32 lowercase letters or digits.
public readonly principal: IPrincipal;
- Type: aws-cdk-lib.aws_iam.IPrincipal
The principal that represents this AWS Organization.
public readonly root: Root;
- Type: Root
The root of the current organization, which is automatically created.
- Implements: IOrganizationalUnit, ITaggableResource
import { OrganizationalUnit } from '@pepperize/cdk-organizations'
new OrganizationalUnit(scope: Construct, id: string, props: OrganizationalUnitProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
OrganizationalUnitProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: OrganizationalUnitProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
attachPolicy |
Attach a policy. |
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public toString(): string
Returns a string representation of this construct.
public attachPolicy(policy: IPolicy): void
Attach a policy.
Before you can attach the policy, you must enable that policy type for use. You can use policies when you have all features enabled.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
- Type: IPolicy
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { OrganizationalUnit } from '@pepperize/cdk-organizations'
OrganizationalUnit.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
organizationalUnitArn |
string |
The Amazon Resource Name (ARN) of this OU. |
organizationalUnitId |
string |
The unique identifier (ID) associated with this OU. |
organizationalUnitName |
string |
The friendly name of this OU. |
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly organizationalUnitArn: string;
- Type: string
The Amazon Resource Name (ARN) of this OU.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Service Authorization Reference.
public readonly organizationalUnitId: string;
- Type: string
The unique identifier (ID) associated with this OU.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
public readonly organizationalUnitName: string;
- Type: string
The friendly name of this OU.
public readonly tags: TagManager;
- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
import { Parent } from '@pepperize/cdk-organizations'
new Parent(scope: Construct, id: string, props: ParentProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ParentProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ParentProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public toString(): string
Returns a string representation of this construct.
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
fromChildId |
No description. |
import { Parent } from '@pepperize/cdk-organizations'
Parent.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
import { Parent } from '@pepperize/cdk-organizations'
Parent.fromChildId(scope: Construct, id: string, childId: string)
- Type: constructs.Construct
- Type: string
- Type: string
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
parentId |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly parentId: string;
- Type: string
- Implements: IParent
import { ParentBase } from '@pepperize/cdk-organizations'
new ParentBase(scope: Construct, id: string, props: ParentBaseProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
ParentBaseProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ParentBaseProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public toString(): string
Returns a string representation of this construct.
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { ParentBase } from '@pepperize/cdk-organizations'
ParentBase.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
parentId |
string |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly parentId: string;
- Type: string
- Implements: IPolicy, ITaggableResource
import { Policy } from '@pepperize/cdk-organizations'
new Policy(scope: Construct, id: string, props: PolicyProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
PolicyProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: PolicyProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
identifier |
No description. |
public toString(): string
Returns a string representation of this construct.
public identifier(): string
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Policy } from '@pepperize/cdk-organizations'
Policy.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
policyId |
string |
The unique identifier (ID) of the policy. |
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly policyId: string;
- Type: string
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
public readonly tags: TagManager;
- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
Attaches a policy to a root, an organizational unit (OU), or an individual account.
How the policy affects accounts depends on the type of policy. Refer to the AWS Organizations User Guide for information about each policy type:
import { PolicyAttachment } from '@pepperize/cdk-organizations'
new PolicyAttachment(scope: Construct, id: string, props: PolicyAttachmentProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
PolicyAttachmentProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: PolicyAttachmentProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { PolicyAttachment } from '@pepperize/cdk-organizations'
PolicyAttachment.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
- Implements: IParent, IPolicyAttachmentTarget, ITaggableResource
The parent container for all the accounts for your organization.
If you apply a policy to the root, it applies to all organizational units (OUs) and accounts in the organization. Currently, you can have only one root. AWS Organizations automatically creates it for you when you create an organization.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html
import { Root } from '@pepperize/cdk-organizations'
new Root(scope: Construct, id: string)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
attachPolicy |
Attach a policy. |
enablePolicyType |
Enables and disables Enables a policy type. |
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public toString(): string
Returns a string representation of this construct.
public attachPolicy(policy: IPolicy): void
Attach a policy.
Before you can attach the policy, you must enable that policy type for use. You can use policies when you have all features enabled.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html
- Type: IPolicy
public enablePolicyType(policyType: PolicyType): void
Enables and disables Enables a policy type.
After you enable a policy type in a root, you can attach policies of that type to the root, any organizational unit (OU), or account in that root.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_enable-disable.html
- Type: PolicyType
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { Root } from '@pepperize/cdk-organizations'
Root.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
rootId |
string |
The unique identifier (ID) for the root. |
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly rootId: string;
- Type: string
The unique identifier (ID) for the root.
The regex pattern for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.
public readonly tags: TagManager;
- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
Add tags to an AWS Organizations resource to make it easier to identify, organize, and search.
https://docs.aws.amazon.com/ARG/latest/APIReference/API_Tag.html
import { TagResource } from '@pepperize/cdk-organizations'
new TagResource(scope: Construct, id: string, props: TagResourceProps)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
id |
string |
No description. |
props |
TagResourceProps |
No description. |
- Type: constructs.Construct
- Type: string
- Type: TagResourceProps
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
public toString(): string
Returns a string representation of this construct.
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
import { TagResource } from '@pepperize/cdk-organizations'
TagResource.isConstruct(x: any)
Checks if x
is a construct.
- Type: any
Any object.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
import { AccountProps } from '@pepperize/cdk-organizations'
const accountProps: AccountProps = { ... }
Name | Type | Description |
---|---|---|
accountName |
string |
The friendly name of the member account. |
email |
string |
The email address of the owner to assign to the new member account. |
iamUserAccessToBilling |
IamUserAccessToBilling |
If set to ALLOW , the new account enables IAM users to access account billing information if they have the required permissions. |
importOnDuplicate |
boolean |
Whether to import, if a duplicate account with same name and email already exists. |
parent |
IParent |
The parent root or OU that you want to create the new Account in. |
removalPolicy |
aws-cdk-lib.RemovalPolicy |
If set to RemovalPolicy.DESTROY, the account will be moved to the root. |
roleName |
string |
The name of an IAM role that AWS Organizations automatically preconfigures in the new member account. |
public readonly accountName: string;
- Type: string
The friendly name of the member account.
public readonly email: string;
- Type: string
The email address of the owner to assign to the new member account.
This email address must not already be associated with another AWS account. You must use a valid email address to complete account creation. You can't access the root user of the account or remove an account that was created with an invalid email address.
public readonly iamUserAccessToBilling: IamUserAccessToBilling;
- Type: IamUserAccessToBilling
- Default: ALLOW
If set to ALLOW , the new account enables IAM users to access account billing information if they have the required permissions.
If set to DENY , only the root user of the new account can access account billing information.
public readonly importOnDuplicate: boolean;
- Type: boolean
- Default: true
Whether to import, if a duplicate account with same name and email already exists.
public readonly parent: IParent;
- Type: IParent
The parent root or OU that you want to create the new Account in.
public readonly removalPolicy: RemovalPolicy;
- Type: aws-cdk-lib.RemovalPolicy
- Default: RemovalPolicy.Retain
If set to RemovalPolicy.DESTROY, the account will be moved to the root.
public readonly roleName: string;
- Type: string
The name of an IAM role that AWS Organizations automatically preconfigures in the new member account.
This role trusts the management account, allowing users in the management account to assume the role, as permitted by the management account administrator. The role has administrator permissions in the new member account.
If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole.
import { DelegatedAdministratorProps } from '@pepperize/cdk-organizations'
const delegatedAdministratorProps: DelegatedAdministratorProps = { ... }
Name | Type | Description |
---|---|---|
account |
IAccount |
The member account in the organization to register as a delegated administrator. |
servicePrincipal |
string |
The service principal of the AWS service for which you want to make the member account a delegated administrator. |
region |
string |
The region to delegate the administrator in. |
removalPolicy |
aws-cdk-lib.RemovalPolicy |
If set to RemovalPolicy.RETAIN, the delegation will not be removed. |
public readonly account: IAccount;
- Type: IAccount
The member account in the organization to register as a delegated administrator.
public readonly servicePrincipal: string;
- Type: string
The service principal of the AWS service for which you want to make the member account a delegated administrator.
public readonly region: string;
- Type: string
The region to delegate the administrator in.
public readonly removalPolicy: RemovalPolicy;
- Type: aws-cdk-lib.RemovalPolicy
- Default: RemovalPolicy.DESTROY
If set to RemovalPolicy.RETAIN, the delegation will not be removed.
import { EnableAwsServiceAccessProps } from '@pepperize/cdk-organizations'
const enableAwsServiceAccessProps: EnableAwsServiceAccessProps = { ... }
Name | Type | Description |
---|---|---|
servicePrincipal |
string |
The service principal name of the AWS service for which you want to enable integration with your organization. |
public readonly servicePrincipal: string;
- Type: string
The service principal name of the AWS service for which you want to enable integration with your organization.
This is typically in the form of a URL, such as service-abbreviation.amazonaws.com.
import { EnablePolicyTypeProps } from '@pepperize/cdk-organizations'
const enablePolicyTypeProps: EnablePolicyTypeProps = { ... }
Name | Type | Description |
---|---|---|
policyType |
PolicyType |
No description. |
root |
Root |
No description. |
public readonly policyType: PolicyType;
- Type: PolicyType
public readonly root: Root;
- Type: Root
import { OrganizationalUnitProps } from '@pepperize/cdk-organizations'
const organizationalUnitProps: OrganizationalUnitProps = { ... }
Name | Type | Description |
---|---|---|
organizationalUnitName |
string |
The friendly name to assign to the new OU. |
parent |
IParent |
The parent root or OU that you want to create the new OrganizationalUnit in. |
importOnDuplicate |
boolean |
Whether to import, if a duplicate organizational unit with same name exists in the parent exists. |
removalPolicy |
aws-cdk-lib.RemovalPolicy |
If set to RemovalPolicy.DESTROY, the organizational unit will be deleted. |
public readonly organizationalUnitName: string;
- Type: string
The friendly name to assign to the new OU.
public readonly parent: IParent;
- Type: IParent
The parent root or OU that you want to create the new OrganizationalUnit in.
public readonly importOnDuplicate: boolean;
- Type: boolean
- Default: true
Whether to import, if a duplicate organizational unit with same name exists in the parent exists.
public readonly removalPolicy: RemovalPolicy;
- Type: aws-cdk-lib.RemovalPolicy
- Default: RemovalPolicy.Retain
If set to RemovalPolicy.DESTROY, the organizational unit will be deleted.
import { OrganizationProps } from '@pepperize/cdk-organizations'
const organizationProps: OrganizationProps = { ... }
Name | Type | Description |
---|---|---|
featureSet |
FeatureSet |
Enabling features in your organization. |
public readonly featureSet: FeatureSet;
- Type: FeatureSet
- Default: ALL
Enabling features in your organization.
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html
import { ParentBaseProps } from '@pepperize/cdk-organizations'
const parentBaseProps: ParentBaseProps = { ... }
Name | Type | Description |
---|---|---|
childId |
string |
No description. |
public readonly childId: string;
- Type: string
import { ParentProps } from '@pepperize/cdk-organizations'
const parentProps: ParentProps = { ... }
Name | Type | Description |
---|---|---|
child |
IChild |
No description. |
public readonly child: IChild;
- Type: IChild
import { PolicyAttachmentProps } from '@pepperize/cdk-organizations'
const policyAttachmentProps: PolicyAttachmentProps = { ... }
Name | Type | Description |
---|---|---|
policy |
IPolicy |
The policy that you want to attach to the target. |
target |
IPolicyAttachmentTarget |
The root, OU, or account that you want to attach the policy to. |
public readonly policy: IPolicy;
- Type: IPolicy
The policy that you want to attach to the target.
public readonly target: IPolicyAttachmentTarget;
- Type: IPolicyAttachmentTarget
The root, OU, or account that you want to attach the policy to.
import { PolicyProps } from '@pepperize/cdk-organizations'
const policyProps: PolicyProps = { ... }
Name | Type | Description |
---|---|---|
content |
string |
The policy text content to add to the new policy. |
policyName |
string |
The friendly name to assign to the policy. |
policyType |
PolicyType |
The type of policy to create. |
description |
string |
An optional description to assign to the policy. |
public readonly content: string;
- Type: string
The policy text content to add to the new policy.
The text that you supply must adhere to the rules of the policy type you specify in the Type parameter.
public readonly policyName: string;
- Type: string
The friendly name to assign to the policy.
public readonly policyType: PolicyType;
- Type: PolicyType
The type of policy to create.
You can specify one of the following values:
public readonly description: string;
- Type: string
An optional description to assign to the policy.
import { TagResourceProps } from '@pepperize/cdk-organizations'
const tagResourceProps: TagResourceProps = { ... }
Name | Type | Description |
---|---|---|
resourceId |
string |
No description. |
tags |
aws-cdk-lib.IResolvable |
No description. |
public readonly resourceId: string;
- Type: string
public readonly tags: IResolvable;
- Type: aws-cdk-lib.IResolvable
- Implements: aws-cdk-lib.IAspect
Aspect to create dependency chain of organization resource that needs to be deployed sequentially.
import { DependencyChain } from '@pepperize/cdk-organizations'
new DependencyChain()
Name | Type | Description |
---|
Name | Description |
---|---|
visit |
All aspects can visit an IConstruct. |
public visit(current: IConstruct): void
All aspects can visit an IConstruct.
- Type: constructs.IConstruct
import { Validators } from '@pepperize/cdk-organizations'
new Validators()
Name | Type | Description |
---|
Name | Description |
---|---|
accountId |
No description. |
accountName |
No description. |
email |
No description. |
organizationalUnitName |
No description. |
policyContent |
No description. |
servicePrincipal |
No description. |
public accountId(id: string): boolean
- Type: string
public accountName(name: string): boolean
- Type: string
public email(email: string): boolean
- Type: string
public organizationalUnitName(name: string): boolean
- Type: string
public policyContent(content: string): boolean
- Type: string
public servicePrincipal(servicePrincipal: string): boolean
- Type: string
Name | Description |
---|---|
of |
No description. |
import { Validators } from '@pepperize/cdk-organizations'
Validators.of()
-
Extends: IPolicyAttachmentTarget, IChild, constructs.IConstruct, IResource
Name | Description |
---|---|
delegateAdministrator |
Enables trusted access for the AWS service (trusted service) as Delegated Administrator, which performs tasks in your organization and its accounts on your behalf. |
public delegateAdministrator(servicePrincipal: string, region?: string, props?: {[ key: string ]: any}): void
Enables trusted access for the AWS service (trusted service) as Delegated Administrator, which performs tasks in your organization and its accounts on your behalf.
- Type: string
The supported AWS service that you specify.
- Type: string
The region to delegate in.
- Type: {[ key: string ]: any}
additional DelegatedAdministrator props.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
accountArn |
string |
The Amazon Resource Name (ARN) of the account. |
accountId |
string |
If the account was created successfully, the unique identifier (ID) of the new account. |
accountName |
string |
The friendly name of the account. |
email |
string |
The email address of the owner to assign to the new member account. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly accountArn: string;
- Type: string
The Amazon Resource Name (ARN) of the account.
public readonly accountId: string;
- Type: string
If the account was created successfully, the unique identifier (ID) of the new account.
Exactly 12 digits.
public readonly accountName: string;
- Type: string
The friendly name of the account.
public readonly email: string;
- Type: string
The email address of the owner to assign to the new member account.
This email address must not already be associated with another AWS account. You must use a valid email address to complete account creation. You can't access the root user of the account or remove an account that was created with an invalid email address.
-
Extends: constructs.IConstruct, IResource
-
Implemented By: Account, OrganizationalUnit, IAccount, IChild, IOrganizationalUnit
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
-
Extends: constructs.IConstruct
-
Implemented By: Organization, IOrganization
Creates an organization to consolidate your AWS accounts so that you can administer them as a single unit.
An organization has one management account along with zero or more member accounts. You can organize the accounts in a hierarchical, tree-like structure with a root at the top and organizational units nested under the root. Each account can be directly in the root, or placed in one of the OUs in the hierarchy. An organization has the functionality that is determined by the feature set that you enable.
The account whose user is calling the CreateOrganization operation automatically becomes the management account of the new organization.
For deletion of an organization you must previously remove all the member accounts, OUs, and policies from the organization!
https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_create.html#create-org
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
featureSet |
FeatureSet |
Specifies the functionality that currently is available to the organization. |
managementAccountArn |
string |
The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization. |
managementAccountEmail |
string |
The email address that is associated with the AWS account that is designated as the management account for the organization. |
managementAccountId |
string |
The unique identifier (ID) of the management account of an organization. |
organizationArn |
string |
The Amazon Resource Name (ARN) of an organization. |
organizationId |
string |
The unique identifier (ID) of an organization. |
principal |
aws-cdk-lib.aws_iam.IPrincipal |
The principal that represents this AWS Organization. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly featureSet: FeatureSet;
- Type: FeatureSet
Specifies the functionality that currently is available to the organization.
If set to "ALL", then all features are enabled and policies can be applied to accounts in the organization. If set to "CONSOLIDATED_BILLING", then only consolidated billing functionality is available.
public readonly managementAccountArn: string;
- Type: string
The Amazon Resource Name (ARN) of the account that is designated as the management account for the organization.
public readonly managementAccountEmail: string;
- Type: string
The email address that is associated with the AWS account that is designated as the management account for the organization.
public readonly managementAccountId: string;
- Type: string
The unique identifier (ID) of the management account of an organization.
public readonly organizationArn: string;
- Type: string
The Amazon Resource Name (ARN) of an organization.
public readonly organizationId: string;
- Type: string
The unique identifier (ID) of an organization.
The regex pattern for an organization ID string requires "o-" followed by from 10 to 32 lowercase letters or digits.
public readonly principal: IPrincipal;
- Type: aws-cdk-lib.aws_iam.IPrincipal
The principal that represents this AWS Organization.
-
Extends: IPolicyAttachmentTarget, IParent, IChild, constructs.IConstruct
-
Implemented By: OrganizationalUnit, IOrganizationalUnit
A container for accounts within a root.
An OU also can contain other OUs, enabling you to create a hierarchy that resembles an upside-down tree, with a root at the top and branches of OUs that reach down, ending in accounts that are the leaves of the tree. When you attach a policy to one of the nodes in the hierarchy, it flows down and affects all the branches (OUs) and leaves (accounts) beneath it. An OU can have exactly one parent, and currently each account can be a member of exactly one OU.
You must first move all accounts out of the OU and any child OUs, and then you can delete the child OUs.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
organizationalUnitArn |
string |
The Amazon Resource Name (ARN) of this OU. |
organizationalUnitId |
string |
The unique identifier (ID) associated with this OU. |
organizationalUnitName |
string |
The friendly name of this OU. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly organizationalUnitArn: string;
- Type: string
The Amazon Resource Name (ARN) of this OU.
For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the AWS Service Authorization Reference.
public readonly organizationalUnitId: string;
- Type: string
The unique identifier (ID) associated with this OU.
The regex pattern for an organizational unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that contains the OU). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.
public readonly organizationalUnitName: string;
- Type: string
The friendly name of this OU.
-
Extends: constructs.IConstruct, IResource
-
Implemented By: OrganizationalUnit, Parent, ParentBase, Root, IOrganizationalUnit, IParent
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
Policies in AWS Organizations enable you to apply additional types of management to the AWS accounts in your organization.
You can use policies when all features are enabled in your organization.
Before you can create and attach a policy to your organization, you must enable that policy type for use.
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
policyId |
string |
The unique identifier (ID) of the policy. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly policyId: string;
- Type: string
The unique identifier (ID) of the policy.
The regex pattern for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).
-
Extends: constructs.IDependable, IResource
-
Implemented By: Account, OrganizationalUnit, Root, IAccount, IOrganizationalUnit, IPolicyAttachmentTarget
- Implemented By: Account, OrganizationalUnit, Parent, ParentBase, Root, IAccount, IChild, IOrganizationalUnit, IParent, IPolicyAttachmentTarget, IResource
Interface for an AWS Organizations resource.
Name | Description |
---|---|
identifier |
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in. |
public identifier(): string
The unique identifier (ID) of the parent root, organizational unit (OU), account, or policy that you want to create the new OU in.
-
Extends: aws-cdk-lib.ITaggable
-
Implemented By: Account, OrganizationalUnit, Policy, Root, ITaggableResource
Name | Type | Description |
---|---|---|
tags |
aws-cdk-lib.TagManager |
TagManager to set, remove and format tags. |
public readonly tags: TagManager;
- Type: aws-cdk-lib.TagManager
TagManager to set, remove and format tags.
Specifies the feature set supported by the new organization.
Each feature set supports different levels of functionality.
Name | Description |
---|---|
CONSOLIDATED_BILLING |
All member accounts have their bills consolidated to and paid by the management account. |
ALL |
In addition to all the features supported by the consolidated billing feature set, the management account can also apply any policy type to any member account in the organization. |
All member accounts have their bills consolidated to and paid by the management account.
For more information, see Consolidated billing in the AWS Organizations User Guide. The consolidated billing feature subset isn’t available for organizations in the AWS GovCloud (US) Region.
In addition to all the features supported by the consolidated billing feature set, the management account can also apply any policy type to any member account in the organization.
For more information, see All features in the AWS Organizations User Guide.
Name | Description |
---|---|
ALLOW |
If set to ALLOW, the new account enables IAM users to access account billing information if they have the required permissions. |
DENY |
If set to DENY, only the root user of the new account can access account billing information. |
If set to ALLOW, the new account enables IAM users to access account billing information if they have the required permissions.
If set to DENY, only the root user of the new account can access account billing information.
Organizations offers policy types in the following two broad categories:
- Authorization policies help you to centrally manage the security of the AWS accounts in your organization.
- Management policies enable you to centrally configure and manage AWS services and their features.
Name | Description |
---|---|
SERVICE_CONTROL_POLICY |
Service control policies (SCPs) offer central control over the maximum available permissions for all of the accounts in your organization. |
TAG_POLICY |
Tag policies help you standardize the tags attached to the AWS resources in your organization's accounts. |
BACKUP_POLICY |
Backup policies help you centrally manage and apply backup plans to the AWS resources across your organization's accounts. |
AISERVICES_OPT_OUT_POLICY |
Artificial Intelligence (AI) services opt-out policies enable you to control data collection for AWS AI services for all of your organization's accounts. |
Service control policies (SCPs) offer central control over the maximum available permissions for all of the accounts in your organization.
Tag policies help you standardize the tags attached to the AWS resources in your organization's accounts.
Backup policies help you centrally manage and apply backup plans to the AWS resources across your organization's accounts.
Artificial Intelligence (AI) services opt-out policies enable you to control data collection for AWS AI services for all of your organization's accounts.