Show / Hide Table of Contents

Class Hl7StoreIamBinding

Three different resources help you manage your IAM policy for Healthcare HL7v2 store. Each of these resources serves a different use case:

  • gcp.healthcare.Hl7StoreIamPolicy: Authoritative. Sets the IAM policy for the HL7v2 store and replaces any existing policy already attached.
  • gcp.healthcare.Hl7StoreIamBinding: 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 HL7v2 store are preserved.
  • gcp.healthcare.Hl7StoreIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the HL7v2 store are preserved.

Note: gcp.healthcare.Hl7StoreIamPolicy cannot be used in conjunction with gcp.healthcare.Hl7StoreIamBinding and gcp.healthcare.Hl7StoreIamMember or they will fight over what your policy should be.

Note: gcp.healthcare.Hl7StoreIamBinding resources can be used in conjunction with gcp.healthcare.Hl7StoreIamMember resources only if they do not grant privilege to the same role.

google_healthcare_hl7_v2_store_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/editor" },
                { "members", 
                {
                    "user:jane@example.com",
                } },
            },
        },
    }));
    var hl7V2Store = new Gcp.Healthcare.Hl7StoreIamPolicy("hl7V2Store", new Gcp.Healthcare.Hl7StoreIamPolicyArgs
    {
        Hl7V2StoreId = "your-hl7-v2-store-id",
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_healthcare_hl7_v2_store_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var hl7V2Store = new Gcp.Healthcare.Hl7StoreIamBinding("hl7V2Store", new Gcp.Healthcare.Hl7StoreIamBindingArgs
    {
        Hl7V2StoreId = "your-hl7-v2-store-id",
        Members = 
        {
            "user:jane@example.com",
        },
        Role = "roles/editor",
    });
}

}

google_healthcare_hl7_v2_store_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var hl7V2Store = new Gcp.Healthcare.Hl7StoreIamMember("hl7V2Store", new Gcp.Healthcare.Hl7StoreIamMemberArgs
    {
        Hl7V2StoreId = "your-hl7-v2-store-id",
        Member = "user:jane@example.com",
        Role = "roles/editor",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Hl7StoreIamBinding
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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.Healthcare
Assembly: Pulumi.Gcp.dll
Syntax
public class Hl7StoreIamBinding : CustomResource

Constructors

View Source

Hl7StoreIamBinding(String, Hl7StoreIamBindingArgs, CustomResourceOptions)

Create a Hl7StoreIamBinding resource with the given unique name, arguments, and options.

Declaration
public Hl7StoreIamBinding(string name, Hl7StoreIamBindingArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

Hl7StoreIamBindingArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Condition

Declaration
public Output<Hl7StoreIamBindingCondition> Condition { get; }
Property Value
Type Description
Output<Hl7StoreIamBindingCondition>
View Source

Etag

(Computed) The etag of the HL7v2 store's IAM policy.

Declaration
public Output<string> Etag { get; }
Property Value
Type Description
Output<System.String>
View Source

Hl7V2StoreId

The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.

Declaration
public Output<string> Hl7V2StoreId { get; }
Property Value
Type Description
Output<System.String>
View Source

Members

Declaration
public Output<ImmutableArray<string>> Members { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Role

The role that should be applied. Only one gcp.healthcare.Hl7StoreIamBinding can be used per role. Note that custom roles must be of the format [projects|organizations]/{parent-name}/roles/{role-name}.

Declaration
public Output<string> Role { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, Hl7StoreIamBindingState, CustomResourceOptions)

Get an existing Hl7StoreIamBinding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Hl7StoreIamBinding Get(string name, Input<string> id, Hl7StoreIamBindingState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

Hl7StoreIamBindingState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Hl7StoreIamBinding
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.