1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getDdmSchemas
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getDdmSchemas

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Use this data source to get the list of DDM schemas.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const ddmInstanceId = config.requireObject("ddmInstanceId");
    const ddmSchemaName = config.requireObject("ddmSchemaName");
    const test = flexibleengine.getDdmSchemas({
        instanceId: ddmInstanceId,
        name: ddmSchemaName,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    ddm_instance_id = config.require_object("ddmInstanceId")
    ddm_schema_name = config.require_object("ddmSchemaName")
    test = flexibleengine.get_ddm_schemas(instance_id=ddm_instance_id,
        name=ddm_schema_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		ddmInstanceId := cfg.RequireObject("ddmInstanceId")
    		ddmSchemaName := cfg.RequireObject("ddmSchemaName")
    		_, err := flexibleengine.GetDdmSchemas(ctx, &flexibleengine.GetDdmSchemasArgs{
    			InstanceId: ddmInstanceId,
    			Name:       pulumi.StringRef(ddmSchemaName),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var ddmInstanceId = config.RequireObject<dynamic>("ddmInstanceId");
        var ddmSchemaName = config.RequireObject<dynamic>("ddmSchemaName");
        var test = Flexibleengine.GetDdmSchemas.Invoke(new()
        {
            InstanceId = ddmInstanceId,
            Name = ddmSchemaName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetDdmSchemasArgs;
    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 config = ctx.config();
            final var ddmInstanceId = config.get("ddmInstanceId");
            final var ddmSchemaName = config.get("ddmSchemaName");
            final var test = FlexibleengineFunctions.getDdmSchemas(GetDdmSchemasArgs.builder()
                .instanceId(ddmInstanceId)
                .name(ddmSchemaName)
                .build());
    
        }
    }
    
    configuration:
      ddmInstanceId:
        type: dynamic
      ddmSchemaName:
        type: dynamic
    variables:
      test:
        fn::invoke:
          function: flexibleengine:getDdmSchemas
          arguments:
            instanceId: ${ddmInstanceId}
            name: ${ddmSchemaName}
    

    Using getDdmSchemas

    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 getDdmSchemas(args: GetDdmSchemasArgs, opts?: InvokeOptions): Promise<GetDdmSchemasResult>
    function getDdmSchemasOutput(args: GetDdmSchemasOutputArgs, opts?: InvokeOptions): Output<GetDdmSchemasResult>
    def get_ddm_schemas(id: Optional[str] = None,
                        instance_id: Optional[str] = None,
                        name: Optional[str] = None,
                        region: Optional[str] = None,
                        shard_mode: Optional[str] = None,
                        status: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDdmSchemasResult
    def get_ddm_schemas_output(id: Optional[pulumi.Input[str]] = None,
                        instance_id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        region: Optional[pulumi.Input[str]] = None,
                        shard_mode: Optional[pulumi.Input[str]] = None,
                        status: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDdmSchemasResult]
    func GetDdmSchemas(ctx *Context, args *GetDdmSchemasArgs, opts ...InvokeOption) (*GetDdmSchemasResult, error)
    func GetDdmSchemasOutput(ctx *Context, args *GetDdmSchemasOutputArgs, opts ...InvokeOption) GetDdmSchemasResultOutput

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

    public static class GetDdmSchemas 
    {
        public static Task<GetDdmSchemasResult> InvokeAsync(GetDdmSchemasArgs args, InvokeOptions? opts = null)
        public static Output<GetDdmSchemasResult> Invoke(GetDdmSchemasInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDdmSchemasResult> getDdmSchemas(GetDdmSchemasArgs args, InvokeOptions options)
    public static Output<GetDdmSchemasResult> getDdmSchemas(GetDdmSchemasArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getDdmSchemas:getDdmSchemas
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    Specifies the ID of DDM instance.
    Id string
    Indicates the node ID of the associated RDS instance.
    Name string
    Specifies the name of the DDM schema.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    ShardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    Status string
    Specifies the status of the DDM schema.
    InstanceId string
    Specifies the ID of DDM instance.
    Id string
    Indicates the node ID of the associated RDS instance.
    Name string
    Specifies the name of the DDM schema.
    Region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    ShardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    Status string
    Specifies the status of the DDM schema.
    instanceId String
    Specifies the ID of DDM instance.
    id String
    Indicates the node ID of the associated RDS instance.
    name String
    Specifies the name of the DDM schema.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    shardMode String
    Specifies the sharding mode of the schema. Values option: cluster, single.
    status String
    Specifies the status of the DDM schema.
    instanceId string
    Specifies the ID of DDM instance.
    id string
    Indicates the node ID of the associated RDS instance.
    name string
    Specifies the name of the DDM schema.
    region string
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    shardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    status string
    Specifies the status of the DDM schema.
    instance_id str
    Specifies the ID of DDM instance.
    id str
    Indicates the node ID of the associated RDS instance.
    name str
    Specifies the name of the DDM schema.
    region str
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    shard_mode str
    Specifies the sharding mode of the schema. Values option: cluster, single.
    status str
    Specifies the status of the DDM schema.
    instanceId String
    Specifies the ID of DDM instance.
    id String
    Indicates the node ID of the associated RDS instance.
    name String
    Specifies the name of the DDM schema.
    region String
    Specifies the region in which to query the data source. If omitted, the provider-level region will be used.
    shardMode String
    Specifies the sharding mode of the schema. Values option: cluster, single.
    status String
    Specifies the status of the DDM schema.

    getDdmSchemas Result

    The following output properties are available:

    Id string
    Indicates the node ID of the associated RDS instance.
    InstanceId string
    Region string
    Schemas List<GetDdmSchemasSchema>
    Indicates the list of DDM schema. The Schema structure is documented below.
    Name string
    Indicates the name of the associated RDS instance.
    ShardMode string
    Indicates the sharding mode of the schema.
    Status string
    Indicates the status of the associated RDS instance
    Id string
    Indicates the node ID of the associated RDS instance.
    InstanceId string
    Region string
    Schemas []GetDdmSchemasSchema
    Indicates the list of DDM schema. The Schema structure is documented below.
    Name string
    Indicates the name of the associated RDS instance.
    ShardMode string
    Indicates the sharding mode of the schema.
    Status string
    Indicates the status of the associated RDS instance
    id String
    Indicates the node ID of the associated RDS instance.
    instanceId String
    region String
    schemas List<GetDdmSchemasSchema>
    Indicates the list of DDM schema. The Schema structure is documented below.
    name String
    Indicates the name of the associated RDS instance.
    shardMode String
    Indicates the sharding mode of the schema.
    status String
    Indicates the status of the associated RDS instance
    id string
    Indicates the node ID of the associated RDS instance.
    instanceId string
    region string
    schemas GetDdmSchemasSchema[]
    Indicates the list of DDM schema. The Schema structure is documented below.
    name string
    Indicates the name of the associated RDS instance.
    shardMode string
    Indicates the sharding mode of the schema.
    status string
    Indicates the status of the associated RDS instance
    id str
    Indicates the node ID of the associated RDS instance.
    instance_id str
    region str
    schemas Sequence[GetDdmSchemasSchema]
    Indicates the list of DDM schema. The Schema structure is documented below.
    name str
    Indicates the name of the associated RDS instance.
    shard_mode str
    Indicates the sharding mode of the schema.
    status str
    Indicates the status of the associated RDS instance
    id String
    Indicates the node ID of the associated RDS instance.
    instanceId String
    region String
    schemas List<Property Map>
    Indicates the list of DDM schema. The Schema structure is documented below.
    name String
    Indicates the name of the associated RDS instance.
    shardMode String
    Indicates the sharding mode of the schema.
    status String
    Indicates the status of the associated RDS instance

    Supporting Types

    GetDdmSchemasSchema

    DataNodes List<GetDdmSchemasSchemaDataNode>
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    Name string
    Specifies the name of the DDM schema.
    ShardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    ShardNumber double
    Indicates the number of shards in the same working mode.
    Status string
    Specifies the status of the DDM schema.
    DataNodes []GetDdmSchemasSchemaDataNode
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    Name string
    Specifies the name of the DDM schema.
    ShardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    ShardNumber float64
    Indicates the number of shards in the same working mode.
    Status string
    Specifies the status of the DDM schema.
    dataNodes List<GetDdmSchemasSchemaDataNode>
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    name String
    Specifies the name of the DDM schema.
    shardMode String
    Specifies the sharding mode of the schema. Values option: cluster, single.
    shardNumber Double
    Indicates the number of shards in the same working mode.
    status String
    Specifies the status of the DDM schema.
    dataNodes GetDdmSchemasSchemaDataNode[]
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    name string
    Specifies the name of the DDM schema.
    shardMode string
    Specifies the sharding mode of the schema. Values option: cluster, single.
    shardNumber number
    Indicates the number of shards in the same working mode.
    status string
    Specifies the status of the DDM schema.
    data_nodes Sequence[GetDdmSchemasSchemaDataNode]
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    name str
    Specifies the name of the DDM schema.
    shard_mode str
    Specifies the sharding mode of the schema. Values option: cluster, single.
    shard_number float
    Indicates the number of shards in the same working mode.
    status str
    Specifies the status of the DDM schema.
    dataNodes List<Property Map>
    Indicates the RDS instances associated with the schema. The DataNode structure is documented below.
    name String
    Specifies the name of the DDM schema.
    shardMode String
    Specifies the sharding mode of the schema. Values option: cluster, single.
    shardNumber Number
    Indicates the number of shards in the same working mode.
    status String
    Specifies the status of the DDM schema.

    GetDdmSchemasSchemaDataNode

    Id string
    Indicates the node ID of the associated RDS instance.
    Name string
    Specifies the name of the DDM schema.
    Status string
    Specifies the status of the DDM schema.
    Id string
    Indicates the node ID of the associated RDS instance.
    Name string
    Specifies the name of the DDM schema.
    Status string
    Specifies the status of the DDM schema.
    id String
    Indicates the node ID of the associated RDS instance.
    name String
    Specifies the name of the DDM schema.
    status String
    Specifies the status of the DDM schema.
    id string
    Indicates the node ID of the associated RDS instance.
    name string
    Specifies the name of the DDM schema.
    status string
    Specifies the status of the DDM schema.
    id str
    Indicates the node ID of the associated RDS instance.
    name str
    Specifies the name of the DDM schema.
    status str
    Specifies the status of the DDM schema.
    id String
    Indicates the node ID of the associated RDS instance.
    name String
    Specifies the name of the DDM schema.
    status String
    Specifies the status of the DDM schema.

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud