1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CkafkaUser
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CkafkaUser

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    AccountName string
    Account name used to access to ckafka instance.
    InstanceId string
    ID of the ckafka instance.
    Password string
    Password of the account.
    CkafkaUserId string
    ID of the resource.
    AccountName string
    Account name used to access to ckafka instance.
    InstanceId string
    ID of the ckafka instance.
    Password string
    Password of the account.
    CkafkaUserId string
    ID of the resource.
    accountName String
    Account name used to access to ckafka instance.
    instanceId String
    ID of the ckafka instance.
    password String
    Password of the account.
    ckafkaUserId String
    ID of the resource.
    accountName string
    Account name used to access to ckafka instance.
    instanceId string
    ID of the ckafka instance.
    password string
    Password of the account.
    ckafkaUserId string
    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_id str
    ID of the resource.
    accountName String
    Account name used to access to ckafka instance.
    instanceId String
    ID of the ckafka instance.
    password String
    Password of the account.
    ckafkaUserId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CkafkaUser resource produces the following output properties:

    CreateTime string
    Creation time of the account.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The last update time of the account.
    CreateTime string
    Creation time of the account.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    The last update time of the account.
    createTime String
    Creation time of the account.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    The last update time of the account.
    createTime string
    Creation time of the account.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime 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.
    createTime String
    Creation time of the account.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime 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.
    The following state arguments are supported:
    AccountName string
    Account name used to access to ckafka instance.
    CkafkaUserId string
    ID of the resource.
    CreateTime string
    Creation time of the account.
    InstanceId string
    ID of the ckafka instance.
    Password string
    Password of the account.
    UpdateTime string
    The last update time of the account.
    AccountName string
    Account name used to access to ckafka instance.
    CkafkaUserId string
    ID of the resource.
    CreateTime string
    Creation time of the account.
    InstanceId string
    ID of the ckafka instance.
    Password string
    Password of the account.
    UpdateTime string
    The last update time of the account.
    accountName String
    Account name used to access to ckafka instance.
    ckafkaUserId String
    ID of the resource.
    createTime String
    Creation time of the account.
    instanceId String
    ID of the ckafka instance.
    password String
    Password of the account.
    updateTime String
    The last update time of the account.
    accountName string
    Account name used to access to ckafka instance.
    ckafkaUserId string
    ID of the resource.
    createTime string
    Creation time of the account.
    instanceId string
    ID of the ckafka instance.
    password string
    Password of the account.
    updateTime string
    The last update time of the account.
    account_name str
    Account name used to access to ckafka instance.
    ckafka_user_id str
    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.
    accountName String
    Account name used to access to ckafka instance.
    ckafkaUserId String
    ID of the resource.
    createTime String
    Creation time of the account.
    instanceId String
    ID of the ckafka instance.
    password String
    Password of the account.
    updateTime 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack