pulumiverse-scaleway 1.16.0__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 pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +1073 -0
- pulumiverse_scaleway/_inputs.py +8665 -0
- pulumiverse_scaleway/_utilities.py +327 -0
- pulumiverse_scaleway/account_project.py +316 -0
- pulumiverse_scaleway/account_ssh_key.py +450 -0
- pulumiverse_scaleway/apple_silicon_server.py +564 -0
- pulumiverse_scaleway/baremetal_server.py +1390 -0
- pulumiverse_scaleway/block_snapshot.py +391 -0
- pulumiverse_scaleway/block_volume.py +521 -0
- pulumiverse_scaleway/cockpit.py +299 -0
- pulumiverse_scaleway/cockpit_alert_manager.py +345 -0
- pulumiverse_scaleway/cockpit_grafana_user.py +326 -0
- pulumiverse_scaleway/cockpit_source.py +481 -0
- pulumiverse_scaleway/cockpit_token.py +461 -0
- pulumiverse_scaleway/config/__init__.py +8 -0
- pulumiverse_scaleway/config/__init__.pyi +56 -0
- pulumiverse_scaleway/config/vars.py +78 -0
- pulumiverse_scaleway/container.py +1387 -0
- pulumiverse_scaleway/container_cron.py +493 -0
- pulumiverse_scaleway/container_domain.py +400 -0
- pulumiverse_scaleway/container_namespace.py +589 -0
- pulumiverse_scaleway/container_token.py +454 -0
- pulumiverse_scaleway/container_trigger.py +478 -0
- pulumiverse_scaleway/database.py +407 -0
- pulumiverse_scaleway/database_acl.py +332 -0
- pulumiverse_scaleway/database_backup.py +574 -0
- pulumiverse_scaleway/database_instance.py +1636 -0
- pulumiverse_scaleway/database_privilege.py +422 -0
- pulumiverse_scaleway/database_read_replica.py +528 -0
- pulumiverse_scaleway/database_user.py +446 -0
- pulumiverse_scaleway/documentdb_database.py +450 -0
- pulumiverse_scaleway/documentdb_instance.py +812 -0
- pulumiverse_scaleway/documentdb_private_network_endpoint.py +352 -0
- pulumiverse_scaleway/documentdb_privilege.py +402 -0
- pulumiverse_scaleway/documentdb_read_replica.py +405 -0
- pulumiverse_scaleway/documentdb_user.py +442 -0
- pulumiverse_scaleway/domain_record.py +1074 -0
- pulumiverse_scaleway/domain_zone.py +458 -0
- pulumiverse_scaleway/flexible_ip.py +702 -0
- pulumiverse_scaleway/flexible_ip_mac_address.py +510 -0
- pulumiverse_scaleway/function.py +1145 -0
- pulumiverse_scaleway/function_cron.py +480 -0
- pulumiverse_scaleway/function_domain.py +361 -0
- pulumiverse_scaleway/function_namespace.py +533 -0
- pulumiverse_scaleway/function_token.py +462 -0
- pulumiverse_scaleway/function_trigger.py +478 -0
- pulumiverse_scaleway/get_account_project.py +164 -0
- pulumiverse_scaleway/get_account_ssh_key.py +201 -0
- pulumiverse_scaleway/get_availability_zones.py +131 -0
- pulumiverse_scaleway/get_baremetal_offer.py +245 -0
- pulumiverse_scaleway/get_baremetal_option.py +168 -0
- pulumiverse_scaleway/get_baremetal_os.py +174 -0
- pulumiverse_scaleway/get_baremetal_server.py +411 -0
- pulumiverse_scaleway/get_billing_consumptions.py +134 -0
- pulumiverse_scaleway/get_billing_invoices.py +154 -0
- pulumiverse_scaleway/get_block_snapshot.py +170 -0
- pulumiverse_scaleway/get_block_volume.py +186 -0
- pulumiverse_scaleway/get_cockpit.py +179 -0
- pulumiverse_scaleway/get_cockpit_plan.py +113 -0
- pulumiverse_scaleway/get_config.py +180 -0
- pulumiverse_scaleway/get_container.py +502 -0
- pulumiverse_scaleway/get_container_namespace.py +262 -0
- pulumiverse_scaleway/get_database.py +187 -0
- pulumiverse_scaleway/get_database_acl.py +143 -0
- pulumiverse_scaleway/get_database_backup.py +253 -0
- pulumiverse_scaleway/get_database_instance.py +404 -0
- pulumiverse_scaleway/get_database_privilege.py +181 -0
- pulumiverse_scaleway/get_documentdb_database.py +198 -0
- pulumiverse_scaleway/get_documentdb_instance.py +245 -0
- pulumiverse_scaleway/get_documentdb_load_balancer_endpoint.py +198 -0
- pulumiverse_scaleway/get_domain_record.py +334 -0
- pulumiverse_scaleway/get_domain_zone.py +225 -0
- pulumiverse_scaleway/get_flexible_ip.py +247 -0
- pulumiverse_scaleway/get_flexible_ips.py +240 -0
- pulumiverse_scaleway/get_function.py +357 -0
- pulumiverse_scaleway/get_function_namespace.py +227 -0
- pulumiverse_scaleway/get_iam_api_key.py +210 -0
- pulumiverse_scaleway/get_iam_application.py +210 -0
- pulumiverse_scaleway/get_iam_group.py +236 -0
- pulumiverse_scaleway/get_iam_ssh_key.py +212 -0
- pulumiverse_scaleway/get_iam_user.py +157 -0
- pulumiverse_scaleway/get_instance_image.py +305 -0
- pulumiverse_scaleway/get_instance_ip.py +204 -0
- pulumiverse_scaleway/get_instance_placement_group.py +212 -0
- pulumiverse_scaleway/get_instance_private_nic.py +215 -0
- pulumiverse_scaleway/get_instance_security_group.py +268 -0
- pulumiverse_scaleway/get_instance_server.py +502 -0
- pulumiverse_scaleway/get_instance_servers.py +187 -0
- pulumiverse_scaleway/get_instance_snapshot.py +248 -0
- pulumiverse_scaleway/get_instance_volume.py +215 -0
- pulumiverse_scaleway/get_iot_device.py +257 -0
- pulumiverse_scaleway/get_iot_hub.py +322 -0
- pulumiverse_scaleway/get_ipam_ip.py +419 -0
- pulumiverse_scaleway/get_ipam_ips.py +358 -0
- pulumiverse_scaleway/get_k8s_version.py +196 -0
- pulumiverse_scaleway/get_kubernetes_cluster.py +417 -0
- pulumiverse_scaleway/get_kubernetes_node_pool.py +436 -0
- pulumiverse_scaleway/get_lb_acls.py +198 -0
- pulumiverse_scaleway/get_lb_backend.py +486 -0
- pulumiverse_scaleway/get_lb_backends.py +196 -0
- pulumiverse_scaleway/get_lb_frontend.py +274 -0
- pulumiverse_scaleway/get_lb_frontends.py +196 -0
- pulumiverse_scaleway/get_lb_ips.py +198 -0
- pulumiverse_scaleway/get_lb_route.py +217 -0
- pulumiverse_scaleway/get_lb_routes.py +179 -0
- pulumiverse_scaleway/get_lbs.py +187 -0
- pulumiverse_scaleway/get_loadbalancer.py +339 -0
- pulumiverse_scaleway/get_loadbalancer_certificate.py +230 -0
- pulumiverse_scaleway/get_loadbalancer_ip.py +222 -0
- pulumiverse_scaleway/get_marketplace_image.py +147 -0
- pulumiverse_scaleway/get_mnq_sqs.py +150 -0
- pulumiverse_scaleway/get_object_bucket.py +278 -0
- pulumiverse_scaleway/get_object_bucket_policy.py +157 -0
- pulumiverse_scaleway/get_redis_cluster.py +347 -0
- pulumiverse_scaleway/get_registry_image.py +239 -0
- pulumiverse_scaleway/get_registry_namespace.py +199 -0
- pulumiverse_scaleway/get_secret.py +290 -0
- pulumiverse_scaleway/get_secret_version.py +303 -0
- pulumiverse_scaleway/get_tem_domain.py +367 -0
- pulumiverse_scaleway/get_vpc.py +246 -0
- pulumiverse_scaleway/get_vpc_gateway_network.py +287 -0
- pulumiverse_scaleway/get_vpc_private_network.py +282 -0
- pulumiverse_scaleway/get_vpc_public_gateway.py +304 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp.py +305 -0
- pulumiverse_scaleway/get_vpc_public_gateway_dhcp_reservation.py +382 -0
- pulumiverse_scaleway/get_vpc_public_gateway_ip.py +199 -0
- pulumiverse_scaleway/get_vpc_public_pat_rule.py +313 -0
- pulumiverse_scaleway/get_vpc_routes.py +208 -0
- pulumiverse_scaleway/get_vpcs.py +174 -0
- pulumiverse_scaleway/get_web_host_offer.py +192 -0
- pulumiverse_scaleway/get_webhosting.py +332 -0
- pulumiverse_scaleway/iam_api_key.py +620 -0
- pulumiverse_scaleway/iam_application.py +417 -0
- pulumiverse_scaleway/iam_group.py +566 -0
- pulumiverse_scaleway/iam_group_membership.py +323 -0
- pulumiverse_scaleway/iam_policy.py +727 -0
- pulumiverse_scaleway/iam_ssh_key.py +455 -0
- pulumiverse_scaleway/iam_user.py +466 -0
- pulumiverse_scaleway/instance_image.py +750 -0
- pulumiverse_scaleway/instance_ip.py +483 -0
- pulumiverse_scaleway/instance_ip_reverse_dns.py +308 -0
- pulumiverse_scaleway/instance_placement_group.py +479 -0
- pulumiverse_scaleway/instance_private_nic.py +454 -0
- pulumiverse_scaleway/instance_security_group.py +720 -0
- pulumiverse_scaleway/instance_security_group_rules.py +439 -0
- pulumiverse_scaleway/instance_server.py +1907 -0
- pulumiverse_scaleway/instance_snapshot.py +669 -0
- pulumiverse_scaleway/instance_user_data.py +435 -0
- pulumiverse_scaleway/instance_volume.py +535 -0
- pulumiverse_scaleway/iot_device.py +750 -0
- pulumiverse_scaleway/iot_hub.py +896 -0
- pulumiverse_scaleway/iot_network.py +425 -0
- pulumiverse_scaleway/iot_route.py +660 -0
- pulumiverse_scaleway/ipam_ip.py +666 -0
- pulumiverse_scaleway/ipam_ip_reverse_dns.py +318 -0
- pulumiverse_scaleway/job_definition.py +692 -0
- pulumiverse_scaleway/kubernetes_cluster.py +1538 -0
- pulumiverse_scaleway/kubernetes_node_pool.py +1255 -0
- pulumiverse_scaleway/loadbalancer.py +1095 -0
- pulumiverse_scaleway/loadbalancer_acl.py +520 -0
- pulumiverse_scaleway/loadbalancer_backend.py +1588 -0
- pulumiverse_scaleway/loadbalancer_certificate.py +460 -0
- pulumiverse_scaleway/loadbalancer_frontend.py +829 -0
- pulumiverse_scaleway/loadbalancer_ip.py +514 -0
- pulumiverse_scaleway/loadbalancer_route.py +523 -0
- pulumiverse_scaleway/mnq_nats_account.py +334 -0
- pulumiverse_scaleway/mnq_nats_credentials.py +328 -0
- pulumiverse_scaleway/mnq_sns.py +306 -0
- pulumiverse_scaleway/mnq_sns_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sns_topic.py +659 -0
- pulumiverse_scaleway/mnq_sns_topic_subscription.py +699 -0
- pulumiverse_scaleway/mnq_sqs.py +304 -0
- pulumiverse_scaleway/mnq_sqs_credentials.py +413 -0
- pulumiverse_scaleway/mnq_sqs_queue.py +800 -0
- pulumiverse_scaleway/object_bucket.py +888 -0
- pulumiverse_scaleway/object_bucket_acl.py +592 -0
- pulumiverse_scaleway/object_bucket_lock_configuration.py +393 -0
- pulumiverse_scaleway/object_bucket_policy.py +671 -0
- pulumiverse_scaleway/object_bucket_website_configuration.py +532 -0
- pulumiverse_scaleway/object_item.py +711 -0
- pulumiverse_scaleway/outputs.py +11663 -0
- pulumiverse_scaleway/provider.py +327 -0
- pulumiverse_scaleway/pulumi-plugin.json +6 -0
- pulumiverse_scaleway/py.typed +0 -0
- pulumiverse_scaleway/redis_cluster.py +1166 -0
- pulumiverse_scaleway/registry_namespace.py +458 -0
- pulumiverse_scaleway/sdb_database.py +428 -0
- pulumiverse_scaleway/secret.py +560 -0
- pulumiverse_scaleway/secret_version.py +482 -0
- pulumiverse_scaleway/tem_domain.py +950 -0
- pulumiverse_scaleway/tem_domain_validation.py +303 -0
- pulumiverse_scaleway/vpc.py +536 -0
- pulumiverse_scaleway/vpc_gateway_network.py +866 -0
- pulumiverse_scaleway/vpc_private_network.py +734 -0
- pulumiverse_scaleway/vpc_public_gateway.py +789 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp.py +933 -0
- pulumiverse_scaleway/vpc_public_gateway_dhcp_reservation.py +514 -0
- pulumiverse_scaleway/vpc_public_gateway_ip.py +457 -0
- pulumiverse_scaleway/vpc_public_gateway_ip_reverse_dns.py +306 -0
- pulumiverse_scaleway/vpc_public_gateway_pat_rule.py +591 -0
- pulumiverse_scaleway/webhosting.py +805 -0
- pulumiverse_scaleway-1.16.0.dist-info/METADATA +69 -0
- pulumiverse_scaleway-1.16.0.dist-info/RECORD +205 -0
- pulumiverse_scaleway-1.16.0.dist-info/WHEEL +5 -0
- pulumiverse_scaleway-1.16.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
|
|
17
|
+
__all__ = ['SecretVersionArgs', 'SecretVersion']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class SecretVersionArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
data: pulumi.Input[str],
|
|
23
|
+
secret_id: pulumi.Input[str],
|
|
24
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
25
|
+
region: Optional[pulumi.Input[str]] = None):
|
|
26
|
+
"""
|
|
27
|
+
The set of arguments for constructing a SecretVersion resource.
|
|
28
|
+
:param pulumi.Input[str] data: The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
29
|
+
:param pulumi.Input[str] secret_id: The Secret ID associated wit the secret version.
|
|
30
|
+
:param pulumi.Input[str] description: Description of the secret version (e.g. `my-new-description`).
|
|
31
|
+
:param pulumi.Input[str] region: `region`) The region
|
|
32
|
+
in which the resource exists.
|
|
33
|
+
"""
|
|
34
|
+
pulumi.set(__self__, "data", data)
|
|
35
|
+
pulumi.set(__self__, "secret_id", secret_id)
|
|
36
|
+
if description is not None:
|
|
37
|
+
pulumi.set(__self__, "description", description)
|
|
38
|
+
if region is not None:
|
|
39
|
+
pulumi.set(__self__, "region", region)
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
@pulumi.getter
|
|
43
|
+
def data(self) -> pulumi.Input[str]:
|
|
44
|
+
"""
|
|
45
|
+
The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
46
|
+
"""
|
|
47
|
+
return pulumi.get(self, "data")
|
|
48
|
+
|
|
49
|
+
@data.setter
|
|
50
|
+
def data(self, value: pulumi.Input[str]):
|
|
51
|
+
pulumi.set(self, "data", value)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="secretId")
|
|
55
|
+
def secret_id(self) -> pulumi.Input[str]:
|
|
56
|
+
"""
|
|
57
|
+
The Secret ID associated wit the secret version.
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "secret_id")
|
|
60
|
+
|
|
61
|
+
@secret_id.setter
|
|
62
|
+
def secret_id(self, value: pulumi.Input[str]):
|
|
63
|
+
pulumi.set(self, "secret_id", value)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter
|
|
67
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
68
|
+
"""
|
|
69
|
+
Description of the secret version (e.g. `my-new-description`).
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "description")
|
|
72
|
+
|
|
73
|
+
@description.setter
|
|
74
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
75
|
+
pulumi.set(self, "description", value)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
80
|
+
"""
|
|
81
|
+
`region`) The region
|
|
82
|
+
in which the resource exists.
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "region")
|
|
85
|
+
|
|
86
|
+
@region.setter
|
|
87
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
88
|
+
pulumi.set(self, "region", value)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@pulumi.input_type
|
|
92
|
+
class _SecretVersionState:
|
|
93
|
+
def __init__(__self__, *,
|
|
94
|
+
created_at: Optional[pulumi.Input[str]] = None,
|
|
95
|
+
data: Optional[pulumi.Input[str]] = None,
|
|
96
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
97
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
98
|
+
revision: Optional[pulumi.Input[str]] = None,
|
|
99
|
+
secret_id: Optional[pulumi.Input[str]] = None,
|
|
100
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
101
|
+
updated_at: Optional[pulumi.Input[str]] = None):
|
|
102
|
+
"""
|
|
103
|
+
Input properties used for looking up and filtering SecretVersion resources.
|
|
104
|
+
:param pulumi.Input[str] created_at: Date and time of secret version's creation (RFC 3339 format).
|
|
105
|
+
:param pulumi.Input[str] data: The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
106
|
+
:param pulumi.Input[str] description: Description of the secret version (e.g. `my-new-description`).
|
|
107
|
+
:param pulumi.Input[str] region: `region`) The region
|
|
108
|
+
in which the resource exists.
|
|
109
|
+
:param pulumi.Input[str] revision: The revision for this Secret Version.
|
|
110
|
+
:param pulumi.Input[str] secret_id: The Secret ID associated wit the secret version.
|
|
111
|
+
:param pulumi.Input[str] status: The status of the Secret Version.
|
|
112
|
+
:param pulumi.Input[str] updated_at: Date and time of secret version's last update (RFC 3339 format).
|
|
113
|
+
"""
|
|
114
|
+
if created_at is not None:
|
|
115
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
116
|
+
if data is not None:
|
|
117
|
+
pulumi.set(__self__, "data", data)
|
|
118
|
+
if description is not None:
|
|
119
|
+
pulumi.set(__self__, "description", description)
|
|
120
|
+
if region is not None:
|
|
121
|
+
pulumi.set(__self__, "region", region)
|
|
122
|
+
if revision is not None:
|
|
123
|
+
pulumi.set(__self__, "revision", revision)
|
|
124
|
+
if secret_id is not None:
|
|
125
|
+
pulumi.set(__self__, "secret_id", secret_id)
|
|
126
|
+
if status is not None:
|
|
127
|
+
pulumi.set(__self__, "status", status)
|
|
128
|
+
if updated_at is not None:
|
|
129
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
130
|
+
|
|
131
|
+
@property
|
|
132
|
+
@pulumi.getter(name="createdAt")
|
|
133
|
+
def created_at(self) -> Optional[pulumi.Input[str]]:
|
|
134
|
+
"""
|
|
135
|
+
Date and time of secret version's creation (RFC 3339 format).
|
|
136
|
+
"""
|
|
137
|
+
return pulumi.get(self, "created_at")
|
|
138
|
+
|
|
139
|
+
@created_at.setter
|
|
140
|
+
def created_at(self, value: Optional[pulumi.Input[str]]):
|
|
141
|
+
pulumi.set(self, "created_at", value)
|
|
142
|
+
|
|
143
|
+
@property
|
|
144
|
+
@pulumi.getter
|
|
145
|
+
def data(self) -> Optional[pulumi.Input[str]]:
|
|
146
|
+
"""
|
|
147
|
+
The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
148
|
+
"""
|
|
149
|
+
return pulumi.get(self, "data")
|
|
150
|
+
|
|
151
|
+
@data.setter
|
|
152
|
+
def data(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
pulumi.set(self, "data", value)
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
@pulumi.getter
|
|
157
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
"""
|
|
159
|
+
Description of the secret version (e.g. `my-new-description`).
|
|
160
|
+
"""
|
|
161
|
+
return pulumi.get(self, "description")
|
|
162
|
+
|
|
163
|
+
@description.setter
|
|
164
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
165
|
+
pulumi.set(self, "description", value)
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
@pulumi.getter
|
|
169
|
+
def region(self) -> Optional[pulumi.Input[str]]:
|
|
170
|
+
"""
|
|
171
|
+
`region`) The region
|
|
172
|
+
in which the resource exists.
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "region")
|
|
175
|
+
|
|
176
|
+
@region.setter
|
|
177
|
+
def region(self, value: Optional[pulumi.Input[str]]):
|
|
178
|
+
pulumi.set(self, "region", value)
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
@pulumi.getter
|
|
182
|
+
def revision(self) -> Optional[pulumi.Input[str]]:
|
|
183
|
+
"""
|
|
184
|
+
The revision for this Secret Version.
|
|
185
|
+
"""
|
|
186
|
+
return pulumi.get(self, "revision")
|
|
187
|
+
|
|
188
|
+
@revision.setter
|
|
189
|
+
def revision(self, value: Optional[pulumi.Input[str]]):
|
|
190
|
+
pulumi.set(self, "revision", value)
|
|
191
|
+
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter(name="secretId")
|
|
194
|
+
def secret_id(self) -> Optional[pulumi.Input[str]]:
|
|
195
|
+
"""
|
|
196
|
+
The Secret ID associated wit the secret version.
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "secret_id")
|
|
199
|
+
|
|
200
|
+
@secret_id.setter
|
|
201
|
+
def secret_id(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "secret_id", value)
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter
|
|
206
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
207
|
+
"""
|
|
208
|
+
The status of the Secret Version.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "status")
|
|
211
|
+
|
|
212
|
+
@status.setter
|
|
213
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
214
|
+
pulumi.set(self, "status", value)
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter(name="updatedAt")
|
|
218
|
+
def updated_at(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
+
"""
|
|
220
|
+
Date and time of secret version's last update (RFC 3339 format).
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "updated_at")
|
|
223
|
+
|
|
224
|
+
@updated_at.setter
|
|
225
|
+
def updated_at(self, value: Optional[pulumi.Input[str]]):
|
|
226
|
+
pulumi.set(self, "updated_at", value)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
class SecretVersion(pulumi.CustomResource):
|
|
230
|
+
@overload
|
|
231
|
+
def __init__(__self__,
|
|
232
|
+
resource_name: str,
|
|
233
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
234
|
+
data: Optional[pulumi.Input[str]] = None,
|
|
235
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
236
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
237
|
+
secret_id: Optional[pulumi.Input[str]] = None,
|
|
238
|
+
__props__=None):
|
|
239
|
+
"""
|
|
240
|
+
Creates and manages Scaleway Secret Versions.
|
|
241
|
+
For more information, see [the documentation](https://www.scaleway.com/en/developers/api/secret-manager/#secret-versions-079501).
|
|
242
|
+
|
|
243
|
+
## Example Usage
|
|
244
|
+
|
|
245
|
+
### Basic
|
|
246
|
+
|
|
247
|
+
```python
|
|
248
|
+
import pulumi
|
|
249
|
+
import pulumiverse_scaleway as scaleway
|
|
250
|
+
|
|
251
|
+
main = scaleway.Secret("main",
|
|
252
|
+
name="foo",
|
|
253
|
+
description="barr",
|
|
254
|
+
tags=[
|
|
255
|
+
"foo",
|
|
256
|
+
"terraform",
|
|
257
|
+
])
|
|
258
|
+
v1 = scaleway.SecretVersion("v1",
|
|
259
|
+
description="version1",
|
|
260
|
+
secret_id=main.id,
|
|
261
|
+
data="my_new_secret")
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
## Import
|
|
265
|
+
|
|
266
|
+
The Secret Version can be imported using the `{region}/{id}/{revision}`, e.g.
|
|
267
|
+
|
|
268
|
+
~> **Important:** Be aware if you import with revision `latest` you will overwrite the version you used before.
|
|
269
|
+
|
|
270
|
+
bash
|
|
271
|
+
|
|
272
|
+
```sh
|
|
273
|
+
$ pulumi import scaleway:index/secretVersion:SecretVersion main fr-par/11111111-1111-1111-1111-111111111111/2
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
:param str resource_name: The name of the resource.
|
|
277
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
278
|
+
:param pulumi.Input[str] data: The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
279
|
+
:param pulumi.Input[str] description: Description of the secret version (e.g. `my-new-description`).
|
|
280
|
+
:param pulumi.Input[str] region: `region`) The region
|
|
281
|
+
in which the resource exists.
|
|
282
|
+
:param pulumi.Input[str] secret_id: The Secret ID associated wit the secret version.
|
|
283
|
+
"""
|
|
284
|
+
...
|
|
285
|
+
@overload
|
|
286
|
+
def __init__(__self__,
|
|
287
|
+
resource_name: str,
|
|
288
|
+
args: SecretVersionArgs,
|
|
289
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
290
|
+
"""
|
|
291
|
+
Creates and manages Scaleway Secret Versions.
|
|
292
|
+
For more information, see [the documentation](https://www.scaleway.com/en/developers/api/secret-manager/#secret-versions-079501).
|
|
293
|
+
|
|
294
|
+
## Example Usage
|
|
295
|
+
|
|
296
|
+
### Basic
|
|
297
|
+
|
|
298
|
+
```python
|
|
299
|
+
import pulumi
|
|
300
|
+
import pulumiverse_scaleway as scaleway
|
|
301
|
+
|
|
302
|
+
main = scaleway.Secret("main",
|
|
303
|
+
name="foo",
|
|
304
|
+
description="barr",
|
|
305
|
+
tags=[
|
|
306
|
+
"foo",
|
|
307
|
+
"terraform",
|
|
308
|
+
])
|
|
309
|
+
v1 = scaleway.SecretVersion("v1",
|
|
310
|
+
description="version1",
|
|
311
|
+
secret_id=main.id,
|
|
312
|
+
data="my_new_secret")
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
## Import
|
|
316
|
+
|
|
317
|
+
The Secret Version can be imported using the `{region}/{id}/{revision}`, e.g.
|
|
318
|
+
|
|
319
|
+
~> **Important:** Be aware if you import with revision `latest` you will overwrite the version you used before.
|
|
320
|
+
|
|
321
|
+
bash
|
|
322
|
+
|
|
323
|
+
```sh
|
|
324
|
+
$ pulumi import scaleway:index/secretVersion:SecretVersion main fr-par/11111111-1111-1111-1111-111111111111/2
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
:param str resource_name: The name of the resource.
|
|
328
|
+
:param SecretVersionArgs args: The arguments to use to populate this resource's properties.
|
|
329
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
330
|
+
"""
|
|
331
|
+
...
|
|
332
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
333
|
+
resource_args, opts = _utilities.get_resource_args_opts(SecretVersionArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
334
|
+
if resource_args is not None:
|
|
335
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
336
|
+
else:
|
|
337
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
338
|
+
|
|
339
|
+
def _internal_init(__self__,
|
|
340
|
+
resource_name: str,
|
|
341
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
342
|
+
data: Optional[pulumi.Input[str]] = None,
|
|
343
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
344
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
345
|
+
secret_id: Optional[pulumi.Input[str]] = None,
|
|
346
|
+
__props__=None):
|
|
347
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
348
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
349
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
350
|
+
if opts.id is None:
|
|
351
|
+
if __props__ is not None:
|
|
352
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
353
|
+
__props__ = SecretVersionArgs.__new__(SecretVersionArgs)
|
|
354
|
+
|
|
355
|
+
if data is None and not opts.urn:
|
|
356
|
+
raise TypeError("Missing required property 'data'")
|
|
357
|
+
__props__.__dict__["data"] = None if data is None else pulumi.Output.secret(data)
|
|
358
|
+
__props__.__dict__["description"] = description
|
|
359
|
+
__props__.__dict__["region"] = region
|
|
360
|
+
if secret_id is None and not opts.urn:
|
|
361
|
+
raise TypeError("Missing required property 'secret_id'")
|
|
362
|
+
__props__.__dict__["secret_id"] = secret_id
|
|
363
|
+
__props__.__dict__["created_at"] = None
|
|
364
|
+
__props__.__dict__["revision"] = None
|
|
365
|
+
__props__.__dict__["status"] = None
|
|
366
|
+
__props__.__dict__["updated_at"] = None
|
|
367
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["data"])
|
|
368
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
369
|
+
super(SecretVersion, __self__).__init__(
|
|
370
|
+
'scaleway:index/secretVersion:SecretVersion',
|
|
371
|
+
resource_name,
|
|
372
|
+
__props__,
|
|
373
|
+
opts)
|
|
374
|
+
|
|
375
|
+
@staticmethod
|
|
376
|
+
def get(resource_name: str,
|
|
377
|
+
id: pulumi.Input[str],
|
|
378
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
379
|
+
created_at: Optional[pulumi.Input[str]] = None,
|
|
380
|
+
data: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
region: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
revision: Optional[pulumi.Input[str]] = None,
|
|
384
|
+
secret_id: Optional[pulumi.Input[str]] = None,
|
|
385
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
386
|
+
updated_at: Optional[pulumi.Input[str]] = None) -> 'SecretVersion':
|
|
387
|
+
"""
|
|
388
|
+
Get an existing SecretVersion resource's state with the given name, id, and optional extra
|
|
389
|
+
properties used to qualify the lookup.
|
|
390
|
+
|
|
391
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
392
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
393
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
394
|
+
:param pulumi.Input[str] created_at: Date and time of secret version's creation (RFC 3339 format).
|
|
395
|
+
:param pulumi.Input[str] data: The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
396
|
+
:param pulumi.Input[str] description: Description of the secret version (e.g. `my-new-description`).
|
|
397
|
+
:param pulumi.Input[str] region: `region`) The region
|
|
398
|
+
in which the resource exists.
|
|
399
|
+
:param pulumi.Input[str] revision: The revision for this Secret Version.
|
|
400
|
+
:param pulumi.Input[str] secret_id: The Secret ID associated wit the secret version.
|
|
401
|
+
:param pulumi.Input[str] status: The status of the Secret Version.
|
|
402
|
+
:param pulumi.Input[str] updated_at: Date and time of secret version's last update (RFC 3339 format).
|
|
403
|
+
"""
|
|
404
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
405
|
+
|
|
406
|
+
__props__ = _SecretVersionState.__new__(_SecretVersionState)
|
|
407
|
+
|
|
408
|
+
__props__.__dict__["created_at"] = created_at
|
|
409
|
+
__props__.__dict__["data"] = data
|
|
410
|
+
__props__.__dict__["description"] = description
|
|
411
|
+
__props__.__dict__["region"] = region
|
|
412
|
+
__props__.__dict__["revision"] = revision
|
|
413
|
+
__props__.__dict__["secret_id"] = secret_id
|
|
414
|
+
__props__.__dict__["status"] = status
|
|
415
|
+
__props__.__dict__["updated_at"] = updated_at
|
|
416
|
+
return SecretVersion(resource_name, opts=opts, __props__=__props__)
|
|
417
|
+
|
|
418
|
+
@property
|
|
419
|
+
@pulumi.getter(name="createdAt")
|
|
420
|
+
def created_at(self) -> pulumi.Output[str]:
|
|
421
|
+
"""
|
|
422
|
+
Date and time of secret version's creation (RFC 3339 format).
|
|
423
|
+
"""
|
|
424
|
+
return pulumi.get(self, "created_at")
|
|
425
|
+
|
|
426
|
+
@property
|
|
427
|
+
@pulumi.getter
|
|
428
|
+
def data(self) -> pulumi.Output[str]:
|
|
429
|
+
"""
|
|
430
|
+
The data payload of the secret version. Must be no larger than 64KiB. (e.g. `my-secret-version-payload`). more on the data section
|
|
431
|
+
"""
|
|
432
|
+
return pulumi.get(self, "data")
|
|
433
|
+
|
|
434
|
+
@property
|
|
435
|
+
@pulumi.getter
|
|
436
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
|
437
|
+
"""
|
|
438
|
+
Description of the secret version (e.g. `my-new-description`).
|
|
439
|
+
"""
|
|
440
|
+
return pulumi.get(self, "description")
|
|
441
|
+
|
|
442
|
+
@property
|
|
443
|
+
@pulumi.getter
|
|
444
|
+
def region(self) -> pulumi.Output[str]:
|
|
445
|
+
"""
|
|
446
|
+
`region`) The region
|
|
447
|
+
in which the resource exists.
|
|
448
|
+
"""
|
|
449
|
+
return pulumi.get(self, "region")
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
@pulumi.getter
|
|
453
|
+
def revision(self) -> pulumi.Output[str]:
|
|
454
|
+
"""
|
|
455
|
+
The revision for this Secret Version.
|
|
456
|
+
"""
|
|
457
|
+
return pulumi.get(self, "revision")
|
|
458
|
+
|
|
459
|
+
@property
|
|
460
|
+
@pulumi.getter(name="secretId")
|
|
461
|
+
def secret_id(self) -> pulumi.Output[str]:
|
|
462
|
+
"""
|
|
463
|
+
The Secret ID associated wit the secret version.
|
|
464
|
+
"""
|
|
465
|
+
return pulumi.get(self, "secret_id")
|
|
466
|
+
|
|
467
|
+
@property
|
|
468
|
+
@pulumi.getter
|
|
469
|
+
def status(self) -> pulumi.Output[str]:
|
|
470
|
+
"""
|
|
471
|
+
The status of the Secret Version.
|
|
472
|
+
"""
|
|
473
|
+
return pulumi.get(self, "status")
|
|
474
|
+
|
|
475
|
+
@property
|
|
476
|
+
@pulumi.getter(name="updatedAt")
|
|
477
|
+
def updated_at(self) -> pulumi.Output[str]:
|
|
478
|
+
"""
|
|
479
|
+
Date and time of secret version's last update (RFC 3339 format).
|
|
480
|
+
"""
|
|
481
|
+
return pulumi.get(self, "updated_at")
|
|
482
|
+
|