pulumi-aiven 6.14.0__py3-none-any.whl → 6.14.0a1711516617__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-aiven might be problematic. Click here for more details.
- pulumi_aiven/_inputs.py +262 -200
- pulumi_aiven/account.py +6 -2
- pulumi_aiven/account_authentication.py +2 -2
- pulumi_aiven/account_team.py +6 -6
- pulumi_aiven/account_team_member.py +10 -6
- pulumi_aiven/account_team_project.py +12 -12
- pulumi_aiven/aws_privatelink.py +22 -18
- pulumi_aiven/aws_vpc_peering_connection.py +12 -8
- pulumi_aiven/azure_privatelink.py +22 -18
- pulumi_aiven/azure_privatelink_connection_approval.py +14 -112
- pulumi_aiven/azure_vpc_peering_connection.py +10 -6
- pulumi_aiven/billing_group.py +18 -18
- pulumi_aiven/cassandra.py +57 -25
- pulumi_aiven/cassandra_user.py +22 -18
- pulumi_aiven/clickhouse.py +57 -25
- pulumi_aiven/clickhouse_database.py +26 -24
- pulumi_aiven/clickhouse_grant.py +37 -35
- pulumi_aiven/clickhouse_role.py +20 -16
- pulumi_aiven/clickhouse_user.py +22 -18
- pulumi_aiven/connection_pool.py +28 -24
- pulumi_aiven/dragonfly.py +263 -124
- pulumi_aiven/flink.py +36 -32
- pulumi_aiven/flink_application.py +24 -22
- pulumi_aiven/flink_application_deployment.py +21 -21
- pulumi_aiven/flink_application_version.py +14 -96
- pulumi_aiven/gcp_privatelink.py +21 -21
- pulumi_aiven/gcp_privatelink_connection_approval.py +21 -21
- pulumi_aiven/gcp_vpc_peering_connection.py +8 -4
- pulumi_aiven/get_account.py +4 -0
- pulumi_aiven/get_aws_privatelink.py +14 -10
- pulumi_aiven/get_aws_vpc_peering_connection.py +10 -6
- pulumi_aiven/get_azure_privatelink.py +14 -10
- pulumi_aiven/get_azure_vpc_peering_connection.py +6 -2
- pulumi_aiven/get_billing_group.py +2 -2
- pulumi_aiven/get_cassanda.py +24 -7
- pulumi_aiven/get_cassandra.py +24 -7
- pulumi_aiven/get_cassandra_user.py +14 -10
- pulumi_aiven/get_clickhouse.py +24 -7
- pulumi_aiven/get_clickhouse_database.py +14 -10
- pulumi_aiven/get_clickhouse_user.py +14 -10
- pulumi_aiven/get_connection_pool.py +14 -10
- pulumi_aiven/get_dragonfly.py +20 -27
- pulumi_aiven/get_flink.py +10 -6
- pulumi_aiven/get_flink_application.py +12 -8
- pulumi_aiven/get_flink_application_version.py +12 -8
- pulumi_aiven/get_gcp_vpc_peering_connection.py +6 -2
- pulumi_aiven/get_grafana.py +24 -7
- pulumi_aiven/get_kafka.py +17 -13
- pulumi_aiven/get_kafka_acl.py +14 -10
- pulumi_aiven/get_kafka_connect.py +24 -7
- pulumi_aiven/get_kafka_connector.py +14 -10
- pulumi_aiven/get_kafka_mirror_maker.py +24 -7
- pulumi_aiven/get_kafka_schema.py +14 -10
- pulumi_aiven/get_kafka_schema_configuration.py +14 -10
- pulumi_aiven/get_kafka_schema_registry_acl.py +6 -6
- pulumi_aiven/get_kafka_topic.py +20 -16
- pulumi_aiven/get_kafka_user.py +14 -10
- pulumi_aiven/get_m3_aggregator.py +24 -7
- pulumi_aiven/get_m3_db.py +24 -7
- pulumi_aiven/get_m3db_user.py +14 -10
- pulumi_aiven/get_mirror_maker_replication_flow.py +18 -14
- pulumi_aiven/get_my_sql.py +24 -7
- pulumi_aiven/get_mysql_database.py +14 -10
- pulumi_aiven/get_mysql_user.py +14 -10
- pulumi_aiven/get_open_search.py +10 -6
- pulumi_aiven/get_open_search_acl_config.py +14 -10
- pulumi_aiven/get_open_search_acl_rule.py +14 -10
- pulumi_aiven/get_opensearch_security_plugin_config.py +14 -10
- pulumi_aiven/get_opensearch_user.py +14 -10
- pulumi_aiven/get_organization.py +4 -0
- pulumi_aiven/get_organization_user_group.py +6 -2
- pulumi_aiven/get_pg.py +10 -6
- pulumi_aiven/get_pg_database.py +14 -10
- pulumi_aiven/get_pg_user.py +14 -10
- pulumi_aiven/get_project.py +21 -17
- pulumi_aiven/get_project_user.py +13 -9
- pulumi_aiven/get_project_vpc.py +6 -2
- pulumi_aiven/get_redis.py +24 -7
- pulumi_aiven/get_redis_user.py +14 -10
- pulumi_aiven/get_service_component.py +8 -4
- pulumi_aiven/get_service_integration.py +33 -19
- pulumi_aiven/get_service_integration_endpoint.py +6 -2
- pulumi_aiven/get_transit_gateway_vpc_attachment.py +6 -2
- pulumi_aiven/grafana.py +267 -82
- pulumi_aiven/influx_db.py +21 -21
- pulumi_aiven/influxdb_database.py +21 -21
- pulumi_aiven/influxdb_user.py +21 -21
- pulumi_aiven/kafka.py +54 -50
- pulumi_aiven/kafka_acl.py +24 -20
- pulumi_aiven/kafka_connect.py +267 -80
- pulumi_aiven/kafka_connector.py +30 -26
- pulumi_aiven/kafka_mirror_maker.py +267 -80
- pulumi_aiven/kafka_schema.py +22 -18
- pulumi_aiven/kafka_schema_configuration.py +24 -20
- pulumi_aiven/kafka_schema_registry_acl.py +14 -54
- pulumi_aiven/kafka_topic.py +46 -84
- pulumi_aiven/kafka_user.py +22 -18
- pulumi_aiven/m3_aggregator.py +267 -80
- pulumi_aiven/m3_db.py +267 -80
- pulumi_aiven/m3db_user.py +20 -16
- pulumi_aiven/mirror_maker_replication_flow.py +26 -22
- pulumi_aiven/my_sql.py +267 -80
- pulumi_aiven/mysql_database.py +24 -20
- pulumi_aiven/mysql_user.py +22 -18
- pulumi_aiven/open_search.py +31 -27
- pulumi_aiven/open_search_acl_config.py +36 -28
- pulumi_aiven/open_search_acl_rule.py +40 -36
- pulumi_aiven/opensearch_security_plugin_config.py +32 -28
- pulumi_aiven/opensearch_user.py +22 -18
- pulumi_aiven/organization.py +6 -2
- pulumi_aiven/organization_group_project.py +0 -46
- pulumi_aiven/organization_user.py +20 -2
- pulumi_aiven/organization_user_group.py +6 -4
- pulumi_aiven/organization_user_group_member.py +10 -8
- pulumi_aiven/organizational_unit.py +6 -6
- pulumi_aiven/outputs.py +390 -271
- pulumi_aiven/pg.py +30 -30
- pulumi_aiven/pg_database.py +24 -20
- pulumi_aiven/pg_user.py +22 -18
- pulumi_aiven/project.py +79 -75
- pulumi_aiven/project_user.py +28 -24
- pulumi_aiven/project_vpc.py +7 -31
- pulumi_aiven/redis.py +267 -80
- pulumi_aiven/redis_user.py +22 -18
- pulumi_aiven/service_integration.py +58 -54
- pulumi_aiven/static_ip.py +7 -7
- pulumi_aiven/transit_gateway_vpc_attachment.py +8 -4
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711516617.dist-info}/METADATA +1 -1
- pulumi_aiven-6.14.0a1711516617.dist-info/RECORD +150 -0
- pulumi_aiven-6.14.0.dist-info/RECORD +0 -150
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711516617.dist-info}/WHEEL +0 -0
- {pulumi_aiven-6.14.0.dist-info → pulumi_aiven-6.14.0a1711516617.dist-info}/top_level.txt +0 -0
pulumi_aiven/grafana.py
CHANGED
|
@@ -33,21 +33,42 @@ class GrafanaArgs:
|
|
|
33
33
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
34
34
|
"""
|
|
35
35
|
The set of arguments for constructing a Grafana resource.
|
|
36
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
37
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
38
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
39
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
40
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
41
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
42
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
43
|
+
reference. Changing this property forces recreation of the resource.
|
|
44
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
45
|
+
reducing will result in the service rebalancing.
|
|
46
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
47
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
48
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
49
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
50
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
51
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
52
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
53
|
+
will result in the service rebalancing.
|
|
41
54
|
:param pulumi.Input['GrafanaGrafanaUserConfigArgs'] grafana_user_config: Grafana user configurable settings
|
|
42
55
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
43
56
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
44
|
-
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
57
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
58
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
59
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
60
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
45
61
|
:param pulumi.Input[Sequence[pulumi.Input['GrafanaServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
46
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
47
|
-
|
|
62
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
63
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
64
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
65
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
48
66
|
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
49
|
-
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]] tech_emails:
|
|
50
|
-
|
|
67
|
+
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
68
|
+
instability.
|
|
69
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
70
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
71
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
51
72
|
"""
|
|
52
73
|
pulumi.set(__self__, "plan", plan)
|
|
53
74
|
pulumi.set(__self__, "project", project)
|
|
@@ -85,7 +106,12 @@ class GrafanaArgs:
|
|
|
85
106
|
@pulumi.getter
|
|
86
107
|
def plan(self) -> pulumi.Input[str]:
|
|
87
108
|
"""
|
|
88
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
109
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
110
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
111
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
112
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
113
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
114
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
89
115
|
"""
|
|
90
116
|
return pulumi.get(self, "plan")
|
|
91
117
|
|
|
@@ -97,7 +123,8 @@ class GrafanaArgs:
|
|
|
97
123
|
@pulumi.getter
|
|
98
124
|
def project(self) -> pulumi.Input[str]:
|
|
99
125
|
"""
|
|
100
|
-
|
|
126
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
127
|
+
reference. Changing this property forces recreation of the resource.
|
|
101
128
|
"""
|
|
102
129
|
return pulumi.get(self, "project")
|
|
103
130
|
|
|
@@ -109,7 +136,8 @@ class GrafanaArgs:
|
|
|
109
136
|
@pulumi.getter(name="additionalDiskSpace")
|
|
110
137
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
111
138
|
"""
|
|
112
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
139
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
140
|
+
reducing will result in the service rebalancing.
|
|
113
141
|
"""
|
|
114
142
|
return pulumi.get(self, "additional_disk_space")
|
|
115
143
|
|
|
@@ -121,7 +149,12 @@ class GrafanaArgs:
|
|
|
121
149
|
@pulumi.getter(name="cloudName")
|
|
122
150
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
123
151
|
"""
|
|
124
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
152
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
153
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
154
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
155
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
156
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
157
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
125
158
|
"""
|
|
126
159
|
return pulumi.get(self, "cloud_name")
|
|
127
160
|
|
|
@@ -133,7 +166,8 @@ class GrafanaArgs:
|
|
|
133
166
|
@pulumi.getter(name="diskSpace")
|
|
134
167
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
135
168
|
"""
|
|
136
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
169
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
170
|
+
will result in the service rebalancing.
|
|
137
171
|
"""
|
|
138
172
|
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
139
173
|
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
@@ -184,7 +218,10 @@ class GrafanaArgs:
|
|
|
184
218
|
@pulumi.getter(name="projectVpcId")
|
|
185
219
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
186
220
|
"""
|
|
187
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
221
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
222
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
223
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
224
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
188
225
|
"""
|
|
189
226
|
return pulumi.get(self, "project_vpc_id")
|
|
190
227
|
|
|
@@ -208,7 +245,8 @@ class GrafanaArgs:
|
|
|
208
245
|
@pulumi.getter(name="serviceName")
|
|
209
246
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
210
247
|
"""
|
|
211
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
248
|
+
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
249
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
212
250
|
"""
|
|
213
251
|
return pulumi.get(self, "service_name")
|
|
214
252
|
|
|
@@ -220,7 +258,8 @@ class GrafanaArgs:
|
|
|
220
258
|
@pulumi.getter(name="staticIps")
|
|
221
259
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
222
260
|
"""
|
|
223
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
261
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
262
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
224
263
|
"""
|
|
225
264
|
return pulumi.get(self, "static_ips")
|
|
226
265
|
|
|
@@ -244,7 +283,8 @@ class GrafanaArgs:
|
|
|
244
283
|
@pulumi.getter(name="techEmails")
|
|
245
284
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]]]:
|
|
246
285
|
"""
|
|
247
|
-
|
|
286
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
287
|
+
instability.
|
|
248
288
|
"""
|
|
249
289
|
return pulumi.get(self, "tech_emails")
|
|
250
290
|
|
|
@@ -256,7 +296,9 @@ class GrafanaArgs:
|
|
|
256
296
|
@pulumi.getter(name="terminationProtection")
|
|
257
297
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
258
298
|
"""
|
|
259
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
299
|
+
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
300
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
301
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
260
302
|
"""
|
|
261
303
|
return pulumi.get(self, "termination_protection")
|
|
262
304
|
|
|
@@ -277,6 +319,7 @@ class _GrafanaState:
|
|
|
277
319
|
disk_space_step: Optional[pulumi.Input[str]] = None,
|
|
278
320
|
disk_space_used: Optional[pulumi.Input[str]] = None,
|
|
279
321
|
grafana_user_config: Optional[pulumi.Input['GrafanaGrafanaUserConfigArgs']] = None,
|
|
322
|
+
grafanas: Optional[pulumi.Input[Sequence[pulumi.Input['GrafanaGrafanaArgs']]]] = None,
|
|
280
323
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
281
324
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
282
325
|
plan: Optional[pulumi.Input[str]] = None,
|
|
@@ -297,33 +340,57 @@ class _GrafanaState:
|
|
|
297
340
|
termination_protection: Optional[pulumi.Input[bool]] = None):
|
|
298
341
|
"""
|
|
299
342
|
Input properties used for looking up and filtering Grafana resources.
|
|
300
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
301
|
-
|
|
343
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
344
|
+
reducing will result in the service rebalancing.
|
|
345
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
346
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
347
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
348
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
349
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
350
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
302
351
|
:param pulumi.Input[Sequence[pulumi.Input['GrafanaComponentArgs']]] components: Service component information objects
|
|
303
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
352
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
353
|
+
will result in the service rebalancing.
|
|
304
354
|
:param pulumi.Input[str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
305
|
-
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
306
|
-
|
|
355
|
+
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
356
|
+
Its also the minimum value for `disk_space`
|
|
357
|
+
:param pulumi.Input[str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
358
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
307
359
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
308
360
|
:param pulumi.Input['GrafanaGrafanaUserConfigArgs'] grafana_user_config: Grafana user configurable settings
|
|
361
|
+
:param pulumi.Input[Sequence[pulumi.Input['GrafanaGrafanaArgs']]] grafanas: Grafana server provided values
|
|
309
362
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
310
363
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
311
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
312
|
-
|
|
313
|
-
|
|
364
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
365
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
366
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
367
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
368
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
369
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
370
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
371
|
+
reference. Changing this property forces recreation of the resource.
|
|
372
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
373
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
374
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
375
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
314
376
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
315
377
|
:param pulumi.Input[Sequence[pulumi.Input['GrafanaServiceIntegrationArgs']]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
316
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
378
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
379
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
317
380
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
318
381
|
:param pulumi.Input[int] service_port: The port of the service
|
|
319
382
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
320
383
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
321
384
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
322
385
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
323
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
386
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
387
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
324
388
|
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTagArgs']]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
325
|
-
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]] tech_emails:
|
|
326
|
-
|
|
389
|
+
:param pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
390
|
+
instability.
|
|
391
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
392
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
393
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
327
394
|
"""
|
|
328
395
|
if additional_disk_space is not None:
|
|
329
396
|
pulumi.set(__self__, "additional_disk_space", additional_disk_space)
|
|
@@ -346,6 +413,8 @@ class _GrafanaState:
|
|
|
346
413
|
pulumi.set(__self__, "disk_space_used", disk_space_used)
|
|
347
414
|
if grafana_user_config is not None:
|
|
348
415
|
pulumi.set(__self__, "grafana_user_config", grafana_user_config)
|
|
416
|
+
if grafanas is not None:
|
|
417
|
+
pulumi.set(__self__, "grafanas", grafanas)
|
|
349
418
|
if maintenance_window_dow is not None:
|
|
350
419
|
pulumi.set(__self__, "maintenance_window_dow", maintenance_window_dow)
|
|
351
420
|
if maintenance_window_time is not None:
|
|
@@ -387,7 +456,8 @@ class _GrafanaState:
|
|
|
387
456
|
@pulumi.getter(name="additionalDiskSpace")
|
|
388
457
|
def additional_disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
389
458
|
"""
|
|
390
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
459
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
460
|
+
reducing will result in the service rebalancing.
|
|
391
461
|
"""
|
|
392
462
|
return pulumi.get(self, "additional_disk_space")
|
|
393
463
|
|
|
@@ -399,7 +469,12 @@ class _GrafanaState:
|
|
|
399
469
|
@pulumi.getter(name="cloudName")
|
|
400
470
|
def cloud_name(self) -> Optional[pulumi.Input[str]]:
|
|
401
471
|
"""
|
|
402
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
472
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
473
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
474
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
475
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
476
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
477
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
403
478
|
"""
|
|
404
479
|
return pulumi.get(self, "cloud_name")
|
|
405
480
|
|
|
@@ -423,7 +498,8 @@ class _GrafanaState:
|
|
|
423
498
|
@pulumi.getter(name="diskSpace")
|
|
424
499
|
def disk_space(self) -> Optional[pulumi.Input[str]]:
|
|
425
500
|
"""
|
|
426
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
501
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
502
|
+
will result in the service rebalancing.
|
|
427
503
|
"""
|
|
428
504
|
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
429
505
|
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
@@ -450,7 +526,8 @@ class _GrafanaState:
|
|
|
450
526
|
@pulumi.getter(name="diskSpaceDefault")
|
|
451
527
|
def disk_space_default(self) -> Optional[pulumi.Input[str]]:
|
|
452
528
|
"""
|
|
453
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
529
|
+
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
530
|
+
Its also the minimum value for `disk_space`
|
|
454
531
|
"""
|
|
455
532
|
return pulumi.get(self, "disk_space_default")
|
|
456
533
|
|
|
@@ -462,7 +539,8 @@ class _GrafanaState:
|
|
|
462
539
|
@pulumi.getter(name="diskSpaceStep")
|
|
463
540
|
def disk_space_step(self) -> Optional[pulumi.Input[str]]:
|
|
464
541
|
"""
|
|
465
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
542
|
+
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
543
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
466
544
|
"""
|
|
467
545
|
return pulumi.get(self, "disk_space_step")
|
|
468
546
|
|
|
@@ -494,6 +572,18 @@ class _GrafanaState:
|
|
|
494
572
|
def grafana_user_config(self, value: Optional[pulumi.Input['GrafanaGrafanaUserConfigArgs']]):
|
|
495
573
|
pulumi.set(self, "grafana_user_config", value)
|
|
496
574
|
|
|
575
|
+
@property
|
|
576
|
+
@pulumi.getter
|
|
577
|
+
def grafanas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GrafanaGrafanaArgs']]]]:
|
|
578
|
+
"""
|
|
579
|
+
Grafana server provided values
|
|
580
|
+
"""
|
|
581
|
+
return pulumi.get(self, "grafanas")
|
|
582
|
+
|
|
583
|
+
@grafanas.setter
|
|
584
|
+
def grafanas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['GrafanaGrafanaArgs']]]]):
|
|
585
|
+
pulumi.set(self, "grafanas", value)
|
|
586
|
+
|
|
497
587
|
@property
|
|
498
588
|
@pulumi.getter(name="maintenanceWindowDow")
|
|
499
589
|
def maintenance_window_dow(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -522,7 +612,12 @@ class _GrafanaState:
|
|
|
522
612
|
@pulumi.getter
|
|
523
613
|
def plan(self) -> Optional[pulumi.Input[str]]:
|
|
524
614
|
"""
|
|
525
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
615
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
616
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
617
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
618
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
619
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
620
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
526
621
|
"""
|
|
527
622
|
return pulumi.get(self, "plan")
|
|
528
623
|
|
|
@@ -534,7 +629,8 @@ class _GrafanaState:
|
|
|
534
629
|
@pulumi.getter
|
|
535
630
|
def project(self) -> Optional[pulumi.Input[str]]:
|
|
536
631
|
"""
|
|
537
|
-
|
|
632
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
633
|
+
reference. Changing this property forces recreation of the resource.
|
|
538
634
|
"""
|
|
539
635
|
return pulumi.get(self, "project")
|
|
540
636
|
|
|
@@ -546,7 +642,10 @@ class _GrafanaState:
|
|
|
546
642
|
@pulumi.getter(name="projectVpcId")
|
|
547
643
|
def project_vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
548
644
|
"""
|
|
549
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
645
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
646
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
647
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
648
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
550
649
|
"""
|
|
551
650
|
return pulumi.get(self, "project_vpc_id")
|
|
552
651
|
|
|
@@ -582,7 +681,8 @@ class _GrafanaState:
|
|
|
582
681
|
@pulumi.getter(name="serviceName")
|
|
583
682
|
def service_name(self) -> Optional[pulumi.Input[str]]:
|
|
584
683
|
"""
|
|
585
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
684
|
+
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
685
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
586
686
|
"""
|
|
587
687
|
return pulumi.get(self, "service_name")
|
|
588
688
|
|
|
@@ -666,7 +766,8 @@ class _GrafanaState:
|
|
|
666
766
|
@pulumi.getter(name="staticIps")
|
|
667
767
|
def static_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
668
768
|
"""
|
|
669
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
769
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
770
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
670
771
|
"""
|
|
671
772
|
return pulumi.get(self, "static_ips")
|
|
672
773
|
|
|
@@ -690,7 +791,8 @@ class _GrafanaState:
|
|
|
690
791
|
@pulumi.getter(name="techEmails")
|
|
691
792
|
def tech_emails(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['GrafanaTechEmailArgs']]]]:
|
|
692
793
|
"""
|
|
693
|
-
|
|
794
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
795
|
+
instability.
|
|
694
796
|
"""
|
|
695
797
|
return pulumi.get(self, "tech_emails")
|
|
696
798
|
|
|
@@ -702,7 +804,9 @@ class _GrafanaState:
|
|
|
702
804
|
@pulumi.getter(name="terminationProtection")
|
|
703
805
|
def termination_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
704
806
|
"""
|
|
705
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
807
|
+
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
808
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
809
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
706
810
|
"""
|
|
707
811
|
return pulumi.get(self, "termination_protection")
|
|
708
812
|
|
|
@@ -737,15 +841,15 @@ class Grafana(pulumi.CustomResource):
|
|
|
737
841
|
|
|
738
842
|
## Example Usage
|
|
739
843
|
|
|
844
|
+
<!--Start PulumiCodeChooser -->
|
|
740
845
|
```python
|
|
741
846
|
import pulumi
|
|
742
847
|
import pulumi_aiven as aiven
|
|
743
848
|
|
|
744
849
|
gr1 = aiven.Grafana("gr1",
|
|
745
|
-
project=ps1["project"],
|
|
850
|
+
project=data["aiven_project"]["ps1"]["project"],
|
|
746
851
|
cloud_name="google-europe-west1",
|
|
747
852
|
plan="startup-1",
|
|
748
|
-
service_name="my-gr1",
|
|
749
853
|
maintenance_window_dow="monday",
|
|
750
854
|
maintenance_window_time="10:00:00",
|
|
751
855
|
grafana_user_config=aiven.GrafanaGrafanaUserConfigArgs(
|
|
@@ -755,6 +859,7 @@ class Grafana(pulumi.CustomResource):
|
|
|
755
859
|
),
|
|
756
860
|
))
|
|
757
861
|
```
|
|
862
|
+
<!--End PulumiCodeChooser -->
|
|
758
863
|
|
|
759
864
|
## Import
|
|
760
865
|
|
|
@@ -764,21 +869,42 @@ class Grafana(pulumi.CustomResource):
|
|
|
764
869
|
|
|
765
870
|
:param str resource_name: The name of the resource.
|
|
766
871
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
767
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
768
|
-
|
|
769
|
-
:param pulumi.Input[str]
|
|
872
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
873
|
+
reducing will result in the service rebalancing.
|
|
874
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
875
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
876
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
877
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
878
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
879
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
880
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
881
|
+
will result in the service rebalancing.
|
|
770
882
|
:param pulumi.Input[pulumi.InputType['GrafanaGrafanaUserConfigArgs']] grafana_user_config: Grafana user configurable settings
|
|
771
883
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
772
884
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
773
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
774
|
-
|
|
775
|
-
|
|
885
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
886
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
887
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
888
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
889
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
890
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
891
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
892
|
+
reference. Changing this property forces recreation of the resource.
|
|
893
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
894
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
895
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
896
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
776
897
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
777
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
778
|
-
|
|
898
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
899
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
900
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
901
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
779
902
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
780
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTechEmailArgs']]]] tech_emails:
|
|
781
|
-
|
|
903
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
904
|
+
instability.
|
|
905
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
906
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
907
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
782
908
|
"""
|
|
783
909
|
...
|
|
784
910
|
@overload
|
|
@@ -791,15 +917,15 @@ class Grafana(pulumi.CustomResource):
|
|
|
791
917
|
|
|
792
918
|
## Example Usage
|
|
793
919
|
|
|
920
|
+
<!--Start PulumiCodeChooser -->
|
|
794
921
|
```python
|
|
795
922
|
import pulumi
|
|
796
923
|
import pulumi_aiven as aiven
|
|
797
924
|
|
|
798
925
|
gr1 = aiven.Grafana("gr1",
|
|
799
|
-
project=ps1["project"],
|
|
926
|
+
project=data["aiven_project"]["ps1"]["project"],
|
|
800
927
|
cloud_name="google-europe-west1",
|
|
801
928
|
plan="startup-1",
|
|
802
|
-
service_name="my-gr1",
|
|
803
929
|
maintenance_window_dow="monday",
|
|
804
930
|
maintenance_window_time="10:00:00",
|
|
805
931
|
grafana_user_config=aiven.GrafanaGrafanaUserConfigArgs(
|
|
@@ -809,6 +935,7 @@ class Grafana(pulumi.CustomResource):
|
|
|
809
935
|
),
|
|
810
936
|
))
|
|
811
937
|
```
|
|
938
|
+
<!--End PulumiCodeChooser -->
|
|
812
939
|
|
|
813
940
|
## Import
|
|
814
941
|
|
|
@@ -879,6 +1006,7 @@ class Grafana(pulumi.CustomResource):
|
|
|
879
1006
|
__props__.__dict__["disk_space_default"] = None
|
|
880
1007
|
__props__.__dict__["disk_space_step"] = None
|
|
881
1008
|
__props__.__dict__["disk_space_used"] = None
|
|
1009
|
+
__props__.__dict__["grafanas"] = None
|
|
882
1010
|
__props__.__dict__["service_host"] = None
|
|
883
1011
|
__props__.__dict__["service_password"] = None
|
|
884
1012
|
__props__.__dict__["service_port"] = None
|
|
@@ -907,6 +1035,7 @@ class Grafana(pulumi.CustomResource):
|
|
|
907
1035
|
disk_space_step: Optional[pulumi.Input[str]] = None,
|
|
908
1036
|
disk_space_used: Optional[pulumi.Input[str]] = None,
|
|
909
1037
|
grafana_user_config: Optional[pulumi.Input[pulumi.InputType['GrafanaGrafanaUserConfigArgs']]] = None,
|
|
1038
|
+
grafanas: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaGrafanaArgs']]]]] = None,
|
|
910
1039
|
maintenance_window_dow: Optional[pulumi.Input[str]] = None,
|
|
911
1040
|
maintenance_window_time: Optional[pulumi.Input[str]] = None,
|
|
912
1041
|
plan: Optional[pulumi.Input[str]] = None,
|
|
@@ -932,33 +1061,57 @@ class Grafana(pulumi.CustomResource):
|
|
|
932
1061
|
:param str resource_name: The unique name of the resulting resource.
|
|
933
1062
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
934
1063
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
935
|
-
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
936
|
-
|
|
1064
|
+
:param pulumi.Input[str] additional_disk_space: Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1065
|
+
reducing will result in the service rebalancing.
|
|
1066
|
+
:param pulumi.Input[str] cloud_name: Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1067
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
1068
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1069
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
1070
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1071
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
937
1072
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaComponentArgs']]]] components: Service component information objects
|
|
938
|
-
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1073
|
+
:param pulumi.Input[str] disk_space: Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1074
|
+
will result in the service rebalancing.
|
|
939
1075
|
:param pulumi.Input[str] disk_space_cap: The maximum disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
940
|
-
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
941
|
-
|
|
1076
|
+
:param pulumi.Input[str] disk_space_default: The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1077
|
+
Its also the minimum value for `disk_space`
|
|
1078
|
+
:param pulumi.Input[str] disk_space_step: The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1079
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
942
1080
|
:param pulumi.Input[str] disk_space_used: Disk space that service is currently using
|
|
943
1081
|
:param pulumi.Input[pulumi.InputType['GrafanaGrafanaUserConfigArgs']] grafana_user_config: Grafana user configurable settings
|
|
1082
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaGrafanaArgs']]]] grafanas: Grafana server provided values
|
|
944
1083
|
:param pulumi.Input[str] maintenance_window_dow: Day of week when maintenance operations should be performed. One monday, tuesday, wednesday, etc.
|
|
945
1084
|
:param pulumi.Input[str] maintenance_window_time: Time of day when maintenance operations should be performed. UTC time in HH:mm:ss format.
|
|
946
|
-
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
947
|
-
|
|
948
|
-
|
|
1085
|
+
:param pulumi.Input[str] plan: Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1086
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
1087
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
1088
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1089
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1090
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1091
|
+
:param pulumi.Input[str] project: Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
1092
|
+
reference. Changing this property forces recreation of the resource.
|
|
1093
|
+
:param pulumi.Input[str] project_vpc_id: Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
1094
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1095
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1096
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
949
1097
|
:param pulumi.Input[str] service_host: The hostname of the service.
|
|
950
1098
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaServiceIntegrationArgs']]]] service_integrations: Service integrations to specify when creating a service. Not applied after initial service creation
|
|
951
|
-
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1099
|
+
:param pulumi.Input[str] service_name: Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1100
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
952
1101
|
:param pulumi.Input[str] service_password: Password used for connecting to the service, if applicable
|
|
953
1102
|
:param pulumi.Input[int] service_port: The port of the service
|
|
954
1103
|
:param pulumi.Input[str] service_type: Aiven internal service type code
|
|
955
1104
|
:param pulumi.Input[str] service_uri: URI for connecting to the service. Service specific info is under "kafka", "pg", etc.
|
|
956
1105
|
:param pulumi.Input[str] service_username: Username used for connecting to the service, if applicable
|
|
957
1106
|
:param pulumi.Input[str] state: Service state. One of `POWEROFF`, `REBALANCING`, `REBUILDING` or `RUNNING`
|
|
958
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1107
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] static_ips: Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1108
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
959
1109
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTagArgs']]]] tags: Tags are key-value pairs that allow you to categorize services.
|
|
960
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTechEmailArgs']]]] tech_emails:
|
|
961
|
-
|
|
1110
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['GrafanaTechEmailArgs']]]] tech_emails: Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
1111
|
+
instability.
|
|
1112
|
+
:param pulumi.Input[bool] termination_protection: Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1113
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1114
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
962
1115
|
"""
|
|
963
1116
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
964
1117
|
|
|
@@ -973,6 +1126,7 @@ class Grafana(pulumi.CustomResource):
|
|
|
973
1126
|
__props__.__dict__["disk_space_step"] = disk_space_step
|
|
974
1127
|
__props__.__dict__["disk_space_used"] = disk_space_used
|
|
975
1128
|
__props__.__dict__["grafana_user_config"] = grafana_user_config
|
|
1129
|
+
__props__.__dict__["grafanas"] = grafanas
|
|
976
1130
|
__props__.__dict__["maintenance_window_dow"] = maintenance_window_dow
|
|
977
1131
|
__props__.__dict__["maintenance_window_time"] = maintenance_window_time
|
|
978
1132
|
__props__.__dict__["plan"] = plan
|
|
@@ -997,7 +1151,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
997
1151
|
@pulumi.getter(name="additionalDiskSpace")
|
|
998
1152
|
def additional_disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
999
1153
|
"""
|
|
1000
|
-
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1154
|
+
Additional disk space. Possible values depend on the service type, the cloud provider and the project. Therefore,
|
|
1155
|
+
reducing will result in the service rebalancing.
|
|
1001
1156
|
"""
|
|
1002
1157
|
return pulumi.get(self, "additional_disk_space")
|
|
1003
1158
|
|
|
@@ -1005,7 +1160,12 @@ class Grafana(pulumi.CustomResource):
|
|
|
1005
1160
|
@pulumi.getter(name="cloudName")
|
|
1006
1161
|
def cloud_name(self) -> pulumi.Output[Optional[str]]:
|
|
1007
1162
|
"""
|
|
1008
|
-
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1163
|
+
Defines where the cloud provider and region where the service is hosted in. This can be changed freely after service is
|
|
1164
|
+
created. Changing the value will trigger a potentially lengthy migration process for the service. Format is cloud
|
|
1165
|
+
provider name (`aws`, `azure`, `do` `google`, `upcloud`, etc.), dash, and the cloud provider specific region name. These
|
|
1166
|
+
are documented on each Cloud provider's own support articles, like [here for
|
|
1167
|
+
Google](https://cloud.google.com/compute/docs/regions-zones/) and [here for
|
|
1168
|
+
AWS](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html).
|
|
1009
1169
|
"""
|
|
1010
1170
|
return pulumi.get(self, "cloud_name")
|
|
1011
1171
|
|
|
@@ -1021,7 +1181,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1021
1181
|
@pulumi.getter(name="diskSpace")
|
|
1022
1182
|
def disk_space(self) -> pulumi.Output[Optional[str]]:
|
|
1023
1183
|
"""
|
|
1024
|
-
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1184
|
+
Service disk space. Possible values depend on the service type, the cloud provider and the project. Therefore, reducing
|
|
1185
|
+
will result in the service rebalancing.
|
|
1025
1186
|
"""
|
|
1026
1187
|
warnings.warn("""This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""", DeprecationWarning)
|
|
1027
1188
|
pulumi.log.warn("""disk_space is deprecated: This will be removed in v5.0.0. Please use `additional_disk_space` to specify the space to be added to the default `disk_space` defined by the plan.""")
|
|
@@ -1040,7 +1201,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1040
1201
|
@pulumi.getter(name="diskSpaceDefault")
|
|
1041
1202
|
def disk_space_default(self) -> pulumi.Output[str]:
|
|
1042
1203
|
"""
|
|
1043
|
-
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1204
|
+
The default disk space of the service, possible values depend on the service type, the cloud provider and the project.
|
|
1205
|
+
Its also the minimum value for `disk_space`
|
|
1044
1206
|
"""
|
|
1045
1207
|
return pulumi.get(self, "disk_space_default")
|
|
1046
1208
|
|
|
@@ -1048,7 +1210,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1048
1210
|
@pulumi.getter(name="diskSpaceStep")
|
|
1049
1211
|
def disk_space_step(self) -> pulumi.Output[str]:
|
|
1050
1212
|
"""
|
|
1051
|
-
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1213
|
+
The default disk space step of the service, possible values depend on the service type, the cloud provider and the
|
|
1214
|
+
project. `disk_space` needs to increment from `disk_space_default` by increments of this size.
|
|
1052
1215
|
"""
|
|
1053
1216
|
return pulumi.get(self, "disk_space_step")
|
|
1054
1217
|
|
|
@@ -1068,6 +1231,14 @@ class Grafana(pulumi.CustomResource):
|
|
|
1068
1231
|
"""
|
|
1069
1232
|
return pulumi.get(self, "grafana_user_config")
|
|
1070
1233
|
|
|
1234
|
+
@property
|
|
1235
|
+
@pulumi.getter
|
|
1236
|
+
def grafanas(self) -> pulumi.Output[Sequence['outputs.GrafanaGrafana']]:
|
|
1237
|
+
"""
|
|
1238
|
+
Grafana server provided values
|
|
1239
|
+
"""
|
|
1240
|
+
return pulumi.get(self, "grafanas")
|
|
1241
|
+
|
|
1071
1242
|
@property
|
|
1072
1243
|
@pulumi.getter(name="maintenanceWindowDow")
|
|
1073
1244
|
def maintenance_window_dow(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1088,7 +1259,12 @@ class Grafana(pulumi.CustomResource):
|
|
|
1088
1259
|
@pulumi.getter
|
|
1089
1260
|
def plan(self) -> pulumi.Output[str]:
|
|
1090
1261
|
"""
|
|
1091
|
-
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1262
|
+
Defines what kind of computing resources are allocated for the service. It can be changed after creation, though there
|
|
1263
|
+
are some restrictions when going to a smaller plan such as the new plan must have sufficient amount of disk space to
|
|
1264
|
+
store all current data and switching to a plan with fewer nodes might not be supported. The basic plan names are
|
|
1265
|
+
`hobbyist`, `startup-x`, `business-x` and `premium-x` where `x` is (roughly) the amount of memory on each node (also
|
|
1266
|
+
other attributes like number of CPUs and amount of disk space varies but naming is based on memory). The available
|
|
1267
|
+
options can be seem from the [Aiven pricing page](https://aiven.io/pricing).
|
|
1092
1268
|
"""
|
|
1093
1269
|
return pulumi.get(self, "plan")
|
|
1094
1270
|
|
|
@@ -1096,7 +1272,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1096
1272
|
@pulumi.getter
|
|
1097
1273
|
def project(self) -> pulumi.Output[str]:
|
|
1098
1274
|
"""
|
|
1099
|
-
|
|
1275
|
+
Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a
|
|
1276
|
+
reference. Changing this property forces recreation of the resource.
|
|
1100
1277
|
"""
|
|
1101
1278
|
return pulumi.get(self, "project")
|
|
1102
1279
|
|
|
@@ -1104,7 +1281,10 @@ class Grafana(pulumi.CustomResource):
|
|
|
1104
1281
|
@pulumi.getter(name="projectVpcId")
|
|
1105
1282
|
def project_vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
1106
1283
|
"""
|
|
1107
|
-
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
1284
|
+
Specifies the VPC the service should run in. If the value is not set the service is not run inside a VPC. When set, the
|
|
1285
|
+
value should be given as a reference to set up dependencies correctly and the VPC must be in the same cloud and region
|
|
1286
|
+
as the service itself. Project can be freely moved to and from VPC after creation but doing so triggers migration to new
|
|
1287
|
+
servers so the operation can take significant amount of time to complete if the service has a lot of data.
|
|
1108
1288
|
"""
|
|
1109
1289
|
return pulumi.get(self, "project_vpc_id")
|
|
1110
1290
|
|
|
@@ -1128,7 +1308,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1128
1308
|
@pulumi.getter(name="serviceName")
|
|
1129
1309
|
def service_name(self) -> pulumi.Output[str]:
|
|
1130
1310
|
"""
|
|
1131
|
-
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1311
|
+
Specifies the actual name of the service. The name cannot be changed later without destroying and re-creating the
|
|
1312
|
+
service so name should be picked based on intended service usage rather than current attributes.
|
|
1132
1313
|
"""
|
|
1133
1314
|
return pulumi.get(self, "service_name")
|
|
1134
1315
|
|
|
@@ -1184,7 +1365,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1184
1365
|
@pulumi.getter(name="staticIps")
|
|
1185
1366
|
def static_ips(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
1186
1367
|
"""
|
|
1187
|
-
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1368
|
+
Static IPs that are going to be associated with this service. Please assign a value using the 'toset' function. Once a
|
|
1369
|
+
static ip resource is in the 'assigned' state it cannot be unbound from the node again
|
|
1188
1370
|
"""
|
|
1189
1371
|
return pulumi.get(self, "static_ips")
|
|
1190
1372
|
|
|
@@ -1200,7 +1382,8 @@ class Grafana(pulumi.CustomResource):
|
|
|
1200
1382
|
@pulumi.getter(name="techEmails")
|
|
1201
1383
|
def tech_emails(self) -> pulumi.Output[Optional[Sequence['outputs.GrafanaTechEmail']]]:
|
|
1202
1384
|
"""
|
|
1203
|
-
|
|
1385
|
+
Defines the email addresses that will receive alerts about upcoming maintenance updates or warnings about service
|
|
1386
|
+
instability.
|
|
1204
1387
|
"""
|
|
1205
1388
|
return pulumi.get(self, "tech_emails")
|
|
1206
1389
|
|
|
@@ -1208,7 +1391,9 @@ class Grafana(pulumi.CustomResource):
|
|
|
1208
1391
|
@pulumi.getter(name="terminationProtection")
|
|
1209
1392
|
def termination_protection(self) -> pulumi.Output[Optional[bool]]:
|
|
1210
1393
|
"""
|
|
1211
|
-
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1394
|
+
Prevents the service from being deleted. It is recommended to set this to `true` for all production services to prevent
|
|
1395
|
+
unintentional service deletion. This does not shield against deleting databases or topics but for services with backups
|
|
1396
|
+
much of the content can at least be restored from backup in case accidental deletion is done.
|
|
1212
1397
|
"""
|
|
1213
1398
|
return pulumi.get(self, "termination_protection")
|
|
1214
1399
|
|