1. Packages
  2. Hsdp Provider
  3. API Docs
  4. getCdlDataTypeDefinition
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.getCdlDataTypeDefinition

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Retrieve details on HSDP Clinical Data Lake (CDL) Data Type Definition.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const defA = hsdp.getCdlDataTypeDefinition({
        cdlEndpoint: data.cdl_instance.cicd.endpoint,
        dtdId: _var.dtd_id,
    });
    export const schema = defA.then(defA => defA.jsonSchema);
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    def_a = hsdp.get_cdl_data_type_definition(cdl_endpoint=data["cdl_instance"]["cicd"]["endpoint"],
        dtd_id=var["dtd_id"])
    pulumi.export("schema", def_a.json_schema)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defA, err := hsdp.LookupCdlDataTypeDefinition(ctx, &hsdp.LookupCdlDataTypeDefinitionArgs{
    			CdlEndpoint: data.Cdl_instance.Cicd.Endpoint,
    			DtdId:       _var.Dtd_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("schema", defA.JsonSchema)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var defA = Hsdp.GetCdlDataTypeDefinition.Invoke(new()
        {
            CdlEndpoint = data.Cdl_instance.Cicd.Endpoint,
            DtdId = @var.Dtd_id,
        });
    
        return new Dictionary<string, object?>
        {
            ["schema"] = defA.Apply(getCdlDataTypeDefinitionResult => getCdlDataTypeDefinitionResult.JsonSchema),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.HsdpFunctions;
    import com.pulumi.hsdp.inputs.GetCdlDataTypeDefinitionArgs;
    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 defA = HsdpFunctions.getCdlDataTypeDefinition(GetCdlDataTypeDefinitionArgs.builder()
                .cdlEndpoint(data.cdl_instance().cicd().endpoint())
                .dtdId(var_.dtd_id())
                .build());
    
            ctx.export("schema", defA.applyValue(getCdlDataTypeDefinitionResult -> getCdlDataTypeDefinitionResult.jsonSchema()));
        }
    }
    
    variables:
      defA:
        fn::invoke:
          function: hsdp:getCdlDataTypeDefinition
          arguments:
            cdlEndpoint: ${data.cdl_instance.cicd.endpoint}
            dtdId: ${var.dtd_id}
    outputs:
      schema: ${defA.jsonSchema}
    

    Using getCdlDataTypeDefinition

    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 getCdlDataTypeDefinition(args: GetCdlDataTypeDefinitionArgs, opts?: InvokeOptions): Promise<GetCdlDataTypeDefinitionResult>
    function getCdlDataTypeDefinitionOutput(args: GetCdlDataTypeDefinitionOutputArgs, opts?: InvokeOptions): Output<GetCdlDataTypeDefinitionResult>
    def get_cdl_data_type_definition(cdl_endpoint: Optional[str] = None,
                                     dtd_id: Optional[str] = None,
                                     id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetCdlDataTypeDefinitionResult
    def get_cdl_data_type_definition_output(cdl_endpoint: Optional[pulumi.Input[str]] = None,
                                     dtd_id: Optional[pulumi.Input[str]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetCdlDataTypeDefinitionResult]
    func LookupCdlDataTypeDefinition(ctx *Context, args *LookupCdlDataTypeDefinitionArgs, opts ...InvokeOption) (*LookupCdlDataTypeDefinitionResult, error)
    func LookupCdlDataTypeDefinitionOutput(ctx *Context, args *LookupCdlDataTypeDefinitionOutputArgs, opts ...InvokeOption) LookupCdlDataTypeDefinitionResultOutput

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

    public static class GetCdlDataTypeDefinition 
    {
        public static Task<GetCdlDataTypeDefinitionResult> InvokeAsync(GetCdlDataTypeDefinitionArgs args, InvokeOptions? opts = null)
        public static Output<GetCdlDataTypeDefinitionResult> Invoke(GetCdlDataTypeDefinitionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdlDataTypeDefinitionResult> getCdlDataTypeDefinition(GetCdlDataTypeDefinitionArgs args, InvokeOptions options)
    public static Output<GetCdlDataTypeDefinitionResult> getCdlDataTypeDefinition(GetCdlDataTypeDefinitionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hsdp:index/getCdlDataTypeDefinition:getCdlDataTypeDefinition
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CdlEndpoint string
    The CDL instance endpoint to query
    DtdId string
    The ID of the DTD to look up
    Id string
    The GUID of the DTDT
    CdlEndpoint string
    The CDL instance endpoint to query
    DtdId string
    The ID of the DTD to look up
    Id string
    The GUID of the DTDT
    cdlEndpoint String
    The CDL instance endpoint to query
    dtdId String
    The ID of the DTD to look up
    id String
    The GUID of the DTDT
    cdlEndpoint string
    The CDL instance endpoint to query
    dtdId string
    The ID of the DTD to look up
    id string
    The GUID of the DTDT
    cdl_endpoint str
    The CDL instance endpoint to query
    dtd_id str
    The ID of the DTD to look up
    id str
    The GUID of the DTDT
    cdlEndpoint String
    The CDL instance endpoint to query
    dtdId String
    The ID of the DTD to look up
    id String
    The GUID of the DTDT

    getCdlDataTypeDefinition Result

    The following output properties are available:

    CdlEndpoint string
    CreatedBy string
    Which entity created the DTD
    CreatedOn string
    When the DTD was created
    DtdId string
    Id string
    The GUID of the DTDT
    JsonSchema string
    The JSON schema describing the DTD
    UpdatedBy string
    Which entity updated the DTD last
    UpdatedOn string
    When the DTD was updated
    CdlEndpoint string
    CreatedBy string
    Which entity created the DTD
    CreatedOn string
    When the DTD was created
    DtdId string
    Id string
    The GUID of the DTDT
    JsonSchema string
    The JSON schema describing the DTD
    UpdatedBy string
    Which entity updated the DTD last
    UpdatedOn string
    When the DTD was updated
    cdlEndpoint String
    createdBy String
    Which entity created the DTD
    createdOn String
    When the DTD was created
    dtdId String
    id String
    The GUID of the DTDT
    jsonSchema String
    The JSON schema describing the DTD
    updatedBy String
    Which entity updated the DTD last
    updatedOn String
    When the DTD was updated
    cdlEndpoint string
    createdBy string
    Which entity created the DTD
    createdOn string
    When the DTD was created
    dtdId string
    id string
    The GUID of the DTDT
    jsonSchema string
    The JSON schema describing the DTD
    updatedBy string
    Which entity updated the DTD last
    updatedOn string
    When the DTD was updated
    cdl_endpoint str
    created_by str
    Which entity created the DTD
    created_on str
    When the DTD was created
    dtd_id str
    id str
    The GUID of the DTDT
    json_schema str
    The JSON schema describing the DTD
    updated_by str
    Which entity updated the DTD last
    updated_on str
    When the DTD was updated
    cdlEndpoint String
    createdBy String
    Which entity created the DTD
    createdOn String
    When the DTD was created
    dtdId String
    id String
    The GUID of the DTDT
    jsonSchema String
    The JSON schema describing the DTD
    updatedBy String
    Which entity updated the DTD last
    updatedOn String
    When the DTD was updated

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software