com.pulumi.alicloud.dms.EnterpriseLogicDatabase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.dms;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.dms.EnterpriseLogicDatabaseArgs;
import com.pulumi.alicloud.dms.inputs.EnterpriseLogicDatabaseState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* Provides a DMS Enterprise Logic Database resource.
*
* For information about DMS Enterprise Logic Database and how to use it, see [What is Logic Database](https://www.alibabacloud.com/help/en/dms/developer-reference/api-dms-enterprise-2018-11-01-createlogicdatabase).
*
* > **NOTE:** Available in v1.195.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* DMS Enterprise Logic Database can be imported using the id, e.g.
*
* ```sh
* $ pulumi import alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase example <id>
* ```
*
*/
@ResourceType(type="alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase")
public class EnterpriseLogicDatabase extends com.pulumi.resources.CustomResource {
/**
* Logical Library alias.
*
*/
@Export(name="alias", refs={String.class}, tree="[0]")
private Output alias;
/**
* @return Logical Library alias.
*
*/
public Output alias() {
return this.alias;
}
/**
* Sub-Database ID
*
*/
@Export(name="databaseIds", refs={List.class,String.class}, tree="[0,1]")
private Output> databaseIds;
/**
* @return Sub-Database ID
*
*/
public Output> databaseIds() {
return this.databaseIds;
}
/**
* Database type.
*
*/
@Export(name="dbType", refs={String.class}, tree="[0]")
private Output dbType;
/**
* @return Database type.
*
*/
public Output dbType() {
return this.dbType;
}
/**
* 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
*
*/
@Export(name="envType", refs={String.class}, tree="[0]")
private Output envType;
/**
* @return 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
*
*/
public Output envType() {
return this.envType;
}
/**
* Whether it is a logical Library, the return value is true.
*
*/
@Export(name="logic", refs={Boolean.class}, tree="[0]")
private Output logic;
/**
* @return Whether it is a logical Library, the return value is true.
*
*/
public Output logic() {
return this.logic;
}
/**
* The ID of the logical Library.
*
*/
@Export(name="logicDatabaseId", refs={String.class}, tree="[0]")
private Output logicDatabaseId;
/**
* @return The ID of the logical Library.
*
*/
public Output logicDatabaseId() {
return this.logicDatabaseId;
}
/**
* The user ID list of the logical library Owner.
*
*/
@Export(name="ownerIdLists", refs={List.class,String.class}, tree="[0,1]")
private Output> ownerIdLists;
/**
* @return The user ID list of the logical library Owner.
*
*/
public Output> ownerIdLists() {
return this.ownerIdLists;
}
/**
* The nickname list of the logical library Owner.
*
*/
@Export(name="ownerNameLists", refs={List.class,String.class}, tree="[0,1]")
private Output> ownerNameLists;
/**
* @return The nickname list of the logical library Owner.
*
*/
public Output> ownerNameLists() {
return this.ownerNameLists;
}
/**
* Logical Library name.
*
*/
@Export(name="schemaName", refs={String.class}, tree="[0]")
private Output schemaName;
/**
* @return Logical Library name.
*
*/
public Output schemaName() {
return this.schemaName;
}
/**
* Logical library search name.
*
*/
@Export(name="searchName", refs={String.class}, tree="[0]")
private Output searchName;
/**
* @return Logical library search name.
*
*/
public Output searchName() {
return this.searchName;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public EnterpriseLogicDatabase(java.lang.String name) {
this(name, EnterpriseLogicDatabaseArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public EnterpriseLogicDatabase(java.lang.String name, EnterpriseLogicDatabaseArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public EnterpriseLogicDatabase(java.lang.String name, EnterpriseLogicDatabaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private EnterpriseLogicDatabase(java.lang.String name, Output id, @Nullable EnterpriseLogicDatabaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:dms/enterpriseLogicDatabase:EnterpriseLogicDatabase", name, state, makeResourceOptions(options, id), false);
}
private static EnterpriseLogicDatabaseArgs makeArgs(EnterpriseLogicDatabaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? EnterpriseLogicDatabaseArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static EnterpriseLogicDatabase get(java.lang.String name, Output id, @Nullable EnterpriseLogicDatabaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new EnterpriseLogicDatabase(name, id, state, options);
}
}