@pulumi/aws 7.0.0-alpha.1 → 7.0.0-alpha.2
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.
- package/ecr/index.d.ts +1 -0
- package/ecr/index.js +1 -0
- package/ecr/index.js.map +1 -1
- package/ecr/lifecyclePolicyDocument.d.ts +5 -0
- package/ecr/lifecyclePolicyDocument.js +3 -0
- package/ecr/lifecyclePolicyDocument.js.map +1 -0
- package/iam/documents.d.ts +5 -0
- package/package.json +2 -2
- package/s3/bucketAccelerateConfiguration.js +1 -1
- package/s3/bucketAccelerateConfiguration.js.map +1 -1
- package/s3/bucketAccelerateConfigurationV2.d.ts +122 -0
- package/s3/bucketAccelerateConfigurationV2.js +103 -0
- package/s3/bucketAccelerateConfigurationV2.js.map +1 -0
- package/s3/bucketAcl.js +1 -1
- package/s3/bucketAcl.js.map +1 -1
- package/s3/bucketAclV2.d.ts +241 -0
- package/s3/bucketAclV2.js +207 -0
- package/s3/bucketAclV2.js.map +1 -0
- package/s3/bucketCorsConfiguration.js +1 -1
- package/s3/bucketCorsConfiguration.js.map +1 -1
- package/s3/bucketCorsConfigurationV2.d.ts +141 -0
- package/s3/bucketCorsConfigurationV2.js +120 -0
- package/s3/bucketCorsConfigurationV2.js.map +1 -0
- package/s3/bucketLifecycleConfiguration.js +1 -1
- package/s3/bucketLifecycleConfiguration.js.map +1 -1
- package/s3/bucketLifecycleConfigurationV2.d.ts +437 -0
- package/s3/bucketLifecycleConfigurationV2.js +402 -0
- package/s3/bucketLifecycleConfigurationV2.js.map +1 -0
- package/s3/bucketLogging.js +1 -1
- package/s3/bucketLogging.js.map +1 -1
- package/s3/bucketLoggingV2.d.ts +174 -0
- package/s3/bucketLoggingV2.js +126 -0
- package/s3/bucketLoggingV2.js.map +1 -0
- package/s3/bucketObjectLockConfiguration.js +1 -1
- package/s3/bucketObjectLockConfiguration.js.map +1 -1
- package/s3/bucketObjectLockConfigurationV2.d.ts +164 -0
- package/s3/bucketObjectLockConfigurationV2.js +119 -0
- package/s3/bucketObjectLockConfigurationV2.js.map +1 -0
- package/s3/bucketRequestPaymentConfiguration.js +1 -1
- package/s3/bucketRequestPaymentConfiguration.js.map +1 -1
- package/s3/bucketRequestPaymentConfigurationV2.d.ts +123 -0
- package/s3/bucketRequestPaymentConfigurationV2.js +104 -0
- package/s3/bucketRequestPaymentConfigurationV2.js.map +1 -0
- package/s3/bucketServerSideEncryptionConfiguration.js +1 -1
- package/s3/bucketServerSideEncryptionConfiguration.js.map +1 -1
- package/s3/bucketServerSideEncryptionConfigurationV2.d.ts +133 -0
- package/s3/bucketServerSideEncryptionConfigurationV2.js +112 -0
- package/s3/bucketServerSideEncryptionConfigurationV2.js.map +1 -0
- package/s3/bucketV2.d.ts +518 -0
- package/s3/bucketV2.js +138 -0
- package/s3/bucketV2.js.map +1 -0
- package/s3/bucketVersioning.js +1 -1
- package/s3/bucketVersioning.js.map +1 -1
- package/s3/bucketVersioningV2.d.ts +195 -0
- package/s3/bucketVersioningV2.js +164 -0
- package/s3/bucketVersioningV2.js.map +1 -0
- package/s3/bucketWebsiteConfiguration.js +1 -1
- package/s3/bucketWebsiteConfiguration.js.map +1 -1
- package/s3/bucketWebsiteConfigurationV2.d.ts +231 -0
- package/s3/bucketWebsiteConfigurationV2.js +152 -0
- package/s3/bucketWebsiteConfigurationV2.js.map +1 -0
- package/s3/index.d.ts +33 -0
- package/s3/index.js +57 -1
- package/s3/index.js.map +1 -1
- package/types/input.d.ts +781 -21
- package/types/output.d.ts +781 -21
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
import * as outputs from "../types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides an independent configuration resource for S3 bucket [lifecycle configuration](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html).
|
|
6
|
+
*
|
|
7
|
+
* An S3 Lifecycle configuration consists of one or more Lifecycle rules. Each rule consists of the following:
|
|
8
|
+
*
|
|
9
|
+
* * Rule metadata (`id` and `status`)
|
|
10
|
+
* * Filter identifying objects to which the rule applies
|
|
11
|
+
* * One or more transition or expiration actions
|
|
12
|
+
*
|
|
13
|
+
* For more information see the Amazon S3 User Guide on [`Lifecycle Configuration Elements`](https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html).
|
|
14
|
+
*
|
|
15
|
+
* > S3 Buckets only support a single lifecycle configuration. Declaring multiple `aws.s3.BucketLifecycleConfiguration` resources to the same S3 Bucket will cause a perpetual difference in configuration.
|
|
16
|
+
*
|
|
17
|
+
* > Lifecycle configurations may take some time to fully propagate to all AWS S3 systems.
|
|
18
|
+
* Running Pulumi operations shortly after creating a lifecycle configuration may result in changes that affect configuration idempotence.
|
|
19
|
+
* See the Amazon S3 User Guide on [setting lifecycle configuration on a bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-set-lifecycle-configuration-intro.html).
|
|
20
|
+
*
|
|
21
|
+
* ## Example Usage
|
|
22
|
+
*
|
|
23
|
+
* ### With neither a filter nor prefix specified
|
|
24
|
+
*
|
|
25
|
+
* The Lifecycle rule applies to a subset of objects based on the key name prefix (`""`).
|
|
26
|
+
*
|
|
27
|
+
* This configuration is intended to replicate the default behavior of the `lifecycleRule`
|
|
28
|
+
* parameter in the AWS Provider `aws.s3.Bucket` resource prior to `v4.0`.
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as aws from "@pulumi/aws";
|
|
33
|
+
*
|
|
34
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
35
|
+
* bucket: bucket.id,
|
|
36
|
+
* rules: [{
|
|
37
|
+
* id: "rule-1",
|
|
38
|
+
* status: "Enabled",
|
|
39
|
+
* }],
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ### Specifying an empty filter
|
|
44
|
+
*
|
|
45
|
+
* The Lifecycle rule applies to all objects in the bucket.
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as aws from "@pulumi/aws";
|
|
50
|
+
*
|
|
51
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
52
|
+
* bucket: bucket.id,
|
|
53
|
+
* rules: [{
|
|
54
|
+
* id: "rule-1",
|
|
55
|
+
* filter: {},
|
|
56
|
+
* status: "Enabled",
|
|
57
|
+
* }],
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ### Specifying a filter using key prefixes
|
|
62
|
+
*
|
|
63
|
+
* The Lifecycle rule applies to a subset of objects based on the key name prefix (`logs/`).
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as aws from "@pulumi/aws";
|
|
68
|
+
*
|
|
69
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
70
|
+
* bucket: bucket.id,
|
|
71
|
+
* rules: [{
|
|
72
|
+
* id: "rule-1",
|
|
73
|
+
* filter: {
|
|
74
|
+
* prefix: "logs/",
|
|
75
|
+
* },
|
|
76
|
+
* status: "Enabled",
|
|
77
|
+
* }],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* If you want to apply a Lifecycle action to a subset of objects based on different key name prefixes, specify separate rules.
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as aws from "@pulumi/aws";
|
|
86
|
+
*
|
|
87
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
88
|
+
* bucket: bucket.id,
|
|
89
|
+
* rules: [
|
|
90
|
+
* {
|
|
91
|
+
* id: "rule-1",
|
|
92
|
+
* filter: {
|
|
93
|
+
* prefix: "logs/",
|
|
94
|
+
* },
|
|
95
|
+
* status: "Enabled",
|
|
96
|
+
* },
|
|
97
|
+
* {
|
|
98
|
+
* id: "rule-2",
|
|
99
|
+
* filter: {
|
|
100
|
+
* prefix: "tmp/",
|
|
101
|
+
* },
|
|
102
|
+
* status: "Enabled",
|
|
103
|
+
* },
|
|
104
|
+
* ],
|
|
105
|
+
* });
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* ### Specifying a filter based on an object tag
|
|
109
|
+
*
|
|
110
|
+
* The Lifecycle rule specifies a filter based on a tag key and value. The rule then applies only to a subset of objects with the specific tag.
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
114
|
+
* import * as aws from "@pulumi/aws";
|
|
115
|
+
*
|
|
116
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
117
|
+
* bucket: bucket.id,
|
|
118
|
+
* rules: [{
|
|
119
|
+
* id: "rule-1",
|
|
120
|
+
* filter: {
|
|
121
|
+
* tag: {
|
|
122
|
+
* key: "Name",
|
|
123
|
+
* value: "Staging",
|
|
124
|
+
* },
|
|
125
|
+
* },
|
|
126
|
+
* status: "Enabled",
|
|
127
|
+
* }],
|
|
128
|
+
* });
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* ### Specifying a filter based on multiple tags
|
|
132
|
+
*
|
|
133
|
+
* The Lifecycle rule directs Amazon S3 to perform lifecycle actions on objects with two tags (with the specific tag keys and values). Notice `tags` is wrapped in the `and` configuration block.
|
|
134
|
+
*
|
|
135
|
+
* ```typescript
|
|
136
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
137
|
+
* import * as aws from "@pulumi/aws";
|
|
138
|
+
*
|
|
139
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
140
|
+
* bucket: bucket.id,
|
|
141
|
+
* rules: [{
|
|
142
|
+
* id: "rule-1",
|
|
143
|
+
* filter: {
|
|
144
|
+
* and: {
|
|
145
|
+
* tags: {
|
|
146
|
+
* Key1: "Value1",
|
|
147
|
+
* Key2: "Value2",
|
|
148
|
+
* },
|
|
149
|
+
* },
|
|
150
|
+
* },
|
|
151
|
+
* status: "Enabled",
|
|
152
|
+
* }],
|
|
153
|
+
* });
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* ### Specifying a filter based on both prefix and one or more tags
|
|
157
|
+
*
|
|
158
|
+
* The Lifecycle rule directs Amazon S3 to perform lifecycle actions on objects with the specified prefix and two tags (with the specific tag keys and values). Notice both `prefix` and `tags` are wrapped in the `and` configuration block.
|
|
159
|
+
*
|
|
160
|
+
* ```typescript
|
|
161
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
162
|
+
* import * as aws from "@pulumi/aws";
|
|
163
|
+
*
|
|
164
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
165
|
+
* bucket: bucket.id,
|
|
166
|
+
* rules: [{
|
|
167
|
+
* id: "rule-1",
|
|
168
|
+
* filter: {
|
|
169
|
+
* and: {
|
|
170
|
+
* prefix: "logs/",
|
|
171
|
+
* tags: {
|
|
172
|
+
* Key1: "Value1",
|
|
173
|
+
* Key2: "Value2",
|
|
174
|
+
* },
|
|
175
|
+
* },
|
|
176
|
+
* },
|
|
177
|
+
* status: "Enabled",
|
|
178
|
+
* }],
|
|
179
|
+
* });
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* ### Specifying a filter based on object size
|
|
183
|
+
*
|
|
184
|
+
* Object size values are in bytes. Maximum filter size is 5TB. Amazon S3 applies a default behavior to your Lifecycle configuration that prevents objects smaller than 128 KB from being transitioned to any storage class. You can allow smaller objects to transition by adding a minimum size (`objectSizeGreaterThan`) or a maximum size (`objectSizeLessThan`) filter that specifies a smaller size to the configuration. This example allows any object smaller than 128 KB to transition to the S3 Glacier Instant Retrieval storage class:
|
|
185
|
+
*
|
|
186
|
+
* ```typescript
|
|
187
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
188
|
+
* import * as aws from "@pulumi/aws";
|
|
189
|
+
*
|
|
190
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
191
|
+
* bucket: bucket.id,
|
|
192
|
+
* rules: [{
|
|
193
|
+
* id: "Allow small object transitions",
|
|
194
|
+
* filter: {
|
|
195
|
+
* objectSizeGreaterThan: 1,
|
|
196
|
+
* },
|
|
197
|
+
* status: "Enabled",
|
|
198
|
+
* transitions: [{
|
|
199
|
+
* days: 365,
|
|
200
|
+
* storageClass: "GLACIER_IR",
|
|
201
|
+
* }],
|
|
202
|
+
* }],
|
|
203
|
+
* });
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* ### Specifying a filter based on object size range and prefix
|
|
207
|
+
*
|
|
208
|
+
* The `objectSizeGreaterThan` must be less than the `objectSizeLessThan`. Notice both the object size range and prefix are wrapped in the `and` configuration block.
|
|
209
|
+
*
|
|
210
|
+
* ```typescript
|
|
211
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
212
|
+
* import * as aws from "@pulumi/aws";
|
|
213
|
+
*
|
|
214
|
+
* const example = new aws.s3.BucketLifecycleConfiguration("example", {
|
|
215
|
+
* bucket: bucket.id,
|
|
216
|
+
* rules: [{
|
|
217
|
+
* id: "rule-1",
|
|
218
|
+
* filter: {
|
|
219
|
+
* and: {
|
|
220
|
+
* prefix: "logs/",
|
|
221
|
+
* objectSizeGreaterThan: 500,
|
|
222
|
+
* objectSizeLessThan: 64000,
|
|
223
|
+
* },
|
|
224
|
+
* },
|
|
225
|
+
* status: "Enabled",
|
|
226
|
+
* }],
|
|
227
|
+
* });
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* ### Creating a Lifecycle Configuration for a bucket with versioning
|
|
231
|
+
*
|
|
232
|
+
* ```typescript
|
|
233
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
234
|
+
* import * as aws from "@pulumi/aws";
|
|
235
|
+
*
|
|
236
|
+
* const bucket = new aws.s3.Bucket("bucket", {bucket: "my-bucket"});
|
|
237
|
+
* const bucketAcl = new aws.s3.BucketAcl("bucket_acl", {
|
|
238
|
+
* bucket: bucket.id,
|
|
239
|
+
* acl: "private",
|
|
240
|
+
* });
|
|
241
|
+
* const bucket_config = new aws.s3.BucketLifecycleConfiguration("bucket-config", {
|
|
242
|
+
* bucket: bucket.id,
|
|
243
|
+
* rules: [
|
|
244
|
+
* {
|
|
245
|
+
* id: "log",
|
|
246
|
+
* expiration: {
|
|
247
|
+
* days: 90,
|
|
248
|
+
* },
|
|
249
|
+
* filter: {
|
|
250
|
+
* and: {
|
|
251
|
+
* prefix: "log/",
|
|
252
|
+
* tags: {
|
|
253
|
+
* rule: "log",
|
|
254
|
+
* autoclean: "true",
|
|
255
|
+
* },
|
|
256
|
+
* },
|
|
257
|
+
* },
|
|
258
|
+
* status: "Enabled",
|
|
259
|
+
* transitions: [
|
|
260
|
+
* {
|
|
261
|
+
* days: 30,
|
|
262
|
+
* storageClass: "STANDARD_IA",
|
|
263
|
+
* },
|
|
264
|
+
* {
|
|
265
|
+
* days: 60,
|
|
266
|
+
* storageClass: "GLACIER",
|
|
267
|
+
* },
|
|
268
|
+
* ],
|
|
269
|
+
* },
|
|
270
|
+
* {
|
|
271
|
+
* id: "tmp",
|
|
272
|
+
* filter: {
|
|
273
|
+
* prefix: "tmp/",
|
|
274
|
+
* },
|
|
275
|
+
* expiration: {
|
|
276
|
+
* date: "2023-01-13T00:00:00Z",
|
|
277
|
+
* },
|
|
278
|
+
* status: "Enabled",
|
|
279
|
+
* },
|
|
280
|
+
* ],
|
|
281
|
+
* });
|
|
282
|
+
* const versioningBucket = new aws.s3.Bucket("versioning_bucket", {bucket: "my-versioning-bucket"});
|
|
283
|
+
* const versioningBucketAcl = new aws.s3.BucketAcl("versioning_bucket_acl", {
|
|
284
|
+
* bucket: versioningBucket.id,
|
|
285
|
+
* acl: "private",
|
|
286
|
+
* });
|
|
287
|
+
* const versioning = new aws.s3.BucketVersioning("versioning", {
|
|
288
|
+
* bucket: versioningBucket.id,
|
|
289
|
+
* versioningConfiguration: {
|
|
290
|
+
* status: "Enabled",
|
|
291
|
+
* },
|
|
292
|
+
* });
|
|
293
|
+
* const versioning_bucket_config = new aws.s3.BucketLifecycleConfiguration("versioning-bucket-config", {
|
|
294
|
+
* bucket: versioningBucket.id,
|
|
295
|
+
* rules: [{
|
|
296
|
+
* id: "config",
|
|
297
|
+
* filter: {
|
|
298
|
+
* prefix: "config/",
|
|
299
|
+
* },
|
|
300
|
+
* noncurrentVersionExpiration: {
|
|
301
|
+
* noncurrentDays: 90,
|
|
302
|
+
* },
|
|
303
|
+
* noncurrentVersionTransitions: [
|
|
304
|
+
* {
|
|
305
|
+
* noncurrentDays: 30,
|
|
306
|
+
* storageClass: "STANDARD_IA",
|
|
307
|
+
* },
|
|
308
|
+
* {
|
|
309
|
+
* noncurrentDays: 60,
|
|
310
|
+
* storageClass: "GLACIER",
|
|
311
|
+
* },
|
|
312
|
+
* ],
|
|
313
|
+
* status: "Enabled",
|
|
314
|
+
* }],
|
|
315
|
+
* }, {
|
|
316
|
+
* dependsOn: [versioning],
|
|
317
|
+
* });
|
|
318
|
+
* ```
|
|
319
|
+
*
|
|
320
|
+
* ## Import
|
|
321
|
+
*
|
|
322
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
323
|
+
*
|
|
324
|
+
* Using `pulumi import`, import an S3 bucket lifecycle configuration using the `bucket` or the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:
|
|
325
|
+
*
|
|
326
|
+
* If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
|
|
327
|
+
*
|
|
328
|
+
* ```sh
|
|
329
|
+
* $ pulumi import aws:s3/bucketLifecycleConfigurationV2:BucketLifecycleConfigurationV2 example bucket-name
|
|
330
|
+
* ```
|
|
331
|
+
* If the owner (account ID) of the source bucket differs from the account used to configure the AWS Provider, import using the `bucket` and `expected_bucket_owner` separated by a comma (`,`):
|
|
332
|
+
*
|
|
333
|
+
* ```sh
|
|
334
|
+
* $ pulumi import aws:s3/bucketLifecycleConfigurationV2:BucketLifecycleConfigurationV2 example bucket-name,123456789012
|
|
335
|
+
* ```
|
|
336
|
+
*
|
|
337
|
+
* @deprecated aws.s3/bucketlifecycleconfigurationv2.BucketLifecycleConfigurationV2 has been deprecated in favor of aws.s3/bucketlifecycleconfiguration.BucketLifecycleConfiguration
|
|
338
|
+
*/
|
|
339
|
+
export declare class BucketLifecycleConfigurationV2 extends pulumi.CustomResource {
|
|
340
|
+
/**
|
|
341
|
+
* Get an existing BucketLifecycleConfigurationV2 resource's state with the given name, ID, and optional extra
|
|
342
|
+
* properties used to qualify the lookup.
|
|
343
|
+
*
|
|
344
|
+
* @param name The _unique_ name of the resulting resource.
|
|
345
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
346
|
+
* @param state Any extra arguments used during the lookup.
|
|
347
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
348
|
+
*/
|
|
349
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketLifecycleConfigurationV2State, opts?: pulumi.CustomResourceOptions): BucketLifecycleConfigurationV2;
|
|
350
|
+
/**
|
|
351
|
+
* Returns true if the given object is an instance of BucketLifecycleConfigurationV2. This is designed to work even
|
|
352
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
353
|
+
*/
|
|
354
|
+
static isInstance(obj: any): obj is BucketLifecycleConfigurationV2;
|
|
355
|
+
/**
|
|
356
|
+
* Name of the source S3 bucket you want Amazon S3 to monitor.
|
|
357
|
+
*/
|
|
358
|
+
readonly bucket: pulumi.Output<string>;
|
|
359
|
+
/**
|
|
360
|
+
* Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
|
|
361
|
+
*/
|
|
362
|
+
readonly expectedBucketOwner: pulumi.Output<string>;
|
|
363
|
+
/**
|
|
364
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
365
|
+
*/
|
|
366
|
+
readonly region: pulumi.Output<string>;
|
|
367
|
+
/**
|
|
368
|
+
* List of configuration blocks describing the rules managing the replication. See below.
|
|
369
|
+
*/
|
|
370
|
+
readonly rules: pulumi.Output<outputs.s3.BucketLifecycleConfigurationV2Rule[] | undefined>;
|
|
371
|
+
readonly timeouts: pulumi.Output<outputs.s3.BucketLifecycleConfigurationV2Timeouts | undefined>;
|
|
372
|
+
/**
|
|
373
|
+
* The default minimum object size behavior applied to the lifecycle configuration. Valid values: `all_storage_classes_128K` (default), `variesByStorageClass`. To customize the minimum object size for any transition you can add a `filter` that specifies a custom `objectSizeGreaterThan` or `objectSizeLessThan` value. Custom filters always take precedence over the default transition behavior.
|
|
374
|
+
*/
|
|
375
|
+
readonly transitionDefaultMinimumObjectSize: pulumi.Output<string>;
|
|
376
|
+
/**
|
|
377
|
+
* Create a BucketLifecycleConfigurationV2 resource with the given unique name, arguments, and options.
|
|
378
|
+
*
|
|
379
|
+
* @param name The _unique_ name of the resource.
|
|
380
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
381
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
382
|
+
*/
|
|
383
|
+
/** @deprecated aws.s3/bucketlifecycleconfigurationv2.BucketLifecycleConfigurationV2 has been deprecated in favor of aws.s3/bucketlifecycleconfiguration.BucketLifecycleConfiguration */
|
|
384
|
+
constructor(name: string, args: BucketLifecycleConfigurationV2Args, opts?: pulumi.CustomResourceOptions);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Input properties used for looking up and filtering BucketLifecycleConfigurationV2 resources.
|
|
388
|
+
*/
|
|
389
|
+
export interface BucketLifecycleConfigurationV2State {
|
|
390
|
+
/**
|
|
391
|
+
* Name of the source S3 bucket you want Amazon S3 to monitor.
|
|
392
|
+
*/
|
|
393
|
+
bucket?: pulumi.Input<string>;
|
|
394
|
+
/**
|
|
395
|
+
* Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
|
|
396
|
+
*/
|
|
397
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
398
|
+
/**
|
|
399
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
400
|
+
*/
|
|
401
|
+
region?: pulumi.Input<string>;
|
|
402
|
+
/**
|
|
403
|
+
* List of configuration blocks describing the rules managing the replication. See below.
|
|
404
|
+
*/
|
|
405
|
+
rules?: pulumi.Input<pulumi.Input<inputs.s3.BucketLifecycleConfigurationV2Rule>[]>;
|
|
406
|
+
timeouts?: pulumi.Input<inputs.s3.BucketLifecycleConfigurationV2Timeouts>;
|
|
407
|
+
/**
|
|
408
|
+
* The default minimum object size behavior applied to the lifecycle configuration. Valid values: `all_storage_classes_128K` (default), `variesByStorageClass`. To customize the minimum object size for any transition you can add a `filter` that specifies a custom `objectSizeGreaterThan` or `objectSizeLessThan` value. Custom filters always take precedence over the default transition behavior.
|
|
409
|
+
*/
|
|
410
|
+
transitionDefaultMinimumObjectSize?: pulumi.Input<string>;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* The set of arguments for constructing a BucketLifecycleConfigurationV2 resource.
|
|
414
|
+
*/
|
|
415
|
+
export interface BucketLifecycleConfigurationV2Args {
|
|
416
|
+
/**
|
|
417
|
+
* Name of the source S3 bucket you want Amazon S3 to monitor.
|
|
418
|
+
*/
|
|
419
|
+
bucket: pulumi.Input<string>;
|
|
420
|
+
/**
|
|
421
|
+
* Account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.
|
|
422
|
+
*/
|
|
423
|
+
expectedBucketOwner?: pulumi.Input<string>;
|
|
424
|
+
/**
|
|
425
|
+
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
|
|
426
|
+
*/
|
|
427
|
+
region?: pulumi.Input<string>;
|
|
428
|
+
/**
|
|
429
|
+
* List of configuration blocks describing the rules managing the replication. See below.
|
|
430
|
+
*/
|
|
431
|
+
rules?: pulumi.Input<pulumi.Input<inputs.s3.BucketLifecycleConfigurationV2Rule>[]>;
|
|
432
|
+
timeouts?: pulumi.Input<inputs.s3.BucketLifecycleConfigurationV2Timeouts>;
|
|
433
|
+
/**
|
|
434
|
+
* The default minimum object size behavior applied to the lifecycle configuration. Valid values: `all_storage_classes_128K` (default), `variesByStorageClass`. To customize the minimum object size for any transition you can add a `filter` that specifies a custom `objectSizeGreaterThan` or `objectSizeLessThan` value. Custom filters always take precedence over the default transition behavior.
|
|
435
|
+
*/
|
|
436
|
+
transitionDefaultMinimumObjectSize?: pulumi.Input<string>;
|
|
437
|
+
}
|