organizations

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

nolint: lll

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	pulumi.CustomResourceState

	// The ARN for this account.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// 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.
	Email pulumi.StringOutput `pulumi:"email"`
	// 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`, then only the root user of the new account can access account billing information.
	IamUserAccessToBilling pulumi.StringPtrOutput `pulumi:"iamUserAccessToBilling"`
	JoinedMethod           pulumi.StringOutput    `pulumi:"joinedMethod"`
	JoinedTimestamp        pulumi.StringOutput    `pulumi:"joinedTimestamp"`
	// A friendly name for the member account.
	Name pulumi.StringOutput `pulumi:"name"`
	// Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
	ParentId pulumi.StringOutput `pulumi:"parentId"`
	// The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The Organizations API provides no method for reading this information after account creation, so this provider cannot perform drift detection on its value and will always show a difference for a configured value after import unless [`ignoreChanges`](https://www.terraform.io/docs/configuration/resources.html#ignore_changes) is used.
	RoleName pulumi.StringPtrOutput `pulumi:"roleName"`
	Status   pulumi.StringOutput    `pulumi:"status"`
	// Key-value mapping of resource tags.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

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](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html) for more information.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/organizations_account.html.markdown.

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

NewAccount registers a new resource with the given unique name, arguments, and options.

type AccountArgs

type AccountArgs struct {
	// 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.
	Email pulumi.StringInput
	// 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`, then only the root user of the new account can access account billing information.
	IamUserAccessToBilling pulumi.StringPtrInput
	// A friendly name for the member account.
	Name pulumi.StringPtrInput
	// Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
	ParentId pulumi.StringPtrInput
	// The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The Organizations API provides no method for reading this information after account creation, so this provider cannot perform drift detection on its value and will always show a difference for a configured value after import unless [`ignoreChanges`](https://www.terraform.io/docs/configuration/resources.html#ignore_changes) is used.
	RoleName pulumi.StringPtrInput
	// Key-value mapping of resource tags.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType added in v1.19.0

func (AccountArgs) ElementType() reflect.Type

type AccountState

type AccountState struct {
	// The ARN for this account.
	Arn pulumi.StringPtrInput
	// 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.
	Email pulumi.StringPtrInput
	// 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`, then only the root user of the new account can access account billing information.
	IamUserAccessToBilling pulumi.StringPtrInput
	JoinedMethod           pulumi.StringPtrInput
	JoinedTimestamp        pulumi.StringPtrInput
	// A friendly name for the member account.
	Name pulumi.StringPtrInput
	// Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
	ParentId pulumi.StringPtrInput
	// The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The Organizations API provides no method for reading this information after account creation, so this provider cannot perform drift detection on its value and will always show a difference for a configured value after import unless [`ignoreChanges`](https://www.terraform.io/docs/configuration/resources.html#ignore_changes) is used.
	RoleName pulumi.StringPtrInput
	Status   pulumi.StringPtrInput
	// Key-value mapping of resource tags.
	Tags pulumi.MapInput
}

func (AccountState) ElementType added in v1.19.0

func (AccountState) ElementType() reflect.Type

type GetOrganizationAccount added in v1.19.0

type GetOrganizationAccount struct {
	// ARN of the root
	Arn string `pulumi:"arn"`
	// Email of the account
	Email string `pulumi:"email"`
	// Identifier of the root
	Id string `pulumi:"id"`
	// The name of the policy type
	Name string `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status string `pulumi:"status"`
}

type GetOrganizationAccountArgs added in v1.19.0

type GetOrganizationAccountArgs struct {
	// ARN of the root
	Arn pulumi.StringInput `pulumi:"arn"`
	// Email of the account
	Email pulumi.StringInput `pulumi:"email"`
	// Identifier of the root
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringInput `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetOrganizationAccountArgs) ElementType added in v1.19.0

func (GetOrganizationAccountArgs) ElementType() reflect.Type

func (GetOrganizationAccountArgs) ToGetOrganizationAccountOutput added in v1.19.0

func (i GetOrganizationAccountArgs) ToGetOrganizationAccountOutput() GetOrganizationAccountOutput

func (GetOrganizationAccountArgs) ToGetOrganizationAccountOutputWithContext added in v1.19.0

func (i GetOrganizationAccountArgs) ToGetOrganizationAccountOutputWithContext(ctx context.Context) GetOrganizationAccountOutput

type GetOrganizationAccountArray added in v1.19.0

type GetOrganizationAccountArray []GetOrganizationAccountInput

func (GetOrganizationAccountArray) ElementType added in v1.19.0

func (GetOrganizationAccountArray) ToGetOrganizationAccountArrayOutput added in v1.19.0

func (i GetOrganizationAccountArray) ToGetOrganizationAccountArrayOutput() GetOrganizationAccountArrayOutput

func (GetOrganizationAccountArray) ToGetOrganizationAccountArrayOutputWithContext added in v1.19.0

func (i GetOrganizationAccountArray) ToGetOrganizationAccountArrayOutputWithContext(ctx context.Context) GetOrganizationAccountArrayOutput

type GetOrganizationAccountArrayInput added in v1.19.0

type GetOrganizationAccountArrayInput interface {
	pulumi.Input

	ToGetOrganizationAccountArrayOutput() GetOrganizationAccountArrayOutput
	ToGetOrganizationAccountArrayOutputWithContext(context.Context) GetOrganizationAccountArrayOutput
}

type GetOrganizationAccountArrayOutput added in v1.19.0

type GetOrganizationAccountArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationAccountArrayOutput) ElementType added in v1.19.0

func (GetOrganizationAccountArrayOutput) Index added in v1.19.0

func (GetOrganizationAccountArrayOutput) ToGetOrganizationAccountArrayOutput added in v1.19.0

func (o GetOrganizationAccountArrayOutput) ToGetOrganizationAccountArrayOutput() GetOrganizationAccountArrayOutput

func (GetOrganizationAccountArrayOutput) ToGetOrganizationAccountArrayOutputWithContext added in v1.19.0

func (o GetOrganizationAccountArrayOutput) ToGetOrganizationAccountArrayOutputWithContext(ctx context.Context) GetOrganizationAccountArrayOutput

type GetOrganizationAccountInput added in v1.19.0

type GetOrganizationAccountInput interface {
	pulumi.Input

	ToGetOrganizationAccountOutput() GetOrganizationAccountOutput
	ToGetOrganizationAccountOutputWithContext(context.Context) GetOrganizationAccountOutput
}

type GetOrganizationAccountOutput added in v1.19.0

type GetOrganizationAccountOutput struct{ *pulumi.OutputState }

func (GetOrganizationAccountOutput) Arn added in v1.19.0

ARN of the root

func (GetOrganizationAccountOutput) ElementType added in v1.19.0

func (GetOrganizationAccountOutput) Email added in v1.19.0

Email of the account

func (GetOrganizationAccountOutput) Id added in v1.19.0

Identifier of the root

func (GetOrganizationAccountOutput) Name added in v1.19.0

The name of the policy type

