1. Packages
  2. Aiven Provider
  3. API Docs
  4. CassandraUser
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi

    Create CassandraUser Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CassandraUser(name: string, args: CassandraUserArgs, opts?: CustomResourceOptions);
    @overload
    def CassandraUser(resource_name: str,
                      args: CassandraUserArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CassandraUser(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      project: Optional[str] = None,
                      service_name: Optional[str] = None,
                      username: Optional[str] = None,
                      password: Optional[str] = None,
                      password_wo: Optional[str] = None,
                      password_wo_version: Optional[int] = None)
    func NewCassandraUser(ctx *Context, name string, args CassandraUserArgs, opts ...ResourceOption) (*CassandraUser, error)
    public CassandraUser(string name, CassandraUserArgs args, CustomResourceOptions? opts = null)
    public CassandraUser(String name, CassandraUserArgs args)
    public CassandraUser(String name, CassandraUserArgs args, CustomResourceOptions options)
    
    type: aiven:CassandraUser
    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 CassandraUserArgs
    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 CassandraUserArgs
    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 CassandraUserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CassandraUserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CassandraUserArgs
    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 cassandraUserResource = new Aiven.CassandraUser("cassandraUserResource", new()
    {
        Project = "string",
        ServiceName = "string",
        Username = "string",
        Password = "string",
        PasswordWo = "string",
        PasswordWoVersion = 0,
    });
    
    example, err := aiven.NewCassandraUser(ctx, "cassandraUserResource", &aiven.CassandraUserArgs{
    	Project:           pulumi.String("string"),
    	ServiceName:       pulumi.String("string"),
    	Username:          pulumi.String("string"),
    	Password:          pulumi.String("string"),
    	PasswordWo:        pulumi.String("string"),
    	PasswordWoVersion: pulumi.Int(0),
    })
    
    var cassandraUserResource = new CassandraUser("cassandraUserResource", CassandraUserArgs.builder()
        .project("string")
        .serviceName("string")
        .username("string")
        .password("string")
        .passwordWo("string")
        .passwordWoVersion(0)
        .build());
    
    cassandra_user_resource = aiven.CassandraUser("cassandraUserResource",
        project="string",
        service_name="string",
        username="string",
        password="string",
        password_wo="string",
        password_wo_version=0)
    
    const cassandraUserResource = new aiven.CassandraUser("cassandraUserResource", {
        project: "string",
        serviceName: "string",
        username: "string",
        password: "string",
        passwordWo: "string",
        passwordWoVersion: 0,
    });
    
    type: aiven:CassandraUser
    properties:
        password: string
        passwordWo: string
        passwordWoVersion: 0
        project: string
        serviceName: string
        username: string
    

    CassandraUser 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 CassandraUser resource accepts the following input properties:

    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    username String
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    password String
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion Integer
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion number
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    service_name str
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    username str
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    password str
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    password_wo_version int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    username String
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    password String
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion Number
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.

    Outputs

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

    AccessCert string
    Access certificate for the user.
    AccessKey string
    Access certificate key for the user.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    User account type, such as primary or regular account.
    AccessCert string
    Access certificate for the user.
    AccessKey string
    Access certificate key for the user.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    User account type, such as primary or regular account.
    accessCert String
    Access certificate for the user.
    accessKey String
    Access certificate key for the user.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    User account type, such as primary or regular account.
    accessCert string
    Access certificate for the user.
    accessKey string
    Access certificate key for the user.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    User account type, such as primary or regular account.
    access_cert str
    Access certificate for the user.
    access_key str
    Access certificate key for the user.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    User account type, such as primary or regular account.
    accessCert String
    Access certificate for the user.
    accessKey String
    Access certificate key for the user.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    User account type, such as primary or regular account.

    Look up Existing CassandraUser Resource

    Get an existing CassandraUser 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?: CassandraUserState, opts?: CustomResourceOptions): CassandraUser
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_cert: Optional[str] = None,
            access_key: Optional[str] = None,
            password: Optional[str] = None,
            password_wo: Optional[str] = None,
            password_wo_version: Optional[int] = None,
            project: Optional[str] = None,
            service_name: Optional[str] = None,
            type: Optional[str] = None,
            username: Optional[str] = None) -> CassandraUser
    func GetCassandraUser(ctx *Context, name string, id IDInput, state *CassandraUserState, opts ...ResourceOption) (*CassandraUser, error)
    public static CassandraUser Get(string name, Input<string> id, CassandraUserState? state, CustomResourceOptions? opts = null)
    public static CassandraUser get(String name, Output<String> id, CassandraUserState state, CustomResourceOptions options)
    resources:  _:    type: aiven:CassandraUser    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:
    AccessCert string
    Access certificate for the user.
    AccessKey string
    Access certificate key for the user.
    Password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Type string
    User account type, such as primary or regular account.
    Username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    AccessCert string
    Access certificate for the user.
    AccessKey string
    Access certificate key for the user.
    Password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    PasswordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    PasswordWoVersion int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    Project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    ServiceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    Type string
    User account type, such as primary or regular account.
    Username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accessCert String
    Access certificate for the user.
    accessKey String
    Access certificate key for the user.
    password String
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion Integer
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    type String
    User account type, such as primary or regular account.
    username String
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accessCert string
    Access certificate for the user.
    accessKey string
    Access certificate key for the user.
    password string
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion number
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project string
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName string
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    type string
    User account type, such as primary or regular account.
    username string
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    access_cert str
    Access certificate for the user.
    access_key str
    Access certificate key for the user.
    password str
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    password_wo str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    password_wo_version int
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project str
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    service_name str
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    type str
    User account type, such as primary or regular account.
    username str
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    accessCert String
    Access certificate for the user.
    accessKey String
    Access certificate key for the user.
    password String
    The password of the service user (auto-generated if not provided). Must be 8-256 characters if specified.
    passwordWo String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. The password of the service user (write-only, not stored in state). Must be used with password_wo_version. Must be 8-256 characters.
    passwordWoVersion Number
    Version number for password_wo. Increment this to rotate the password. Must be >= 1.
    project String
    The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    serviceName String
    The name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
    type String
    User account type, such as primary or regular account.
    username String
    Name of the Cassandra service user. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v6.51.0
    published on Tuesday, Mar 17, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.