upstash.KafkaCluster
Explore with Pulumi AI
Example Usage
using Pulumi;
using Upstash = Pulumi.Upstash;
class MyStack : Stack
{
public MyStack()
{
var exampleCluster = new Upstash.KafkaCluster("exampleCluster", new Upstash.KafkaClusterArgs
{
ClusterName = "TerraformCluster",
Multizone = false,
Region = "eu-west-1",
});
}
}
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/upstash/pulumi-upstash/sdk/go/upstash"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := upstash.NewKafkaCluster(ctx, "exampleCluster", &upstash.KafkaClusterArgs{
ClusterName: pulumi.String("TerraformCluster"),
Multizone: pulumi.Bool(false),
Region: pulumi.String("eu-west-1"),
})
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 exampleCluster = new KafkaCluster("exampleCluster", KafkaClusterArgs.builder()
.clusterName("TerraformCluster")
.multizone(false)
.region("eu-west-1")
.build());
}
}
import pulumi
import upstash_pulumi as upstash
example_cluster = upstash.KafkaCluster("exampleCluster",
cluster_name="TerraformCluster",
multizone=False,
region="eu-west-1")
import * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const exampleCluster = new upstash.KafkaCluster("exampleCluster", {
clusterName: "TerraformCluster",
multizone: false,
region: "eu-west-1",
});
resources:
exampleCluster:
type: upstash:KafkaCluster
properties:
clusterName: TerraformCluster
multizone: false
region: eu-west-1
Create KafkaCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KafkaCluster(name: string, args: KafkaClusterArgs, opts?: CustomResourceOptions);
@overload
def KafkaCluster(resource_name: str,
args: KafkaClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KafkaCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
region: Optional[str] = None,
multizone: Optional[bool] = None)
func NewKafkaCluster(ctx *Context, name string, args KafkaClusterArgs, opts ...ResourceOption) (*KafkaCluster, error)
public KafkaCluster(string name, KafkaClusterArgs args, CustomResourceOptions? opts = null)
public KafkaCluster(String name, KafkaClusterArgs args)
public KafkaCluster(String name, KafkaClusterArgs args, CustomResourceOptions options)
type: upstash:KafkaCluster
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 KafkaClusterArgs
- 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 KafkaClusterArgs
- 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 KafkaClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KafkaClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KafkaClusterArgs
- 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 kafkaClusterResource = new Upstash.KafkaCluster("kafkaClusterResource", new()
{
ClusterName = "string",
Region = "string",
Multizone = false,
});
example, err := upstash.NewKafkaCluster(ctx, "kafkaClusterResource", &upstash.KafkaClusterArgs{
ClusterName: pulumi.String("string"),
Region: pulumi.String("string"),
Multizone: pulumi.Bool(false),
})
var kafkaClusterResource = new KafkaCluster("kafkaClusterResource", KafkaClusterArgs.builder()
.clusterName("string")
.region("string")
.multizone(false)
.build());
kafka_cluster_resource = upstash.KafkaCluster("kafkaClusterResource",
cluster_name="string",
region="string",
multizone=False)
const kafkaClusterResource = new upstash.KafkaCluster("kafkaClusterResource", {
clusterName: "string",
region: "string",
multizone: false,
});
type: upstash:KafkaCluster
properties:
clusterName: string
multizone: false
region: string
KafkaCluster 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 KafkaCluster resource accepts the following input properties:
- Cluster
Name string - Name of the cluster
- Region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- Multizone bool
- Whether cluster has multizone attribute
- Cluster
Name string - Name of the cluster
- Region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- Multizone bool
- Whether cluster has multizone attribute
- cluster
Name String - Name of the cluster
- region String
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- multizone Boolean
- Whether cluster has multizone attribute
- cluster
Name string - Name of the cluster
- region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- multizone boolean
- Whether cluster has multizone attribute
- cluster_
name str - Name of the cluster
- region str
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- multizone bool
- Whether cluster has multizone attribute
- cluster
Name String - Name of the cluster
- region String
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- multizone Boolean
- Whether cluster has multizone attribute
Outputs
All input properties are implicitly available as output properties. Additionally, the KafkaCluster resource produces the following output properties:
- Cluster
Id string - Unique Cluster ID for created cluster
- Creation
Time int - Creation time of the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Message intSize - Max Message Size for the cluster
- Max
Messages intPer Second - Max Messages Per Second for the cluster
- Max
Partitions int - Max Partitions for the cluster
- Max
Retention intSize - Max Retention Size of the cluster
- Max
Retention intTime - Max Retention Time of the cluster
- Password string
- Password for the cluster
- Rest
Endpoint string - REST Endpoint of the cluster
- State string
- State, where the cluster is originated
- Tcp
Endpoint string - TCP Endpoint of the cluster
- Type string
- Type of the cluster
- Username string
- Base64 encoded username for the cluster
- Cluster
Id string - Unique Cluster ID for created cluster
- Creation
Time int - Creation time of the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Message intSize - Max Message Size for the cluster
- Max
Messages intPer Second - Max Messages Per Second for the cluster
- Max
Partitions int - Max Partitions for the cluster
- Max
Retention intSize - Max Retention Size of the cluster
- Max
Retention intTime - Max Retention Time of the cluster
- Password string
- Password for the cluster
- Rest
Endpoint string - REST Endpoint of the cluster
- State string
- State, where the cluster is originated
- Tcp
Endpoint string - TCP Endpoint of the cluster
- Type string
- Type of the cluster
- Username string
- Base64 encoded username for the cluster
- cluster
Id String - Unique Cluster ID for created cluster
- creation
Time Integer - Creation time of the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- max
Message IntegerSize - Max Message Size for the cluster
- max
Messages IntegerPer Second - Max Messages Per Second for the cluster
- max
Partitions Integer - Max Partitions for the cluster
- max
Retention IntegerSize - Max Retention Size of the cluster
- max
Retention IntegerTime - Max Retention Time of the cluster
- password String
- Password for the cluster
- rest
Endpoint String - REST Endpoint of the cluster
- state String
- State, where the cluster is originated
- tcp
Endpoint String - TCP Endpoint of the cluster
- type String
- Type of the cluster
- username String
- Base64 encoded username for the cluster
- cluster
Id string - Unique Cluster ID for created cluster
- creation
Time number - Creation time of the cluster
- id string
- The provider-assigned unique ID for this managed resource.
- max
Message numberSize - Max Message Size for the cluster
- max
Messages numberPer Second - Max Messages Per Second for the cluster
- max
Partitions number - Max Partitions for the cluster
- max
Retention numberSize - Max Retention Size of the cluster
- max
Retention numberTime - Max Retention Time of the cluster
- password string
- Password for the cluster
- rest
Endpoint string - REST Endpoint of the cluster
- state string
- State, where the cluster is originated
- tcp
Endpoint string - TCP Endpoint of the cluster
- type string
- Type of the cluster
- username string
- Base64 encoded username for the cluster
- cluster_
id str - Unique Cluster ID for created cluster
- creation_
time int - Creation time of the cluster
- id str
- The provider-assigned unique ID for this managed resource.
- max_
message_ intsize - Max Message Size for the cluster
- max_
messages_ intper_ second - Max Messages Per Second for the cluster
- max_
partitions int - Max Partitions for the cluster
- max_
retention_ intsize - Max Retention Size of the cluster
- max_
retention_ inttime - Max Retention Time of the cluster
- password str
- Password for the cluster
- rest_
endpoint str - REST Endpoint of the cluster
- state str
- State, where the cluster is originated
- tcp_
endpoint str - TCP Endpoint of the cluster
- type str
- Type of the cluster
- username str
- Base64 encoded username for the cluster
- cluster
Id String - Unique Cluster ID for created cluster
- creation
Time Number - Creation time of the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- max
Message NumberSize - Max Message Size for the cluster
- max
Messages NumberPer Second - Max Messages Per Second for the cluster
- max
Partitions Number - Max Partitions for the cluster
- max
Retention NumberSize - Max Retention Size of the cluster
- max
Retention NumberTime - Max Retention Time of the cluster
- password String
- Password for the cluster
- rest
Endpoint String - REST Endpoint of the cluster
- state String
- State, where the cluster is originated
- tcp
Endpoint String - TCP Endpoint of the cluster
- type String
- Type of the cluster
- username String
- Base64 encoded username for the cluster
Look up Existing KafkaCluster Resource
Get an existing KafkaCluster 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?: KafkaClusterState, opts?: CustomResourceOptions): KafkaCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
creation_time: Optional[int] = None,
max_message_size: Optional[int] = None,
max_messages_per_second: Optional[int] = None,
max_partitions: Optional[int] = None,
max_retention_size: Optional[int] = None,
max_retention_time: Optional[int] = None,
multizone: Optional[bool] = None,
password: Optional[str] = None,
region: Optional[str] = None,
rest_endpoint: Optional[str] = None,
state: Optional[str] = None,
tcp_endpoint: Optional[str] = None,
type: Optional[str] = None,
username: Optional[str] = None) -> KafkaCluster
func GetKafkaCluster(ctx *Context, name string, id IDInput, state *KafkaClusterState, opts ...ResourceOption) (*KafkaCluster, error)
public static KafkaCluster Get(string name, Input<string> id, KafkaClusterState? state, CustomResourceOptions? opts = null)
public static KafkaCluster get(String name, Output<String> id, KafkaClusterState 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.
- Cluster
Id string - Unique Cluster ID for created cluster
- Cluster
Name string - Name of the cluster
- Creation
Time int - Creation time of the cluster
- Max
Message intSize - Max Message Size for the cluster
- Max
Messages intPer Second - Max Messages Per Second for the cluster
- Max
Partitions int - Max Partitions for the cluster
- Max
Retention intSize - Max Retention Size of the cluster
- Max
Retention intTime - Max Retention Time of the cluster
- Multizone bool
- Whether cluster has multizone attribute
- Password string
- Password for the cluster
- Region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- Rest
Endpoint string - REST Endpoint of the cluster
- State string
- State, where the cluster is originated
- Tcp
Endpoint string - TCP Endpoint of the cluster
- Type string
- Type of the cluster
- Username string
- Base64 encoded username for the cluster
- Cluster
Id string - Unique Cluster ID for created cluster
- Cluster
Name string - Name of the cluster
- Creation
Time int - Creation time of the cluster
- Max
Message intSize - Max Message Size for the cluster
- Max
Messages intPer Second - Max Messages Per Second for the cluster
- Max
Partitions int - Max Partitions for the cluster
- Max
Retention intSize - Max Retention Size of the cluster
- Max
Retention intTime - Max Retention Time of the cluster
- Multizone bool
- Whether cluster has multizone attribute
- Password string
- Password for the cluster
- Region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- Rest
Endpoint string - REST Endpoint of the cluster
- State string
- State, where the cluster is originated
- Tcp
Endpoint string - TCP Endpoint of the cluster
- Type string
- Type of the cluster
- Username string
- Base64 encoded username for the cluster
- cluster
Id String - Unique Cluster ID for created cluster
- cluster
Name String - Name of the cluster
- creation
Time Integer - Creation time of the cluster
- max
Message IntegerSize - Max Message Size for the cluster
- max
Messages IntegerPer Second - Max Messages Per Second for the cluster
- max
Partitions Integer - Max Partitions for the cluster
- max
Retention IntegerSize - Max Retention Size of the cluster
- max
Retention IntegerTime - Max Retention Time of the cluster
- multizone Boolean
- Whether cluster has multizone attribute
- password String
- Password for the cluster
- region String
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- rest
Endpoint String - REST Endpoint of the cluster
- state String
- State, where the cluster is originated
- tcp
Endpoint String - TCP Endpoint of the cluster
- type String
- Type of the cluster
- username String
- Base64 encoded username for the cluster
- cluster
Id string - Unique Cluster ID for created cluster
- cluster
Name string - Name of the cluster
- creation
Time number - Creation time of the cluster
- max
Message numberSize - Max Message Size for the cluster
- max
Messages numberPer Second - Max Messages Per Second for the cluster
- max
Partitions number - Max Partitions for the cluster
- max
Retention numberSize - Max Retention Size of the cluster
- max
Retention numberTime - Max Retention Time of the cluster
- multizone boolean
- Whether cluster has multizone attribute
- password string
- Password for the cluster
- region string
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- rest
Endpoint string - REST Endpoint of the cluster
- state string
- State, where the cluster is originated
- tcp
Endpoint string - TCP Endpoint of the cluster
- type string
- Type of the cluster
- username string
- Base64 encoded username for the cluster
- cluster_
id str - Unique Cluster ID for created cluster
- cluster_
name str - Name of the cluster
- creation_
time int - Creation time of the cluster
- max_
message_ intsize - Max Message Size for the cluster
- max_
messages_ intper_ second - Max Messages Per Second for the cluster
- max_
partitions int - Max Partitions for the cluster
- max_
retention_ intsize - Max Retention Size of the cluster
- max_
retention_ inttime - Max Retention Time of the cluster
- multizone bool
- Whether cluster has multizone attribute
- password str
- Password for the cluster
- region str
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- rest_
endpoint str - REST Endpoint of the cluster
- state str
- State, where the cluster is originated
- tcp_
endpoint str - TCP Endpoint of the cluster
- type str
- Type of the cluster
- username str
- Base64 encoded username for the cluster
- cluster
Id String - Unique Cluster ID for created cluster
- cluster
Name String - Name of the cluster
- creation
Time Number - Creation time of the cluster
- max
Message NumberSize - Max Message Size for the cluster
- max
Messages NumberPer Second - Max Messages Per Second for the cluster
- max
Partitions Number - Max Partitions for the cluster
- max
Retention NumberSize - Max Retention Size of the cluster
- max
Retention NumberTime - Max Retention Time of the cluster
- multizone Boolean
- Whether cluster has multizone attribute
- password String
- Password for the cluster
- region String
- region of the cluster. Possible values (may change) are: "eu-west-1", "us-east-1"
- rest
Endpoint String - REST Endpoint of the cluster
- state String
- State, where the cluster is originated
- tcp
Endpoint String - TCP Endpoint of the cluster
- type String
- Type of the cluster
- username String
- Base64 encoded username for the cluster
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.