com.pulumi.alicloud.sddp.kotlin.InstanceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.alicloud.sddp.kotlin
import com.pulumi.alicloud.sddp.InstanceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a Data Security Center Instance resource.
* For information about Data Security Center Instance and how to use it, see [What is Instance](https://help.aliyun.com/product/88674.html).
* > **NOTE:** Available in v1.136.0+.
* > **NOTE:** The Data Security Center Instance is not support in the international site.
* ## Example Usage
* Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as alicloud from "@pulumi/alicloud";
* const _default = new alicloud.sddp.Instance("default", {
* paymentType: "Subscription",
* sddpVersion: "version_company",
* sdCbool: "yes",
* period: 1,
* sdc: "3",
* udCbool: "yes",
* udc: "2000",
* dataphin: "yes",
* });
* ```
* ```python
* import pulumi
* import pulumi_alicloud as alicloud
* default = alicloud.sddp.Instance("default",
* payment_type="Subscription",
* sddp_version="version_company",
* sd_cbool="yes",
* period=1,
* sdc="3",
* ud_cbool="yes",
* udc="2000",
* dataphin="yes")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AliCloud = Pulumi.AliCloud;
* return await Deployment.RunAsync(() =>
* {
* var @default = new AliCloud.Sddp.Instance("default", new()
* {
* PaymentType = "Subscription",
* SddpVersion = "version_company",
* SdCbool = "yes",
* Period = 1,
* Sdc = "3",
* UdCbool = "yes",
* Udc = "2000",
* Dataphin = "yes",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sddp"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := sddp.NewInstance(ctx, "default", &sddp.InstanceArgs{
* PaymentType: pulumi.String("Subscription"),
* SddpVersion: pulumi.String("version_company"),
* SdCbool: pulumi.String("yes"),
* Period: pulumi.Int(1),
* Sdc: pulumi.String("3"),
* UdCbool: pulumi.String("yes"),
* Udc: pulumi.String("2000"),
* Dataphin: pulumi.String("yes"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.sddp.Instance;
* import com.pulumi.alicloud.sddp.InstanceArgs;
* 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 Instance("default", InstanceArgs.builder()
* .paymentType("Subscription")
* .sddpVersion("version_company")
* .sdCbool("yes")
* .period("1")
* .sdc("3")
* .udCbool("yes")
* .udc("2000")
* .dataphin("yes")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: alicloud:sddp:Instance
* properties:
* paymentType: Subscription
* sddpVersion: version_company
* sdCbool: yes
* period: '1'
* sdc: '3'
* udCbool: yes
* udc: '2000'
* dataphin: yes
* ```
*
* ## Import
* Data Security Center Instance can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:sddp/instance:Instance example
* ```
* @property dataphin The dataphin. Valid values: `yes`,`no`.
* @property dataphinCount The dataphin count. Valid values: 1 to 20.
* @property logistics The logistics.
* @property modifyType The modify type. Valid values: `Upgrade`, `Downgrade`. **NOTE:** The `modify_type` is required when you execute a update operation.
* @property ossSize The OSS storage capacity.
* @property paymentType The payment type of the resource. Valid values: `Subscription`.
* @property period The Prepaid period. Valid values: `1`, `2`, `3`, `6`,`12`,`24`.
* @property renewPeriod Automatic renewal period. **NOTE:** The `renew_period` is required under the condition that renewal_status is `AutoRenewal`,
* @property renewalStatus Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
* @property sdCbool Whether to use the database. Valid values:`yes`,`no`.
* @property sdc The number of instances.
* @property sddpVersion The sddp version. Valid values: `version_audit`,`version_company`,`version_dlp`.
* @property udCbool Whether to use OSS. Valid values: `yes`,`no`.
* @property udc OSS Size.
*/
public data class InstanceArgs(
public val dataphin: Output? = null,
public val dataphinCount: Output? = null,
public val logistics: Output? = null,
public val modifyType: Output? = null,
public val ossSize: Output? = null,
public val paymentType: Output? = null,
public val period: Output? = null,
public val renewPeriod: Output? = null,
public val renewalStatus: Output? = null,
public val sdCbool: Output? = null,
public val sdc: Output? = null,
public val sddpVersion: Output? = null,
public val udCbool: Output? = null,
public val udc: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.sddp.InstanceArgs =
com.pulumi.alicloud.sddp.InstanceArgs.builder()
.dataphin(dataphin?.applyValue({ args0 -> args0 }))
.dataphinCount(dataphinCount?.applyValue({ args0 -> args0 }))
.logistics(logistics?.applyValue({ args0 -> args0 }))
.modifyType(modifyType?.applyValue({ args0 -> args0 }))
.ossSize(ossSize?.applyValue({ args0 -> args0 }))
.paymentType(paymentType?.applyValue({ args0 -> args0 }))
.period(period?.applyValue({ args0 -> args0 }))
.renewPeriod(renewPeriod?.applyValue({ args0 -> args0 }))
.renewalStatus(renewalStatus?.applyValue({ args0 -> args0 }))
.sdCbool(sdCbool?.applyValue({ args0 -> args0 }))
.sdc(sdc?.applyValue({ args0 -> args0 }))
.sddpVersion(sddpVersion?.applyValue({ args0 -> args0 }))
.udCbool(udCbool?.applyValue({ args0 -> args0 }))
.udc(udc?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceArgs].
*/
@PulumiTagMarker
public class InstanceArgsBuilder internal constructor() {
private var dataphin: Output? = null
private var dataphinCount: Output? = null
private var logistics: Output? = null
private var modifyType: Output? = null
private var ossSize: Output? = null
private var paymentType: Output? = null
private var period: Output? = null
private var renewPeriod: Output? = null
private var renewalStatus: Output? = null
private var sdCbool: Output? = null
private var sdc: Output? = null
private var sddpVersion: Output? = null
private var udCbool: Output? = null
private var udc: Output? = null
/**
* @param value The dataphin. Valid values: `yes`,`no`.
*/
@JvmName("eytthafjcnsofsjd")
public suspend fun dataphin(`value`: Output) {
this.dataphin = value
}
/**
* @param value The dataphin count. Valid values: 1 to 20.
*/
@JvmName("gexomfbtyipyajuk")
public suspend fun dataphinCount(`value`: Output) {
this.dataphinCount = value
}
/**
* @param value The logistics.
*/
@JvmName("itkqypssuqufgchj")
public suspend fun logistics(`value`: Output) {
this.logistics = value
}
/**
* @param value The modify type. Valid values: `Upgrade`, `Downgrade`. **NOTE:** The `modify_type` is required when you execute a update operation.
*/
@JvmName("lxryntryggpmpqvp")
public suspend fun modifyType(`value`: Output) {
this.modifyType = value
}
/**
* @param value The OSS storage capacity.
*/
@JvmName("pjwwproltsswawlb")
public suspend fun ossSize(`value`: Output) {
this.ossSize = value
}
/**
* @param value The payment type of the resource. Valid values: `Subscription`.
*/
@JvmName("dustmitwpklnqlkt")
public suspend fun paymentType(`value`: Output) {
this.paymentType = value
}
/**
* @param value The Prepaid period. Valid values: `1`, `2`, `3`, `6`,`12`,`24`.
*/
@JvmName("tvucpaetrcqbjmdt")
public suspend fun period(`value`: Output) {
this.period = value
}
/**
* @param value Automatic renewal period. **NOTE:** The `renew_period` is required under the condition that renewal_status is `AutoRenewal`,
*/
@JvmName("tanqjcucyrvtutco")
public suspend fun renewPeriod(`value`: Output) {
this.renewPeriod = value
}
/**
* @param value Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
*/
@JvmName("vlgtdagncdcufchr")
public suspend fun renewalStatus(`value`: Output) {
this.renewalStatus = value
}
/**
* @param value Whether to use the database. Valid values:`yes`,`no`.
*/
@JvmName("fyxdbmxfxdqhknpd")
public suspend fun sdCbool(`value`: Output) {
this.sdCbool = value
}
/**
* @param value The number of instances.
*/
@JvmName("lhhfeeglchersbla")
public suspend fun sdc(`value`: Output) {
this.sdc = value
}
/**
* @param value The sddp version. Valid values: `version_audit`,`version_company`,`version_dlp`.
*/
@JvmName("tdwrlmsghdusofvi")
public suspend fun sddpVersion(`value`: Output) {
this.sddpVersion = value
}
/**
* @param value Whether to use OSS. Valid values: `yes`,`no`.
*/
@JvmName("jthqtujxsclwtwke")
public suspend fun udCbool(`value`: Output) {
this.udCbool = value
}
/**
* @param value OSS Size.
*/
@JvmName("cifsmprjjccrwuce")
public suspend fun udc(`value`: Output) {
this.udc = value
}
/**
* @param value The dataphin. Valid values: `yes`,`no`.
*/
@JvmName("eirqekjlpdayuqqn")
public suspend fun dataphin(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataphin = mapped
}
/**
* @param value The dataphin count. Valid values: 1 to 20.
*/
@JvmName("vanpbdufxndwclce")
public suspend fun dataphinCount(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataphinCount = mapped
}
/**
* @param value The logistics.
*/
@JvmName("tudabupmtcwectuk")
public suspend fun logistics(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logistics = mapped
}
/**
* @param value The modify type. Valid values: `Upgrade`, `Downgrade`. **NOTE:** The `modify_type` is required when you execute a update operation.
*/
@JvmName("nguomjbshlrndkfm")
public suspend fun modifyType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.modifyType = mapped
}
/**
* @param value The OSS storage capacity.
*/
@JvmName("nihdeqbnjuitpqxj")
public suspend fun ossSize(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ossSize = mapped
}
/**
* @param value The payment type of the resource. Valid values: `Subscription`.
*/
@JvmName("qneyflhuiwarquoj")
public suspend fun paymentType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.paymentType = mapped
}
/**
* @param value The Prepaid period. Valid values: `1`, `2`, `3`, `6`,`12`,`24`.
*/
@JvmName("xrdogqhjngwfpsqb")
public suspend fun period(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.period = mapped
}
/**
* @param value Automatic renewal period. **NOTE:** The `renew_period` is required under the condition that renewal_status is `AutoRenewal`,
*/
@JvmName("aqhpitexqedkcyhs")
public suspend fun renewPeriod(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.renewPeriod = mapped
}
/**
* @param value Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
*/
@JvmName("hsvmgfgcqqpiwngl")
public suspend fun renewalStatus(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.renewalStatus = mapped
}
/**
* @param value Whether to use the database. Valid values:`yes`,`no`.
*/
@JvmName("kceekvrsmcjyjqwh")
public suspend fun sdCbool(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sdCbool = mapped
}
/**
* @param value The number of instances.
*/
@JvmName("jgwfurnqheoeqnhb")
public suspend fun sdc(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sdc = mapped
}
/**
* @param value The sddp version. Valid values: `version_audit`,`version_company`,`version_dlp`.
*/
@JvmName("pakjluchhwwptxmw")
public suspend fun sddpVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sddpVersion = mapped
}
/**
* @param value Whether to use OSS. Valid values: `yes`,`no`.
*/
@JvmName("wxqlgcjyjlqctbps")
public suspend fun udCbool(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.udCbool = mapped
}
/**
* @param value OSS Size.
*/
@JvmName("vslsqqcioslmjjmu")
public suspend fun udc(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.udc = mapped
}
internal fun build(): InstanceArgs = InstanceArgs(
dataphin = dataphin,
dataphinCount = dataphinCount,
logistics = logistics,
modifyType = modifyType,
ossSize = ossSize,
paymentType = paymentType,
period = period,
renewPeriod = renewPeriod,
renewalStatus = renewalStatus,
sdCbool = sdCbool,
sdc = sdc,
sddpVersion = sddpVersion,
udCbool = udCbool,
udc = udc,
)
}