Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Organizations
Assembly: Pulumi.Aws.dll
Syntax
public class Organization : CustomResource
Constructors
View SourceOrganization(String, OrganizationArgs, CustomResourceOptions)
Create a Organization resource with the given unique name, arguments, and options.
Declaration
public Organization(string name, OrganizationArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| OrganizationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccounts
List of organization accounts including the master account. For a list excluding the master account, see the non_master_accounts attribute. All elements have these attributes:
Declaration
public Output<ImmutableArray<OrganizationAccount>> Accounts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<OrganizationAccount>> |
Arn
ARN of the root
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AwsServiceAccessPrincipals
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_set set to ALL. For additional information, see the AWS Organizations User Guide.
Declaration
public Output<ImmutableArray<string>> AwsServiceAccessPrincipals { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
EnabledPolicyTypes
List of Organizations policy types to enable in the Organization Root. Organization must have feature_set set to ALL. For additional information about valid policy types (e.g. SERVICE_CONTROL_POLICY and TAG_POLICY), see the AWS Organizations API Reference.
Declaration
public Output<ImmutableArray<string>> EnabledPolicyTypes { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
FeatureSet
Specify "ALL" (default) or "CONSOLIDATED_BILLING".
Declaration
public Output<string> FeatureSet { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MasterAccountArn
ARN of the master account
Declaration
public Output<string> MasterAccountArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MasterAccountEmail
Email address of the master account
Declaration
public Output<string> MasterAccountEmail { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MasterAccountId
Identifier of the master account
Declaration
public Output<string> MasterAccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NonMasterAccounts
List of organization accounts excluding the master account. For a list including the master account, see the accounts attribute. All elements have these attributes:
Declaration
public Output<ImmutableArray<OrganizationNonMasterAccount>> NonMasterAccounts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<OrganizationNonMasterAccount>> |
Roots
List of organization roots. All elements have these attributes:
Declaration
public Output<ImmutableArray<OrganizationRoot>> Roots { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<OrganizationRoot>> |
Methods
View SourceGet(String, Input<String>, OrganizationState, CustomResourceOptions)
Get an existing Organization resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Organization Get(string name, Input<string> id, OrganizationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| OrganizationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Organization |