Show / Hide Table of Contents

Class FhirStoreIamMember

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

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

Note: gcp.healthcare.FhirStoreIamPolicy cannot be used in conjunction with gcp.healthcare.FhirStoreIamBinding and gcp.healthcare.FhirStoreIamMember or they will fight over what your policy should be.

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

google_healthcare_fhir_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 fhirStore = new Gcp.Healthcare.FhirStoreIamPolicy("fhirStore", new Gcp.Healthcare.FhirStoreIamPolicyArgs
    {
        FhirStoreId = "your-fhir-store-id",
        PolicyData = admin.Apply(admin => admin.PolicyData),
    });
}

}

google_healthcare_fhir_store_iam_binding

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var fhirStore = new Gcp.Healthcare.FhirStoreIamBinding("fhirStore", new Gcp.Healthcare.FhirStoreIamBindingArgs
    {
        FhirStoreId = "your-fhir-store-id",
        Members = 
        {
            "user:jane@example.com",
        },
        Role = "roles/editor",
    });
}

}

google_healthcare_fhir_store_iam_member

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var fhirStore = new Gcp.Healthcare.FhirStoreIamMember("fhirStore", new Gcp.Healthcare.FhirStoreIamMemberArgs
    {
        FhirStoreId = "your-fhir-store-id",
        Member = "user:jane@example.com",
        Role = "roles/editor",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
FhirStoreIamMember
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 FhirStoreIamMember : CustomResource

Constructors

View Source

FhirStoreIamMember(String, FhirStoreIamMemberArgs, CustomResourceOptions)

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

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

The unique name of the resource

FhirStoreIamMemberArgs 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<FhirStoreIamMemberCondition> Condition { get; }
Property Value
Type Description
Output<FhirStoreIamMemberCondition>
View Source

Etag

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

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

FhirStoreId

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

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

Member

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

Role

The role that should be applied. Only one gcp.healthcare.FhirStoreIamBinding 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>, FhirStoreIamMemberState, CustomResourceOptions)

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

Declaration
public static FhirStoreIamMember Get(string name, Input<string> id, FhirStoreIamMemberState 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.

FhirStoreIamMemberState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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