Lists Kafka topics for a service.
Using getKafkaTopicList
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getKafkaTopicList(args: GetKafkaTopicListArgs, opts?: InvokeOptions): Promise<GetKafkaTopicListResult>
function getKafkaTopicListOutput(args: GetKafkaTopicListOutputArgs, opts?: InvokeOptions): Output<GetKafkaTopicListResult>def get_kafka_topic_list(project: Optional[str] = None,
service_name: Optional[str] = None,
timeouts: Optional[GetKafkaTopicListTimeouts] = None,
topics: Optional[Sequence[GetKafkaTopicListTopic]] = None,
opts: Optional[InvokeOptions] = None) -> GetKafkaTopicListResult
def get_kafka_topic_list_output(project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
timeouts: Optional[pulumi.Input[GetKafkaTopicListTimeoutsArgs]] = None,
topics: Optional[pulumi.Input[Sequence[pulumi.Input[GetKafkaTopicListTopicArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetKafkaTopicListResult]func GetKafkaTopicList(ctx *Context, args *GetKafkaTopicListArgs, opts ...InvokeOption) (*GetKafkaTopicListResult, error)
func GetKafkaTopicListOutput(ctx *Context, args *GetKafkaTopicListOutputArgs, opts ...InvokeOption) GetKafkaTopicListResultOutput> Note: This function is named GetKafkaTopicList in the Go SDK.
public static class GetKafkaTopicList
{
public static Task<GetKafkaTopicListResult> InvokeAsync(GetKafkaTopicListArgs args, InvokeOptions? opts = null)
public static Output<GetKafkaTopicListResult> Invoke(GetKafkaTopicListInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetKafkaTopicListResult> getKafkaTopicList(GetKafkaTopicListArgs args, InvokeOptions options)
public static Output<GetKafkaTopicListResult> getKafkaTopicList(GetKafkaTopicListArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getKafkaTopicList:getKafkaTopicList
arguments:
# arguments dictionaryThe following arguments are supported:
- Project string
- Project name.
- Service
Name string - Service name.
- Timeouts
Get
Kafka Topic List Timeouts - Topics
List<Get
Kafka Topic List Topic> - List of Kafka topics.
- Project string
- Project name.
- Service
Name string - Service name.
- Timeouts
Get
Kafka Topic List Timeouts - Topics
[]Get
Kafka Topic List Topic - List of Kafka topics.
- project String
- Project name.
- service
Name String - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
List<Get
Kafka Topic List Topic> - List of Kafka topics.
- project string
- Project name.
- service
Name string - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
Get
Kafka Topic List Topic[] - List of Kafka topics.
- project str
- Project name.
- service_
name str - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
Sequence[Get
Kafka Topic List Topic] - List of Kafka topics.
- project String
- Project name.
- service
Name String - Service name.
- timeouts Property Map
- topics List<Property Map>
- List of Kafka topics.
getKafkaTopicList Result
The following output properties are available:
- Id string
- Resource ID composed as:
project/service_name. - Project string
- Project name.
- Service
Name string - Service name.
- Timeouts
Get
Kafka Topic List Timeouts - Topics
List<Get
Kafka Topic List Topic> - List of Kafka topics.
- Id string
- Resource ID composed as:
project/service_name. - Project string
- Project name.
- Service
Name string - Service name.
- Timeouts
Get
Kafka Topic List Timeouts - Topics
[]Get
Kafka Topic List Topic - List of Kafka topics.
- id String
- Resource ID composed as:
project/service_name. - project String
- Project name.
- service
Name String - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
List<Get
Kafka Topic List Topic> - List of Kafka topics.
- id string
- Resource ID composed as:
project/service_name. - project string
- Project name.
- service
Name string - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
Get
Kafka Topic List Topic[] - List of Kafka topics.
- id str
- Resource ID composed as:
project/service_name. - project str
- Project name.
- service_
name str - Service name.
- timeouts
Get
Kafka Topic List Timeouts - topics
Sequence[Get
Kafka Topic List Topic] - List of Kafka topics.
- id String
- Resource ID composed as:
project/service_name. - project String
- Project name.
- service
Name String - Service name.
- timeouts Property Map
- topics List<Property Map>
- List of Kafka topics.
Supporting Types
GetKafkaTopicListTimeouts
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- read String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
GetKafkaTopicListTopic
- Cleanup
Policy string - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- Diskless
Enable bool - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- Min
Insync intReplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- Owner
User stringGroup Id - The user group that owns this topic.
- Partitions int
- Number of partitions.
- Remote
Storage boolEnable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- Replication int
- Number of replicas.
- Retention
Bytes int - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- Retention
Hours int - Retention period (hours).
- State string
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - Topic
Description string - Topic description.
- Topic
Name string - Topic name.
-
List<Get
Kafka Topic List Topic Tag> - Topic tags.
- Cleanup
Policy string - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- Diskless
Enable bool - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- Min
Insync intReplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- Owner
User stringGroup Id - The user group that owns this topic.
- Partitions int
- Number of partitions.
- Remote
Storage boolEnable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- Replication int
- Number of replicas.
- Retention
Bytes int - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- Retention
Hours int - Retention period (hours).
- State string
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - Topic
Description string - Topic description.
- Topic
Name string - Topic name.
-
[]Get
Kafka Topic List Topic Tag - Topic tags.
- cleanup
Policy String - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- diskless
Enable Boolean - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- min
Insync IntegerReplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- owner
User StringGroup Id - The user group that owns this topic.
- partitions Integer
- Number of partitions.
- remote
Storage BooleanEnable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- replication Integer
- Number of replicas.
- retention
Bytes Integer - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- retention
Hours Integer - Retention period (hours).
- state String
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - topic
Description String - Topic description.
- topic
Name String - Topic name.
-
List<Get
Kafka Topic List Topic Tag> - Topic tags.
- cleanup
Policy string - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- diskless
Enable boolean - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- min
Insync numberReplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- owner
User stringGroup Id - The user group that owns this topic.
- partitions number
- Number of partitions.
- remote
Storage booleanEnable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- replication number
- Number of replicas.
- retention
Bytes number - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- retention
Hours number - Retention period (hours).
- state string
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - topic
Description string - Topic description.
- topic
Name string - Topic name.
-
Get
Kafka Topic List Topic Tag[] - Topic tags.
- cleanup_
policy str - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- diskless_
enable bool - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- min_
insync_ intreplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- owner_
user_ strgroup_ id - The user group that owns this topic.
- partitions int
- Number of partitions.
- remote_
storage_ boolenable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- replication int
- Number of replicas.
- retention_
bytes int - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- retention_
hours int - Retention period (hours).
- state str
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - topic_
description str - Topic description.
- topic_
name str - Topic name.
-
Sequence[Get
Kafka Topic List Topic Tag] - Topic tags.
- cleanup
Policy String - The retention policy to use on old segments. Possible values include 'delete', 'compact', or a comma-separated list of them. The default policy ('delete') will discard old segments when their retention time or size limit has been reached. The 'compact' setting will enable log compaction on the topic.
- diskless
Enable Boolean - Indicates whether diskless should be enabled. This is only available for BYOC services with Diskless feature enabled.
- min
Insync NumberReplicas - When a producer sets acks to 'all' (or '-1'), this configuration specifies the minimum number of replicas that must acknowledge a write for the write to be considered successful. If this minimum cannot be met, then the producer will raise an exception (either NotEnoughReplicas or NotEnoughReplicasAfterAppend). When used together, min.insync.replicas and acks allow you to enforce greater durability guarantees. A typical scenario would be to create a topic with a replication factor of 3, set min.insync.replicas to 2, and produce with acks of 'all'. This will ensure that the producer raises an exception if a majority of replicas do not receive a write.
- owner
User StringGroup Id - The user group that owns this topic.
- partitions Number
- Number of partitions.
- remote
Storage BooleanEnable - Indicates whether tiered storage should be enabled. This is only available for services with Tiered Storage feature enabled.
- replication Number
- Number of replicas.
- retention
Bytes Number - This configuration controls the maximum size a partition (which consists of log segments) can grow to before we will discard old log segments to free up space if we are using the 'delete' retention policy. By default there is no size limit only a time limit. Since this limit is enforced at the partition level, multiply it by the number of partitions to compute the topic retention in bytes.
- retention
Hours Number - Retention period (hours).
- state String
- Topic state. The possible values are
ACTIVE,CONFIGURINGandDELETING. - topic
Description String - Topic description.
- topic
Name String - Topic name.
- List<Property Map>
- Topic tags.
GetKafkaTopicListTopicTag
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
