com.pulumi.alicloud.mse.Cluster 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.mse;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.mse.ClusterArgs;
import com.pulumi.alicloud.mse.inputs.ClusterState;
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.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* ## Import
*
* MSE Cluster can be imported using the id, e.g.
*
* ```sh
* $ pulumi import alicloud:mse/cluster:Cluster example mse-cn-0d9xxxx
* ```
*
*/
@ResourceType(type="alicloud:mse/cluster:Cluster")
public class Cluster extends com.pulumi.resources.CustomResource {
/**
* The whitelist. **NOTE:** This attribute is invalid when the value of `pub_network_flow` is `0` and the value of `net_type` is `privatenet`.
*
*/
@Export(name="aclEntryLists", refs={List.class,String.class}, tree="[0,1]")
private Output> aclEntryLists;
/**
* @return The whitelist. **NOTE:** This attribute is invalid when the value of `pub_network_flow` is `0` and the value of `net_type` is `privatenet`.
*
*/
public Output>> aclEntryLists() {
return Codegen.optional(this.aclEntryLists);
}
/**
* (Available in v1.205.0+) The application version.
*
*/
@Export(name="appVersion", refs={String.class}, tree="[0]")
private Output appVersion;
/**
* @return (Available in v1.205.0+) The application version.
*
*/
public Output appVersion() {
return this.appVersion;
}
/**
* The alias of MSE Cluster.
*
*/
@Export(name="clusterAliasName", refs={String.class}, tree="[0]")
private Output clusterAliasName;
/**
* @return The alias of MSE Cluster.
*
*/
public Output> clusterAliasName() {
return Codegen.optional(this.clusterAliasName);
}
/**
* (Available in v1.162.0+) The id of Cluster.
*
*/
@Export(name="clusterId", refs={String.class}, tree="[0]")
private Output clusterId;
/**
* @return (Available in v1.162.0+) The id of Cluster.
*
*/
public Output clusterId() {
return this.clusterId;
}
/**
* The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `cluster_specification` can be modified. Valid values:
* - `MSE_SC_1_2_60_c`: 1C2G
* - `MSE_SC_2_4_60_c`: 2C4G
* - `MSE_SC_4_8_60_c`: 4C8G
* - `MSE_SC_8_16_60_c`: 8C16G
*
*/
@Export(name="clusterSpecification", refs={String.class}, tree="[0]")
private Output clusterSpecification;
/**
* @return The engine specification of MSE Cluster. **NOTE:** From version 1.188.0, `cluster_specification` can be modified. Valid values:
* - `MSE_SC_1_2_60_c`: 1C2G
* - `MSE_SC_2_4_60_c`: 2C4G
* - `MSE_SC_4_8_60_c`: 4C8G
* - `MSE_SC_8_16_60_c`: 8C16G
*
*/
public Output clusterSpecification() {
return this.clusterSpecification;
}
/**
* The type of MSE Cluster.
*
*/
@Export(name="clusterType", refs={String.class}, tree="[0]")
private Output clusterType;
/**
* @return The type of MSE Cluster.
*
*/
public Output clusterType() {
return this.clusterType;
}
/**
* The version of MSE Cluster. See [details](https://www.alibabacloud.com/help/en/mse/developer-reference/api-mse-2019-05-31-createcluster)
*
*/
@Export(name="clusterVersion", refs={String.class}, tree="[0]")
private Output clusterVersion;
/**
* @return The version of MSE Cluster. See [details](https://www.alibabacloud.com/help/en/mse/developer-reference/api-mse-2019-05-31-createcluster)
*
*/
public Output clusterVersion() {
return this.clusterVersion;
}
/**
* The connection type. Valid values: `slb`.
*
*/
@Export(name="connectionType", refs={String.class}, tree="[0]")
private Output connectionType;
/**
* @return The connection type. Valid values: `slb`.
*
*/
public Output connectionType() {
return this.connectionType;
}
/**
* The type of Disk.
*
*/
@Export(name="diskType", refs={String.class}, tree="[0]")
private Output diskType;
/**
* @return The type of Disk.
*
*/
public Output> diskType() {
return Codegen.optional(this.diskType);
}
/**
* The count of instance. **NOTE:** From version 1.188.0, `instance_count` can be modified.
*
*/
@Export(name="instanceCount", refs={Integer.class}, tree="[0]")
private Output instanceCount;
/**
* @return The count of instance. **NOTE:** From version 1.188.0, `instance_count` can be modified.
*
*/
public Output instanceCount() {
return this.instanceCount;
}
/**
* The version of MSE. Valid values: `mse_dev` or `mse_pro`.
*
*/
@Export(name="mseVersion", refs={String.class}, tree="[0]")
private Output mseVersion;
/**
* @return The version of MSE. Valid values: `mse_dev` or `mse_pro`.
*
*/
public Output mseVersion() {
return this.mseVersion;
}
/**
* The type of network. Valid values: "privatenet" and "pubnet".
*
*/
@Export(name="netType", refs={String.class}, tree="[0]")
private Output netType;
/**
* @return The type of network. Valid values: "privatenet" and "pubnet".
*
*/
public Output netType() {
return this.netType;
}
/**
* Payment type: Subscription (prepaid), PayAsYouGo (postpaid). Default PayAsYouGo.
*
*/
@Export(name="paymentType", refs={String.class}, tree="[0]")
private Output paymentType;
/**
* @return Payment type: Subscription (prepaid), PayAsYouGo (postpaid). Default PayAsYouGo.
*
*/
public Output paymentType() {
return this.paymentType;
}
/**
* The specification of private network SLB.
*
*/
@Export(name="privateSlbSpecification", refs={String.class}, tree="[0]")
private Output privateSlbSpecification;
/**
* @return The specification of private network SLB.
*
*/
public Output> privateSlbSpecification() {
return Codegen.optional(this.privateSlbSpecification);
}
/**
* The public network bandwidth. `0` means no access to the public network.
*
*/
@Export(name="pubNetworkFlow", refs={String.class}, tree="[0]")
private Output pubNetworkFlow;
/**
* @return The public network bandwidth. `0` means no access to the public network.
*
*/
public Output pubNetworkFlow() {
return this.pubNetworkFlow;
}
/**
* The specification of public network SLB.
*
*/
@Export(name="pubSlbSpecification", refs={String.class}, tree="[0]")
private Output pubSlbSpecification;
/**
* @return The specification of public network SLB.
*
*/
public Output> pubSlbSpecification() {
return Codegen.optional(this.pubSlbSpecification);
}
/**
* The extended request parameters in the JSON format.
*
*/
@Export(name="requestPars", refs={String.class}, tree="[0]")
private Output requestPars;
/**
* @return The extended request parameters in the JSON format.
*
*/
public Output> requestPars() {
return Codegen.optional(this.requestPars);
}
/**
* The resource group of the resource.
*
*/
@Export(name="resourceGroupId", refs={String.class}, tree="[0]")
private Output resourceGroupId;
/**
* @return The resource group of the resource.
*
*/
public Output resourceGroupId() {
return this.resourceGroupId;
}
/**
* The status of MSE Cluster.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return The status of MSE Cluster.
*
*/
public Output status() {
return this.status;
}
/**
* The tag of the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class,Object.class}, tree="[0,1,2]")
private Output> tags;
/**
* @return The tag of the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The id of the VPC.
*
*/
@Export(name="vpcId", refs={String.class}, tree="[0]")
private Output vpcId;
/**
* @return The id of the VPC.
*
*/
public Output vpcId() {
return this.vpcId;
}
/**
* The id of VSwitch.
*
*/
@Export(name="vswitchId", refs={String.class}, tree="[0]")
private Output vswitchId;
/**
* @return The id of VSwitch.
*
*/
public Output> vswitchId() {
return Codegen.optional(this.vswitchId);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Cluster(String name) {
this(name, ClusterArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Cluster(String name, ClusterArgs 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 Cluster(String name, ClusterArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:mse/cluster:Cluster", name, args == null ? ClusterArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
}
private Cluster(String name, Output id, @Nullable ClusterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("alicloud:mse/cluster:Cluster", name, state, makeResourceOptions(options, id));
}
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 Cluster get(String name, Output id, @Nullable ClusterState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Cluster(name, id, state, options);
}
}