func (GetOrganizationAccountOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (GetOrganizationAccountOutput) ToGetOrganizationAccountOutput added in v1.19.0

func (o GetOrganizationAccountOutput) ToGetOrganizationAccountOutput() GetOrganizationAccountOutput

func (GetOrganizationAccountOutput) ToGetOrganizationAccountOutputWithContext added in v1.19.0

func (o GetOrganizationAccountOutput) ToGetOrganizationAccountOutputWithContext(ctx context.Context) GetOrganizationAccountOutput

type GetOrganizationNonMasterAccount added in v1.19.0

type GetOrganizationNonMasterAccount struct {
	// ARN of the root
	Arn string `pulumi:"arn"`
	// Email of the account
	Email string `pulumi:"email"`
	// Identifier of the root
	Id string `pulumi:"id"`
	// The name of the policy type
	Name string `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status string `pulumi:"status"`
}

type GetOrganizationNonMasterAccountArgs added in v1.19.0

type GetOrganizationNonMasterAccountArgs struct {
	// ARN of the root
	Arn pulumi.StringInput `pulumi:"arn"`
	// Email of the account
	Email pulumi.StringInput `pulumi:"email"`
	// Identifier of the root
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringInput `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetOrganizationNonMasterAccountArgs) ElementType added in v1.19.0

func (GetOrganizationNonMasterAccountArgs) ToGetOrganizationNonMasterAccountOutput added in v1.19.0

func (i GetOrganizationNonMasterAccountArgs) ToGetOrganizationNonMasterAccountOutput() GetOrganizationNonMasterAccountOutput

func (GetOrganizationNonMasterAccountArgs) ToGetOrganizationNonMasterAccountOutputWithContext added in v1.19.0

func (i GetOrganizationNonMasterAccountArgs) ToGetOrganizationNonMasterAccountOutputWithContext(ctx context.Context) GetOrganizationNonMasterAccountOutput

type GetOrganizationNonMasterAccountArray added in v1.19.0

type GetOrganizationNonMasterAccountArray []GetOrganizationNonMasterAccountInput

func (GetOrganizationNonMasterAccountArray) ElementType added in v1.19.0

func (GetOrganizationNonMasterAccountArray) ToGetOrganizationNonMasterAccountArrayOutput added in v1.19.0

func (i GetOrganizationNonMasterAccountArray) ToGetOrganizationNonMasterAccountArrayOutput() GetOrganizationNonMasterAccountArrayOutput

func (GetOrganizationNonMasterAccountArray) ToGetOrganizationNonMasterAccountArrayOutputWithContext added in v1.19.0

func (i GetOrganizationNonMasterAccountArray) ToGetOrganizationNonMasterAccountArrayOutputWithContext(ctx context.Context) GetOrganizationNonMasterAccountArrayOutput

type GetOrganizationNonMasterAccountArrayInput added in v1.19.0

type GetOrganizationNonMasterAccountArrayInput interface {
	pulumi.Input

	ToGetOrganizationNonMasterAccountArrayOutput() GetOrganizationNonMasterAccountArrayOutput
	ToGetOrganizationNonMasterAccountArrayOutputWithContext(context.Context) GetOrganizationNonMasterAccountArrayOutput
}

type GetOrganizationNonMasterAccountArrayOutput added in v1.19.0

type GetOrganizationNonMasterAccountArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationNonMasterAccountArrayOutput) ElementType added in v1.19.0

func (GetOrganizationNonMasterAccountArrayOutput) Index added in v1.19.0

func (GetOrganizationNonMasterAccountArrayOutput) ToGetOrganizationNonMasterAccountArrayOutput added in v1.19.0

func (o GetOrganizationNonMasterAccountArrayOutput) ToGetOrganizationNonMasterAccountArrayOutput() GetOrganizationNonMasterAccountArrayOutput

func (GetOrganizationNonMasterAccountArrayOutput) ToGetOrganizationNonMasterAccountArrayOutputWithContext added in v1.19.0

func (o GetOrganizationNonMasterAccountArrayOutput) ToGetOrganizationNonMasterAccountArrayOutputWithContext(ctx context.Context) GetOrganizationNonMasterAccountArrayOutput

type GetOrganizationNonMasterAccountInput added in v1.19.0

type GetOrganizationNonMasterAccountInput interface {
	pulumi.Input

	ToGetOrganizationNonMasterAccountOutput() GetOrganizationNonMasterAccountOutput
	ToGetOrganizationNonMasterAccountOutputWithContext(context.Context) GetOrganizationNonMasterAccountOutput
}

type GetOrganizationNonMasterAccountOutput added in v1.19.0

type GetOrganizationNonMasterAccountOutput struct{ *pulumi.OutputState }

func (GetOrganizationNonMasterAccountOutput) Arn added in v1.19.0

ARN of the root

func (GetOrganizationNonMasterAccountOutput) ElementType added in v1.19.0

func (GetOrganizationNonMasterAccountOutput) Email added in v1.19.0

Email of the account

func (GetOrganizationNonMasterAccountOutput) Id added in v1.19.0

Identifier of the root

func (GetOrganizationNonMasterAccountOutput) Name added in v1.19.0

The name of the policy type

func (GetOrganizationNonMasterAccountOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (GetOrganizationNonMasterAccountOutput) ToGetOrganizationNonMasterAccountOutput added in v1.19.0

func (o GetOrganizationNonMasterAccountOutput) ToGetOrganizationNonMasterAccountOutput() GetOrganizationNonMasterAccountOutput

func (GetOrganizationNonMasterAccountOutput) ToGetOrganizationNonMasterAccountOutputWithContext added in v1.19.0

func (o GetOrganizationNonMasterAccountOutput) ToGetOrganizationNonMasterAccountOutputWithContext(ctx context.Context) GetOrganizationNonMasterAccountOutput

type GetOrganizationRoot added in v1.19.0

type GetOrganizationRoot struct {
	// ARN of the root
	Arn string `pulumi:"arn"`
	// Identifier of the root
	Id string `pulumi:"id"`
	// The name of the policy type
	Name string `pulumi:"name"`
	// List of policy types enabled for this root. All elements have these attributes:
	PolicyTypes []GetOrganizationRootPolicyType `pulumi:"policyTypes"`
}

type GetOrganizationRootArgs added in v1.19.0

type GetOrganizationRootArgs struct {
	// ARN of the root
	Arn pulumi.StringInput `pulumi:"arn"`
	// Identifier of the root
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringInput `pulumi:"name"`
	// List of policy types enabled for this root. All elements have these attributes:
	PolicyTypes GetOrganizationRootPolicyTypeArrayInput `pulumi:"policyTypes"`
}

func (GetOrganizationRootArgs) ElementType added in v1.19.0

func (GetOrganizationRootArgs) ElementType() reflect.Type

func (GetOrganizationRootArgs) ToGetOrganizationRootOutput added in v1.19.0

func (i GetOrganizationRootArgs) ToGetOrganizationRootOutput() GetOrganizationRootOutput

func (GetOrganizationRootArgs) ToGetOrganizationRootOutputWithContext added in v1.19.0

func (i GetOrganizationRootArgs) ToGetOrganizationRootOutputWithContext(ctx context.Context) GetOrganizationRootOutput

type GetOrganizationRootArray added in v1.19.0

type GetOrganizationRootArray []GetOrganizationRootInput

func (GetOrganizationRootArray) ElementType added in v1.19.0

func (GetOrganizationRootArray) ElementType() reflect.Type

func (GetOrganizationRootArray) ToGetOrganizationRootArrayOutput added in v1.19.0

func (i GetOrganizationRootArray) ToGetOrganizationRootArrayOutput() GetOrganizationRootArrayOutput

func (GetOrganizationRootArray) ToGetOrganizationRootArrayOutputWithContext added in v1.19.0

func (i GetOrganizationRootArray) ToGetOrganizationRootArrayOutputWithContext(ctx context.Context) GetOrganizationRootArrayOutput

type GetOrganizationRootArrayInput added in v1.19.0

type GetOrganizationRootArrayInput interface {
	pulumi.Input

	ToGetOrganizationRootArrayOutput() GetOrganizationRootArrayOutput
	ToGetOrganizationRootArrayOutputWithContext(context.Context) GetOrganizationRootArrayOutput
}

type GetOrganizationRootArrayOutput added in v1.19.0

type GetOrganizationRootArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationRootArrayOutput) ElementType added in v1.19.0

func (GetOrganizationRootArrayOutput) Index added in v1.19.0

func (GetOrganizationRootArrayOutput) ToGetOrganizationRootArrayOutput added in v1.19.0

func (o GetOrganizationRootArrayOutput) ToGetOrganizationRootArrayOutput() GetOrganizationRootArrayOutput

func (GetOrganizationRootArrayOutput) ToGetOrganizationRootArrayOutputWithContext added in v1.19.0

func (o GetOrganizationRootArrayOutput) ToGetOrganizationRootArrayOutputWithContext(ctx context.Context) GetOrganizationRootArrayOutput

