Organization
Provides a resource to create an organization.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var org = new Aws.Organizations.Organization("org", new Aws.Organizations.OrganizationArgs
{
AwsServiceAccessPrincipals =
{
"cloudtrail.amazonaws.com",
"config.amazonaws.com",
},
FeatureSet = "ALL",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/organizations"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := organizations.NewOrganization(ctx, "org", &organizations.OrganizationArgs{
AwsServiceAccessPrincipals: pulumi.StringArray{
pulumi.String("cloudtrail.amazonaws.com"),
pulumi.String("config.amazonaws.com"),
},
FeatureSet: pulumi.String("ALL"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
org = aws.organizations.Organization("org",
aws_service_access_principals=[
"cloudtrail.amazonaws.com",
"config.amazonaws.com",
],
feature_set="ALL")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const org = new aws.organizations.Organization("org", {
awsServiceAccessPrincipals: [
"cloudtrail.amazonaws.com",
"config.amazonaws.com",
],
featureSet: "ALL",
});Create a Organization Resource
new Organization(name: string, args?: OrganizationArgs, opts?: CustomResourceOptions);def Organization(resource_name, opts=None, aws_service_access_principals=None, enabled_policy_types=None, feature_set=None, __props__=None);func NewOrganization(ctx *Context, name string, args *OrganizationArgs, opts ...ResourceOption) (*Organization, error)public Organization(string name, OrganizationArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Organization Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Organization resource accepts the following input properties:
- Aws
Service List<string>Access Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- Enabled
Policy List<string>Types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- Feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- Aws
Service []stringAccess Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- Enabled
Policy []stringTypes List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- Feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- aws
Service string[]Access Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- enabled
Policy string[]Types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- aws_
service_ List[str]access_ principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- enabled_
policy_ List[str]types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- feature_
set str Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
Outputs
All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:
- Accounts
List<Organization
Account> List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- Arn string
ARN of the root
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringArn ARN of the master account
- Master
Account stringEmail Email address of the master account
- Master
Account stringId Identifier of the master account
- Non
Master List<OrganizationAccounts Non Master Account> List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- Roots
List<Organization
Root> List of organization roots. All elements have these attributes:
- Accounts
[]Organization
Account List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- Arn string
ARN of the root
- Id string
- The provider-assigned unique ID for this managed resource.
- Master
Account stringArn ARN of the master account
- Master
Account stringEmail Email address of the master account
- Master
Account stringId Identifier of the master account
- Non
Master []OrganizationAccounts Non Master Account List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- Roots
[]Organization
Root List of organization roots. All elements have these attributes:
- accounts
Organization
Account[] List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- arn string
ARN of the root
- id string
- The provider-assigned unique ID for this managed resource.
- master
Account stringArn ARN of the master account
- master
Account stringEmail Email address of the master account
- master
Account stringId Identifier of the master account
- non
Master OrganizationAccounts Non Master Account[] List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- roots
Organization
Root[] List of organization roots. All elements have these attributes:
- accounts
List[Organization
Account] List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- arn str
ARN of the root
- id str
- The provider-assigned unique ID for this managed resource.
- master_
account_ strarn ARN of the master account
- master_
account_ stremail Email address of the master account
- master_
account_ strid Identifier of the master account
- non_
master_ List[Organizationaccounts Non Master Account] List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- roots
List[Organization
Root] List of organization roots. All elements have these attributes:
Look up an Existing Organization Resource
Get an existing Organization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OrganizationState, opts?: CustomResourceOptions): Organizationstatic get(resource_name, id, opts=None, accounts=None, arn=None, aws_service_access_principals=None, enabled_policy_types=None, feature_set=None, master_account_arn=None, master_account_email=None, master_account_id=None, non_master_accounts=None, roots=None, __props__=None);func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Accounts
List<Organization
Account Args> List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- Arn string
ARN of the root
- Aws
Service List<string>Access Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- Enabled
Policy List<string>Types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- Feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- Master
Account stringArn ARN of the master account
- Master
Account stringEmail Email address of the master account
- Master
Account stringId Identifier of the master account
- Non
Master List<OrganizationAccounts Non Master Account Args> List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- Roots
List<Organization
Root Args> List of organization roots. All elements have these attributes:
- Accounts
[]Organization
Account List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- Arn string
ARN of the root
- Aws
Service []stringAccess Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- Enabled
Policy []stringTypes List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- Feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- Master
Account stringArn ARN of the master account
- Master
Account stringEmail Email address of the master account
- Master
Account stringId Identifier of the master account
- Non
Master []OrganizationAccounts Non Master Account List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- Roots
[]Organization
Root List of organization roots. All elements have these attributes:
- accounts
Organization
Account[] List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- arn string
ARN of the root
- aws
Service string[]Access Principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- enabled
Policy string[]Types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- feature
Set string Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- master
Account stringArn ARN of the master account
- master
Account stringEmail Email address of the master account
- master
Account stringId Identifier of the master account
- non
Master OrganizationAccounts Non Master Account[] List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- roots
Organization
Root[] List of organization roots. All elements have these attributes:
- accounts
List[Organization
Account] List of organization accounts including the master account. For a list excluding the master account, see the
non_master_accountsattribute. All elements have these attributes:- arn str
ARN of the root
- aws_
service_ List[str]access_ principals List of AWS service principal names 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. Organization must have
feature_setset toALL. For additional information, see the AWS Organizations User Guide.- enabled_
policy_ List[str]types List of Organizations policy types to enable in the Organization Root. Organization must have
feature_setset toALL. For additional information about valid policy types (e.g.SERVICE_CONTROL_POLICYandTAG_POLICY), see the AWS Organizations API Reference.- feature_
set str Specify “ALL” (default) or “CONSOLIDATED_BILLING”.
- master_
account_ strarn ARN of the master account
- master_
account_ stremail Email address of the master account
- master_
account_ strid Identifier of the master account
- non_
master_ List[Organizationaccounts Non Master Account] List of organization accounts excluding the master account. For a list including the master account, see the
accountsattribute. All elements have these attributes:- roots
List[Organization
Root] List of organization roots. All elements have these attributes:
Supporting Types
OrganizationAccount
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
OrganizationNonMasterAccount
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
OrganizationRoot
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Arn string
ARN of the root
- Id string
Identifier of the root
- Name string
The name of the policy type
- Policy
Types List<OrganizationRoot Policy Type Args> List of policy types enabled for this root. All elements have these attributes:
- Arn string
ARN of the root
- Id string
Identifier of the root
- Name string
The name of the policy type
- Policy
Types []OrganizationRoot Policy Type List of policy types enabled for this root. All elements have these attributes:
- arn string
ARN of the root
- id string
Identifier of the root
- name string
The name of the policy type
- policy
Types OrganizationRoot Policy Type[] List of policy types enabled for this root. All elements have these attributes:
- arn str
ARN of the root
- id str
Identifier of the root
- name str
The name of the policy type
- policy
Types List[OrganizationRoot Policy Type] List of policy types enabled for this root. All elements have these attributes:
OrganizationRootPolicyType
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.