get Consent Store Iam Policy
suspend fun getConsentStoreIamPolicy(argument: GetConsentStoreIamPolicyPlainArgs): GetConsentStoreIamPolicyResult
Retrieves the current IAM policy data for consentstore
example
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,
});
Content copied to clipboard
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"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
policy:
fn::invoke:
Function: gcp:healthcare:getConsentStoreIamPolicy
Arguments:
dataset: ${["my-consent"].dataset}
consentStoreId: ${["my-consent"].name}
Content copied to clipboard
Return
A collection of values returned by getConsentStoreIamPolicy.
Parameters
argument
A collection of arguments for invoking getConsentStoreIamPolicy.
suspend fun getConsentStoreIamPolicy(consentStoreId: String, dataset: String): GetConsentStoreIamPolicyResult
Return
A collection of values returned by getConsentStoreIamPolicy.
Parameters
consent Store Id
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
suspend fun getConsentStoreIamPolicy(argument: suspend GetConsentStoreIamPolicyPlainArgsBuilder.() -> Unit): GetConsentStoreIamPolicyResult
Return
A collection of values returned by getConsentStoreIamPolicy.
Parameters
argument
Builder for com.pulumi.gcp.healthcare.kotlin.inputs.GetConsentStoreIamPolicyPlainArgs.