type GetOrganizationRootInput added in v1.19.0

type GetOrganizationRootInput interface {
	pulumi.Input

	ToGetOrganizationRootOutput() GetOrganizationRootOutput
	ToGetOrganizationRootOutputWithContext(context.Context) GetOrganizationRootOutput
}

type GetOrganizationRootOutput added in v1.19.0

type GetOrganizationRootOutput struct{ *pulumi.OutputState }

func (GetOrganizationRootOutput) Arn added in v1.19.0

ARN of the root

func (GetOrganizationRootOutput) ElementType added in v1.19.0

func (GetOrganizationRootOutput) ElementType() reflect.Type

func (GetOrganizationRootOutput) Id added in v1.19.0

Identifier of the root

func (GetOrganizationRootOutput) Name added in v1.19.0

The name of the policy type

func (GetOrganizationRootOutput) PolicyTypes added in v1.19.0

List of policy types enabled for this root. All elements have these attributes:

func (GetOrganizationRootOutput) ToGetOrganizationRootOutput added in v1.19.0

func (o GetOrganizationRootOutput) ToGetOrganizationRootOutput() GetOrganizationRootOutput

func (GetOrganizationRootOutput) ToGetOrganizationRootOutputWithContext added in v1.19.0

func (o GetOrganizationRootOutput) ToGetOrganizationRootOutputWithContext(ctx context.Context) GetOrganizationRootOutput

type GetOrganizationRootPolicyType added in v1.19.0

type GetOrganizationRootPolicyType struct {
	// The status of the policy type as it relates to the associated root
	Status string `pulumi:"status"`
	Type   string `pulumi:"type"`
}

type GetOrganizationRootPolicyTypeArgs added in v1.19.0

type GetOrganizationRootPolicyTypeArgs struct {
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringInput `pulumi:"status"`
	Type   pulumi.StringInput `pulumi:"type"`
}

func (GetOrganizationRootPolicyTypeArgs) ElementType added in v1.19.0

func (GetOrganizationRootPolicyTypeArgs) ToGetOrganizationRootPolicyTypeOutput added in v1.19.0

func (i GetOrganizationRootPolicyTypeArgs) ToGetOrganizationRootPolicyTypeOutput() GetOrganizationRootPolicyTypeOutput

func (GetOrganizationRootPolicyTypeArgs) ToGetOrganizationRootPolicyTypeOutputWithContext added in v1.19.0

func (i GetOrganizationRootPolicyTypeArgs) ToGetOrganizationRootPolicyTypeOutputWithContext(ctx context.Context) GetOrganizationRootPolicyTypeOutput

type GetOrganizationRootPolicyTypeArray added in v1.19.0

type GetOrganizationRootPolicyTypeArray []GetOrganizationRootPolicyTypeInput

func (GetOrganizationRootPolicyTypeArray) ElementType added in v1.19.0

func (GetOrganizationRootPolicyTypeArray) ToGetOrganizationRootPolicyTypeArrayOutput added in v1.19.0

func (i GetOrganizationRootPolicyTypeArray) ToGetOrganizationRootPolicyTypeArrayOutput() GetOrganizationRootPolicyTypeArrayOutput

func (GetOrganizationRootPolicyTypeArray) ToGetOrganizationRootPolicyTypeArrayOutputWithContext added in v1.19.0

func (i GetOrganizationRootPolicyTypeArray) ToGetOrganizationRootPolicyTypeArrayOutputWithContext(ctx context.Context) GetOrganizationRootPolicyTypeArrayOutput

type GetOrganizationRootPolicyTypeArrayInput added in v1.19.0

type GetOrganizationRootPolicyTypeArrayInput interface {
	pulumi.Input

	ToGetOrganizationRootPolicyTypeArrayOutput() GetOrganizationRootPolicyTypeArrayOutput
	ToGetOrganizationRootPolicyTypeArrayOutputWithContext(context.Context) GetOrganizationRootPolicyTypeArrayOutput
}

type GetOrganizationRootPolicyTypeArrayOutput added in v1.19.0

type GetOrganizationRootPolicyTypeArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationRootPolicyTypeArrayOutput) ElementType added in v1.19.0

func (GetOrganizationRootPolicyTypeArrayOutput) Index added in v1.19.0

func (GetOrganizationRootPolicyTypeArrayOutput) ToGetOrganizationRootPolicyTypeArrayOutput added in v1.19.0

func (o GetOrganizationRootPolicyTypeArrayOutput) ToGetOrganizationRootPolicyTypeArrayOutput() GetOrganizationRootPolicyTypeArrayOutput

func (GetOrganizationRootPolicyTypeArrayOutput) ToGetOrganizationRootPolicyTypeArrayOutputWithContext added in v1.19.0

func (o GetOrganizationRootPolicyTypeArrayOutput) ToGetOrganizationRootPolicyTypeArrayOutputWithContext(ctx context.Context) GetOrganizationRootPolicyTypeArrayOutput

type GetOrganizationRootPolicyTypeInput added in v1.19.0

type GetOrganizationRootPolicyTypeInput interface {
	pulumi.Input

	ToGetOrganizationRootPolicyTypeOutput() GetOrganizationRootPolicyTypeOutput
	ToGetOrganizationRootPolicyTypeOutputWithContext(context.Context) GetOrganizationRootPolicyTypeOutput
}

type GetOrganizationRootPolicyTypeOutput added in v1.19.0

type GetOrganizationRootPolicyTypeOutput struct{ *pulumi.OutputState }

func (GetOrganizationRootPolicyTypeOutput) ElementType added in v1.19.0

func (GetOrganizationRootPolicyTypeOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (GetOrganizationRootPolicyTypeOutput) ToGetOrganizationRootPolicyTypeOutput added in v1.19.0

func (o GetOrganizationRootPolicyTypeOutput) ToGetOrganizationRootPolicyTypeOutput() GetOrganizationRootPolicyTypeOutput

func (GetOrganizationRootPolicyTypeOutput) ToGetOrganizationRootPolicyTypeOutputWithContext added in v1.19.0

func (o GetOrganizationRootPolicyTypeOutput) ToGetOrganizationRootPolicyTypeOutputWithContext(ctx context.Context) GetOrganizationRootPolicyTypeOutput

func (GetOrganizationRootPolicyTypeOutput) Type added in v1.19.0

type GetOrganizationalUnitsArgs added in v1.17.0

type GetOrganizationalUnitsArgs struct {
	// The parent ID of the organizational unit.
	ParentId string `pulumi:"parentId"`
}

A collection of arguments for invoking getOrganizationalUnits.

type GetOrganizationalUnitsChildren added in v1.19.0

type GetOrganizationalUnitsChildren struct {
	// ARN of the organizational unit
	Arn string `pulumi:"arn"`
	// ID of the organizational unit
	Id string `pulumi:"id"`
	// Name of the organizational unit
	Name string `pulumi:"name"`
}

type GetOrganizationalUnitsChildrenArgs added in v1.19.0

type GetOrganizationalUnitsChildrenArgs struct {
	// ARN of the organizational unit
	Arn pulumi.StringInput `pulumi:"arn"`
	// ID of the organizational unit
	Id pulumi.StringInput `pulumi:"id"`
	// Name of the organizational unit
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetOrganizationalUnitsChildrenArgs) ElementType added in v1.19.0

func (GetOrganizationalUnitsChildrenArgs) ToGetOrganizationalUnitsChildrenOutput added in v1.19.0

func (i GetOrganizationalUnitsChildrenArgs) ToGetOrganizationalUnitsChildrenOutput() GetOrganizationalUnitsChildrenOutput

func (GetOrganizationalUnitsChildrenArgs) ToGetOrganizationalUnitsChildrenOutputWithContext added in v1.19.0

func (i GetOrganizationalUnitsChildrenArgs) ToGetOrganizationalUnitsChildrenOutputWithContext(ctx context.Context) GetOrganizationalUnitsChildrenOutput

type GetOrganizationalUnitsChildrenArray added in v1.19.0

type GetOrganizationalUnitsChildrenArray []GetOrganizationalUnitsChildrenInput

func (GetOrganizationalUnitsChildrenArray) ElementType added in v1.19.0

func (GetOrganizationalUnitsChildrenArray) ToGetOrganizationalUnitsChildrenArrayOutput added in v1.19.0

func (i GetOrganizationalUnitsChildrenArray) ToGetOrganizationalUnitsChildrenArrayOutput() GetOrganizationalUnitsChildrenArrayOutput

func (GetOrganizationalUnitsChildrenArray) ToGetOrganizationalUnitsChildrenArrayOutputWithContext added in v1.19.0

func (i GetOrganizationalUnitsChildrenArray) ToGetOrganizationalUnitsChildrenArrayOutputWithContext(ctx context.Context) GetOrganizationalUnitsChildrenArrayOutput

type GetOrganizationalUnitsChildrenArrayInput added in v1.19.0

type GetOrganizationalUnitsChildrenArrayInput interface {
	pulumi.Input

	ToGetOrganizationalUnitsChildrenArrayOutput() GetOrganizationalUnitsChildrenArrayOutput
	ToGetOrganizationalUnitsChildrenArrayOutputWithContext(context.Context) GetOrganizationalUnitsChildrenArrayOutput
}

type GetOrganizationalUnitsChildrenArrayOutput added in v1.19.0

type GetOrganizationalUnitsChildrenArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationalUnitsChildrenArrayOutput) ElementType added in v1.19.0

