Class DicomStoreIamBinding
Three different resources help you manage your IAM policy for Healthcare DICOM store. Each of these resources serves a different use case:
gcp.healthcare.DicomStoreIamPolicy: Authoritative. Sets the IAM policy for the DICOM store and replaces any existing policy already attached.gcp.healthcare.DicomStoreIamBinding: 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 DICOM store are preserved.gcp.healthcare.DicomStoreIamMember: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the DICOM store are preserved.
Note:
gcp.healthcare.DicomStoreIamPolicycannot be used in conjunction withgcp.healthcare.DicomStoreIamBindingandgcp.healthcare.DicomStoreIamMemberor they will fight over what your policy should be.
Note:
gcp.healthcare.DicomStoreIamBindingresources can be used in conjunction withgcp.healthcare.DicomStoreIamMemberresources only if they do not grant privilege to the same role.
google_healthcare_dicom_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 dicomStore = new Gcp.Healthcare.DicomStoreIamPolicy("dicomStore", new Gcp.Healthcare.DicomStoreIamPolicyArgs
{
DicomStoreId = "your-dicom-store-id",
PolicyData = admin.Apply(admin => admin.PolicyData),
});
}
}
google_healthcare_dicom_store_iam_binding
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var dicomStore = new Gcp.Healthcare.DicomStoreIamBinding("dicomStore", new Gcp.Healthcare.DicomStoreIamBindingArgs
{
DicomStoreId = "your-dicom-store-id",
Members =
{
"user:jane@example.com",
},
Role = "roles/editor",
});
}
}
google_healthcare_dicom_store_iam_member
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var dicomStore = new Gcp.Healthcare.DicomStoreIamMember("dicomStore", new Gcp.Healthcare.DicomStoreIamMemberArgs
{
DicomStoreId = "your-dicom-store-id",
Member = "user:jane@example.com",
Role = "roles/editor",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Healthcare
Assembly: Pulumi.Gcp.dll
Syntax
public class DicomStoreIamBinding : CustomResource
Constructors
View SourceDicomStoreIamBinding(String, DicomStoreIamBindingArgs, CustomResourceOptions)
Create a DicomStoreIamBinding resource with the given unique name, arguments, and options.
Declaration
public DicomStoreIamBinding(string name, DicomStoreIamBindingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| DicomStoreIamBindingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCondition
Declaration
public Output<DicomStoreIamBindingCondition> Condition { get; }
Property Value
| Type | Description |
|---|---|
| Output<DicomStoreIamBindingCondition> |
DicomStoreId
The DICOM store ID, in the form
{project_id}/{location_name}/{dataset_name}/{dicom_store_name} or
{location_name}/{dataset_name}/{dicom_store_name}. In the second form, the provider's
project setting will be used as a fallback.
Declaration
public Output<string> DicomStoreId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Etag
(Computed) The etag of the DICOM store's IAM policy.
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Members
Declaration
public Output<ImmutableArray<string>> Members { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Role
The role that should be applied. Only one
gcp.healthcare.DicomStoreIamBinding 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 SourceGet(String, Input<String>, DicomStoreIamBindingState, CustomResourceOptions)
Get an existing DicomStoreIamBinding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static DicomStoreIamBinding Get(string name, Input<string> id, DicomStoreIamBindingState 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. |
| DicomStoreIamBindingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| DicomStoreIamBinding |