@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.
Files changed (66) hide show
  1. package/ecr/index.d.ts +1 -0
  2. package/ecr/index.js +1 -0
  3. package/ecr/index.js.map +1 -1
  4. package/ecr/lifecyclePolicyDocument.d.ts +5 -0
  5. package/ecr/lifecyclePolicyDocument.js +3 -0
  6. package/ecr/lifecyclePolicyDocument.js.map +1 -0
  7. package/iam/documents.d.ts +5 -0
  8. package/package.json +2 -2
  9. package/s3/bucketAccelerateConfiguration.js +1 -1
  10. package/s3/bucketAccelerateConfiguration.js.map +1 -1
  11. package/s3/bucketAccelerateConfigurationV2.d.ts +122 -0
  12. package/s3/bucketAccelerateConfigurationV2.js +103 -0
  13. package/s3/bucketAccelerateConfigurationV2.js.map +1 -0
  14. package/s3/bucketAcl.js +1 -1
  15. package/s3/bucketAcl.js.map +1 -1
  16. package/s3/bucketAclV2.d.ts +241 -0
  17. package/s3/bucketAclV2.js +207 -0
  18. package/s3/bucketAclV2.js.map +1 -0
  19. package/s3/bucketCorsConfiguration.js +1 -1
  20. package/s3/bucketCorsConfiguration.js.map +1 -1
  21. package/s3/bucketCorsConfigurationV2.d.ts +141 -0
  22. package/s3/bucketCorsConfigurationV2.js +120 -0
  23. package/s3/bucketCorsConfigurationV2.js.map +1 -0
  24. package/s3/bucketLifecycleConfiguration.js +1 -1
  25. package/s3/bucketLifecycleConfiguration.js.map +1 -1
  26. package/s3/bucketLifecycleConfigurationV2.d.ts +437 -0
  27. package/s3/bucketLifecycleConfigurationV2.js +402 -0
  28. package/s3/bucketLifecycleConfigurationV2.js.map +1 -0
  29. package/s3/bucketLogging.js +1 -1
  30. package/s3/bucketLogging.js.map +1 -1
  31. package/s3/bucketLoggingV2.d.ts +174 -0
  32. package/s3/bucketLoggingV2.js +126 -0
  33. package/s3/bucketLoggingV2.js.map +1 -0
  34. package/s3/bucketObjectLockConfiguration.js +1 -1
  35. package/s3/bucketObjectLockConfiguration.js.map +1 -1
  36. package/s3/bucketObjectLockConfigurationV2.d.ts +164 -0
  37. package/s3/bucketObjectLockConfigurationV2.js +119 -0
  38. package/s3/bucketObjectLockConfigurationV2.js.map +1 -0
  39. package/s3/bucketRequestPaymentConfiguration.js +1 -1
  40. package/s3/bucketRequestPaymentConfiguration.js.map +1 -1
  41. package/s3/bucketRequestPaymentConfigurationV2.d.ts +123 -0
  42. package/s3/bucketRequestPaymentConfigurationV2.js +104 -0
  43. package/s3/bucketRequestPaymentConfigurationV2.js.map +1 -0
  44. package/s3/bucketServerSideEncryptionConfiguration.js +1 -1
  45. package/s3/bucketServerSideEncryptionConfiguration.js.map +1 -1
  46. package/s3/bucketServerSideEncryptionConfigurationV2.d.ts +133 -0
  47. package/s3/bucketServerSideEncryptionConfigurationV2.js +112 -0
  48. package/s3/bucketServerSideEncryptionConfigurationV2.js.map +1 -0
  49. package/s3/bucketV2.d.ts +518 -0
  50. package/s3/bucketV2.js +138 -0
  51. package/s3/bucketV2.js.map +1 -0
  52. package/s3/bucketVersioning.js +1 -1
  53. package/s3/bucketVersioning.js.map +1 -1
  54. package/s3/bucketVersioningV2.d.ts +195 -0
  55. package/s3/bucketVersioningV2.js +164 -0
  56. package/s3/bucketVersioningV2.js.map +1 -0
  57. package/s3/bucketWebsiteConfiguration.js +1 -1
  58. package/s3/bucketWebsiteConfiguration.js.map +1 -1
  59. package/s3/bucketWebsiteConfigurationV2.d.ts +231 -0
  60. package/s3/bucketWebsiteConfigurationV2.js +152 -0
  61. package/s3/bucketWebsiteConfigurationV2.js.map +1 -0
  62. package/s3/index.d.ts +33 -0
  63. package/s3/index.js +57 -1
  64. package/s3/index.js.map +1 -1
  65. package/types/input.d.ts +781 -21
  66. package/types/output.d.ts +781 -21
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BucketLoggingV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides an S3 bucket (server access) logging resource. For more information, see [Logging requests using server access logging](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html)
10
+ * in the AWS S3 User Guide.
11
+ *
12
+ * > **Note:** Amazon S3 supports server access logging, AWS CloudTrail, or a combination of both. Refer to the [Logging options for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/logging-with-S3.html)
13
+ * to decide which method meets your requirements.
14
+ *
15
+ * > This resource cannot be used with S3 directory buckets.
16
+ *
17
+ * ## Example Usage
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as aws from "@pulumi/aws";
22
+ *
23
+ * const example = new aws.s3.Bucket("example", {bucket: "my-tf-example-bucket"});
24
+ * const exampleBucketAcl = new aws.s3.BucketAcl("example", {
25
+ * bucket: example.id,
26
+ * acl: "private",
27
+ * });
28
+ * const logBucket = new aws.s3.Bucket("log_bucket", {bucket: "my-tf-log-bucket"});
29
+ * const logBucketAcl = new aws.s3.BucketAcl("log_bucket_acl", {
30
+ * bucket: logBucket.id,
31
+ * acl: "log-delivery-write",
32
+ * });
33
+ * const exampleBucketLogging = new aws.s3.BucketLogging("example", {
34
+ * bucket: example.id,
35
+ * targetBucket: logBucket.id,
36
+ * targetPrefix: "log/",
37
+ * });
38
+ * ```
39
+ *
40
+ * ## Import
41
+ *
42
+ * 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 (`,`):
43
+ *
44
+ * __Using `pulumi import` to import__ S3 bucket logging using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:
45
+ *
46
+ * If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
47
+ *
48
+ * ```sh
49
+ * $ pulumi import aws:s3/bucketLoggingV2:BucketLoggingV2 example bucket-name
50
+ * ```
51
+ * 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 (`,`):
52
+ *
53
+ * ```sh
54
+ * $ pulumi import aws:s3/bucketLoggingV2:BucketLoggingV2 example bucket-name,123456789012
55
+ * ```
56
+ *
57
+ * @deprecated aws.s3/bucketloggingv2.BucketLoggingV2 has been deprecated in favor of aws.s3/bucketlogging.BucketLogging
58
+ */
59
+ class BucketLoggingV2 extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing BucketLoggingV2 resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name, id, state, opts) {
70
+ pulumi.log.warn("BucketLoggingV2 is deprecated: aws.s3/bucketloggingv2.BucketLoggingV2 has been deprecated in favor of aws.s3/bucketlogging.BucketLogging");
71
+ return new BucketLoggingV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
72
+ }
73
+ /**
74
+ * Returns true if the given object is an instance of BucketLoggingV2. This is designed to work even
75
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
+ */
77
+ static isInstance(obj) {
78
+ if (obj === undefined || obj === null) {
79
+ return false;
80
+ }
81
+ return obj['__pulumiType'] === BucketLoggingV2.__pulumiType;
82
+ }
83
+ /** @deprecated aws.s3/bucketloggingv2.BucketLoggingV2 has been deprecated in favor of aws.s3/bucketlogging.BucketLogging */
84
+ constructor(name, argsOrState, opts) {
85
+ pulumi.log.warn("BucketLoggingV2 is deprecated: aws.s3/bucketloggingv2.BucketLoggingV2 has been deprecated in favor of aws.s3/bucketlogging.BucketLogging");
86
+ let resourceInputs = {};
87
+ opts = opts || {};
88
+ if (opts.id) {
89
+ const state = argsOrState;
90
+ resourceInputs["bucket"] = state ? state.bucket : undefined;
91
+ resourceInputs["expectedBucketOwner"] = state ? state.expectedBucketOwner : undefined;
92
+ resourceInputs["region"] = state ? state.region : undefined;
93
+ resourceInputs["targetBucket"] = state ? state.targetBucket : undefined;
94
+ resourceInputs["targetGrants"] = state ? state.targetGrants : undefined;
95
+ resourceInputs["targetObjectKeyFormat"] = state ? state.targetObjectKeyFormat : undefined;
96
+ resourceInputs["targetPrefix"] = state ? state.targetPrefix : undefined;
97
+ }
98
+ else {
99
+ const args = argsOrState;
100
+ if ((!args || args.bucket === undefined) && !opts.urn) {
101
+ throw new Error("Missing required property 'bucket'");
102
+ }
103
+ if ((!args || args.targetBucket === undefined) && !opts.urn) {
104
+ throw new Error("Missing required property 'targetBucket'");
105
+ }
106
+ if ((!args || args.targetPrefix === undefined) && !opts.urn) {
107
+ throw new Error("Missing required property 'targetPrefix'");
108
+ }
109
+ resourceInputs["bucket"] = args ? args.bucket : undefined;
110
+ resourceInputs["expectedBucketOwner"] = args ? args.expectedBucketOwner : undefined;
111
+ resourceInputs["region"] = args ? args.region : undefined;
112
+ resourceInputs["targetBucket"] = args ? args.targetBucket : undefined;
113
+ resourceInputs["targetGrants"] = args ? args.targetGrants : undefined;
114
+ resourceInputs["targetObjectKeyFormat"] = args ? args.targetObjectKeyFormat : undefined;
115
+ resourceInputs["targetPrefix"] = args ? args.targetPrefix : undefined;
116
+ }
117
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketLoggingV2:BucketLoggingV2" }] };
119
+ opts = pulumi.mergeOptions(opts, aliasOpts);
120
+ super(BucketLoggingV2.__pulumiType, name, resourceInputs, opts);
121
+ }
122
+ }
123
+ exports.BucketLoggingV2 = BucketLoggingV2;
124
+ /** @internal */
125
+ BucketLoggingV2.__pulumiType = 'aws:s3/bucketLoggingV2:BucketLoggingV2';
126
+ //# sourceMappingURL=bucketLoggingV2.js.map
@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AAS,CAAC;YAC1D,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC,EAAE,CAAC;QACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAxGL,0CAyGC;AA1FG,gBAAgB;AACO,4BAAY,GAAG,wCAAwC,CAAC"}
@@ -101,7 +101,7 @@ class BucketObjectLockConfiguration extends pulumi.CustomResource {
101
101
  resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
102
102
  }
103
103
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
- const aliasOpts = { aliases: [{ type: "aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2" }, { type: "aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2" }] };
104
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2" }] };
105
105
  opts = pulumi.mergeOptions(opts, aliasOpts);
106
106
  const secretOpts = { additionalSecretOutputs: ["token"] };
107
107
  opts = pulumi.mergeOptions(opts, secretOpts);
@@ -1 +1 @@
1
- {"version":3,"file":"bucketObjectLockConfiguration.js","sourceRoot":"","sources":["../../s3/bucketObjectLockConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IAoCD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,wEAAwE,EAAE,CAAC,EAAE,CAAC;QACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AA3FL,sEA4FC;AA9EG,gBAAgB;AACO,0CAAY,GAAG,oEAAoE,CAAC"}
@@ -0,0 +1,164 @@
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 S3 bucket Object Lock configuration resource. For more information about Object Locking, go to [Using S3 Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html) in the Amazon S3 User Guide.
6
+ *
7
+ * > This resource can be used enable Object Lock for **new** and **existing** buckets.
8
+ *
9
+ * > This resource cannot be used with S3 directory buckets.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ### Object Lock configuration for new or existing buckets
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as aws from "@pulumi/aws";
18
+ *
19
+ * const example = new aws.s3.Bucket("example", {bucket: "mybucket"});
20
+ * const exampleBucketVersioning = new aws.s3.BucketVersioning("example", {
21
+ * bucket: example.id,
22
+ * versioningConfiguration: {
23
+ * status: "Enabled",
24
+ * },
25
+ * });
26
+ * const exampleBucketObjectLockConfiguration = new aws.s3.BucketObjectLockConfiguration("example", {
27
+ * bucket: example.id,
28
+ * rule: {
29
+ * defaultRetention: {
30
+ * mode: "COMPLIANCE",
31
+ * days: 5,
32
+ * },
33
+ * },
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * 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 (`,`). For example:
40
+ *
41
+ * __Using `pulumi import`__, import an S3 bucket Object Lock Configuration using one of two forms. If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`. For example:
42
+ *
43
+ * ```sh
44
+ * $ pulumi import aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2 example bucket-name
45
+ * ```
46
+ * 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 (`,`). For example:
47
+ *
48
+ * ```sh
49
+ * $ pulumi import aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2 example bucket-name,123456789012
50
+ * ```
51
+ *
52
+ * @deprecated aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration
53
+ */
54
+ export declare class BucketObjectLockConfigurationV2 extends pulumi.CustomResource {
55
+ /**
56
+ * Get an existing BucketObjectLockConfigurationV2 resource's state with the given name, ID, and optional extra
57
+ * properties used to qualify the lookup.
58
+ *
59
+ * @param name The _unique_ name of the resulting resource.
60
+ * @param id The _unique_ provider ID of the resource to lookup.
61
+ * @param state Any extra arguments used during the lookup.
62
+ * @param opts Optional settings to control the behavior of the CustomResource.
63
+ */
64
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketObjectLockConfigurationV2State, opts?: pulumi.CustomResourceOptions): BucketObjectLockConfigurationV2;
65
+ /**
66
+ * Returns true if the given object is an instance of BucketObjectLockConfigurationV2. This is designed to work even
67
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
68
+ */
69
+ static isInstance(obj: any): obj is BucketObjectLockConfigurationV2;
70
+ /**
71
+ * Name of the bucket.
72
+ */
73
+ readonly bucket: pulumi.Output<string>;
74
+ /**
75
+ * Account ID of the expected bucket owner.
76
+ */
77
+ readonly expectedBucketOwner: pulumi.Output<string | undefined>;
78
+ /**
79
+ * Indicates whether this bucket has an Object Lock configuration enabled. Defaults to `Enabled`. Valid values: `Enabled`.
80
+ */
81
+ readonly objectLockEnabled: pulumi.Output<string | undefined>;
82
+ /**
83
+ * 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.
84
+ */
85
+ readonly region: pulumi.Output<string>;
86
+ /**
87
+ * Configuration block for specifying the Object Lock rule for the specified object. See below.
88
+ */
89
+ readonly rule: pulumi.Output<outputs.s3.BucketObjectLockConfigurationV2Rule | undefined>;
90
+ /**
91
+ * This argument is deprecated and no longer needed to enable Object Lock.
92
+ * To enable Object Lock for an existing bucket, you must first enable versioning on the bucket and then enable Object Lock. For more details on versioning, see the `aws.s3.BucketVersioning` resource.
93
+ */
94
+ readonly token: pulumi.Output<string | undefined>;
95
+ /**
96
+ * Create a BucketObjectLockConfigurationV2 resource with the given unique name, arguments, and options.
97
+ *
98
+ * @param name The _unique_ name of the resource.
99
+ * @param args The arguments to use to populate this resource's properties.
100
+ * @param opts A bag of options that control this resource's behavior.
101
+ */
102
+ /** @deprecated aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration */
103
+ constructor(name: string, args: BucketObjectLockConfigurationV2Args, opts?: pulumi.CustomResourceOptions);
104
+ }
105
+ /**
106
+ * Input properties used for looking up and filtering BucketObjectLockConfigurationV2 resources.
107
+ */
108
+ export interface BucketObjectLockConfigurationV2State {
109
+ /**
110
+ * Name of the bucket.
111
+ */
112
+ bucket?: pulumi.Input<string>;
113
+ /**
114
+ * Account ID of the expected bucket owner.
115
+ */
116
+ expectedBucketOwner?: pulumi.Input<string>;
117
+ /**
118
+ * Indicates whether this bucket has an Object Lock configuration enabled. Defaults to `Enabled`. Valid values: `Enabled`.
119
+ */
120
+ objectLockEnabled?: pulumi.Input<string>;
121
+ /**
122
+ * 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.
123
+ */
124
+ region?: pulumi.Input<string>;
125
+ /**
126
+ * Configuration block for specifying the Object Lock rule for the specified object. See below.
127
+ */
128
+ rule?: pulumi.Input<inputs.s3.BucketObjectLockConfigurationV2Rule>;
129
+ /**
130
+ * This argument is deprecated and no longer needed to enable Object Lock.
131
+ * To enable Object Lock for an existing bucket, you must first enable versioning on the bucket and then enable Object Lock. For more details on versioning, see the `aws.s3.BucketVersioning` resource.
132
+ */
133
+ token?: pulumi.Input<string>;
134
+ }
135
+ /**
136
+ * The set of arguments for constructing a BucketObjectLockConfigurationV2 resource.
137
+ */
138
+ export interface BucketObjectLockConfigurationV2Args {
139
+ /**
140
+ * Name of the bucket.
141
+ */
142
+ bucket: pulumi.Input<string>;
143
+ /**
144
+ * Account ID of the expected bucket owner.
145
+ */
146
+ expectedBucketOwner?: pulumi.Input<string>;
147
+ /**
148
+ * Indicates whether this bucket has an Object Lock configuration enabled. Defaults to `Enabled`. Valid values: `Enabled`.
149
+ */
150
+ objectLockEnabled?: pulumi.Input<string>;
151
+ /**
152
+ * 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.
153
+ */
154
+ region?: pulumi.Input<string>;
155
+ /**
156
+ * Configuration block for specifying the Object Lock rule for the specified object. See below.
157
+ */
158
+ rule?: pulumi.Input<inputs.s3.BucketObjectLockConfigurationV2Rule>;
159
+ /**
160
+ * This argument is deprecated and no longer needed to enable Object Lock.
161
+ * To enable Object Lock for an existing bucket, you must first enable versioning on the bucket and then enable Object Lock. For more details on versioning, see the `aws.s3.BucketVersioning` resource.
162
+ */
163
+ token?: pulumi.Input<string>;
164
+ }
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BucketObjectLockConfigurationV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides an S3 bucket Object Lock configuration resource. For more information about Object Locking, go to [Using S3 Object Lock](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html) in the Amazon S3 User Guide.
10
+ *
11
+ * > This resource can be used enable Object Lock for **new** and **existing** buckets.
12
+ *
13
+ * > This resource cannot be used with S3 directory buckets.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ### Object Lock configuration for new or existing buckets
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as aws from "@pulumi/aws";
22
+ *
23
+ * const example = new aws.s3.Bucket("example", {bucket: "mybucket"});
24
+ * const exampleBucketVersioning = new aws.s3.BucketVersioning("example", {
25
+ * bucket: example.id,
26
+ * versioningConfiguration: {
27
+ * status: "Enabled",
28
+ * },
29
+ * });
30
+ * const exampleBucketObjectLockConfiguration = new aws.s3.BucketObjectLockConfiguration("example", {
31
+ * bucket: example.id,
32
+ * rule: {
33
+ * defaultRetention: {
34
+ * mode: "COMPLIANCE",
35
+ * days: 5,
36
+ * },
37
+ * },
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * 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 (`,`). For example:
44
+ *
45
+ * __Using `pulumi import`__, import an S3 bucket Object Lock Configuration using one of two forms. If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`. For example:
46
+ *
47
+ * ```sh
48
+ * $ pulumi import aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2 example bucket-name
49
+ * ```
50
+ * 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 (`,`). For example:
51
+ *
52
+ * ```sh
53
+ * $ pulumi import aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2 example bucket-name,123456789012
54
+ * ```
55
+ *
56
+ * @deprecated aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration
57
+ */
58
+ class BucketObjectLockConfigurationV2 extends pulumi.CustomResource {
59
+ /**
60
+ * Get an existing BucketObjectLockConfigurationV2 resource's state with the given name, ID, and optional extra
61
+ * properties used to qualify the lookup.
62
+ *
63
+ * @param name The _unique_ name of the resulting resource.
64
+ * @param id The _unique_ provider ID of the resource to lookup.
65
+ * @param state Any extra arguments used during the lookup.
66
+ * @param opts Optional settings to control the behavior of the CustomResource.
67
+ */
68
+ static get(name, id, state, opts) {
69
+ pulumi.log.warn("BucketObjectLockConfigurationV2 is deprecated: aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration");
70
+ return new BucketObjectLockConfigurationV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
71
+ }
72
+ /**
73
+ * Returns true if the given object is an instance of BucketObjectLockConfigurationV2. This is designed to work even
74
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
75
+ */
76
+ static isInstance(obj) {
77
+ if (obj === undefined || obj === null) {
78
+ return false;
79
+ }
80
+ return obj['__pulumiType'] === BucketObjectLockConfigurationV2.__pulumiType;
81
+ }
82
+ /** @deprecated aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration */
83
+ constructor(name, argsOrState, opts) {
84
+ pulumi.log.warn("BucketObjectLockConfigurationV2 is deprecated: aws.s3/bucketobjectlockconfigurationv2.BucketObjectLockConfigurationV2 has been deprecated in favor of aws.s3/bucketobjectlockconfiguration.BucketObjectLockConfiguration");
85
+ let resourceInputs = {};
86
+ opts = opts || {};
87
+ if (opts.id) {
88
+ const state = argsOrState;
89
+ resourceInputs["bucket"] = state ? state.bucket : undefined;
90
+ resourceInputs["expectedBucketOwner"] = state ? state.expectedBucketOwner : undefined;
91
+ resourceInputs["objectLockEnabled"] = state ? state.objectLockEnabled : undefined;
92
+ resourceInputs["region"] = state ? state.region : undefined;
93
+ resourceInputs["rule"] = state ? state.rule : undefined;
94
+ resourceInputs["token"] = state ? state.token : undefined;
95
+ }
96
+ else {
97
+ const args = argsOrState;
98
+ if ((!args || args.bucket === undefined) && !opts.urn) {
99
+ throw new Error("Missing required property 'bucket'");
100
+ }
101
+ resourceInputs["bucket"] = args ? args.bucket : undefined;
102
+ resourceInputs["expectedBucketOwner"] = args ? args.expectedBucketOwner : undefined;
103
+ resourceInputs["objectLockEnabled"] = args ? args.objectLockEnabled : undefined;
104
+ resourceInputs["region"] = args ? args.region : undefined;
105
+ resourceInputs["rule"] = args ? args.rule : undefined;
106
+ resourceInputs["token"] = (args === null || args === void 0 ? void 0 : args.token) ? pulumi.secret(args.token) : undefined;
107
+ }
108
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
109
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2" }] };
110
+ opts = pulumi.mergeOptions(opts, aliasOpts);
111
+ const secretOpts = { additionalSecretOutputs: ["token"] };
112
+ opts = pulumi.mergeOptions(opts, secretOpts);
113
+ super(BucketObjectLockConfigurationV2.__pulumiType, name, resourceInputs, opts);
114
+ }
115
+ }
116
+ exports.BucketObjectLockConfigurationV2 = BucketObjectLockConfigurationV2;
117
+ /** @internal */
118
+ BucketObjectLockConfigurationV2.__pulumiType = 'aws:s3/bucketObjectLockConfigurationV2:BucketObjectLockConfigurationV2';
119
+ //# sourceMappingURL=bucketObjectLockConfigurationV2.js.map
@@ -0,0 +1 @@
1
+ {"version":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AAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACjF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,wEAAwE,EAAE,CAAC,EAAE,CAAC;QACpH,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AA/FL,0EAgGC;AAjFG,gBAAgB;AACO,4CAAY,GAAG,wEAAwE,CAAC"}
@@ -88,7 +88,7 @@ class BucketRequestPaymentConfiguration extends pulumi.CustomResource {
88
88
  resourceInputs["region"] = args ? args.region : undefined;
89
89
  }
90
90
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
91
- const aliasOpts = { aliases: [{ type: "aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2" }, { type: "aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2" }] };
91
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2" }] };
92
92
  opts = pulumi.mergeOptions(opts, aliasOpts);
93
93
  super(BucketRequestPaymentConfiguration.__pulumiType, name, resourceInputs,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AAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,gFAAgF,EAAE,CAAC,EAAE,CAAC;QAC5H,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAC5C,KAAK,CAAC,iCAAiC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtF,CAAC;;AA/EL,8EAgFC;AAlEG,gBAAgB;AACO,8CAAY,GAAG,4EAA4E,CAAC"}
@@ -0,0 +1,123 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides an S3 bucket request payment configuration resource. For more information, see [Requester Pays Buckets](https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html).
4
+ *
5
+ * > **NOTE:** Destroying an `aws.s3.BucketRequestPaymentConfiguration` resource resets the bucket's `payer` to the S3 default: the bucket owner.
6
+ *
7
+ * > This resource cannot be used with S3 directory buckets.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as aws from "@pulumi/aws";
14
+ *
15
+ * const example = new aws.s3.BucketRequestPaymentConfiguration("example", {
16
+ * bucket: exampleAwsS3Bucket.id,
17
+ * payer: "Requester",
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * 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 (`,`):
24
+ *
25
+ * __Using `pulumi import` to import__ S3 bucket request payment configuration using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:
26
+ *
27
+ * If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
28
+ *
29
+ * ```sh
30
+ * $ pulumi import aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2 example bucket-name
31
+ * ```
32
+ * 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 (`,`):
33
+ *
34
+ * ```sh
35
+ * $ pulumi import aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2 example bucket-name,123456789012
36
+ * ```
37
+ *
38
+ * @deprecated aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration
39
+ */
40
+ export declare class BucketRequestPaymentConfigurationV2 extends pulumi.CustomResource {
41
+ /**
42
+ * Get an existing BucketRequestPaymentConfigurationV2 resource's state with the given name, ID, and optional extra
43
+ * properties used to qualify the lookup.
44
+ *
45
+ * @param name The _unique_ name of the resulting resource.
46
+ * @param id The _unique_ provider ID of the resource to lookup.
47
+ * @param state Any extra arguments used during the lookup.
48
+ * @param opts Optional settings to control the behavior of the CustomResource.
49
+ */
50
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketRequestPaymentConfigurationV2State, opts?: pulumi.CustomResourceOptions): BucketRequestPaymentConfigurationV2;
51
+ /**
52
+ * Returns true if the given object is an instance of BucketRequestPaymentConfigurationV2. This is designed to work even
53
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
+ */
55
+ static isInstance(obj: any): obj is BucketRequestPaymentConfigurationV2;
56
+ /**
57
+ * Name of the bucket.
58
+ */
59
+ readonly bucket: pulumi.Output<string>;
60
+ /**
61
+ * Account ID of the expected bucket owner.
62
+ */
63
+ readonly expectedBucketOwner: pulumi.Output<string | undefined>;
64
+ /**
65
+ * Specifies who pays for the download and request fees. Valid values: `BucketOwner`, `Requester`.
66
+ */
67
+ readonly payer: pulumi.Output<string>;
68
+ /**
69
+ * 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.
70
+ */
71
+ readonly region: pulumi.Output<string>;
72
+ /**
73
+ * Create a BucketRequestPaymentConfigurationV2 resource with the given unique name, arguments, and options.
74
+ *
75
+ * @param name The _unique_ name of the resource.
76
+ * @param args The arguments to use to populate this resource's properties.
77
+ * @param opts A bag of options that control this resource's behavior.
78
+ */
79
+ /** @deprecated aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration */
80
+ constructor(name: string, args: BucketRequestPaymentConfigurationV2Args, opts?: pulumi.CustomResourceOptions);
81
+ }
82
+ /**
83
+ * Input properties used for looking up and filtering BucketRequestPaymentConfigurationV2 resources.
84
+ */
85
+ export interface BucketRequestPaymentConfigurationV2State {
86
+ /**
87
+ * Name of the bucket.
88
+ */
89
+ bucket?: pulumi.Input<string>;
90
+ /**
91
+ * Account ID of the expected bucket owner.
92
+ */
93
+ expectedBucketOwner?: pulumi.Input<string>;
94
+ /**
95
+ * Specifies who pays for the download and request fees. Valid values: `BucketOwner`, `Requester`.
96
+ */
97
+ payer?: pulumi.Input<string>;
98
+ /**
99
+ * 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.
100
+ */
101
+ region?: pulumi.Input<string>;
102
+ }
103
+ /**
104
+ * The set of arguments for constructing a BucketRequestPaymentConfigurationV2 resource.
105
+ */
106
+ export interface BucketRequestPaymentConfigurationV2Args {
107
+ /**
108
+ * Name of the bucket.
109
+ */
110
+ bucket: pulumi.Input<string>;
111
+ /**
112
+ * Account ID of the expected bucket owner.
113
+ */
114
+ expectedBucketOwner?: pulumi.Input<string>;
115
+ /**
116
+ * Specifies who pays for the download and request fees. Valid values: `BucketOwner`, `Requester`.
117
+ */
118
+ payer: pulumi.Input<string>;
119
+ /**
120
+ * 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.
121
+ */
122
+ region?: pulumi.Input<string>;
123
+ }