Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

CassandraUser

The Cassandra User resource allows the creation and management of Aiven Cassandra Users.

Example Usage

using Pulumi;
using Aiven = Pulumi.Aiven;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = new Aiven.CassandraUser("foo", new Aiven.CassandraUserArgs
        {
            ServiceName = aiven_cassandra.Bar.Service_name,
            Project = "my-project",
            Username = "user-1",
            Password = "Test$1234",
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aiven/sdk/v5/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.NewCassandraUser(ctx, "foo", &aiven.CassandraUserArgs{
			ServiceName: pulumi.Any(aiven_cassandra.Bar.Service_name),
			Project:     pulumi.String("my-project"),
			Username:    pulumi.String("user-1"),
			Password:    pulumi.String(fmt.Sprintf("%v%v%v", "Test", "$", "1234")),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var foo = new CassandraUser("foo", CassandraUserArgs.builder()        
            .serviceName(aiven_cassandra.bar().service_name())
            .project("my-project")
            .username("user-1")
            .password("Test$1234")
            .build());

    }
}
import pulumi
import pulumi_aiven as aiven

foo = aiven.CassandraUser("foo",
    service_name=aiven_cassandra["bar"]["service_name"],
    project="my-project",
    username="user-1",
    password="Test$1234")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const foo = new aiven.CassandraUser("foo", {
    serviceName: aiven_cassandra.bar.service_name,
    project: "my-project",
    username: "user-1",
    password: `Test$1234`,
});
resources:
  foo:
    type: aiven:CassandraUser
    properties:
      serviceName: ${aiven_cassandra.bar.service_name}
      project: my-project
      username: user-1
      password: Test$1234

Create a CassandraUser Resource

new CassandraUser(name: string, args: CassandraUserArgs, opts?: CustomResourceOptions);
@overload
def CassandraUser(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  password: Optional[str] = None,
                  project: Optional[str] = None,
                  service_name: Optional[str] = None,
                  username: Optional[str] = None)
@overload
def CassandraUser(resource_name: str,
                  args: CassandraUserArgs,
                  opts: Optional[ResourceOptions] = 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.

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.

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

The CassandraUser resource accepts the following input properties:

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Password string

The password of the Cassandra User.

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Password string

The password of the Cassandra User.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

username String

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

password String

The password of the Cassandra User.

project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

password string

The password of the Cassandra User.

project str

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

service_name str

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

username str

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

password str

The password of the Cassandra User.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

username String

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

password String

The password of the Cassandra User.

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 if applicable for the service in question

AccessKey string

Access certificate key for the user if applicable for the service in question

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of the user account. Tells whether the user is the primary account or a regular account.

AccessCert string

Access certificate for the user if applicable for the service in question

AccessKey string

Access certificate key for the user if applicable for the service in question

Id string

The provider-assigned unique ID for this managed resource.

Type string

Type of the user account. Tells whether the user is the primary account or a regular account.

accessCert String

Access certificate for the user if applicable for the service in question

accessKey String

Access certificate key for the user if applicable for the service in question

id String

The provider-assigned unique ID for this managed resource.

type String

Type of the user account. Tells whether the user is the primary account or a regular account.

accessCert string

Access certificate for the user if applicable for the service in question

accessKey string

Access certificate key for the user if applicable for the service in question

id string

The provider-assigned unique ID for this managed resource.

type string

Type of the user account. Tells whether the user is the primary account or a regular account.

access_cert str

Access certificate for the user if applicable for the service in question

access_key str

Access certificate key for the user if applicable for the service in question

id str

The provider-assigned unique ID for this managed resource.

type str

Type of the user account. Tells whether the user is the primary account or a regular account.

accessCert String

Access certificate for the user if applicable for the service in question

accessKey String

Access certificate key for the user if applicable for the service in question

id String

The provider-assigned unique ID for this managed resource.

type String

Type of the user account. Tells whether the user is the primary account or a regular account.

Look up an 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,
        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)
Resource lookup is not supported in YAML
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 if applicable for the service in question

AccessKey string

Access certificate key for the user if applicable for the service in question

Password string

The password of the Cassandra User.

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Type string

Type of the user account. Tells whether the user is the primary account or a regular account.

Username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

AccessCert string

Access certificate for the user if applicable for the service in question

AccessKey string

Access certificate key for the user if applicable for the service in question

Password string

The password of the Cassandra User.

Project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

ServiceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Type string

Type of the user account. Tells whether the user is the primary account or a regular account.

Username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

accessCert String

Access certificate for the user if applicable for the service in question

accessKey String

Access certificate key for the user if applicable for the service in question

password String

The password of the Cassandra User.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

type String

Type of the user account. Tells whether the user is the primary account or a regular account.

username String

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

accessCert string

Access certificate for the user if applicable for the service in question

accessKey string

Access certificate key for the user if applicable for the service in question

password string

The password of the Cassandra User.

project string

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName string

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

type string

Type of the user account. Tells whether the user is the primary account or a regular account.

username string

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

access_cert str

Access certificate for the user if applicable for the service in question

access_key str

Access certificate key for the user if applicable for the service in question

password str

The password of the Cassandra User.

project str

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

service_name str

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

type str

Type of the user account. Tells whether the user is the primary account or a regular account.

username str

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

accessCert String

Access certificate for the user if applicable for the service in question

accessKey String

Access certificate key for the user if applicable for the service in question

password String

The password of the Cassandra User.

project String

Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

serviceName String

Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

type String

Type of the user account. Tells whether the user is the primary account or a regular account.

username String

The actual name of the Cassandra User. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.