opentelekomcloud.DmsUserV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DMS user you can get at documentation portal
Manages a DMS user for the OpenTelekomCloud DMS Service Instances (Kafka Premium/Platinum).
~> User management is supported only when SASL is enabled for the Kafka instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const user1 = new opentelekomcloud.DmsUserV2("user1", {
instanceId: instance_id,
username: "Test-user",
password: "Dmstest@123@",
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
user1 = opentelekomcloud.DmsUserV2("user1",
instance_id=instance_id,
username="Test-user",
password="Dmstest@123@")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"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, "")
instanceId := cfg.RequireObject("instanceId")
_, err := opentelekomcloud.NewDmsUserV2(ctx, "user1", &opentelekomcloud.DmsUserV2Args{
InstanceId: pulumi.Any(instance_id),
Username: pulumi.String("Test-user"),
Password: pulumi.String("Dmstest@123@"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var user1 = new Opentelekomcloud.DmsUserV2("user1", new()
{
InstanceId = instance_id,
Username = "Test-user",
Password = "Dmstest@123@",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DmsUserV2;
import com.pulumi.opentelekomcloud.DmsUserV2Args;
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 instanceId = config.get("instanceId");
var user1 = new DmsUserV2("user1", DmsUserV2Args.builder()
.instanceId(instance_id)
.username("Test-user")
.password("Dmstest@123@")
.build());
}
}
configuration:
instanceId:
type: dynamic
resources:
user1:
type: opentelekomcloud:DmsUserV2
properties:
instanceId: ${instance_id}
username: Test-user
password: Dmstest@123@
Create DmsUserV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DmsUserV2(name: string, args: DmsUserV2Args, opts?: CustomResourceOptions);
@overload
def DmsUserV2(resource_name: str,
args: DmsUserV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DmsUserV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
password: Optional[str] = None,
username: Optional[str] = None,
dms_user_v2_id: Optional[str] = None)
func NewDmsUserV2(ctx *Context, name string, args DmsUserV2Args, opts ...ResourceOption) (*DmsUserV2, error)
public DmsUserV2(string name, DmsUserV2Args args, CustomResourceOptions? opts = null)
public DmsUserV2(String name, DmsUserV2Args args)
public DmsUserV2(String name, DmsUserV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DmsUserV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DmsUserV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DmsUserV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DmsUserV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DmsUserV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DmsUserV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dmsUserV2Resource = new Opentelekomcloud.DmsUserV2("dmsUserV2Resource", new()
{
InstanceId = "string",
Password = "string",
Username = "string",
DmsUserV2Id = "string",
});
example, err := opentelekomcloud.NewDmsUserV2(ctx, "dmsUserV2Resource", &opentelekomcloud.DmsUserV2Args{
InstanceId: pulumi.String("string"),
Password: pulumi.String("string"),
Username: pulumi.String("string"),
DmsUserV2Id: pulumi.String("string"),
})
var dmsUserV2Resource = new DmsUserV2("dmsUserV2Resource", DmsUserV2Args.builder()
.instanceId("string")
.password("string")
.username("string")
.dmsUserV2Id("string")
.build());
dms_user_v2_resource = opentelekomcloud.DmsUserV2("dmsUserV2Resource",
instance_id="string",
password="string",
username="string",
dms_user_v2_id="string")
const dmsUserV2Resource = new opentelekomcloud.DmsUserV2("dmsUserV2Resource", {
instanceId: "string",
password: "string",
username: "string",
dmsUserV2Id: "string",
});
type: opentelekomcloud:DmsUserV2
properties:
dmsUserV2Id: string
instanceId: string
password: string
username: string
DmsUserV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DmsUserV2 resource accepts the following input properties:
- Instance
Id string - Indicates the ID of primary DMS instance.
- Password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - Username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- Dms
User stringV2Id
- Instance
Id string - Indicates the ID of primary DMS instance.
- Password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - Username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- Dms
User stringV2Id
- instance
Id String - Indicates the ID of primary DMS instance.
- password String
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - username String
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- dms
User StringV2Id
- instance
Id string - Indicates the ID of primary DMS instance.
- password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- dms
User stringV2Id
- instance_
id str - Indicates the ID of primary DMS instance.
- password str
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - username str
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- dms_
user_ strv2_ id
- instance
Id String - Indicates the ID of primary DMS instance.
- password String
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - username String
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- dms
User StringV2Id
Outputs
All input properties are implicitly available as output properties. Additionally, the DmsUserV2 resource produces the following output properties:
- Creation
Time double - Specifies the time when a user was created.
- Default
App bool - Specifies whether an application is the default application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role string
- Specifies user role.
- Creation
Time float64 - Specifies the time when a user was created.
- Default
App bool - Specifies whether an application is the default application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Role string
- Specifies user role.
- creation
Time Double - Specifies the time when a user was created.
- default
App Boolean - Specifies whether an application is the default application.
- id String
- The provider-assigned unique ID for this managed resource.
- role String
- Specifies user role.
- creation
Time number - Specifies the time when a user was created.
- default
App boolean - Specifies whether an application is the default application.
- id string
- The provider-assigned unique ID for this managed resource.
- role string
- Specifies user role.
- creation_
time float - Specifies the time when a user was created.
- default_
app bool - Specifies whether an application is the default application.
- id str
- The provider-assigned unique ID for this managed resource.
- role str
- Specifies user role.
- creation
Time Number - Specifies the time when a user was created.
- default
App Boolean - Specifies whether an application is the default application.
- id String
- The provider-assigned unique ID for this managed resource.
- role String
- Specifies user role.
Look up Existing DmsUserV2 Resource
Get an existing DmsUserV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DmsUserV2State, opts?: CustomResourceOptions): DmsUserV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
creation_time: Optional[float] = None,
default_app: Optional[bool] = None,
dms_user_v2_id: Optional[str] = None,
instance_id: Optional[str] = None,
password: Optional[str] = None,
role: Optional[str] = None,
username: Optional[str] = None) -> DmsUserV2
func GetDmsUserV2(ctx *Context, name string, id IDInput, state *DmsUserV2State, opts ...ResourceOption) (*DmsUserV2, error)
public static DmsUserV2 Get(string name, Input<string> id, DmsUserV2State? state, CustomResourceOptions? opts = null)
public static DmsUserV2 get(String name, Output<String> id, DmsUserV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DmsUserV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Creation
Time double - Specifies the time when a user was created.
- Default
App bool - Specifies whether an application is the default application.
- Dms
User stringV2Id - Instance
Id string - Indicates the ID of primary DMS instance.
- Password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - Role string
- Specifies user role.
- Username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- Creation
Time float64 - Specifies the time when a user was created.
- Default
App bool - Specifies whether an application is the default application.
- Dms
User stringV2Id - Instance
Id string - Indicates the ID of primary DMS instance.
- Password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - Role string
- Specifies user role.
- Username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- creation
Time Double - Specifies the time when a user was created.
- default
App Boolean - Specifies whether an application is the default application.
- dms
User StringV2Id - instance
Id String - Indicates the ID of primary DMS instance.
- password String
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - role String
- Specifies user role.
- username String
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- creation
Time number - Specifies the time when a user was created.
- default
App boolean - Specifies whether an application is the default application.
- dms
User stringV2Id - instance
Id string - Indicates the ID of primary DMS instance.
- password string
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - role string
- Specifies user role.
- username string
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- creation_
time float - Specifies the time when a user was created.
- default_
app bool - Specifies whether an application is the default application.
- dms_
user_ strv2_ id - instance_
id str - Indicates the ID of primary DMS instance.
- password str
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - role str
- Specifies user role.
- username str
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
- creation
Time Number - Specifies the time when a user was created.
- default
App Boolean - Specifies whether an application is the default application.
- dms
User StringV2Id - instance
Id String - Indicates the ID of primary DMS instance.
- password String
- Indicates the password of an instance. An instance password
must meet the following complexity requirements: Must be 8 to 32 characters long.
Must contain at least 2 of the following character types: lowercase letters, uppercase
letters, digits, and special characters (
~!@#$%^&*()-_=+\|[{}]:'",<.>/?
). - role String
- Specifies user role.
- username String
- Indicates a username. A username consists of 4 to 64 characters and supports only letters, digits, and hyphens (-).
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.