ClientUserArgs

data class ClientUserArgs(val bandwidth: Output<Int>? = null, val clientIp: Output<String>? = null, val kmsEncryptedPassword: Output<String>? = null, val kmsEncryptionContext: Output<Map<String, String>>? = null, val password: Output<String>? = null, val sagId: Output<String>? = null, val userMail: Output<String>? = null, val userName: Output<String>? = null) : ConvertibleToJava<ClientUserArgs>

Provides a Sag ClientUser resource. This topic describes how to manage accounts as an administrator. After you configure the network, you can create multiple accounts and distribute them to end users so that clients can access Alibaba Cloud. For information about Sag ClientUser and how to use it, see What is Sag ClientUser.

NOTE: Available since v1.65.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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const sagId = config.get("sagId") || "sag-9bifkfaz4fg***";
const _default = new alicloud.sag.ClientUser("default", {
sagId: sagId,
bandwidth: 20,
userMail: "tf-example@abc.com",
userName: name,
password: "example1234",
clientIp: "192.1.10.0",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-example"
sag_id = config.get("sagId")
if sag_id is None:
sag_id = "sag-9bifkfaz4fg***"
default = alicloud.sag.ClientUser("default",
sag_id=sag_id,
bandwidth=20,
user_mail="tf-example@abc.com",
user_name=name,
password="example1234",
client_ip="192.1.10.0")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-example";
var sagId = config.Get("sagId") ?? "sag-9bifkfaz4fg***";
var @default = new AliCloud.Sag.ClientUser("default", new()
{
SagId = sagId,
Bandwidth = 20,
UserMail = "tf-example@abc.com",
UserName = name,
Password = "example1234",
ClientIp = "192.1.10.0",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-example"
if param := cfg.Get("name"); param != "" {
name = param
}
sagId := "sag-9bifkfaz4fg***"
if param := cfg.Get("sagId"); param != "" {
sagId = param
}
_, err := sag.NewClientUser(ctx, "default", &sag.ClientUserArgs{
SagId: pulumi.String(sagId),
Bandwidth: pulumi.Int(20),
UserMail: pulumi.String("tf-example@abc.com"),
UserName: pulumi.String(name),
Password: pulumi.String("example1234"),
ClientIp: pulumi.String("192.1.10.0"),
})
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.sag.ClientUser;
import com.pulumi.alicloud.sag.ClientUserArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var sagId = config.get("sagId").orElse("sag-9bifkfaz4fg***");
var default_ = new ClientUser("default", ClientUserArgs.builder()
.sagId(sagId)
.bandwidth(20)
.userMail("tf-example@abc.com")
.userName(name)
.password("example1234")
.clientIp("192.1.10.0")
.build());
}
}
configuration:
name:
type: string
default: tf-example
sagId:
type: string
default: sag-9bifkfaz4fg***
resources:
default:
type: alicloud:sag:ClientUser
properties:
sagId: ${sagId}
bandwidth: '20'
userMail: tf-example@abc.com
userName: ${name}
password: example1234
clientIp: 192.1.10.0

Import

The Sag ClientUser can be imported using the name, e.g.

$ pulumi import alicloud:sag/clientUser:ClientUser example sag-abc123456:tf-username-abc123456

Constructors

Link copied to clipboard
constructor(bandwidth: Output<Int>? = null, clientIp: Output<String>? = null, kmsEncryptedPassword: Output<String>? = null, kmsEncryptionContext: Output<Map<String, String>>? = null, password: Output<String>? = null, sagId: Output<String>? = null, userMail: Output<String>? = null, userName: Output<String>? = null)

Properties

Link copied to clipboard
val bandwidth: Output<Int>? = null

The SAG APP bandwidth that the user can use. Unit: Kbit/s. Maximum value: 2000 Kbit/s.

Link copied to clipboard
val clientIp: Output<String>? = null

The IP address of the SAG APP. If you specify this parameter, the current account always uses the specified IP address.Note The IP address must be in the private CIDR block of the SAG client.If you do not specify this parameter, the system automatically allocates an IP address from the private CIDR block of the SAG client. In this case, each re-connection uses a different IP address.

Link copied to clipboard
val kmsEncryptedPassword: Output<String>? = null

The password of the KMS Encryption.

Link copied to clipboard
val kmsEncryptionContext: Output<Map<String, String>>? = null

The context of the KMS Encryption.

Link copied to clipboard
val password: Output<String>? = null

The password used to log on to the SAG APP.Both the user name and the password must be specified. If you specify the user name, the password must be specified, too.

Link copied to clipboard
val sagId: Output<String>? = null

The ID of the SAG instance created for the SAG APP.

Link copied to clipboard
val userMail: Output<String>? = null

The email address of the user. The administrator uses this address to send the account information for logging on to the APP to the user.

Link copied to clipboard
val userName: Output<String>? = null

The user name. User names in the same SAG APP must be unique.Both the user name and the password must be specified. If you specify the user name, the password must be specified, too.

Functions

Link copied to clipboard
open override fun toJava(): ClientUserArgs