func (GetOrganizationalUnitsChildrenArrayOutput) Index added in v1.19.0

func (GetOrganizationalUnitsChildrenArrayOutput) ToGetOrganizationalUnitsChildrenArrayOutput added in v1.19.0

func (o GetOrganizationalUnitsChildrenArrayOutput) ToGetOrganizationalUnitsChildrenArrayOutput() GetOrganizationalUnitsChildrenArrayOutput

func (GetOrganizationalUnitsChildrenArrayOutput) ToGetOrganizationalUnitsChildrenArrayOutputWithContext added in v1.19.0

func (o GetOrganizationalUnitsChildrenArrayOutput) ToGetOrganizationalUnitsChildrenArrayOutputWithContext(ctx context.Context) GetOrganizationalUnitsChildrenArrayOutput

type GetOrganizationalUnitsChildrenInput added in v1.19.0

type GetOrganizationalUnitsChildrenInput interface {
	pulumi.Input

	ToGetOrganizationalUnitsChildrenOutput() GetOrganizationalUnitsChildrenOutput
	ToGetOrganizationalUnitsChildrenOutputWithContext(context.Context) GetOrganizationalUnitsChildrenOutput
}

type GetOrganizationalUnitsChildrenOutput added in v1.19.0

type GetOrganizationalUnitsChildrenOutput struct{ *pulumi.OutputState }

func (GetOrganizationalUnitsChildrenOutput) Arn added in v1.19.0

ARN of the organizational unit

func (GetOrganizationalUnitsChildrenOutput) ElementType added in v1.19.0

func (GetOrganizationalUnitsChildrenOutput) Id added in v1.19.0

ID of the organizational unit

func (GetOrganizationalUnitsChildrenOutput) Name added in v1.19.0

Name of the organizational unit

func (GetOrganizationalUnitsChildrenOutput) ToGetOrganizationalUnitsChildrenOutput added in v1.19.0

func (o GetOrganizationalUnitsChildrenOutput) ToGetOrganizationalUnitsChildrenOutput() GetOrganizationalUnitsChildrenOutput

func (GetOrganizationalUnitsChildrenOutput) ToGetOrganizationalUnitsChildrenOutputWithContext added in v1.19.0

func (o GetOrganizationalUnitsChildrenOutput) ToGetOrganizationalUnitsChildrenOutputWithContext(ctx context.Context) GetOrganizationalUnitsChildrenOutput

type GetOrganizationalUnitsResult added in v1.17.0

type GetOrganizationalUnitsResult struct {
	// List of child organizational units, which have the following attributes:
	Childrens []GetOrganizationalUnitsChildren `pulumi:"childrens"`
	// id is the provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	ParentId string `pulumi:"parentId"`
}

A collection of values returned by getOrganizationalUnits.

func GetOrganizationalUnits added in v1.19.0

func GetOrganizationalUnits(ctx *pulumi.Context, args *GetOrganizationalUnitsArgs, opts ...pulumi.InvokeOption) (*GetOrganizationalUnitsResult, error)

Get all direct child organizational units under a parent organizational unit. This only provides immediate children, not all children.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/organizations_organizational_units.html.markdown.

type LookupOrganizationResult added in v1.19.0

type LookupOrganizationResult struct {
	// List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
	Accounts []GetOrganizationAccount `pulumi:"accounts"`
	// ARN of the root
	Arn string `pulumi:"arn"`
	// A list of AWS service principal names that have integration enabled with your organization. Organization must have `featureSet` set to `ALL`. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html).
	AwsServiceAccessPrincipals []string `pulumi:"awsServiceAccessPrincipals"`
	// A list of Organizations policy types that are enabled in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g. `SERVICE_CONTROL_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html).
	EnabledPolicyTypes []string `pulumi:"enabledPolicyTypes"`
	// The FeatureSet of the organization.
	FeatureSet string `pulumi:"featureSet"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Amazon Resource Name (ARN) of the account that is designated as the master account for the organization.
	MasterAccountArn string `pulumi:"masterAccountArn"`
	// The email address that is associated with the AWS account that is designated as the master account for the organization.
	MasterAccountEmail string `pulumi:"masterAccountEmail"`
	// The unique identifier (ID) of the master account of an organization.
	MasterAccountId string `pulumi:"masterAccountId"`
	// List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
	NonMasterAccounts []GetOrganizationNonMasterAccount `pulumi:"nonMasterAccounts"`
	// List of organization roots. All elements have these attributes:
	Roots []GetOrganizationRoot `pulumi:"roots"`
}

A collection of values returned by getOrganization.

func LookupOrganization added in v0.18.25

func LookupOrganization(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*LookupOrganizationResult, error)

Get information about the organization that the user's account belongs to

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/organizations_organization.html.markdown.

type Organization

type Organization struct {
	pulumi.CustomResourceState

	// List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
	Accounts OrganizationAccountArrayOutput `pulumi:"accounts"`
	// ARN of the root
	Arn pulumi.StringOutput `pulumi:"arn"`
	// 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 `featureSet` set to `ALL`. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html).
	AwsServiceAccessPrincipals pulumi.StringArrayOutput `pulumi:"awsServiceAccessPrincipals"`
	// List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g. `SERVICE_CONTROL_POLICY` and `TAG_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html).
	EnabledPolicyTypes pulumi.StringArrayOutput `pulumi:"enabledPolicyTypes"`
	// Specify "ALL" (default) or "CONSOLIDATED_BILLING".
	FeatureSet pulumi.StringPtrOutput `pulumi:"featureSet"`
	// ARN of the master account
	MasterAccountArn pulumi.StringOutput `pulumi:"masterAccountArn"`
	// Email address of the master account
	MasterAccountEmail pulumi.StringOutput `pulumi:"masterAccountEmail"`
	// Identifier of the master account
	MasterAccountId pulumi.StringOutput `pulumi:"masterAccountId"`
	// List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
	NonMasterAccounts OrganizationNonMasterAccountArrayOutput `pulumi:"nonMasterAccounts"`
	// List of organization roots. All elements have these attributes:
	Roots OrganizationRootArrayOutput `pulumi:"roots"`
}

Provides a resource to create an organization.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/organizations_organization.html.markdown.

func GetOrganization

func GetOrganization(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationState, opts ...pulumi.ResourceOption) (*Organization, error)

GetOrganization gets an existing Organization resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrganization

func NewOrganization(ctx *pulumi.Context,
	name string, args *OrganizationArgs, opts ...pulumi.ResourceOption) (*Organization, error)

NewOrganization registers a new resource with the given unique name, arguments, and options.

type OrganizationAccount added in v1.19.0

