/
getKafkaTopic.go
71 lines (66 loc) · 2.24 KB
/
getKafkaTopic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package aiven
import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
func LookupKafkaTopic(ctx *pulumi.Context, args *GetKafkaTopicArgs) (*GetKafkaTopicResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["cleanupPolicy"] = args.CleanupPolicy
inputs["minimumInSyncReplicas"] = args.MinimumInSyncReplicas
inputs["partitions"] = args.Partitions
inputs["project"] = args.Project
inputs["replication"] = args.Replication
inputs["retentionBytes"] = args.RetentionBytes
inputs["retentionHours"] = args.RetentionHours
inputs["serviceName"] = args.ServiceName
inputs["terminationProtection"] = args.TerminationProtection
inputs["topicName"] = args.TopicName
}
outputs, err := ctx.Invoke("aiven:index/getKafkaTopic:getKafkaTopic", inputs)
if err != nil {
return nil, err
}
return &GetKafkaTopicResult{
CleanupPolicy: outputs["cleanupPolicy"],
MinimumInSyncReplicas: outputs["minimumInSyncReplicas"],
Partitions: outputs["partitions"],
Project: outputs["project"],
Replication: outputs["replication"],
RetentionBytes: outputs["retentionBytes"],
RetentionHours: outputs["retentionHours"],
ServiceName: outputs["serviceName"],
TerminationProtection: outputs["terminationProtection"],
TopicName: outputs["topicName"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getKafkaTopic.
type GetKafkaTopicArgs struct {
CleanupPolicy interface{}
MinimumInSyncReplicas interface{}
Partitions interface{}
Project interface{}
Replication interface{}
RetentionBytes interface{}
RetentionHours interface{}
ServiceName interface{}
TerminationProtection interface{}
TopicName interface{}
}
// A collection of values returned by getKafkaTopic.
type GetKafkaTopicResult struct {
CleanupPolicy interface{}
MinimumInSyncReplicas interface{}
Partitions interface{}
Project interface{}
Replication interface{}
RetentionBytes interface{}
RetentionHours interface{}
ServiceName interface{}
TerminationProtection interface{}
TopicName interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}