ionoscloud.KafkaClusterTopic
Explore with Pulumi AI
Create KafkaClusterTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KafkaClusterTopic(name: string, args: KafkaClusterTopicArgs, opts?: CustomResourceOptions);
@overload
def KafkaClusterTopic(resource_name: str,
args: KafkaClusterTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KafkaClusterTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
number_of_partitions: Optional[float] = None,
replication_factor: Optional[float] = None,
retention_time: Optional[float] = None,
segment_bytes: Optional[float] = None,
timeouts: Optional[KafkaClusterTopicTimeoutsArgs] = None)
func NewKafkaClusterTopic(ctx *Context, name string, args KafkaClusterTopicArgs, opts ...ResourceOption) (*KafkaClusterTopic, error)
public KafkaClusterTopic(string name, KafkaClusterTopicArgs args, CustomResourceOptions? opts = null)
public KafkaClusterTopic(String name, KafkaClusterTopicArgs args)
public KafkaClusterTopic(String name, KafkaClusterTopicArgs args, CustomResourceOptions options)
type: ionoscloud:KafkaClusterTopic
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 KafkaClusterTopicArgs
- 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 KafkaClusterTopicArgs
- 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 KafkaClusterTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KafkaClusterTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KafkaClusterTopicArgs
- 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 kafkaClusterTopicResource = new Ionoscloud.KafkaClusterTopic("kafkaClusterTopicResource", new()
{
ClusterId = "string",
Location = "string",
Name = "string",
NumberOfPartitions = 0,
ReplicationFactor = 0,
RetentionTime = 0,
SegmentBytes = 0,
Timeouts = new Ionoscloud.Inputs.KafkaClusterTopicTimeoutsArgs
{
Create = "string",
Default = "string",
Delete = "string",
Update = "string",
},
});
example, err := ionoscloud.NewKafkaClusterTopic(ctx, "kafkaClusterTopicResource", &ionoscloud.KafkaClusterTopicArgs{
ClusterId: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
NumberOfPartitions: pulumi.Float64(0),
ReplicationFactor: pulumi.Float64(0),
RetentionTime: pulumi.Float64(0),
SegmentBytes: pulumi.Float64(0),
Timeouts: &ionoscloud.KafkaClusterTopicTimeoutsArgs{
Create: pulumi.String("string"),
Default: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var kafkaClusterTopicResource = new KafkaClusterTopic("kafkaClusterTopicResource", KafkaClusterTopicArgs.builder()
.clusterId("string")
.location("string")
.name("string")
.numberOfPartitions(0)
.replicationFactor(0)
.retentionTime(0)
.segmentBytes(0)
.timeouts(KafkaClusterTopicTimeoutsArgs.builder()
.create("string")
.default_("string")
.delete("string")
.update("string")
.build())
.build());
kafka_cluster_topic_resource = ionoscloud.KafkaClusterTopic("kafkaClusterTopicResource",
cluster_id="string",
location="string",
name="string",
number_of_partitions=0,
replication_factor=0,
retention_time=0,
segment_bytes=0,
timeouts={
"create": "string",
"default": "string",
"delete": "string",
"update": "string",
})
const kafkaClusterTopicResource = new ionoscloud.KafkaClusterTopic("kafkaClusterTopicResource", {
clusterId: "string",
location: "string",
name: "string",
numberOfPartitions: 0,
replicationFactor: 0,
retentionTime: 0,
segmentBytes: 0,
timeouts: {
create: "string",
"default": "string",
"delete": "string",
update: "string",
},
});
type: ionoscloud:KafkaClusterTopic
properties:
clusterId: string
location: string
name: string
numberOfPartitions: 0
replicationFactor: 0
retentionTime: 0
segmentBytes: 0
timeouts:
create: string
default: string
delete: string
update: string
KafkaClusterTopic 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 KafkaClusterTopic resource accepts the following input properties:
- Cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- Location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- Name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - Number
Of doublePartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- Replication
Factor double - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- Retention
Time double - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- Segment
Bytes double - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- Timeouts
Kafka
Cluster Topic Timeouts
- Cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- Location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- Name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - Number
Of float64Partitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- Replication
Factor float64 - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- Retention
Time float64 - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- Segment
Bytes float64 - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- Timeouts
Kafka
Cluster Topic Timeouts Args
- cluster
Id String - The ID of the Kafka Cluster to which the topic belongs.
- location String
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name String
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of DoublePartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor Double - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time Double - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes Double - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts
- cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of numberPartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor number - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time number - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes number - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts
- cluster_
id str - The ID of the Kafka Cluster to which the topic belongs.
- location str
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name str
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number_
of_ floatpartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication_
factor float - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention_
time float - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment_
bytes float - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts Args
- cluster
Id String - The ID of the Kafka Cluster to which the topic belongs.
- location String
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name String
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of NumberPartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor Number - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time Number - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes Number - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the KafkaClusterTopic resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing KafkaClusterTopic Resource
Get an existing KafkaClusterTopic 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?: KafkaClusterTopicState, opts?: CustomResourceOptions): KafkaClusterTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
number_of_partitions: Optional[float] = None,
replication_factor: Optional[float] = None,
retention_time: Optional[float] = None,
segment_bytes: Optional[float] = None,
timeouts: Optional[KafkaClusterTopicTimeoutsArgs] = None) -> KafkaClusterTopic
func GetKafkaClusterTopic(ctx *Context, name string, id IDInput, state *KafkaClusterTopicState, opts ...ResourceOption) (*KafkaClusterTopic, error)
public static KafkaClusterTopic Get(string name, Input<string> id, KafkaClusterTopicState? state, CustomResourceOptions? opts = null)
public static KafkaClusterTopic get(String name, Output<String> id, KafkaClusterTopicState state, CustomResourceOptions options)
resources: _: type: ionoscloud:KafkaClusterTopic 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.
- Cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- Location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- Name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - Number
Of doublePartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- Replication
Factor double - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- Retention
Time double - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- Segment
Bytes double - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- Timeouts
Kafka
Cluster Topic Timeouts
- Cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- Location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- Name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - Number
Of float64Partitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- Replication
Factor float64 - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- Retention
Time float64 - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- Segment
Bytes float64 - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- Timeouts
Kafka
Cluster Topic Timeouts Args
- cluster
Id String - The ID of the Kafka Cluster to which the topic belongs.
- location String
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name String
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of DoublePartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor Double - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time Double - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes Double - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts
- cluster
Id string - The ID of the Kafka Cluster to which the topic belongs.
- location string
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name string
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of numberPartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor number - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time number - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes number - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts
- cluster_
id str - The ID of the Kafka Cluster to which the topic belongs.
- location str
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name str
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number_
of_ floatpartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication_
factor float - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention_
time float - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment_
bytes float - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts
Kafka
Cluster Topic Timeouts Args
- cluster
Id String - The ID of the Kafka Cluster to which the topic belongs.
- location String
- The location of your Kafka Cluster Topic. Supported locations: de/fra, de/txl
- name String
- The name of your Kafka Cluster Topic. Must be 63 characters or less and must begin and end with an alphanumeric
character (
[a-z0-9A-Z]
) with dashes (-
), underscores (_
), dots (.
), and alphanumerics between. - number
Of NumberPartitions - The number of partitions of the topic. Partitions allow for parallel processing of messages. The partition count must be greater than or equal to the replication factor.
- replication
Factor Number - The number of replicas of the topic. The replication factor determines how many copies of the topic are stored on different brokers. The replication factor must be less than or equal to the number of brokers in the Kafka Cluster.
- retention
Time Number - This configuration controls the maximum time we will retain a log before we will discard old log segments to free up space. This represents an SLA on how soon consumers must read their data. If set to -1, no time limit is applied.
- segment
Bytes Number - This configuration controls the segment file size for the log. Retention and cleaning is always done a file at a time so a larger segment size means fewer files but less granular control over retention.
- timeouts Property Map
Supporting Types
KafkaClusterTopicTimeouts, KafkaClusterTopicTimeoutsArgs
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.