/
getService.go
171 lines (166 loc) · 5.6 KB
/
getService.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// *** 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 LookupService(ctx *pulumi.Context, args *GetServiceArgs) (*GetServiceResult, error) {
inputs := make(map[string]interface{})
if args != nil {
inputs["cassandra"] = args.Cassandra
inputs["cassandraUserConfig"] = args.CassandraUserConfig
inputs["cloudName"] = args.CloudName
inputs["components"] = args.Components
inputs["elasticsearch"] = args.Elasticsearch
inputs["elasticsearchUserConfig"] = args.ElasticsearchUserConfig
inputs["grafana"] = args.Grafana
inputs["grafanaUserConfig"] = args.GrafanaUserConfig
inputs["influxdb"] = args.Influxdb
inputs["influxdbUserConfig"] = args.InfluxdbUserConfig
inputs["kafka"] = args.Kafka
inputs["kafkaConnect"] = args.KafkaConnect
inputs["kafkaConnectUserConfig"] = args.KafkaConnectUserConfig
inputs["kafkaUserConfig"] = args.KafkaUserConfig
inputs["maintenanceWindowDow"] = args.MaintenanceWindowDow
inputs["maintenanceWindowTime"] = args.MaintenanceWindowTime
inputs["mysql"] = args.Mysql
inputs["mysqlUserConfig"] = args.MysqlUserConfig
inputs["pg"] = args.Pg
inputs["pgUserConfig"] = args.PgUserConfig
inputs["plan"] = args.Plan
inputs["project"] = args.Project
inputs["projectVpcId"] = args.ProjectVpcId
inputs["redis"] = args.Redis
inputs["redisUserConfig"] = args.RedisUserConfig
inputs["serviceHost"] = args.ServiceHost
inputs["serviceIntegrations"] = args.ServiceIntegrations
inputs["serviceName"] = args.ServiceName
inputs["servicePassword"] = args.ServicePassword
inputs["servicePort"] = args.ServicePort
inputs["serviceType"] = args.ServiceType
inputs["serviceUri"] = args.ServiceUri
inputs["serviceUsername"] = args.ServiceUsername
inputs["state"] = args.State
inputs["terminationProtection"] = args.TerminationProtection
}
outputs, err := ctx.Invoke("aiven:index/getService:getService", inputs)
if err != nil {
return nil, err
}
return &GetServiceResult{
Cassandra: outputs["cassandra"],
CassandraUserConfig: outputs["cassandraUserConfig"],
CloudName: outputs["cloudName"],
Components: outputs["components"],
Elasticsearch: outputs["elasticsearch"],
ElasticsearchUserConfig: outputs["elasticsearchUserConfig"],
Grafana: outputs["grafana"],
GrafanaUserConfig: outputs["grafanaUserConfig"],
Influxdb: outputs["influxdb"],
InfluxdbUserConfig: outputs["influxdbUserConfig"],
Kafka: outputs["kafka"],
KafkaConnect: outputs["kafkaConnect"],
KafkaConnectUserConfig: outputs["kafkaConnectUserConfig"],
KafkaUserConfig: outputs["kafkaUserConfig"],
MaintenanceWindowDow: outputs["maintenanceWindowDow"],
MaintenanceWindowTime: outputs["maintenanceWindowTime"],
Mysql: outputs["mysql"],
MysqlUserConfig: outputs["mysqlUserConfig"],
Pg: outputs["pg"],
PgUserConfig: outputs["pgUserConfig"],
Plan: outputs["plan"],
Project: outputs["project"],
ProjectVpcId: outputs["projectVpcId"],
Redis: outputs["redis"],
RedisUserConfig: outputs["redisUserConfig"],
ServiceHost: outputs["serviceHost"],
ServiceIntegrations: outputs["serviceIntegrations"],
ServiceName: outputs["serviceName"],
ServicePassword: outputs["servicePassword"],
ServicePort: outputs["servicePort"],
ServiceType: outputs["serviceType"],
ServiceUri: outputs["serviceUri"],
ServiceUsername: outputs["serviceUsername"],
State: outputs["state"],
TerminationProtection: outputs["terminationProtection"],
Id: outputs["id"],
}, nil
}
// A collection of arguments for invoking getService.
type GetServiceArgs struct {
Cassandra interface{}
CassandraUserConfig interface{}
CloudName interface{}
Components interface{}
Elasticsearch interface{}
ElasticsearchUserConfig interface{}
Grafana interface{}
GrafanaUserConfig interface{}
Influxdb interface{}
InfluxdbUserConfig interface{}
Kafka interface{}
KafkaConnect interface{}
KafkaConnectUserConfig interface{}
KafkaUserConfig interface{}
MaintenanceWindowDow interface{}
MaintenanceWindowTime interface{}
Mysql interface{}
MysqlUserConfig interface{}
Pg interface{}
PgUserConfig interface{}
Plan interface{}
Project interface{}
ProjectVpcId interface{}
Redis interface{}
RedisUserConfig interface{}
ServiceHost interface{}
ServiceIntegrations interface{}
ServiceName interface{}
ServicePassword interface{}
ServicePort interface{}
ServiceType interface{}
ServiceUri interface{}
ServiceUsername interface{}
State interface{}
TerminationProtection interface{}
}
// A collection of values returned by getService.
type GetServiceResult struct {
Cassandra interface{}
CassandraUserConfig interface{}
CloudName interface{}
Components interface{}
Elasticsearch interface{}
ElasticsearchUserConfig interface{}
Grafana interface{}
GrafanaUserConfig interface{}
Influxdb interface{}
InfluxdbUserConfig interface{}
Kafka interface{}
KafkaConnect interface{}
KafkaConnectUserConfig interface{}
KafkaUserConfig interface{}
MaintenanceWindowDow interface{}
MaintenanceWindowTime interface{}
Mysql interface{}
MysqlUserConfig interface{}
Pg interface{}
PgUserConfig interface{}
Plan interface{}
Project interface{}
ProjectVpcId interface{}
Redis interface{}
RedisUserConfig interface{}
ServiceHost interface{}
ServiceIntegrations interface{}
ServiceName interface{}
ServicePassword interface{}
ServicePort interface{}
ServiceType interface{}
ServiceUri interface{}
ServiceUsername interface{}
State interface{}
TerminationProtection interface{}
// id is the provider-assigned unique ID for this managed resource.
Id interface{}
}