1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dms
  5. EnterpriseLogicDatabase
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

alicloud.dms.EnterpriseLogicDatabase

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

    Provides a DMS Enterprise Logic Database resource.

    For information about DMS Enterprise Logic Database and how to use it, see What is Logic Database.

    NOTE: Available in v1.195.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.dms.EnterpriseLogicDatabase("default", {
        alias: "TF_logic_db_test",
        databaseIds: [
            "35617919",
            "35617920",
        ],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.dms.EnterpriseLogicDatabase("default",
        alias="TF_logic_db_test",
        database_ids=[
            "35617919",
            "35617920",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dms.NewEnterpriseLogicDatabase(ctx, "default", &dms.EnterpriseLogicDatabaseArgs{
    			Alias: pulumi.String("TF_logic_db_test"),
    			DatabaseIds: pulumi.StringArray{
    				pulumi.String("35617919"),
    				pulumi.String("35617920"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Dms.EnterpriseLogicDatabase("default", new()
        {
            Alias = "TF_logic_db_test",
            DatabaseIds = new[]
            {
                "35617919",
                "35617920",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dms.EnterpriseLogicDatabase;
    import com.pulumi.alicloud.dms.EnterpriseLogicDatabaseArgs;
    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) {
            var default_ = new EnterpriseLogicDatabase("default", EnterpriseLogicDatabaseArgs.builder()
                .alias("TF_logic_db_test")
                .databaseIds(            
                    "35617919",
                    "35617920")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:dms:EnterpriseLogicDatabase
        properties:
          alias: TF_logic_db_test
          databaseIds:
            - '35617919'
            - '35617920'
    

    Create EnterpriseLogicDatabase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnterpriseLogicDatabase(name: string, args: EnterpriseLogicDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def EnterpriseLogicDatabase(resource_name: str,
                                args: EnterpriseLogicDatabaseArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnterpriseLogicDatabase(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                alias: Optional[str] = None,
                                database_ids: Optional[Sequence[str]] = None,
                                logic_database_id: Optional[str] = None)
    func NewEnterpriseLogicDatabase(ctx *Context, name string, args EnterpriseLogicDatabaseArgs, opts ...ResourceOption) (*EnterpriseLogicDatabase, error)
    public EnterpriseLogicDatabase(string name, EnterpriseLogicDatabaseArgs args, CustomResourceOptions? opts = null)
    public EnterpriseLogicDatabase(String name, EnterpriseLogicDatabaseArgs args)
    public EnterpriseLogicDatabase(String name, EnterpriseLogicDatabaseArgs args, CustomResourceOptions options)
    
    type: alicloud:dms:EnterpriseLogicDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EnterpriseLogicDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnterpriseLogicDatabaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnterpriseLogicDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnterpriseLogicDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnterpriseLogicDatabaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var enterpriseLogicDatabaseResource = new AliCloud.Dms.EnterpriseLogicDatabase("enterpriseLogicDatabaseResource", new()
    {
        Alias = "string",
        DatabaseIds = new[]
        {
            "string",
        },
        LogicDatabaseId = "string",
    });
    
    example, err := dms.NewEnterpriseLogicDatabase(ctx, "enterpriseLogicDatabaseResource", &dms.EnterpriseLogicDatabaseArgs{
    	Alias: pulumi.String("string"),
    	DatabaseIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LogicDatabaseId: pulumi.String("string"),
    })
    
    var enterpriseLogicDatabaseResource = new EnterpriseLogicDatabase("enterpriseLogicDatabaseResource", EnterpriseLogicDatabaseArgs.builder()
        .alias("string")
        .databaseIds("string")
        .logicDatabaseId("string")
        .build());
    
    enterprise_logic_database_resource = alicloud.dms.EnterpriseLogicDatabase("enterpriseLogicDatabaseResource",
        alias="string",
        database_ids=["string"],
        logic_database_id="string")
    
    const enterpriseLogicDatabaseResource = new alicloud.dms.EnterpriseLogicDatabase("enterpriseLogicDatabaseResource", {
        alias: "string",
        databaseIds: ["string"],
        logicDatabaseId: "string",
    });
    
    type: alicloud:dms:EnterpriseLogicDatabase
    properties:
        alias: string
        databaseIds:
            - string
        logicDatabaseId: string
    

    EnterpriseLogicDatabase Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EnterpriseLogicDatabase resource accepts the following input properties:

    Alias string
    Logical Library alias.
    DatabaseIds List<string>
    Sub-Database ID
    LogicDatabaseId string
    The ID of the logical Library.
    Alias string
    Logical Library alias.
    DatabaseIds []string
    Sub-Database ID
    LogicDatabaseId string
    The ID of the logical Library.
    alias String
    Logical Library alias.
    databaseIds List<String>
    Sub-Database ID
    logicDatabaseId String
    The ID of the logical Library.
    alias string
    Logical Library alias.
    databaseIds string[]
    Sub-Database ID
    logicDatabaseId string
    The ID of the logical Library.
    alias str
    Logical Library alias.
    database_ids Sequence[str]
    Sub-Database ID
    logic_database_id str
    The ID of the logical Library.
    alias String
    Logical Library alias.
    databaseIds List<String>
    Sub-Database ID
    logicDatabaseId String
    The ID of the logical Library.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnterpriseLogicDatabase resource produces the following output properties:

    DbType string
    Database type.
    EnvType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    Id string
    The provider-assigned unique ID for this managed resource.
    Logic bool
    Whether it is a logical Library, the return value is true.
    OwnerIdLists List<string>
    The user ID list of the logical library Owner.
    OwnerNameLists List<string>
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    DbType string
    Database type.
    EnvType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    Id string
    The provider-assigned unique ID for this managed resource.
    Logic bool
    Whether it is a logical Library, the return value is true.
    OwnerIdLists []string
    The user ID list of the logical library Owner.
    OwnerNameLists []string
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    dbType String
    Database type.
    envType String
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    id String
    The provider-assigned unique ID for this managed resource.
    logic Boolean
    Whether it is a logical Library, the return value is true.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName String
    Logical library search name.
    dbType string
    Database type.
    envType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    id string
    The provider-assigned unique ID for this managed resource.
    logic boolean
    Whether it is a logical Library, the return value is true.
    ownerIdLists string[]
    The user ID list of the logical library Owner.
    ownerNameLists string[]
    The nickname list of the logical library Owner.
    schemaName string
    Logical Library name.
    searchName string
    Logical library search name.
    db_type str
    Database type.
    env_type str
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    id str
    The provider-assigned unique ID for this managed resource.
    logic bool
    Whether it is a logical Library, the return value is true.
    owner_id_lists Sequence[str]
    The user ID list of the logical library Owner.
    owner_name_lists Sequence[str]
    The nickname list of the logical library Owner.
    schema_name str
    Logical Library name.
    search_name str
    Logical library search name.
    dbType String
    Database type.
    envType String
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    id String
    The provider-assigned unique ID for this managed resource.
    logic Boolean
    Whether it is a logical Library, the return value is true.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName String
    Logical library search name.

    Look up Existing EnterpriseLogicDatabase Resource

    Get an existing EnterpriseLogicDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EnterpriseLogicDatabaseState, opts?: CustomResourceOptions): EnterpriseLogicDatabase
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alias: Optional[str] = None,
            database_ids: Optional[Sequence[str]] = None,
            db_type: Optional[str] = None,
            env_type: Optional[str] = None,
            logic: Optional[bool] = None,
            logic_database_id: Optional[str] = None,
            owner_id_lists: Optional[Sequence[str]] = None,
            owner_name_lists: Optional[Sequence[str]] = None,
            schema_name: Optional[str] = None,
            search_name: Optional[str] = None) -> EnterpriseLogicDatabase
    func GetEnterpriseLogicDatabase(ctx *Context, name string, id IDInput, state *EnterpriseLogicDatabaseState, opts ...ResourceOption) (*EnterpriseLogicDatabase, error)
    public static EnterpriseLogicDatabase Get(string name, Input<string> id, EnterpriseLogicDatabaseState? state, CustomResourceOptions? opts = null)
    public static EnterpriseLogicDatabase get(String name, Output<String> id, EnterpriseLogicDatabaseState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Alias string
    Logical Library alias.
    DatabaseIds List<string>
    Sub-Database ID
    DbType string
    Database type.
    EnvType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    Logic bool
    Whether it is a logical Library, the return value is true.
    LogicDatabaseId string
    The ID of the logical Library.
    OwnerIdLists List<string>
    The user ID list of the logical library Owner.
    OwnerNameLists List<string>
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    Alias string
    Logical Library alias.
    DatabaseIds []string
    Sub-Database ID
    DbType string
    Database type.
    EnvType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    Logic bool
    Whether it is a logical Library, the return value is true.
    LogicDatabaseId string
    The ID of the logical Library.
    OwnerIdLists []string
    The user ID list of the logical library Owner.
    OwnerNameLists []string
    The nickname list of the logical library Owner.
    SchemaName string
    Logical Library name.
    SearchName string
    Logical library search name.
    alias String
    Logical Library alias.
    databaseIds List<String>
    Sub-Database ID
    dbType String
    Database type.
    envType String
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    logic Boolean
    Whether it is a logical Library, the return value is true.
    logicDatabaseId String
    The ID of the logical Library.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName String
    Logical library search name.
    alias string
    Logical Library alias.
    databaseIds string[]
    Sub-Database ID
    dbType string
    Database type.
    envType string
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    logic boolean
    Whether it is a logical Library, the return value is true.
    logicDatabaseId string
    The ID of the logical Library.
    ownerIdLists string[]
    The user ID list of the logical library Owner.
    ownerNameLists string[]
    The nickname list of the logical library Owner.
    schemaName string
    Logical Library name.
    searchName string
    Logical library search name.
    alias str
    Logical Library alias.
    database_ids Sequence[str]
    Sub-Database ID
    db_type str
    Database type.
    env_type str
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    logic bool
    Whether it is a logical Library, the return value is true.
    logic_database_id str
    The ID of the logical Library.
    owner_id_lists Sequence[str]
    The user ID list of the logical library Owner.
    owner_name_lists Sequence[str]
    The nickname list of the logical library Owner.
    schema_name str
    Logical Library name.
    search_name str
    Logical library search name.
    alias String
    Logical Library alias.
    databaseIds List<String>
    Sub-Database ID
    dbType String
    Database type.
    envType String
    Environment type, return value is as follows:-product: production environment-dev: development environment-pre: Advance Environment-test: test environment-sit:SIT environment-uat:UAT environment-pet: Pressure measurement environment-stag:STAG environment
    logic Boolean
    Whether it is a logical Library, the return value is true.
    logicDatabaseId String
    The ID of the logical Library.
    ownerIdLists List<String>
    The user ID list of the logical library Owner.
    ownerNameLists List<String>
    The nickname list of the logical library Owner.
    schemaName String
    Logical Library name.
    searchName String
    Logical library search name.

    Import

    DMS Enterprise Logic Database can be imported using the id, e.g.

    $ pulumi import alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi