com.pulumi.alicloud.rocketmq.kotlin.QosArgs.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.rocketmq.kotlin
import com.pulumi.alicloud.rocketmq.QosArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a Sag Qos resource. Smart Access Gateway (SAG) supports quintuple-based QoS functions to differentiate traffic of different services and ensure high-priority traffic bandwidth.
* For information about Sag Qos and how to use it, see [What is Qos](https://www.alibabacloud.com/help/en/smart-access-gateway/latest/createqos).
* > **NOTE:** Available since v1.60.0.
* > **NOTE:** Only the following regions support. [`cn-shanghai`, `cn-shanghai-finance-1`, `cn-hongkong`, `ap-southeast-1`, `ap-southeast-3`, `ap-southeast-5`, `ap-northeast-1`, `eu-central-1`]
* ## Example Usage
* Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as alicloud from "@pulumi/alicloud";
* const _default = new alicloud.rocketmq.Qos("default", {name: "terraform-example"});
* ```
* ```python
* import pulumi
* import pulumi_alicloud as alicloud
* default = alicloud.rocketmq.Qos("default", name="terraform-example")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AliCloud = Pulumi.AliCloud;
* return await Deployment.RunAsync(() =>
* {
* var @default = new AliCloud.RocketMQ.Qos("default", new()
* {
* Name = "terraform-example",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rocketmq"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := rocketmq.NewQos(ctx, "default", &rocketmq.QosArgs{
* Name: pulumi.String("terraform-example"),
* })
* 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.rocketmq.Qos;
* import com.pulumi.alicloud.rocketmq.QosArgs;
* 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 Qos("default", QosArgs.builder()
* .name("terraform-example")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* default:
* type: alicloud:rocketmq:Qos
* properties:
* name: terraform-example
* ```
*
* ## Import
* The Sag Qos can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:rocketmq/qos:Qos example qos-abc123456
* ```
* @property name The name of the QoS policy to be created. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*/
public data class QosArgs(
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.rocketmq.QosArgs =
com.pulumi.alicloud.rocketmq.QosArgs.builder()
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [QosArgs].
*/
@PulumiTagMarker
public class QosArgsBuilder internal constructor() {
private var name: Output? = null
/**
* @param value The name of the QoS policy to be created. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*/
@JvmName("ogkqdvgbixohiymb")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the QoS policy to be created. The name can contain 2 to 128 characters including a-z, A-Z, 0-9, periods, underlines, and hyphens. The name must start with an English letter, but cannot start with http:// or https://.
*/
@JvmName("jujxinsduuuvlofx")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): QosArgs = QosArgs(
name = name,
)
}