Namespace Pulumi.Aws.Organizations
Classes
Account
Provides a resource to create a member account in the current organization.
Note: Account management must be done from the organization's master account.
!> WARNING: Deleting this resource will only remove an AWS account from an organization. This provider will not close the account. The member account must be prepared to be a standalone account beforehand. See the AWS Organizations documentation for more information.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var account = new Aws.Organizations.Account("account", new Aws.Organizations.AccountArgs
{
Email = "john@doe.org",
});
}
}
AccountArgs
AccountState
GetOrganization
GetOrganizationalUnits
GetOrganizationalUnitsArgs
GetOrganizationalUnitsResult
GetOrganizationResult
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",
});
}
}
OrganizationalUnit
Provides a resource to create an organizational unit.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Organizations.OrganizationalUnit("example", new Aws.Organizations.OrganizationalUnitArgs
{
ParentId = aws_organizations_organization.Example.Roots[0].Id,
});
}
}
OrganizationalUnitArgs
OrganizationalUnitState
OrganizationArgs
OrganizationState
Policy
Provides a resource to manage an AWS Organizations policy.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Organizations.Policy("example", new Aws.Organizations.PolicyArgs
{
Content = @"{
""Version"": ""2012-10-17"",
""Statement"": {
""Effect"": ""Allow"",
""Action"": ""*"",
""Resource"": ""*""
}
}
",
});
}
}
PolicyArgs
PolicyAttachment
Provides a resource to attach an AWS Organizations policy to an organization account, root, or unit.
Example Usage
Organization Account
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var account = new Aws.Organizations.PolicyAttachment("account", new Aws.Organizations.PolicyAttachmentArgs
{
PolicyId = aws_organizations_policy.Example.Id,
TargetId = "123456789012",
});
}
}
Organization Root
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var root = new Aws.Organizations.PolicyAttachment("root", new Aws.Organizations.PolicyAttachmentArgs
{
PolicyId = aws_organizations_policy.Example.Id,
TargetId = aws_organizations_organization.Example.Roots[0].Id,
});
}
}
Organization Unit
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var unit = new Aws.Organizations.PolicyAttachment("unit", new Aws.Organizations.PolicyAttachmentArgs
{
PolicyId = aws_organizations_policy.Example.Id,
TargetId = aws_organizations_organizational_unit.Example.Id,
});
}
}