type OrganizationAccount struct {
	// ARN of the root
	Arn *string `pulumi:"arn"`
	// Email of the account
	Email *string `pulumi:"email"`
	// Identifier of the root
	Id *string `pulumi:"id"`
	// The name of the policy type
	Name *string `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status *string `pulumi:"status"`
}

type OrganizationAccountArgs added in v1.19.0

type OrganizationAccountArgs struct {
	// ARN of the root
	Arn pulumi.StringPtrInput `pulumi:"arn"`
	// Email of the account
	Email pulumi.StringPtrInput `pulumi:"email"`
	// Identifier of the root
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringPtrInput `pulumi:"status"`
}

func (OrganizationAccountArgs) ElementType added in v1.19.0

func (OrganizationAccountArgs) ElementType() reflect.Type

func (OrganizationAccountArgs) ToOrganizationAccountOutput added in v1.19.0

func (i OrganizationAccountArgs) ToOrganizationAccountOutput() OrganizationAccountOutput

func (OrganizationAccountArgs) ToOrganizationAccountOutputWithContext added in v1.19.0

func (i OrganizationAccountArgs) ToOrganizationAccountOutputWithContext(ctx context.Context) OrganizationAccountOutput

type OrganizationAccountArray added in v1.19.0

type OrganizationAccountArray []OrganizationAccountInput

func (OrganizationAccountArray) ElementType added in v1.19.0

func (OrganizationAccountArray) ElementType() reflect.Type

func (OrganizationAccountArray) ToOrganizationAccountArrayOutput added in v1.19.0

func (i OrganizationAccountArray) ToOrganizationAccountArrayOutput() OrganizationAccountArrayOutput

func (OrganizationAccountArray) ToOrganizationAccountArrayOutputWithContext added in v1.19.0

func (i OrganizationAccountArray) ToOrganizationAccountArrayOutputWithContext(ctx context.Context) OrganizationAccountArrayOutput

type OrganizationAccountArrayInput added in v1.19.0

type OrganizationAccountArrayInput interface {
	pulumi.Input

	ToOrganizationAccountArrayOutput() OrganizationAccountArrayOutput
	ToOrganizationAccountArrayOutputWithContext(context.Context) OrganizationAccountArrayOutput
}

type OrganizationAccountArrayOutput added in v1.19.0

type OrganizationAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationAccountArrayOutput) ElementType added in v1.19.0

func (OrganizationAccountArrayOutput) Index added in v1.19.0

func (OrganizationAccountArrayOutput) ToOrganizationAccountArrayOutput added in v1.19.0

func (o OrganizationAccountArrayOutput) ToOrganizationAccountArrayOutput() OrganizationAccountArrayOutput

func (OrganizationAccountArrayOutput) ToOrganizationAccountArrayOutputWithContext added in v1.19.0

func (o OrganizationAccountArrayOutput) ToOrganizationAccountArrayOutputWithContext(ctx context.Context) OrganizationAccountArrayOutput

type OrganizationAccountInput added in v1.19.0

type OrganizationAccountInput interface {
	pulumi.Input

	ToOrganizationAccountOutput() OrganizationAccountOutput
	ToOrganizationAccountOutputWithContext(context.Context) OrganizationAccountOutput
}

type OrganizationAccountOutput added in v1.19.0

type OrganizationAccountOutput struct{ *pulumi.OutputState }

func (OrganizationAccountOutput) Arn added in v1.19.0

ARN of the root

func (OrganizationAccountOutput) ElementType added in v1.19.0

func (OrganizationAccountOutput) ElementType() reflect.Type

func (OrganizationAccountOutput) Email added in v1.19.0

Email of the account

func (OrganizationAccountOutput) Id added in v1.19.0

Identifier of the root

func (OrganizationAccountOutput) Name added in v1.19.0

The name of the policy type

func (OrganizationAccountOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (OrganizationAccountOutput) ToOrganizationAccountOutput added in v1.19.0

func (o OrganizationAccountOutput) ToOrganizationAccountOutput() OrganizationAccountOutput

func (OrganizationAccountOutput) ToOrganizationAccountOutputWithContext added in v1.19.0

func (o OrganizationAccountOutput) ToOrganizationAccountOutputWithContext(ctx context.Context) OrganizationAccountOutput

type OrganizationArgs

type OrganizationArgs struct {
	// 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 `featureSet` set to `ALL`. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html).
	AwsServiceAccessPrincipals pulumi.StringArrayInput
	// List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g. `SERVICE_CONTROL_POLICY` and `TAG_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html).
	EnabledPolicyTypes pulumi.StringArrayInput
	// Specify "ALL" (default) or "CONSOLIDATED_BILLING".
	FeatureSet pulumi.StringPtrInput
}

The set of arguments for constructing a Organization resource.

func (OrganizationArgs) ElementType added in v1.19.0

func (OrganizationArgs) ElementType() reflect.Type

type OrganizationNonMasterAccount added in v1.19.0

