pulumi-digitalocean 4.40.0a1739511652__py3-none-any.whl → 4.56.0a1766428645__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.
- pulumi_digitalocean/__init__.py +224 -1
- pulumi_digitalocean/_enums.py +19 -9
- pulumi_digitalocean/_inputs.py +17037 -4771
- pulumi_digitalocean/_utilities.py +1 -1
- pulumi_digitalocean/app.py +238 -88
- pulumi_digitalocean/byoip_prefix.py +452 -0
- pulumi_digitalocean/cdn.py +106 -105
- pulumi_digitalocean/certificate.py +139 -138
- pulumi_digitalocean/config/__init__.py +2 -1
- pulumi_digitalocean/config/__init__.pyi +2 -2
- pulumi_digitalocean/config/vars.py +11 -11
- pulumi_digitalocean/container_registries.py +285 -0
- pulumi_digitalocean/container_registry.py +90 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +84 -83
- pulumi_digitalocean/custom_image.py +180 -179
- pulumi_digitalocean/database_cluster.py +402 -373
- pulumi_digitalocean/database_connection_pool.py +159 -158
- pulumi_digitalocean/database_db.py +37 -36
- pulumi_digitalocean/database_firewall.py +23 -22
- pulumi_digitalocean/database_kafka_config.py +309 -308
- pulumi_digitalocean/database_kafka_schema_registry.py +360 -0
- pulumi_digitalocean/database_kafka_topic.py +83 -82
- pulumi_digitalocean/database_logsink_opensearch.py +680 -0
- pulumi_digitalocean/database_logsink_rsyslog.py +842 -0
- pulumi_digitalocean/database_mongodb_config.py +105 -104
- pulumi_digitalocean/database_mysql_config.py +479 -478
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_opensearch_config.py +666 -665
- pulumi_digitalocean/database_postgresql_config.py +859 -858
- pulumi_digitalocean/database_redis_config.py +211 -206
- pulumi_digitalocean/database_replica.py +199 -198
- pulumi_digitalocean/database_user.py +93 -92
- pulumi_digitalocean/database_valkey_config.py +776 -0
- pulumi_digitalocean/dns_record.py +184 -183
- pulumi_digitalocean/domain.py +55 -54
- pulumi_digitalocean/droplet.py +403 -402
- pulumi_digitalocean/droplet_autoscale.py +55 -54
- pulumi_digitalocean/droplet_snapshot.py +73 -72
- pulumi_digitalocean/firewall.py +80 -79
- pulumi_digitalocean/floating_ip.py +63 -62
- pulumi_digitalocean/floating_ip_assignment.py +37 -36
- pulumi_digitalocean/genai_agent.py +1903 -0
- pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
- pulumi_digitalocean/genai_agent_route.py +354 -0
- pulumi_digitalocean/genai_function.py +464 -0
- pulumi_digitalocean/genai_indexing_job_cancel.py +542 -0
- pulumi_digitalocean/genai_knowledge_base.py +627 -0
- pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
- pulumi_digitalocean/genai_openai_api_key.py +386 -0
- pulumi_digitalocean/get_account.py +18 -18
- pulumi_digitalocean/get_app.py +28 -28
- pulumi_digitalocean/get_byoip_prefix.py +214 -0
- pulumi_digitalocean/get_byoip_prefix_resources.py +150 -0
- pulumi_digitalocean/get_certificate.py +22 -22
- pulumi_digitalocean/get_container_registries.py +151 -0
- pulumi_digitalocean/get_container_registry.py +22 -22
- pulumi_digitalocean/get_database_ca.py +12 -12
- pulumi_digitalocean/get_database_cluster.py +76 -62
- pulumi_digitalocean/get_database_connection_pool.py +36 -36
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_database_replica.py +46 -46
- pulumi_digitalocean/get_database_user.py +27 -27
- pulumi_digitalocean/get_domain.py +16 -16
- pulumi_digitalocean/get_domains.py +7 -7
- pulumi_digitalocean/get_droplet.py +72 -72
- pulumi_digitalocean/get_droplet_autoscale.py +23 -23
- pulumi_digitalocean/get_droplet_snapshot.py +38 -38
- pulumi_digitalocean/get_droplets.py +13 -13
- pulumi_digitalocean/get_firewall.py +31 -31
- pulumi_digitalocean/get_floating_ip.py +16 -16
- pulumi_digitalocean/get_genai_agent.py +572 -0
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents.py +128 -0
- pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
- pulumi_digitalocean/get_genai_indexing_job.py +239 -0
- pulumi_digitalocean/get_genai_indexing_job_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
- pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base_indexing_jobs.py +108 -0
- pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
- pulumi_digitalocean/get_genai_models.py +113 -0
- pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
- pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
- pulumi_digitalocean/get_genai_regions.py +113 -0
- pulumi_digitalocean/get_image.py +50 -50
- pulumi_digitalocean/get_images.py +7 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +144 -53
- pulumi_digitalocean/get_kubernetes_versions.py +14 -14
- pulumi_digitalocean/get_load_balancer.py +70 -59
- pulumi_digitalocean/get_nfs.py +205 -0
- pulumi_digitalocean/get_nfs_snapshot.py +188 -0
- pulumi_digitalocean/get_partner_attachment.py +206 -0
- pulumi_digitalocean/get_partner_attachment_service_key.py +118 -0
- pulumi_digitalocean/get_project.py +32 -32
- pulumi_digitalocean/get_projects.py +7 -7
- pulumi_digitalocean/get_record.py +32 -32
- pulumi_digitalocean/get_records.py +13 -13
- pulumi_digitalocean/get_region.py +18 -18
- pulumi_digitalocean/get_regions.py +7 -7
- pulumi_digitalocean/get_reserved_ip.py +16 -16
- pulumi_digitalocean/get_reserved_ipv6.py +51 -16
- pulumi_digitalocean/get_sizes.py +141 -7
- pulumi_digitalocean/get_spaces_bucket.py +22 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +58 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +46 -46
- pulumi_digitalocean/get_spaces_buckets.py +7 -7
- pulumi_digitalocean/get_spaces_key.py +157 -0
- pulumi_digitalocean/get_ssh_key.py +14 -14
- pulumi_digitalocean/get_ssh_keys.py +7 -7
- pulumi_digitalocean/get_tag.py +22 -22
- pulumi_digitalocean/get_tags.py +7 -7
- pulumi_digitalocean/get_volume.py +34 -34
- pulumi_digitalocean/get_volume_snapshot.py +40 -40
- pulumi_digitalocean/get_vpc.py +30 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +263 -0
- pulumi_digitalocean/get_vpc_peering.py +24 -24
- pulumi_digitalocean/kubernetes_cluster.py +572 -303
- pulumi_digitalocean/kubernetes_node_pool.py +170 -169
- pulumi_digitalocean/load_balancer.py +406 -372
- pulumi_digitalocean/monitor_alert.py +153 -156
- pulumi_digitalocean/nfs.py +481 -0
- pulumi_digitalocean/nfs_attachment.py +289 -0
- pulumi_digitalocean/nfs_snapshot.py +379 -0
- pulumi_digitalocean/outputs.py +26759 -7592
- pulumi_digitalocean/partner_attachment.py +555 -0
- pulumi_digitalocean/project.py +141 -140
- pulumi_digitalocean/project_resources.py +37 -36
- pulumi_digitalocean/provider.py +105 -84
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +63 -62
- pulumi_digitalocean/reserved_ip_assignment.py +37 -36
- pulumi_digitalocean/reserved_ipv6.py +122 -62
- pulumi_digitalocean/reserved_ipv6_assignment.py +81 -30
- pulumi_digitalocean/spaces_bucket.py +107 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +40 -39
- pulumi_digitalocean/spaces_bucket_logging.py +346 -0
- pulumi_digitalocean/spaces_bucket_object.py +284 -283
- pulumi_digitalocean/spaces_bucket_policy.py +54 -53
- pulumi_digitalocean/spaces_key.py +388 -0
- pulumi_digitalocean/ssh_key.py +46 -45
- pulumi_digitalocean/tag.py +74 -73
- pulumi_digitalocean/uptime_alert.py +112 -111
- pulumi_digitalocean/uptime_check.py +90 -89
- pulumi_digitalocean/volume.py +183 -182
- pulumi_digitalocean/volume_attachment.py +37 -36
- pulumi_digitalocean/volume_snapshot.py +90 -89
- pulumi_digitalocean/vpc.py +100 -99
- pulumi_digitalocean/vpc_nat_gateway.py +722 -0
- pulumi_digitalocean/vpc_peering.py +55 -58
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/METADATA +4 -4
- pulumi_digitalocean-4.56.0a1766428645.dist-info/RECORD +154 -0
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/WHEEL +1 -1
- pulumi_digitalocean-4.40.0a1739511652.dist-info/RECORD +0 -108
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/top_level.txt +0 -0
pulumi_digitalocean/get_sizes.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -42,25 +42,25 @@ class GetSizesResult:
|
|
|
42
42
|
raise TypeError("Expected argument 'sorts' to be a list")
|
|
43
43
|
pulumi.set(__self__, "sorts", sorts)
|
|
44
44
|
|
|
45
|
-
@property
|
|
45
|
+
@_builtins.property
|
|
46
46
|
@pulumi.getter
|
|
47
47
|
def filters(self) -> Optional[Sequence['outputs.GetSizesFilterResult']]:
|
|
48
48
|
return pulumi.get(self, "filters")
|
|
49
49
|
|
|
50
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
51
51
|
@pulumi.getter
|
|
52
|
-
def id(self) -> str:
|
|
52
|
+
def id(self) -> _builtins.str:
|
|
53
53
|
"""
|
|
54
54
|
The provider-assigned unique ID for this managed resource.
|
|
55
55
|
"""
|
|
56
56
|
return pulumi.get(self, "id")
|
|
57
57
|
|
|
58
|
-
@property
|
|
58
|
+
@_builtins.property
|
|
59
59
|
@pulumi.getter
|
|
60
60
|
def sizes(self) -> Sequence['outputs.GetSizesSizeResult']:
|
|
61
61
|
return pulumi.get(self, "sizes")
|
|
62
62
|
|
|
63
|
-
@property
|
|
63
|
+
@_builtins.property
|
|
64
64
|
@pulumi.getter
|
|
65
65
|
def sorts(self) -> Optional[Sequence['outputs.GetSizesSortResult']]:
|
|
66
66
|
return pulumi.get(self, "sorts")
|
|
@@ -86,6 +86,73 @@ def get_sizes(filters: Optional[Sequence[Union['GetSizesFilterArgs', 'GetSizesFi
|
|
|
86
86
|
the ability to filter and sort the results. If no filters are specified, all sizes
|
|
87
87
|
will be returned.
|
|
88
88
|
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
Most common usage will probably be to supply a size to Droplet:
|
|
92
|
+
|
|
93
|
+
```python
|
|
94
|
+
import pulumi
|
|
95
|
+
import pulumi_digitalocean as digitalocean
|
|
96
|
+
|
|
97
|
+
main = digitalocean.get_sizes(filters=[{
|
|
98
|
+
"key": "slug",
|
|
99
|
+
"values": ["s-1vcpu-1gb"],
|
|
100
|
+
}])
|
|
101
|
+
web = digitalocean.Droplet("web",
|
|
102
|
+
image="ubuntu-18-04-x64",
|
|
103
|
+
name="web-1",
|
|
104
|
+
region=digitalocean.Region.SGP1,
|
|
105
|
+
size=digitalocean.DropletSlug(main.sizes[0]["slug"]))
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
import pulumi
|
|
112
|
+
import pulumi_digitalocean as digitalocean
|
|
113
|
+
|
|
114
|
+
main = digitalocean.get_sizes(filters=[
|
|
115
|
+
{
|
|
116
|
+
"key": "vcpus",
|
|
117
|
+
"values": [
|
|
118
|
+
"1",
|
|
119
|
+
"2",
|
|
120
|
+
],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"key": "regions",
|
|
124
|
+
"values": ["sgp1"],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
sorts=[{
|
|
128
|
+
"key": "price_monthly",
|
|
129
|
+
"direction": "asc",
|
|
130
|
+
}])
|
|
131
|
+
web = digitalocean.Droplet("web",
|
|
132
|
+
image="ubuntu-18-04-x64",
|
|
133
|
+
name="web-1",
|
|
134
|
+
region=digitalocean.Region.SGP1,
|
|
135
|
+
size=digitalocean.DropletSlug(main.sizes[0]["slug"]))
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import pulumi
|
|
142
|
+
import pulumi_digitalocean as digitalocean
|
|
143
|
+
|
|
144
|
+
main = digitalocean.get_sizes(sorts=[
|
|
145
|
+
{
|
|
146
|
+
"key": "memory",
|
|
147
|
+
"direction": "asc",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "disk",
|
|
151
|
+
"direction": "desc",
|
|
152
|
+
},
|
|
153
|
+
])
|
|
154
|
+
```
|
|
155
|
+
|
|
89
156
|
|
|
90
157
|
:param Sequence[Union['GetSizesFilterArgs', 'GetSizesFilterArgsDict']] filters: Filter the results.
|
|
91
158
|
The `filter` block is documented below.
|
|
@@ -111,6 +178,73 @@ def get_sizes_output(filters: Optional[pulumi.Input[Optional[Sequence[Union['Get
|
|
|
111
178
|
the ability to filter and sort the results. If no filters are specified, all sizes
|
|
112
179
|
will be returned.
|
|
113
180
|
|
|
181
|
+
## Example Usage
|
|
182
|
+
|
|
183
|
+
Most common usage will probably be to supply a size to Droplet:
|
|
184
|
+
|
|
185
|
+
```python
|
|
186
|
+
import pulumi
|
|
187
|
+
import pulumi_digitalocean as digitalocean
|
|
188
|
+
|
|
189
|
+
main = digitalocean.get_sizes(filters=[{
|
|
190
|
+
"key": "slug",
|
|
191
|
+
"values": ["s-1vcpu-1gb"],
|
|
192
|
+
}])
|
|
193
|
+
web = digitalocean.Droplet("web",
|
|
194
|
+
image="ubuntu-18-04-x64",
|
|
195
|
+
name="web-1",
|
|
196
|
+
region=digitalocean.Region.SGP1,
|
|
197
|
+
size=digitalocean.DropletSlug(main.sizes[0]["slug"]))
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
The data source also supports multiple filters and sorts. For example, to fetch sizes with 1 or 2 virtual CPU that are available "sgp1" region, then pick the cheapest one:
|
|
201
|
+
|
|
202
|
+
```python
|
|
203
|
+
import pulumi
|
|
204
|
+
import pulumi_digitalocean as digitalocean
|
|
205
|
+
|
|
206
|
+
main = digitalocean.get_sizes(filters=[
|
|
207
|
+
{
|
|
208
|
+
"key": "vcpus",
|
|
209
|
+
"values": [
|
|
210
|
+
"1",
|
|
211
|
+
"2",
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"key": "regions",
|
|
216
|
+
"values": ["sgp1"],
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
sorts=[{
|
|
220
|
+
"key": "price_monthly",
|
|
221
|
+
"direction": "asc",
|
|
222
|
+
}])
|
|
223
|
+
web = digitalocean.Droplet("web",
|
|
224
|
+
image="ubuntu-18-04-x64",
|
|
225
|
+
name="web-1",
|
|
226
|
+
region=digitalocean.Region.SGP1,
|
|
227
|
+
size=digitalocean.DropletSlug(main.sizes[0]["slug"]))
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
The data source can also handle multiple sorts. In which case, the sort will be applied in the order it is defined. For example, to sort by memory in ascending order, then sort by disk in descending order between sizes with same memory:
|
|
231
|
+
|
|
232
|
+
```python
|
|
233
|
+
import pulumi
|
|
234
|
+
import pulumi_digitalocean as digitalocean
|
|
235
|
+
|
|
236
|
+
main = digitalocean.get_sizes(sorts=[
|
|
237
|
+
{
|
|
238
|
+
"key": "memory",
|
|
239
|
+
"direction": "asc",
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"key": "disk",
|
|
243
|
+
"direction": "desc",
|
|
244
|
+
},
|
|
245
|
+
])
|
|
246
|
+
```
|
|
247
|
+
|
|
114
248
|
|
|
115
249
|
:param Sequence[Union['GetSizesFilterArgs', 'GetSizesFilterArgsDict']] filters: Filter the results.
|
|
116
250
|
The `filter` block is documented below.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -46,49 +46,49 @@ class GetSpacesBucketResult:
|
|
|
46
46
|
raise TypeError("Expected argument 'urn' to be a str")
|
|
47
47
|
pulumi.set(__self__, "urn", urn)
|
|
48
48
|
|
|
49
|
-
@property
|
|
49
|
+
@_builtins.property
|
|
50
50
|
@pulumi.getter(name="bucketDomainName")
|
|
51
|
-
def bucket_domain_name(self) -> str:
|
|
51
|
+
def bucket_domain_name(self) -> _builtins.str:
|
|
52
52
|
"""
|
|
53
53
|
The FQDN of the bucket (e.g. bucket-name.nyc3.digitaloceanspaces.com)
|
|
54
54
|
"""
|
|
55
55
|
return pulumi.get(self, "bucket_domain_name")
|
|
56
56
|
|
|
57
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
58
58
|
@pulumi.getter
|
|
59
|
-
def endpoint(self) -> str:
|
|
59
|
+
def endpoint(self) -> _builtins.str:
|
|
60
60
|
"""
|
|
61
61
|
The FQDN of the bucket without the bucket name (e.g. nyc3.digitaloceanspaces.com)
|
|
62
62
|
"""
|
|
63
63
|
return pulumi.get(self, "endpoint")
|
|
64
64
|
|
|
65
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
66
66
|
@pulumi.getter
|
|
67
|
-
def id(self) -> str:
|
|
67
|
+
def id(self) -> _builtins.str:
|
|
68
68
|
"""
|
|
69
69
|
The provider-assigned unique ID for this managed resource.
|
|
70
70
|
"""
|
|
71
71
|
return pulumi.get(self, "id")
|
|
72
72
|
|
|
73
|
-
@property
|
|
73
|
+
@_builtins.property
|
|
74
74
|
@pulumi.getter
|
|
75
|
-
def name(self) -> str:
|
|
75
|
+
def name(self) -> _builtins.str:
|
|
76
76
|
"""
|
|
77
77
|
The name of the Spaces bucket
|
|
78
78
|
"""
|
|
79
79
|
return pulumi.get(self, "name")
|
|
80
80
|
|
|
81
|
-
@property
|
|
81
|
+
@_builtins.property
|
|
82
82
|
@pulumi.getter
|
|
83
|
-
def region(self) -> str:
|
|
83
|
+
def region(self) -> _builtins.str:
|
|
84
84
|
"""
|
|
85
85
|
The slug of the region where the bucket is stored.
|
|
86
86
|
"""
|
|
87
87
|
return pulumi.get(self, "region")
|
|
88
88
|
|
|
89
|
-
@property
|
|
89
|
+
@_builtins.property
|
|
90
90
|
@pulumi.getter
|
|
91
|
-
def urn(self) -> str:
|
|
91
|
+
def urn(self) -> _builtins.str:
|
|
92
92
|
"""
|
|
93
93
|
The uniform resource name of the bucket
|
|
94
94
|
"""
|
|
@@ -109,8 +109,8 @@ class AwaitableGetSpacesBucketResult(GetSpacesBucketResult):
|
|
|
109
109
|
urn=self.urn)
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
def get_spaces_bucket(name: Optional[str] = None,
|
|
113
|
-
region: Optional[str] = None,
|
|
112
|
+
def get_spaces_bucket(name: Optional[_builtins.str] = None,
|
|
113
|
+
region: Optional[_builtins.str] = None,
|
|
114
114
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSpacesBucketResult:
|
|
115
115
|
"""
|
|
116
116
|
Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
|
|
@@ -130,8 +130,8 @@ def get_spaces_bucket(name: Optional[str] = None,
|
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
:param str name: The name of the Spaces bucket.
|
|
134
|
-
:param str region: The slug of the region where the bucket is stored.
|
|
133
|
+
:param _builtins.str name: The name of the Spaces bucket.
|
|
134
|
+
:param _builtins.str region: The slug of the region where the bucket is stored.
|
|
135
135
|
"""
|
|
136
136
|
__args__ = dict()
|
|
137
137
|
__args__['name'] = name
|
|
@@ -146,8 +146,8 @@ def get_spaces_bucket(name: Optional[str] = None,
|
|
|
146
146
|
name=pulumi.get(__ret__, 'name'),
|
|
147
147
|
region=pulumi.get(__ret__, 'region'),
|
|
148
148
|
urn=pulumi.get(__ret__, 'urn'))
|
|
149
|
-
def get_spaces_bucket_output(name: Optional[pulumi.Input[str]] = None,
|
|
150
|
-
region: Optional[pulumi.Input[str]] = None,
|
|
149
|
+
def get_spaces_bucket_output(name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
150
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
151
151
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSpacesBucketResult]:
|
|
152
152
|
"""
|
|
153
153
|
Get information on a Spaces bucket for use in other resources. This is useful if the Spaces bucket in question
|
|
@@ -167,8 +167,8 @@ def get_spaces_bucket_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
:param str name: The name of the Spaces bucket.
|
|
171
|
-
:param str region: The slug of the region where the bucket is stored.
|
|
170
|
+
:param _builtins.str name: The name of the Spaces bucket.
|
|
171
|
+
:param _builtins.str region: The slug of the region where the bucket is stored.
|
|
172
172
|
"""
|
|
173
173
|
__args__ = dict()
|
|
174
174
|
__args__['name'] = name
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -85,141 +85,141 @@ class GetSpacesBucketObjectResult:
|
|
|
85
85
|
raise TypeError("Expected argument 'website_redirect_location' to be a str")
|
|
86
86
|
pulumi.set(__self__, "website_redirect_location", website_redirect_location)
|
|
87
87
|
|
|
88
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
89
89
|
@pulumi.getter
|
|
90
|
-
def body(self) -> str:
|
|
90
|
+
def body(self) -> _builtins.str:
|
|
91
91
|
"""
|
|
92
92
|
Object data (see **limitations above** to understand cases in which this field is actually available)
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "body")
|
|
95
95
|
|
|
96
|
-
@property
|
|
96
|
+
@_builtins.property
|
|
97
97
|
@pulumi.getter
|
|
98
|
-
def bucket(self) -> str:
|
|
98
|
+
def bucket(self) -> _builtins.str:
|
|
99
99
|
return pulumi.get(self, "bucket")
|
|
100
100
|
|
|
101
|
-
@property
|
|
101
|
+
@_builtins.property
|
|
102
102
|
@pulumi.getter(name="cacheControl")
|
|
103
|
-
def cache_control(self) -> str:
|
|
103
|
+
def cache_control(self) -> _builtins.str:
|
|
104
104
|
"""
|
|
105
105
|
Specifies caching behavior along the request/reply chain.
|
|
106
106
|
"""
|
|
107
107
|
return pulumi.get(self, "cache_control")
|
|
108
108
|
|
|
109
|
-
@property
|
|
109
|
+
@_builtins.property
|
|
110
110
|
@pulumi.getter(name="contentDisposition")
|
|
111
|
-
def content_disposition(self) -> str:
|
|
111
|
+
def content_disposition(self) -> _builtins.str:
|
|
112
112
|
"""
|
|
113
113
|
Specifies presentational information for the object.
|
|
114
114
|
"""
|
|
115
115
|
return pulumi.get(self, "content_disposition")
|
|
116
116
|
|
|
117
|
-
@property
|
|
117
|
+
@_builtins.property
|
|
118
118
|
@pulumi.getter(name="contentEncoding")
|
|
119
|
-
def content_encoding(self) -> str:
|
|
119
|
+
def content_encoding(self) -> _builtins.str:
|
|
120
120
|
"""
|
|
121
121
|
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.
|
|
122
122
|
"""
|
|
123
123
|
return pulumi.get(self, "content_encoding")
|
|
124
124
|
|
|
125
|
-
@property
|
|
125
|
+
@_builtins.property
|
|
126
126
|
@pulumi.getter(name="contentLanguage")
|
|
127
|
-
def content_language(self) -> str:
|
|
127
|
+
def content_language(self) -> _builtins.str:
|
|
128
128
|
"""
|
|
129
129
|
The language the content is in.
|
|
130
130
|
"""
|
|
131
131
|
return pulumi.get(self, "content_language")
|
|
132
132
|
|
|
133
|
-
@property
|
|
133
|
+
@_builtins.property
|
|
134
134
|
@pulumi.getter(name="contentLength")
|
|
135
|
-
def content_length(self) -> int:
|
|
135
|
+
def content_length(self) -> _builtins.int:
|
|
136
136
|
"""
|
|
137
137
|
Size of the body in bytes.
|
|
138
138
|
"""
|
|
139
139
|
return pulumi.get(self, "content_length")
|
|
140
140
|
|
|
141
|
-
@property
|
|
141
|
+
@_builtins.property
|
|
142
142
|
@pulumi.getter(name="contentType")
|
|
143
|
-
def content_type(self) -> str:
|
|
143
|
+
def content_type(self) -> _builtins.str:
|
|
144
144
|
"""
|
|
145
145
|
A standard MIME type describing the format of the object data.
|
|
146
146
|
"""
|
|
147
147
|
return pulumi.get(self, "content_type")
|
|
148
148
|
|
|
149
|
-
@property
|
|
149
|
+
@_builtins.property
|
|
150
150
|
@pulumi.getter
|
|
151
|
-
def etag(self) -> str:
|
|
151
|
+
def etag(self) -> _builtins.str:
|
|
152
152
|
"""
|
|
153
153
|
[ETag](https://en.wikipedia.org/wiki/HTTP_ETag) generated for the object (an MD5 sum of the object content in case it's not encrypted)
|
|
154
154
|
"""
|
|
155
155
|
return pulumi.get(self, "etag")
|
|
156
156
|
|
|
157
|
-
@property
|
|
157
|
+
@_builtins.property
|
|
158
158
|
@pulumi.getter
|
|
159
|
-
def expiration(self) -> str:
|
|
159
|
+
def expiration(self) -> _builtins.str:
|
|
160
160
|
"""
|
|
161
161
|
If the object expiration is configured (see [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html)), the field includes this header. It includes the expiry-date and rule-id key value pairs providing object expiration information. The value of the rule-id is URL encoded.
|
|
162
162
|
"""
|
|
163
163
|
return pulumi.get(self, "expiration")
|
|
164
164
|
|
|
165
|
-
@property
|
|
165
|
+
@_builtins.property
|
|
166
166
|
@pulumi.getter
|
|
167
|
-
def expires(self) -> str:
|
|
167
|
+
def expires(self) -> _builtins.str:
|
|
168
168
|
"""
|
|
169
169
|
The date and time at which the object is no longer cacheable.
|
|
170
170
|
"""
|
|
171
171
|
return pulumi.get(self, "expires")
|
|
172
172
|
|
|
173
|
-
@property
|
|
173
|
+
@_builtins.property
|
|
174
174
|
@pulumi.getter
|
|
175
|
-
def id(self) -> str:
|
|
175
|
+
def id(self) -> _builtins.str:
|
|
176
176
|
"""
|
|
177
177
|
The provider-assigned unique ID for this managed resource.
|
|
178
178
|
"""
|
|
179
179
|
return pulumi.get(self, "id")
|
|
180
180
|
|
|
181
|
-
@property
|
|
181
|
+
@_builtins.property
|
|
182
182
|
@pulumi.getter
|
|
183
|
-
def key(self) -> str:
|
|
183
|
+
def key(self) -> _builtins.str:
|
|
184
184
|
return pulumi.get(self, "key")
|
|
185
185
|
|
|
186
|
-
@property
|
|
186
|
+
@_builtins.property
|
|
187
187
|
@pulumi.getter(name="lastModified")
|
|
188
|
-
def last_modified(self) -> str:
|
|
188
|
+
def last_modified(self) -> _builtins.str:
|
|
189
189
|
"""
|
|
190
190
|
Last modified date of the object in RFC1123 format (e.g. `Mon, 02 Jan 2006 15:04:05 MST`)
|
|
191
191
|
"""
|
|
192
192
|
return pulumi.get(self, "last_modified")
|
|
193
193
|
|
|
194
|
-
@property
|
|
194
|
+
@_builtins.property
|
|
195
195
|
@pulumi.getter
|
|
196
|
-
def metadata(self) -> Mapping[str, str]:
|
|
196
|
+
def metadata(self) -> Mapping[str, _builtins.str]:
|
|
197
197
|
"""
|
|
198
198
|
A map of metadata stored with the object in Spaces
|
|
199
199
|
"""
|
|
200
200
|
return pulumi.get(self, "metadata")
|
|
201
201
|
|
|
202
|
-
@property
|
|
202
|
+
@_builtins.property
|
|
203
203
|
@pulumi.getter
|
|
204
|
-
def range(self) -> Optional[str]:
|
|
204
|
+
def range(self) -> Optional[_builtins.str]:
|
|
205
205
|
return pulumi.get(self, "range")
|
|
206
206
|
|
|
207
|
-
@property
|
|
207
|
+
@_builtins.property
|
|
208
208
|
@pulumi.getter
|
|
209
|
-
def region(self) -> str:
|
|
209
|
+
def region(self) -> _builtins.str:
|
|
210
210
|
return pulumi.get(self, "region")
|
|
211
211
|
|
|
212
|
-
@property
|
|
212
|
+
@_builtins.property
|
|
213
213
|
@pulumi.getter(name="versionId")
|
|
214
|
-
def version_id(self) -> str:
|
|
214
|
+
def version_id(self) -> _builtins.str:
|
|
215
215
|
"""
|
|
216
216
|
The latest version ID of the object returned.
|
|
217
217
|
"""
|
|
218
218
|
return pulumi.get(self, "version_id")
|
|
219
219
|
|
|
220
|
-
@property
|
|
220
|
+
@_builtins.property
|
|
221
221
|
@pulumi.getter(name="websiteRedirectLocation")
|
|
222
|
-
def website_redirect_location(self) -> str:
|
|
222
|
+
def website_redirect_location(self) -> _builtins.str:
|
|
223
223
|
"""
|
|
224
224
|
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Spaces stores the value of this header in the object metadata.
|
|
225
225
|
"""
|
|
@@ -253,11 +253,11 @@ class AwaitableGetSpacesBucketObjectResult(GetSpacesBucketObjectResult):
|
|
|
253
253
|
website_redirect_location=self.website_redirect_location)
|
|
254
254
|
|
|
255
255
|
|
|
256
|
-
def get_spaces_bucket_object(bucket: Optional[str] = None,
|
|
257
|
-
key: Optional[str] = None,
|
|
258
|
-
range: Optional[str] = None,
|
|
259
|
-
region: Optional[str] = None,
|
|
260
|
-
version_id: Optional[str] = None,
|
|
256
|
+
def get_spaces_bucket_object(bucket: Optional[_builtins.str] = None,
|
|
257
|
+
key: Optional[_builtins.str] = None,
|
|
258
|
+
range: Optional[_builtins.str] = None,
|
|
259
|
+
region: Optional[_builtins.str] = None,
|
|
260
|
+
version_id: Optional[_builtins.str] = None,
|
|
261
261
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSpacesBucketObjectResult:
|
|
262
262
|
"""
|
|
263
263
|
The Spaces object data source allows access to the metadata and
|
|
@@ -288,10 +288,10 @@ def get_spaces_bucket_object(bucket: Optional[str] = None,
|
|
|
288
288
|
```
|
|
289
289
|
|
|
290
290
|
|
|
291
|
-
:param str bucket: The name of the bucket to read the object from.
|
|
292
|
-
:param str key: The full path to the object inside the bucket
|
|
293
|
-
:param str region: The slug of the region where the bucket is stored.
|
|
294
|
-
:param str version_id: Specific version ID of the object returned (defaults to latest version)
|
|
291
|
+
:param _builtins.str bucket: The name of the bucket to read the object from.
|
|
292
|
+
:param _builtins.str key: The full path to the object inside the bucket
|
|
293
|
+
:param _builtins.str region: The slug of the region where the bucket is stored.
|
|
294
|
+
:param _builtins.str version_id: Specific version ID of the object returned (defaults to latest version)
|
|
295
295
|
"""
|
|
296
296
|
__args__ = dict()
|
|
297
297
|
__args__['bucket'] = bucket
|
|
@@ -322,11 +322,11 @@ def get_spaces_bucket_object(bucket: Optional[str] = None,
|
|
|
322
322
|
region=pulumi.get(__ret__, 'region'),
|
|
323
323
|
version_id=pulumi.get(__ret__, 'version_id'),
|
|
324
324
|
website_redirect_location=pulumi.get(__ret__, 'website_redirect_location'))
|
|
325
|
-
def get_spaces_bucket_object_output(bucket: Optional[pulumi.Input[str]] = None,
|
|
326
|
-
key: Optional[pulumi.Input[str]] = None,
|
|
327
|
-
range: Optional[pulumi.Input[Optional[str]]] = None,
|
|
328
|
-
region: Optional[pulumi.Input[str]] = None,
|
|
329
|
-
version_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
325
|
+
def get_spaces_bucket_object_output(bucket: Optional[pulumi.Input[_builtins.str]] = None,
|
|
326
|
+
key: Optional[pulumi.Input[_builtins.str]] = None,
|
|
327
|
+
range: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
328
|
+
region: Optional[pulumi.Input[_builtins.str]] = None,
|
|
329
|
+
version_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
330
330
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSpacesBucketObjectResult]:
|
|
331
331
|
"""
|
|
332
332
|
The Spaces object data source allows access to the metadata and
|
|
@@ -357,10 +357,10 @@ def get_spaces_bucket_object_output(bucket: Optional[pulumi.Input[str]] = None,
|
|
|
357
357
|
```
|
|
358
358
|
|
|
359
359
|
|
|
360
|
-
:param str bucket: The name of the bucket to read the object from.
|
|
361
|
-
:param str key: The full path to the object inside the bucket
|
|
362
|
-
:param str region: The slug of the region where the bucket is stored.
|
|
363
|
-
:param str version_id: Specific version ID of the object returned (defaults to latest version)
|
|
360
|
+
:param _builtins.str bucket: The name of the bucket to read the object from.
|
|
361
|
+
:param _builtins.str key: The full path to the object inside the bucket
|
|
362
|
+
:param _builtins.str region: The slug of the region where the bucket is stored.
|
|
363
|
+
:param _builtins.str version_id: Specific version ID of the object returned (defaults to latest version)
|
|
364
364
|
"""
|
|
365
365
|
__args__ = dict()
|
|
366
366
|
__args__['bucket'] = bucket
|