1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. healthcare
  5. getHl7V2StoreIamPolicy
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

gcp.healthcare.getHl7V2StoreIamPolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi

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

    example

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const foo = gcp.healthcare.getHl7V2StoreIamPolicy({
        hl7V2StoreId: hl7V2Store.id,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    foo = gcp.healthcare.get_hl7_v2_store_iam_policy(hl7_v2_store_id=hl7_v2_store["id"])
    
    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.GetHl7V2StoreIamPolicy(ctx, &healthcare.GetHl7V2StoreIamPolicyArgs{
    			Hl7V2StoreId: hl7V2Store.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.GetHl7V2StoreIamPolicy.Invoke(new()
        {
            Hl7V2StoreId = hl7V2Store.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.GetHl7V2StoreIamPolicyArgs;
    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.getHl7V2StoreIamPolicy(GetHl7V2StoreIamPolicyArgs.builder()
                .hl7V2StoreId(hl7V2Store.id())
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: gcp:healthcare:getHl7V2StoreIamPolicy
          Arguments:
            hl7V2StoreId: ${hl7V2Store.id}
    

    Using getHl7V2StoreIamPolicy

    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 getHl7V2StoreIamPolicy(args: GetHl7V2StoreIamPolicyArgs, opts?: InvokeOptions): Promise<GetHl7V2StoreIamPolicyResult>
    function getHl7V2StoreIamPolicyOutput(args: GetHl7V2StoreIamPolicyOutputArgs, opts?: InvokeOptions): Output<GetHl7V2StoreIamPolicyResult>
    def get_hl7_v2_store_iam_policy(hl7_v2_store_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetHl7V2StoreIamPolicyResult
    def get_hl7_v2_store_iam_policy_output(hl7_v2_store_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetHl7V2StoreIamPolicyResult]
    func GetHl7V2StoreIamPolicy(ctx *Context, args *GetHl7V2StoreIamPolicyArgs, opts ...InvokeOption) (*GetHl7V2StoreIamPolicyResult, error)
    func GetHl7V2StoreIamPolicyOutput(ctx *Context, args *GetHl7V2StoreIamPolicyOutputArgs, opts ...InvokeOption) GetHl7V2StoreIamPolicyResultOutput

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

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

    The following arguments are supported:

    Hl7V2StoreId string
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.
    Hl7V2StoreId string
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.
    hl7V2StoreId String
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.
    hl7V2StoreId string
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.
    hl7_v2_store_id str
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.
    hl7V2StoreId String
    The HL7v2 store ID, in the form {project_id}/{location_name}/{dataset_name}/{hl7_v2_store_name} or {location_name}/{dataset_name}/{hl7_v2_store_name}. In the second form, the provider's project setting will be used as a fallback.

    getHl7V2StoreIamPolicy Result

    The following output properties are available:

    Etag string
    (Computed) The etag of the IAM policy.
    Hl7V2StoreId 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.
    Hl7V2StoreId 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.
    hl7V2StoreId 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.
    hl7V2StoreId 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.
    hl7_v2_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.
    hl7V2StoreId 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 v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi