1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. healthcare
  5. getFhirStoreIamPolicy
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.healthcare.getFhirStoreIamPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    Retrieves the current IAM policy data for a Google Cloud Healthcare FHIR store.

    example

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const foo = gcp.healthcare.getFhirStoreIamPolicy({
        fhirStoreId: fhirStore.id,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    foo = gcp.healthcare.get_fhir_store_iam_policy(fhir_store_id=fhir_store["id"])
    
    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.LookupFhirStoreIamPolicy(ctx, &healthcare.LookupFhirStoreIamPolicyArgs{
    			FhirStoreId: fhirStore.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = Gcp.Healthcare.GetFhirStoreIamPolicy.Invoke(new()
        {
            FhirStoreId = fhirStore.Id,
        });
    
    });
    
    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.GetFhirStoreIamPolicyArgs;
    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 foo = HealthcareFunctions.getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs.builder()
                .fhirStoreId(fhirStore.id())
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: gcp:healthcare:getFhirStoreIamPolicy
          Arguments:
            fhirStoreId: ${fhirStore.id}
    

    Using getFhirStoreIamPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFhirStoreIamPolicy(args: GetFhirStoreIamPolicyArgs, opts?: InvokeOptions): Promise<GetFhirStoreIamPolicyResult>
    function getFhirStoreIamPolicyOutput(args: GetFhirStoreIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetFhirStoreIamPolicyResult>
    def get_fhir_store_iam_policy(fhir_store_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetFhirStoreIamPolicyResult
    def get_fhir_store_iam_policy_output(fhir_store_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetFhirStoreIamPolicyResult]
    func LookupFhirStoreIamPolicy(ctx *Context, args *LookupFhirStoreIamPolicyArgs, opts ...InvokeOption) (*LookupFhirStoreIamPolicyResult, error)
    func LookupFhirStoreIamPolicyOutput(ctx *Context, args *LookupFhirStoreIamPolicyOutputArgs, opts ...InvokeOption) LookupFhirStoreIamPolicyResultOutput

    > Note: This function is named LookupFhirStoreIamPolicy in the Go SDK.

    public static class GetFhirStoreIamPolicy 
    {
        public static Task<GetFhirStoreIamPolicyResult> InvokeAsync(GetFhirStoreIamPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetFhirStoreIamPolicyResult> Invoke(GetFhirStoreIamPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFhirStoreIamPolicyResult> getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FhirStoreId string
    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.
    FhirStoreId string
    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.
    fhirStoreId String
    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.
    fhirStoreId string
    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.
    fhir_store_id str
    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.
    fhirStoreId String
    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.

    getFhirStoreIamPolicy Result

    The following output properties are available:

    Etag string
    (Computed) The etag of the IAM policy.
    FhirStoreId string
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Computed) The policy data
    Etag string
    (Computed) The etag of the IAM policy.
    FhirStoreId string
    Id string
    The provider-assigned unique ID for this managed resource.
    PolicyData string
    (Computed) The policy data
    etag String
    (Computed) The etag of the IAM policy.
    fhirStoreId String
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Computed) The policy data
    etag string
    (Computed) The etag of the IAM policy.
    fhirStoreId string
    id string
    The provider-assigned unique ID for this managed resource.
    policyData string
    (Computed) The policy data
    etag str
    (Computed) The etag of the IAM policy.
    fhir_store_id str
    id str
    The provider-assigned unique ID for this managed resource.
    policy_data str
    (Computed) The policy data
    etag String
    (Computed) The etag of the IAM policy.
    fhirStoreId String
    id String
    The provider-assigned unique ID for this managed resource.
    policyData String
    (Computed) The policy data

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi