Show / Hide Table of Contents

Namespace Pulumi.Gcp.Folder

Classes

GetOrganizationPolicy

GetOrganizationPolicyArgs

GetOrganizationPolicyResult

IAMBinding

Allows creation and management of a single binding within IAM policy for an existing Google Cloud Platform folder.

Note: This resource must not be used in conjunction with gcp.folder.IAMPolicy or they will fight over what your policy should be.

Note: On create, this resource will overwrite members of any existing roles. Use pulumi import and inspect the output to ensure your existing members are preserved.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var department1 = new Gcp.Organizations.Folder("department1", new Gcp.Organizations.FolderArgs
    {
        DisplayName = "Department 1",
        Parent = "organizations/1234567",
    });
    var admin = new Gcp.Folder.IAMBinding("admin", new Gcp.Folder.IAMBindingArgs
    {
        Folder = department1.Name,
        Role = "roles/editor",
        Members = 
        {
            "user:alice@gmail.com",
        },
    });
}

}

IAMBindingArgs

IAMBindingState

IAMMember

Allows creation and management of a single member for a single binding within the IAM policy for an existing Google Cloud Platform folder.

Note: This resource must not be used in conjunction with gcp.folder.IAMPolicy or they will fight over what your policy should be. Similarly, roles controlled by gcp.folder.IAMBinding should not be assigned to using gcp.folder.IAMMember.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var department1 = new Gcp.Organizations.Folder("department1", new Gcp.Organizations.FolderArgs
    {
        DisplayName = "Department 1",
        Parent = "organizations/1234567",
    });
    var admin = new Gcp.Folder.IAMMember("admin", new Gcp.Folder.IAMMemberArgs
    {
        Folder = department1.Name,
        Role = "roles/editor",
        Member = "user:alice@gmail.com",
    });
}

}

IAMMemberArgs

IAMMemberState

IAMPolicy

Allows creation and management of the IAM policy for an existing Google Cloud Platform folder.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var department1 = new Gcp.Organizations.Folder("department1", new Gcp.Organizations.FolderArgs
    {
        DisplayName = "Department 1",
        Parent = "organizations/1234567",
    });
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/editor" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var folderAdminPolicy = new Gcp.Folder.IAMPolicy("folderAdminPolicy", new Gcp.Folder.IAMPolicyArgs
    {
        Folder = department1.Name,
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

IAMPolicyArgs

IAMPolicyState

OrganizationPolicy

Allows management of Organization policies for a Google Folder. For more information see the official documentation and API.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var serialPortPolicy = new Gcp.Folder.OrganizationPolicy("serialPortPolicy", new Gcp.Folder.OrganizationPolicyArgs
    {
        BooleanPolicy = new Gcp.Folder.Inputs.OrganizationPolicyBooleanPolicyArgs
        {
            Enforced = true,
        },
        Constraint = "compute.disableSerialPortAccess",
        Folder = "folders/123456789",
    });
}

}

OrganizationPolicyArgs

OrganizationPolicyState

Back to top Copyright 2016-2020, Pulumi Corporation.