Show / Hide Table of Contents

Namespace Pulumi.Gcp.RuntimeConfig

Classes

Config

Manages a RuntimeConfig resource in Google Cloud. For more information, see the official documentation, or the JSON API.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var my_runtime_config = new Gcp.RuntimeConfig.Config("my-runtime-config", new Gcp.RuntimeConfig.ConfigArgs
    {
        Description = "Runtime configuration values for my service",
    });
}

}

ConfigArgs

ConfigIamBinding

Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:

  • gcp.runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.
  • gcp.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.
  • gcp.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.

Note: gcp.runtimeconfig.ConfigIamPolicy cannot be used in conjunction with gcp.runtimeconfig.ConfigIamBinding and gcp.runtimeconfig.ConfigIamMember or they will fight over what your policy should be.

Note: gcp.runtimeconfig.ConfigIamBinding resources can be used in conjunction with gcp.runtimeconfig.ConfigIamMember resources only if they do not grant privilege to the same role.

google_runtimeconfig_config_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/viewer" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var policy = new Gcp.RuntimeConfig.ConfigIamPolicy("policy", new Gcp.RuntimeConfig.ConfigIamPolicyArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_runtimeconfig_config_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var binding = new Gcp.RuntimeConfig.ConfigIamBinding("binding", new Gcp.RuntimeConfig.ConfigIamBindingArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Members = 
        {
            "user:jane@example.com",
        },
    });
}

}

google_runtimeconfig_config_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var member = new Gcp.RuntimeConfig.ConfigIamMember("member", new Gcp.RuntimeConfig.ConfigIamMemberArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Member = "user:jane@example.com",
    });
}

}

ConfigIamBindingArgs

ConfigIamBindingState

ConfigIamMember

Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:

  • gcp.runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.
  • gcp.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.
  • gcp.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.

Note: gcp.runtimeconfig.ConfigIamPolicy cannot be used in conjunction with gcp.runtimeconfig.ConfigIamBinding and gcp.runtimeconfig.ConfigIamMember or they will fight over what your policy should be.

Note: gcp.runtimeconfig.ConfigIamBinding resources can be used in conjunction with gcp.runtimeconfig.ConfigIamMember resources only if they do not grant privilege to the same role.

google_runtimeconfig_config_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/viewer" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var policy = new Gcp.RuntimeConfig.ConfigIamPolicy("policy", new Gcp.RuntimeConfig.ConfigIamPolicyArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_runtimeconfig_config_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var binding = new Gcp.RuntimeConfig.ConfigIamBinding("binding", new Gcp.RuntimeConfig.ConfigIamBindingArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Members = 
        {
            "user:jane@example.com",
        },
    });
}

}

google_runtimeconfig_config_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var member = new Gcp.RuntimeConfig.ConfigIamMember("member", new Gcp.RuntimeConfig.ConfigIamMemberArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Member = "user:jane@example.com",
    });
}

}

ConfigIamMemberArgs

ConfigIamMemberState

ConfigIamPolicy

Three different resources help you manage your IAM policy for Runtime Configurator Config. Each of these resources serves a different use case:

  • gcp.runtimeconfig.ConfigIamPolicy: Authoritative. Sets the IAM policy for the config and replaces any existing policy already attached.
  • gcp.runtimeconfig.ConfigIamBinding: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the config are preserved.
  • gcp.runtimeconfig.ConfigIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the config are preserved.

Note: gcp.runtimeconfig.ConfigIamPolicy cannot be used in conjunction with gcp.runtimeconfig.ConfigIamBinding and gcp.runtimeconfig.ConfigIamMember or they will fight over what your policy should be.

Note: gcp.runtimeconfig.ConfigIamBinding resources can be used in conjunction with gcp.runtimeconfig.ConfigIamMember resources only if they do not grant privilege to the same role.

google_runtimeconfig_config_iam_policy

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var admin = Output.Create(Gcp.Organizations.GetIAMPolicy.InvokeAsync(new Gcp.Organizations.GetIAMPolicyArgs
    {
        Binding = 
        {

            {
                { "role", "roles/viewer" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var policy = new Gcp.RuntimeConfig.ConfigIamPolicy("policy", new Gcp.RuntimeConfig.ConfigIamPolicyArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_runtimeconfig_config_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var binding = new Gcp.RuntimeConfig.ConfigIamBinding("binding", new Gcp.RuntimeConfig.ConfigIamBindingArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Members = 
        {
            "user:jane@example.com",
        },
    });
}

}

google_runtimeconfig_config_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var member = new Gcp.RuntimeConfig.ConfigIamMember("member", new Gcp.RuntimeConfig.ConfigIamMemberArgs
    {
        Project = google_runtimeconfig_config.Config.Project,
        Config = google_runtimeconfig_config.Config.Name,
        Role = "roles/viewer",
        Member = "user:jane@example.com",
    });
}

}

ConfigIamPolicyArgs

ConfigIamPolicyState

ConfigState

Variable

Manages a RuntimeConfig variable in Google Cloud. For more information, see the official documentation, or the JSON API.

VariableArgs

VariableState

Back to top Copyright 2016-2020, Pulumi Corporation.