type OrganizationNonMasterAccount struct {
	// ARN of the root
	Arn *string `pulumi:"arn"`
	// Email of the account
	Email *string `pulumi:"email"`
	// Identifier of the root
	Id *string `pulumi:"id"`
	// The name of the policy type
	Name *string `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status *string `pulumi:"status"`
}

type OrganizationNonMasterAccountArgs added in v1.19.0

type OrganizationNonMasterAccountArgs struct {
	// ARN of the root
	Arn pulumi.StringPtrInput `pulumi:"arn"`
	// Email of the account
	Email pulumi.StringPtrInput `pulumi:"email"`
	// Identifier of the root
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringPtrInput `pulumi:"status"`
}

func (OrganizationNonMasterAccountArgs) ElementType added in v1.19.0

func (OrganizationNonMasterAccountArgs) ToOrganizationNonMasterAccountOutput added in v1.19.0

func (i OrganizationNonMasterAccountArgs) ToOrganizationNonMasterAccountOutput() OrganizationNonMasterAccountOutput

func (OrganizationNonMasterAccountArgs) ToOrganizationNonMasterAccountOutputWithContext added in v1.19.0

func (i OrganizationNonMasterAccountArgs) ToOrganizationNonMasterAccountOutputWithContext(ctx context.Context) OrganizationNonMasterAccountOutput

type OrganizationNonMasterAccountArray added in v1.19.0

type OrganizationNonMasterAccountArray []OrganizationNonMasterAccountInput

func (OrganizationNonMasterAccountArray) ElementType added in v1.19.0

func (OrganizationNonMasterAccountArray) ToOrganizationNonMasterAccountArrayOutput added in v1.19.0

func (i OrganizationNonMasterAccountArray) ToOrganizationNonMasterAccountArrayOutput() OrganizationNonMasterAccountArrayOutput

func (OrganizationNonMasterAccountArray) ToOrganizationNonMasterAccountArrayOutputWithContext added in v1.19.0

func (i OrganizationNonMasterAccountArray) ToOrganizationNonMasterAccountArrayOutputWithContext(ctx context.Context) OrganizationNonMasterAccountArrayOutput

type OrganizationNonMasterAccountArrayInput added in v1.19.0

type OrganizationNonMasterAccountArrayInput interface {
	pulumi.Input

	ToOrganizationNonMasterAccountArrayOutput() OrganizationNonMasterAccountArrayOutput
	ToOrganizationNonMasterAccountArrayOutputWithContext(context.Context) OrganizationNonMasterAccountArrayOutput
}

type OrganizationNonMasterAccountArrayOutput added in v1.19.0

type OrganizationNonMasterAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationNonMasterAccountArrayOutput) ElementType added in v1.19.0

func (OrganizationNonMasterAccountArrayOutput) Index added in v1.19.0

func (OrganizationNonMasterAccountArrayOutput) ToOrganizationNonMasterAccountArrayOutput added in v1.19.0

func (o OrganizationNonMasterAccountArrayOutput) ToOrganizationNonMasterAccountArrayOutput() OrganizationNonMasterAccountArrayOutput

func (OrganizationNonMasterAccountArrayOutput) ToOrganizationNonMasterAccountArrayOutputWithContext added in v1.19.0

func (o OrganizationNonMasterAccountArrayOutput) ToOrganizationNonMasterAccountArrayOutputWithContext(ctx context.Context) OrganizationNonMasterAccountArrayOutput

type OrganizationNonMasterAccountInput added in v1.19.0

type OrganizationNonMasterAccountInput interface {
	pulumi.Input

	ToOrganizationNonMasterAccountOutput() OrganizationNonMasterAccountOutput
	ToOrganizationNonMasterAccountOutputWithContext(context.Context) OrganizationNonMasterAccountOutput
}

type OrganizationNonMasterAccountOutput added in v1.19.0

type OrganizationNonMasterAccountOutput struct{ *pulumi.OutputState }

func (OrganizationNonMasterAccountOutput) Arn added in v1.19.0

ARN of the root

func (OrganizationNonMasterAccountOutput) ElementType added in v1.19.0

func (OrganizationNonMasterAccountOutput) Email added in v1.19.0

Email of the account

func (OrganizationNonMasterAccountOutput) Id added in v1.19.0

Identifier of the root

func (OrganizationNonMasterAccountOutput) Name added in v1.19.0

The name of the policy type

func (OrganizationNonMasterAccountOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (OrganizationNonMasterAccountOutput) ToOrganizationNonMasterAccountOutput added in v1.19.0

func (o OrganizationNonMasterAccountOutput) ToOrganizationNonMasterAccountOutput() OrganizationNonMasterAccountOutput

func (OrganizationNonMasterAccountOutput) ToOrganizationNonMasterAccountOutputWithContext added in v1.19.0

func (o OrganizationNonMasterAccountOutput) ToOrganizationNonMasterAccountOutputWithContext(ctx context.Context) OrganizationNonMasterAccountOutput

type OrganizationRoot added in v1.19.0

type OrganizationRoot struct {
	// ARN of the root
	Arn *string `pulumi:"arn"`
	// Identifier of the root
	Id *string `pulumi:"id"`
	// The name of the policy type
	Name *string `pulumi:"name"`
	// List of policy types enabled for this root. All elements have these attributes:
	PolicyTypes []OrganizationRootPolicyType `pulumi:"policyTypes"`
}

type OrganizationRootArgs added in v1.19.0

type OrganizationRootArgs struct {
	// ARN of the root
	Arn pulumi.StringPtrInput `pulumi:"arn"`
	// Identifier of the root
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name of the policy type
	Name pulumi.StringPtrInput `pulumi:"name"`
	// List of policy types enabled for this root. All elements have these attributes:
	PolicyTypes OrganizationRootPolicyTypeArrayInput `pulumi:"policyTypes"`
}

func (OrganizationRootArgs) ElementType added in v1.19.0

func (OrganizationRootArgs) ElementType() reflect.Type

func (OrganizationRootArgs) ToOrganizationRootOutput added in v1.19.0

func (i OrganizationRootArgs) ToOrganizationRootOutput() OrganizationRootOutput

func (OrganizationRootArgs) ToOrganizationRootOutputWithContext added in v1.19.0

func (i OrganizationRootArgs) ToOrganizationRootOutputWithContext(ctx context.Context) OrganizationRootOutput

type OrganizationRootArray added in v1.19.0

type OrganizationRootArray []OrganizationRootInput

func (OrganizationRootArray) ElementType added in v1.19.0

func (OrganizationRootArray) ElementType() reflect.Type

func (OrganizationRootArray) ToOrganizationRootArrayOutput added in v1.19.0

func (i OrganizationRootArray) ToOrganizationRootArrayOutput() OrganizationRootArrayOutput

func (OrganizationRootArray) ToOrganizationRootArrayOutputWithContext added in v1.19.0

func (i OrganizationRootArray) ToOrganizationRootArrayOutputWithContext(ctx context.Context) OrganizationRootArrayOutput

type OrganizationRootArrayInput added in v1.19.0

type OrganizationRootArrayInput interface {
	pulumi.Input

	ToOrganizationRootArrayOutput() OrganizationRootArrayOutput
	ToOrganizationRootArrayOutputWithContext(context.Context) OrganizationRootArrayOutput
}

type OrganizationRootArrayOutput added in v1.19.0

type OrganizationRootArrayOutput struct{ *pulumi.OutputState }

func (OrganizationRootArrayOutput) ElementType added in v1.19.0

func (OrganizationRootArrayOutput) Index added in v1.19.0

func (OrganizationRootArrayOutput) ToOrganizationRootArrayOutput added in v1.19.0

func (o OrganizationRootArrayOutput) ToOrganizationRootArrayOutput() OrganizationRootArrayOutput

func (OrganizationRootArrayOutput) ToOrganizationRootArrayOutputWithContext added in v1.19.0

func (o OrganizationRootArrayOutput) ToOrganizationRootArrayOutputWithContext(ctx context.Context) OrganizationRootArrayOutput

type OrganizationRootInput added in v1.19.0

type OrganizationRootInput interface {
	pulumi.Input

	ToOrganizationRootOutput() OrganizationRootOutput
	ToOrganizationRootOutputWithContext(context.Context) OrganizationRootOutput
}

type OrganizationRootOutput added in v1.19.0

type OrganizationRootOutput struct{ *pulumi.OutputState }

func (OrganizationRootOutput) Arn added in v1.19.0

ARN of the root

func (OrganizationRootOutput) ElementType added in v1.19.0

func (OrganizationRootOutput) ElementType() reflect.Type

func (OrganizationRootOutput) Id added in v1.19.0

Identifier of the root

func (OrganizationRootOutput) Name added in v1.19.0

The name of the policy type

func (OrganizationRootOutput) PolicyTypes added in v1.19.0

List of policy types enabled for this root. All elements have these attributes:

func (OrganizationRootOutput) ToOrganizationRootOutput added in v1.19.0

func (o OrganizationRootOutput) ToOrganizationRootOutput() OrganizationRootOutput

func (OrganizationRootOutput) ToOrganizationRootOutputWithContext added in v1.19.0

func (o OrganizationRootOutput) ToOrganizationRootOutputWithContext(ctx context.Context) OrganizationRootOutput

type OrganizationRootPolicyType added in v1.19.0

type OrganizationRootPolicyType struct {
	// The status of the policy type as it relates to the associated root
	Status *string `pulumi:"status"`
	Type   *string `pulumi:"type"`
}

type OrganizationRootPolicyTypeArgs added in v1.19.0

type OrganizationRootPolicyTypeArgs struct {
	// The status of the policy type as it relates to the associated root
	Status pulumi.StringPtrInput `pulumi:"status"`
	Type   pulumi.StringPtrInput `pulumi:"type"`
}

func (OrganizationRootPolicyTypeArgs) ElementType added in v1.19.0

func (OrganizationRootPolicyTypeArgs) ToOrganizationRootPolicyTypeOutput added in v1.19.0

func (i OrganizationRootPolicyTypeArgs) ToOrganizationRootPolicyTypeOutput() OrganizationRootPolicyTypeOutput

func (OrganizationRootPolicyTypeArgs) ToOrganizationRootPolicyTypeOutputWithContext added in v1.19.0

func (i OrganizationRootPolicyTypeArgs) ToOrganizationRootPolicyTypeOutputWithContext(ctx context.Context) OrganizationRootPolicyTypeOutput

type OrganizationRootPolicyTypeArray added in v1.19.0

type OrganizationRootPolicyTypeArray []OrganizationRootPolicyTypeInput

func (OrganizationRootPolicyTypeArray) ElementType added in v1.19.0

func (OrganizationRootPolicyTypeArray) ToOrganizationRootPolicyTypeArrayOutput added in v1.19.0

func (i OrganizationRootPolicyTypeArray) ToOrganizationRootPolicyTypeArrayOutput() OrganizationRootPolicyTypeArrayOutput

func (OrganizationRootPolicyTypeArray) ToOrganizationRootPolicyTypeArrayOutputWithContext added in v1.19.0

func (i OrganizationRootPolicyTypeArray) ToOrganizationRootPolicyTypeArrayOutputWithContext(ctx context.Context) OrganizationRootPolicyTypeArrayOutput

type OrganizationRootPolicyTypeArrayInput added in v1.19.0

type OrganizationRootPolicyTypeArrayInput interface {
	pulumi.Input

	ToOrganizationRootPolicyTypeArrayOutput() OrganizationRootPolicyTypeArrayOutput
	ToOrganizationRootPolicyTypeArrayOutputWithContext(context.Context) OrganizationRootPolicyTypeArrayOutput
}

type OrganizationRootPolicyTypeArrayOutput added in v1.19.0

type OrganizationRootPolicyTypeArrayOutput struct{ *pulumi.OutputState }

func (OrganizationRootPolicyTypeArrayOutput) ElementType added in v1.19.0

func (OrganizationRootPolicyTypeArrayOutput) Index added in v1.19.0

func (OrganizationRootPolicyTypeArrayOutput) ToOrganizationRootPolicyTypeArrayOutput added in v1.19.0

func (o OrganizationRootPolicyTypeArrayOutput) ToOrganizationRootPolicyTypeArrayOutput() OrganizationRootPolicyTypeArrayOutput

func (OrganizationRootPolicyTypeArrayOutput) ToOrganizationRootPolicyTypeArrayOutputWithContext added in v1.19.0

func (o OrganizationRootPolicyTypeArrayOutput) ToOrganizationRootPolicyTypeArrayOutputWithContext(ctx context.Context) OrganizationRootPolicyTypeArrayOutput

type OrganizationRootPolicyTypeInput added in v1.19.0

type OrganizationRootPolicyTypeInput interface {
	pulumi.Input

	ToOrganizationRootPolicyTypeOutput() OrganizationRootPolicyTypeOutput
	ToOrganizationRootPolicyTypeOutputWithContext(context.Context) OrganizationRootPolicyTypeOutput
}

type OrganizationRootPolicyTypeOutput added in v1.19.0

type OrganizationRootPolicyTypeOutput struct{ *pulumi.OutputState }

func (OrganizationRootPolicyTypeOutput) ElementType added in v1.19.0

func (OrganizationRootPolicyTypeOutput) Status added in v1.19.0

The status of the policy type as it relates to the associated root

func (OrganizationRootPolicyTypeOutput) ToOrganizationRootPolicyTypeOutput added in v1.19.0

func (o OrganizationRootPolicyTypeOutput) ToOrganizationRootPolicyTypeOutput() OrganizationRootPolicyTypeOutput

func (OrganizationRootPolicyTypeOutput) ToOrganizationRootPolicyTypeOutputWithContext added in v1.19.0

func (o OrganizationRootPolicyTypeOutput) ToOrganizationRootPolicyTypeOutputWithContext(ctx context.Context) OrganizationRootPolicyTypeOutput

func (OrganizationRootPolicyTypeOutput) Type added in v1.19.0

type OrganizationState

type OrganizationState struct {
	// List of organization accounts including the master account. For a list excluding the master account, see the `nonMasterAccounts` attribute. All elements have these attributes:
	Accounts OrganizationAccountArrayInput
	// ARN of the root
	Arn pulumi.StringPtrInput
	// 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 `featureSet` set to `ALL`. For additional information, see the [AWS Organizations User Guide](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html).
	AwsServiceAccessPrincipals pulumi.StringArrayInput
	// List of Organizations policy types to enable in the Organization Root. Organization must have `featureSet` set to `ALL`. For additional information about valid policy types (e.g. `SERVICE_CONTROL_POLICY` and `TAG_POLICY`), see the [AWS Organizations API Reference](https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnablePolicyType.html).
	EnabledPolicyTypes pulumi.StringArrayInput
	// Specify "ALL" (default) or "CONSOLIDATED_BILLING".
	FeatureSet pulumi.StringPtrInput
	// ARN of the master account
	MasterAccountArn pulumi.StringPtrInput
	// Email address of the master account
	MasterAccountEmail pulumi.StringPtrInput
	// Identifier of the master account
	MasterAccountId pulumi.StringPtrInput
	// List of organization accounts excluding the master account. For a list including the master account, see the `accounts` attribute. All elements have these attributes:
	NonMasterAccounts OrganizationNonMasterAccountArrayInput
	// List of organization roots. All elements have these attributes:
	Roots OrganizationRootArrayInput
}

func (OrganizationState) ElementType added in v1.19.0

func (OrganizationState) ElementType() reflect.Type

type OrganizationalUnit added in v0.18.4

type OrganizationalUnit struct {
	pulumi.CustomResourceState

	// List of child accounts for this Organizational Unit. Does not return account information for child Organizational Units. All elements have these attributes:
	Accounts OrganizationalUnitAccountArrayOutput `pulumi:"accounts"`
	// ARN of the organizational unit
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The name for the organizational unit
	Name pulumi.StringOutput `pulumi:"name"`
	// ID of the parent organizational unit, which may be the root
	ParentId pulumi.StringOutput `pulumi:"parentId"`
}

Provides a resource to create an organizational unit.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/organizations_organizational_unit.html.markdown.

func GetOrganizationalUnit added in v0.18.4

func GetOrganizationalUnit(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationalUnitState, opts ...pulumi.ResourceOption) (*OrganizationalUnit, error)

GetOrganizationalUnit gets an existing OrganizationalUnit resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrganizationalUnit added in v0.18.4

func NewOrganizationalUnit(ctx *pulumi.Context,
	name string, args *OrganizationalUnitArgs, opts ...pulumi.ResourceOption) (*OrganizationalUnit, error)

NewOrganizationalUnit registers a new resource with the given unique name, arguments, and options.

type OrganizationalUnitAccount added in v1.19.0

type OrganizationalUnitAccount struct {
	// ARN of the organizational unit
	Arn *string `pulumi:"arn"`
	// Email of the account
	Email *string `pulumi:"email"`
	// Identifier of the organization unit
	Id *string `pulumi:"id"`
	// The name for the organizational unit
	Name *string `pulumi:"name"`
}

type OrganizationalUnitAccountArgs added in v1.19.0

type OrganizationalUnitAccountArgs struct {
	// ARN of the organizational unit
	Arn pulumi.StringPtrInput `pulumi:"arn"`
	// Email of the account
	Email pulumi.StringPtrInput `pulumi:"email"`
	// Identifier of the organization unit
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The name for the organizational unit
	Name pulumi.StringPtrInput `pulumi:"name"`
}

func (OrganizationalUnitAccountArgs) ElementType added in v1.19.0

func (OrganizationalUnitAccountArgs) ToOrganizationalUnitAccountOutput added in v1.19.0

func (i OrganizationalUnitAccountArgs) ToOrganizationalUnitAccountOutput() OrganizationalUnitAccountOutput

func (OrganizationalUnitAccountArgs) ToOrganizationalUnitAccountOutputWithContext added in v1.19.0

func (i OrganizationalUnitAccountArgs) ToOrganizationalUnitAccountOutputWithContext(ctx context.Context) OrganizationalUnitAccountOutput

type OrganizationalUnitAccountArray added in v1.19.0

type OrganizationalUnitAccountArray []OrganizationalUnitAccountInput

func (OrganizationalUnitAccountArray) ElementType added in v1.19.0

func (OrganizationalUnitAccountArray) ToOrganizationalUnitAccountArrayOutput added in v1.19.0

func (i OrganizationalUnitAccountArray) ToOrganizationalUnitAccountArrayOutput() OrganizationalUnitAccountArrayOutput

func (OrganizationalUnitAccountArray) ToOrganizationalUnitAccountArrayOutputWithContext added in v1.19.0

func (i OrganizationalUnitAccountArray) ToOrganizationalUnitAccountArrayOutputWithContext(ctx context.Context) OrganizationalUnitAccountArrayOutput

type OrganizationalUnitAccountArrayInput added in v1.19.0

type OrganizationalUnitAccountArrayInput interface {
	pulumi.Input

	ToOrganizationalUnitAccountArrayOutput() OrganizationalUnitAccountArrayOutput
	ToOrganizationalUnitAccountArrayOutputWithContext(context.Context) OrganizationalUnitAccountArrayOutput
}

type OrganizationalUnitAccountArrayOutput added in v1.19.0

type OrganizationalUnitAccountArrayOutput struct{ *pulumi.OutputState }

func (OrganizationalUnitAccountArrayOutput) ElementType added in v1.19.0

func (OrganizationalUnitAccountArrayOutput) Index added in v1.19.0

func (OrganizationalUnitAccountArrayOutput) ToOrganizationalUnitAccountArrayOutput added in v1.19.0

func (o OrganizationalUnitAccountArrayOutput) ToOrganizationalUnitAccountArrayOutput() OrganizationalUnitAccountArrayOutput

func (OrganizationalUnitAccountArrayOutput) ToOrganizationalUnitAccountArrayOutputWithContext added in v1.19.0

func (o OrganizationalUnitAccountArrayOutput) ToOrganizationalUnitAccountArrayOutputWithContext(ctx context.Context) OrganizationalUnitAccountArrayOutput

type OrganizationalUnitAccountInput added in v1.19.0

type OrganizationalUnitAccountInput interface {
	pulumi.Input

	ToOrganizationalUnitAccountOutput() OrganizationalUnitAccountOutput
	ToOrganizationalUnitAccountOutputWithContext(context.Context) OrganizationalUnitAccountOutput
}

type OrganizationalUnitAccountOutput added in v1.19.0

type OrganizationalUnitAccountOutput struct{ *pulumi.OutputState }

func (OrganizationalUnitAccountOutput) Arn added in v1.19.0

ARN of the organizational unit

func (OrganizationalUnitAccountOutput) ElementType added in v1.19.0

func (OrganizationalUnitAccountOutput) Email added in v1.19.0

Email of the account

func (OrganizationalUnitAccountOutput) Id added in v1.19.0

Identifier of the organization unit

func (OrganizationalUnitAccountOutput) Name added in v1.19.0

The name for the organizational unit

func (OrganizationalUnitAccountOutput) ToOrganizationalUnitAccountOutput added in v1.19.0

func (o OrganizationalUnitAccountOutput) ToOrganizationalUnitAccountOutput() OrganizationalUnitAccountOutput

func (OrganizationalUnitAccountOutput) ToOrganizationalUnitAccountOutputWithContext added in v1.19.0

func (o OrganizationalUnitAccountOutput) ToOrganizationalUnitAccountOutputWithContext(ctx context.Context) OrganizationalUnitAccountOutput

type OrganizationalUnitArgs added in v0.18.4

type OrganizationalUnitArgs struct {
	// The name for the organizational unit
	Name pulumi.StringPtrInput
	// ID of the parent organizational unit, which may be the root
	ParentId pulumi.StringInput
}

The set of arguments for constructing a OrganizationalUnit resource.

func (OrganizationalUnitArgs) ElementType added in v1.19.0

func (OrganizationalUnitArgs) ElementType() reflect.Type

type OrganizationalUnitState added in v0.18.4

type OrganizationalUnitState struct {
	// List of child accounts for this Organizational Unit. Does not return account information for child Organizational Units. All elements have these attributes:
	Accounts OrganizationalUnitAccountArrayInput
	// ARN of the organizational unit
	Arn pulumi.StringPtrInput
	// The name for the organizational unit
	Name pulumi.StringPtrInput
	// ID of the parent organizational unit, which may be the root
	ParentId pulumi.StringPtrInput
}

func (OrganizationalUnitState) ElementType added in v1.19.0

func (OrganizationalUnitState) ElementType() reflect.Type

type Policy

type Policy struct {
	pulumi.CustomResourceState

	// Amazon Resource Name (ARN) of the policy.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The policy content to add to the new policy. For example, if you create a [service control policy (SCP)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the [Service Control Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) and for more information on the Tag Policy syntax, see the [Tag Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_example-tag-policies.html).
	Content pulumi.StringOutput `pulumi:"content"`
	// A description to assign to the policy.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The friendly name to assign to the policy.
	Name pulumi.StringOutput `pulumi:"name"`
	// The type of policy to create. Currently, the only valid values are `SERVICE_CONTROL_POLICY` (SCP) and `TAG_POLICY`. Defaults to `SERVICE_CONTROL_POLICY`.
	Type pulumi.StringPtrOutput `pulumi:"type"`
}

Provides a resource to manage an [AWS Organizations policy](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html).

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/organizations_policy.html.markdown.

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

NewPolicy registers a new resource with the given unique name, arguments, and options.

type PolicyArgs

type PolicyArgs struct {
	// The policy content to add to the new policy. For example, if you create a [service control policy (SCP)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the [Service Control Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) and for more information on the Tag Policy syntax, see the [Tag Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_example-tag-policies.html).
	Content pulumi.StringInput
	// A description to assign to the policy.
	Description pulumi.StringPtrInput
	// The friendly name to assign to the policy.
	Name pulumi.StringPtrInput
	// The type of policy to create. Currently, the only valid values are `SERVICE_CONTROL_POLICY` (SCP) and `TAG_POLICY`. Defaults to `SERVICE_CONTROL_POLICY`.
	Type pulumi.StringPtrInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType added in v1.19.0

func (PolicyArgs) ElementType() reflect.Type

type PolicyAttachment

type PolicyAttachment struct {
	pulumi.CustomResourceState

	// The unique identifier (ID) of the policy that you want to attach to the target.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.
	TargetId pulumi.StringOutput `pulumi:"targetId"`
}

Provides a resource to attach an AWS Organizations policy to an organization account, root, or unit.

> This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/r/organizations_policy_attachment.html.markdown.

func GetPolicyAttachment

func GetPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyAttachmentState, opts ...pulumi.ResourceOption) (*PolicyAttachment, error)

GetPolicyAttachment gets an existing PolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicyAttachment

func NewPolicyAttachment(ctx *pulumi.Context,
	name string, args *PolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*PolicyAttachment, error)

NewPolicyAttachment registers a new resource with the given unique name, arguments, and options.

type PolicyAttachmentArgs

type PolicyAttachmentArgs struct {
	// The unique identifier (ID) of the policy that you want to attach to the target.
	PolicyId pulumi.StringInput
	// The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.
	TargetId pulumi.StringInput
}

The set of arguments for constructing a PolicyAttachment resource.

func (PolicyAttachmentArgs) ElementType added in v1.19.0

func (PolicyAttachmentArgs) ElementType() reflect.Type

type PolicyAttachmentState

type PolicyAttachmentState struct {
	// The unique identifier (ID) of the policy that you want to attach to the target.
	PolicyId pulumi.StringPtrInput
	// The unique identifier (ID) of the root, organizational unit, or account number that you want to attach the policy to.
	TargetId pulumi.StringPtrInput
}

func (PolicyAttachmentState) ElementType added in v1.19.0

func (PolicyAttachmentState) ElementType() reflect.Type

type PolicyState

type PolicyState struct {
	// Amazon Resource Name (ARN) of the policy.
	Arn pulumi.StringPtrInput
	// The policy content to add to the new policy. For example, if you create a [service control policy (SCP)](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html), this string must be JSON text that specifies the permissions that admins in attached accounts can delegate to their users, groups, and roles. For more information about the SCP syntax, see the [Service Control Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) and for more information on the Tag Policy syntax, see the [Tag Policy Syntax documentation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_example-tag-policies.html).
	Content pulumi.StringPtrInput
	// A description to assign to the policy.
	Description pulumi.StringPtrInput
	// The friendly name to assign to the policy.
	Name pulumi.StringPtrInput
	// The type of policy to create. Currently, the only valid values are `SERVICE_CONTROL_POLICY` (SCP) and `TAG_POLICY`. Defaults to `SERVICE_CONTROL_POLICY`.
	Type pulumi.StringPtrInput
}

func (PolicyState) ElementType added in v1.19.0

func (PolicyState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL