tencentcloud.CkafkaUser
Explore with Pulumi AI
Provides a resource to create a Ckafka user.
Example Usage
Ckafka User
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.CkafkaUser("foo", {
accountName: "tf-test",
instanceId: "ckafka-f9ife4zz",
password: "test1234",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.CkafkaUser("foo",
account_name="tf-test",
instance_id="ckafka-f9ife4zz",
password="test1234")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCkafkaUser(ctx, "foo", &tencentcloud.CkafkaUserArgs{
AccountName: pulumi.String("tf-test"),
InstanceId: pulumi.String("ckafka-f9ife4zz"),
Password: pulumi.String("test1234"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var foo = new Tencentcloud.CkafkaUser("foo", new()
{
AccountName = "tf-test",
InstanceId = "ckafka-f9ife4zz",
Password = "test1234",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CkafkaUser;
import com.pulumi.tencentcloud.CkafkaUserArgs;
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 foo = new CkafkaUser("foo", CkafkaUserArgs.builder()
.accountName("tf-test")
.instanceId("ckafka-f9ife4zz")
.password("test1234")
.build());
}
}
resources:
foo:
type: tencentcloud:CkafkaUser
properties:
accountName: tf-test
instanceId: ckafka-f9ife4zz
password: test1234
Create CkafkaUser Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CkafkaUser(name: string, args: CkafkaUserArgs, opts?: CustomResourceOptions);
@overload
def CkafkaUser(resource_name: str,
args: CkafkaUserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CkafkaUser(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
instance_id: Optional[str] = None,
password: Optional[str] = None,
ckafka_user_id: Optional[str] = None)
func NewCkafkaUser(ctx *Context, name string, args CkafkaUserArgs, opts ...ResourceOption) (*CkafkaUser, error)
public CkafkaUser(string name, CkafkaUserArgs args, CustomResourceOptions? opts = null)
public CkafkaUser(String name, CkafkaUserArgs args)
public CkafkaUser(String name, CkafkaUserArgs args, CustomResourceOptions options)
type: tencentcloud:CkafkaUser
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 CkafkaUserArgs
- 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 CkafkaUserArgs
- 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 CkafkaUserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CkafkaUserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CkafkaUserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CkafkaUser 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 CkafkaUser resource accepts the following input properties:
- Account
Name string - Account name used to access to ckafka instance.
- Instance
Id string - ID of the ckafka instance.
- Password string
- Password of the account.
- Ckafka
User stringId - ID of the resource.
- Account
Name string - Account name used to access to ckafka instance.
- Instance
Id string - ID of the ckafka instance.
- Password string
- Password of the account.
- Ckafka
User stringId - ID of the resource.
- account
Name String - Account name used to access to ckafka instance.
- instance
Id String - ID of the ckafka instance.
- password String
- Password of the account.
- ckafka
User StringId - ID of the resource.
- account
Name string - Account name used to access to ckafka instance.
- instance
Id string - ID of the ckafka instance.
- password string
- Password of the account.
- ckafka
User stringId - ID of the resource.
- account_
name str - Account name used to access to ckafka instance.
- instance_
id str - ID of the ckafka instance.
- password str
- Password of the account.
- ckafka_
user_ strid - ID of the resource.
- account
Name String - Account name used to access to ckafka instance.
- instance
Id String - ID of the ckafka instance.
- password String
- Password of the account.
- ckafka
User StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CkafkaUser resource produces the following output properties:
- Create
Time string - Creation time of the account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update time of the account.
- Create
Time string - Creation time of the account.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update time of the account.
- create
Time String - Creation time of the account.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update time of the account.
- create
Time string - Creation time of the account.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The last update time of the account.
- create_
time str - Creation time of the account.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The last update time of the account.
- create
Time String - Creation time of the account.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update time of the account.
Look up Existing CkafkaUser Resource
Get an existing CkafkaUser 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?: CkafkaUserState, opts?: CustomResourceOptions): CkafkaUser
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
ckafka_user_id: Optional[str] = None,
create_time: Optional[str] = None,
instance_id: Optional[str] = None,
password: Optional[str] = None,
update_time: Optional[str] = None) -> CkafkaUser
func GetCkafkaUser(ctx *Context, name string, id IDInput, state *CkafkaUserState, opts ...ResourceOption) (*CkafkaUser, error)
public static CkafkaUser Get(string name, Input<string> id, CkafkaUserState? state, CustomResourceOptions? opts = null)
public static CkafkaUser get(String name, Output<String> id, CkafkaUserState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CkafkaUser 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.
- Account
Name string - Account name used to access to ckafka instance.
- Ckafka
User stringId - ID of the resource.
- Create
Time string - Creation time of the account.
- Instance
Id string - ID of the ckafka instance.
- Password string
- Password of the account.
- Update
Time string - The last update time of the account.
- Account
Name string - Account name used to access to ckafka instance.
- Ckafka
User stringId - ID of the resource.
- Create
Time string - Creation time of the account.
- Instance
Id string - ID of the ckafka instance.
- Password string
- Password of the account.
- Update
Time string - The last update time of the account.
- account
Name String - Account name used to access to ckafka instance.
- ckafka
User StringId - ID of the resource.
- create
Time String - Creation time of the account.
- instance
Id String - ID of the ckafka instance.
- password String
- Password of the account.
- update
Time String - The last update time of the account.
- account
Name string - Account name used to access to ckafka instance.
- ckafka
User stringId - ID of the resource.
- create
Time string - Creation time of the account.
- instance
Id string - ID of the ckafka instance.
- password string
- Password of the account.
- update
Time string - The last update time of the account.
- account_
name str - Account name used to access to ckafka instance.
- ckafka_
user_ strid - ID of the resource.
- create_
time str - Creation time of the account.
- instance_
id str - ID of the ckafka instance.
- password str
- Password of the account.
- update_
time str - The last update time of the account.
- account
Name String - Account name used to access to ckafka instance.
- ckafka
User StringId - ID of the resource.
- create
Time String - Creation time of the account.
- instance
Id String - ID of the ckafka instance.
- password String
- Password of the account.
- update
Time String - The last update time of the account.
Import
Ckafka user can be imported using the instance_id#account_name, e.g.
$ pulumi import tencentcloud:index/ckafkaUser:CkafkaUser foo ckafka-f9ife4zz#tf-test
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.