1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. healthcare
  5. getFhirStoreIamPolicy
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.healthcare.getFhirStoreIamPolicy

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 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,
});
Copy
import pulumi
import pulumi_gcp as gcp

foo = gcp.healthcare.get_fhir_store_iam_policy(fhir_store_id=fhir_store["id"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      function: gcp:healthcare:getFhirStoreIamPolicy
      arguments:
        fhirStoreId: ${fhirStore.id}
Copy

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>
Copy
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]
Copy
func LookupFhirStoreIamPolicy(ctx *Context, args *LookupFhirStoreIamPolicyArgs, opts ...InvokeOption) (*LookupFhirStoreIamPolicyResult, error)
func LookupFhirStoreIamPolicyOutput(ctx *Context, args *LookupFhirStoreIamPolicyOutputArgs, opts ...InvokeOption) LookupFhirStoreIamPolicyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFhirStoreIamPolicyResult> getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs args, InvokeOptions options)
public static Output<GetFhirStoreIamPolicyResult> getFhirStoreIamPolicy(GetFhirStoreIamPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:healthcare/getFhirStoreIamPolicy:getFhirStoreIamPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FhirStoreId
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi