Show / Hide Table of Contents

Class GetRule

Inheritance
System.Object
GetRule
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.Gcp.Iam
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetRule

Methods

View Source

InvokeAsync(GetRuleArgs, InvokeOptions)

Use this data source to get information about a Google IAM Role.

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var roleinfo = Output.Create(Gcp.Iam.GetRule.InvokeAsync(new Gcp.Iam.GetRuleArgs
    {
        Name = "roles/compute.viewer",
    }));
    this.TheRolePermissions = roleinfo.Apply(roleinfo => roleinfo.IncludedPermissions);
}

[Output("theRolePermissions")]
public Output<string> TheRolePermissions { get; set; }
}
Declaration
public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetRuleArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRuleResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.