alicloud.dms.EnterpriseLogicDatabase
Explore with Pulumi AI
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
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 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
})
}
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());
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.dms.EnterpriseLogicDatabase("default",
alias="TF_logic_db_test",
database_ids=[
"35617919",
"35617920",
])
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",
],
});
resources:
default:
type: alicloud:dms:EnterpriseLogicDatabase
properties:
alias: TF_logic_db_test
databaseIds:
- '35617919'
- '35617920'
Create EnterpriseLogicDatabase Resource
new EnterpriseLogicDatabase(name: string, args: EnterpriseLogicDatabaseArgs, opts?: CustomResourceOptions);
@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)
@overload
def EnterpriseLogicDatabase(resource_name: str,
args: EnterpriseLogicDatabaseArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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.
- Database
Ids List<string> Sub-Database ID
- Logic
Database stringId The ID of the logical Library.
- Alias string
Logical Library alias.
- Database
Ids []string Sub-Database ID
- Logic
Database stringId The ID of the logical Library.
- alias String
Logical Library alias.
- database
Ids List<String> Sub-Database ID
- logic
Database StringId The ID of the logical Library.
- alias string
Logical Library alias.
- database
Ids string[] Sub-Database ID
- logic
Database stringId The ID of the logical Library.
- alias str
Logical Library alias.
- database_
ids Sequence[str] Sub-Database ID
- logic_
database_ strid The ID of the logical Library.
- alias String
Logical Library alias.
- database
Ids List<String> Sub-Database ID
- logic
Database StringId 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:
- Db
Type string Database type.
- Env
Type 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.
- Owner
Id List<string>Lists The user ID list of the logical library Owner.
- Owner
Name List<string>Lists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- Db
Type string Database type.
- Env
Type 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.
- Owner
Id []stringLists The user ID list of the logical library Owner.
- Owner
Name []stringLists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- db
Type String Database type.
- env
Type 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.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name String Logical library search name.
- db
Type string Database type.
- env
Type 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.
- owner
Id string[]Lists The user ID list of the logical library Owner.
- owner
Name string[]Lists The nickname list of the logical library Owner.
- schema
Name string Logical Library name.
- search
Name 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_ Sequence[str]lists The user ID list of the logical library Owner.
- owner_
name_ Sequence[str]lists The nickname list of the logical library Owner.
- schema_
name str Logical Library name.
- search_
name str Logical library search name.
- db
Type String Database type.
- env
Type 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.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name 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.
- Alias string
Logical Library alias.
- Database
Ids List<string> Sub-Database ID
- Db
Type string Database type.
- Env
Type 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.
- Logic
Database stringId The ID of the logical Library.
- Owner
Id List<string>Lists The user ID list of the logical library Owner.
- Owner
Name List<string>Lists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- Alias string
Logical Library alias.
- Database
Ids []string Sub-Database ID
- Db
Type string Database type.
- Env
Type 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.
- Logic
Database stringId The ID of the logical Library.
- Owner
Id []stringLists The user ID list of the logical library Owner.
- Owner
Name []stringLists The nickname list of the logical library Owner.
- Schema
Name string Logical Library name.
- Search
Name string Logical library search name.
- alias String
Logical Library alias.
- database
Ids List<String> Sub-Database ID
- db
Type String Database type.
- env
Type 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.
- logic
Database StringId The ID of the logical Library.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name String Logical library search name.
- alias string
Logical Library alias.
- database
Ids string[] Sub-Database ID
- db
Type string Database type.
- env
Type 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.
- logic
Database stringId The ID of the logical Library.
- owner
Id string[]Lists The user ID list of the logical library Owner.
- owner
Name string[]Lists The nickname list of the logical library Owner.
- schema
Name string Logical Library name.
- search
Name 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_ strid The ID of the logical Library.
- owner_
id_ Sequence[str]lists The user ID list of the logical library Owner.
- owner_
name_ Sequence[str]lists 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.
- database
Ids List<String> Sub-Database ID
- db
Type String Database type.
- env
Type 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.
- logic
Database StringId The ID of the logical Library.
- owner
Id List<String>Lists The user ID list of the logical library Owner.
- owner
Name List<String>Lists The nickname list of the logical library Owner.
- schema
Name String Logical Library name.
- search
Name 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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.