Show / Hide Table of Contents

Class GetOrganizationalUnits

Inheritance
System.Object
GetOrganizationalUnits
Inherited Members
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 static class GetOrganizationalUnits

Methods

View Source

InvokeAsync(GetOrganizationalUnitsArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var org = Output.Create(Aws.Organizations.GetOrganization.InvokeAsync());
    var ou = org.Apply(org => Output.Create(Aws.Organizations.GetOrganizationalUnits.InvokeAsync(new Aws.Organizations.GetOrganizationalUnitsArgs
    {
        ParentId = org.Roots[0].Id,
    })));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetOrganizationalUnitsResult> InvokeAsync(GetOrganizationalUnitsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetOrganizationalUnitsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetOrganizationalUnitsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.