Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Organization
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Organizations
Assembly: Pulumi.Aws.dll
Syntax
public class Organization : CustomResource

Constructors

View Source

Organization(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 Source

Accounts

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>>
View Source

Arn

ARN of the root

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>>
View Source

FeatureSet

Specify "ALL" (default) or "CONSOLIDATED_BILLING".

Declaration
public Output<string> FeatureSet { get; }
Property Value
Type Description
Output<System.String>
View Source

MasterAccountArn

ARN of the master account

Declaration
public Output<string> MasterAccountArn { get; }
Property Value
Type Description
Output<System.String>
View Source

MasterAccountEmail

Email address of the master account

Declaration
public Output<string> MasterAccountEmail { get; }
Property Value
Type Description
Output<System.String>
View Source

MasterAccountId

Identifier of the master account

Declaration
public Output<string> MasterAccountId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.