Class FhirStoreIamPolicy
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.FhirStoreIamPolicycannot be used in conjunction withgcp.healthcare.FhirStoreIamBindingandgcp.healthcare.FhirStoreIamMemberor they will fight over what your policy should be.
Note:
gcp.healthcare.FhirStoreIamBindingresources can be used in conjunction withgcp.healthcare.FhirStoreIamMemberresources 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",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Healthcare
Assembly: Pulumi.Gcp.dll
Syntax
public class FhirStoreIamPolicy : CustomResource
Constructors
View SourceFhirStoreIamPolicy(String, FhirStoreIamPolicyArgs, CustomResourceOptions)
Create a FhirStoreIamPolicy resource with the given unique name, arguments, and options.
Declaration
public FhirStoreIamPolicy(string name, FhirStoreIamPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FhirStoreIamPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEtag
(Computed) The etag of the FHIR store's IAM policy.
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
PolicyData
The policy data generated by
a gcp.organizations.getIAMPolicy data source.
Declaration
public Output<string> PolicyData { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FhirStoreIamPolicyState, CustomResourceOptions)
Get an existing FhirStoreIamPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FhirStoreIamPolicy Get(string name, Input<string> id, FhirStoreIamPolicyState 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. |
| FhirStoreIamPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FhirStoreIamPolicy |