getConsentStoreIamPolicy

Retrieves the current IAM policy data for consentstore

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.healthcare.getConsentStoreIamPolicy({
dataset: my_consent.dataset,
consentStoreId: my_consent.name,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.healthcare.get_consent_store_iam_policy(dataset=my_consent["dataset"],
consent_store_id=my_consent["name"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.Healthcare.GetConsentStoreIamPolicy.Invoke(new()
{
Dataset = my_consent.Dataset,
ConsentStoreId = my_consent.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/healthcare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := healthcare.LookupConsentStoreIamPolicy(ctx, &healthcare.LookupConsentStoreIamPolicyArgs{
Dataset: my_consent.Dataset,
ConsentStoreId: my_consent.Name,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.healthcare.HealthcareFunctions;
import com.pulumi.gcp.healthcare.inputs.GetConsentStoreIamPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var policy = HealthcareFunctions.getConsentStoreIamPolicy(GetConsentStoreIamPolicyArgs.builder()
.dataset(my_consent.dataset())
.consentStoreId(my_consent.name())
.build());
}
}
variables:
policy:
fn::invoke:
function: gcp:healthcare:getConsentStoreIamPolicy
arguments:
dataset: ${["my-consent"].dataset}
consentStoreId: ${["my-consent"].name}

Return

A collection of values returned by getConsentStoreIamPolicy.

Parameters

argument

A collection of arguments for invoking getConsentStoreIamPolicy.


Return

A collection of values returned by getConsentStoreIamPolicy.

Parameters

consentStoreId

Used to find the parent resource to bind the IAM policy to

dataset

Identifies the dataset addressed by this request. Must be in the format 'projects/{project}/locations/{location}/datasets/{dataset}' Used to find the parent resource to bind the IAM policy to

See also


Return

A collection of values returned by getConsentStoreIamPolicy.

Parameters

argument

Builder for com.pulumi.gcp.healthcare.kotlin.inputs.GetConsentStoreIamPolicyPlainArgs.

See also