OrganizationalUnit

class OrganizationalUnit : KotlinCustomResource

Provides a resource to create an organizational unit.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.organizations.OrganizationalUnit;
import com.pulumi.aws.organizations.OrganizationalUnitArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new OrganizationalUnit("example", OrganizationalUnitArgs.builder()
.parentId(aws_organizations_organization.example().roots()[0].id())
.build());
}
}

Import

AWS Organizations Organizational Units can be imported by using the id, e.g.,

$ pulumi import aws:organizations/organizationalUnit:OrganizationalUnit example ou-1234567

Properties

Link copied to clipboard

List of child accounts for this Organizational Unit. Does not return account information for child Organizational Units. All elements have these attributes:

Link copied to clipboard
val arn: Output<String>

ARN of the organizational unit

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name for the organizational unit

Link copied to clipboard
val parentId: Output<String>

ID of the parent organizational unit, which may be the root

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>