@pulumi/aws 4.28.0-alpha.1637005539 → 4.29.0

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 (94) hide show
  1. package/alb/targetGroupAttachment.d.ts +3 -3
  2. package/applicationloadbalancing/targetGroupAttachment.d.ts +3 -3
  3. package/appstream/directoryConfig.d.ts +108 -0
  4. package/appstream/directoryConfig.js +93 -0
  5. package/appstream/directoryConfig.js.map +1 -0
  6. package/appstream/index.d.ts +1 -0
  7. package/appstream/index.js +5 -0
  8. package/appstream/index.js.map +1 -1
  9. package/autoscaling/group.d.ts +3 -3
  10. package/cloudfront/responseHeadersPolicy.d.ts +28 -4
  11. package/cloudfront/responseHeadersPolicy.js +25 -1
  12. package/cloudfront/responseHeadersPolicy.js.map +1 -1
  13. package/ec2/getInstanceType.d.ts +4 -0
  14. package/ec2/getInstanceType.js.map +1 -1
  15. package/elasticloadbalancingv2/targetGroupAttachment.d.ts +3 -3
  16. package/emr/cluster.d.ts +12 -0
  17. package/emr/cluster.js +2 -0
  18. package/emr/cluster.js.map +1 -1
  19. package/emr/getReleaseLabels.d.ts +53 -0
  20. package/emr/getReleaseLabels.js +42 -0
  21. package/emr/getReleaseLabels.js.map +1 -0
  22. package/emr/index.d.ts +1 -0
  23. package/emr/index.js +1 -0
  24. package/emr/index.js.map +1 -1
  25. package/iot/index.d.ts +2 -0
  26. package/iot/index.js +10 -0
  27. package/iot/index.js.map +1 -1
  28. package/iot/thingGroup.d.ts +153 -0
  29. package/iot/thingGroup.js +100 -0
  30. package/iot/thingGroup.js.map +1 -0
  31. package/iot/thingGroupMembership.d.ts +96 -0
  32. package/iot/thingGroupMembership.js +85 -0
  33. package/iot/thingGroupMembership.js.map +1 -0
  34. package/iot/thingType.d.ts +36 -0
  35. package/iot/thingType.js +4 -0
  36. package/iot/thingType.js.map +1 -1
  37. package/lambda/index.d.ts +1 -0
  38. package/lambda/index.js +5 -0
  39. package/lambda/index.js.map +1 -1
  40. package/lambda/layerVersion.d.ts +41 -83
  41. package/lambda/layerVersion.js +2 -45
  42. package/lambda/layerVersion.js.map +1 -1
  43. package/lambda/layerVersionPermission.d.ts +154 -0
  44. package/lambda/layerVersionPermission.js +110 -0
  45. package/lambda/layerVersionPermission.js.map +1 -0
  46. package/lb/targetGroupAttachment.d.ts +3 -3
  47. package/package.json +2 -2
  48. package/package.json.dev +1 -1
  49. package/quicksight/user.d.ts +1 -1
  50. package/quicksight/user.js +1 -1
  51. package/s3/accessPoint.d.ts +20 -28
  52. package/s3/accessPoint.js +4 -28
  53. package/s3/accessPoint.js.map +1 -1
  54. package/s3/bucket.d.ts +2 -0
  55. package/s3/bucket.js +2 -0
  56. package/s3/bucket.js.map +1 -1
  57. package/s3/bucketReplicationConfig.d.ts +190 -0
  58. package/s3/bucketReplicationConfig.js +181 -0
  59. package/s3/bucketReplicationConfig.js.map +1 -0
  60. package/s3/index.d.ts +1 -0
  61. package/s3/index.js +5 -0
  62. package/s3/index.js.map +1 -1
  63. package/s3control/accessPointPolicy.d.ts +77 -0
  64. package/s3control/accessPointPolicy.js +70 -0
  65. package/s3control/accessPointPolicy.js.map +1 -0
  66. package/s3control/index.d.ts +5 -0
  67. package/s3control/index.js +25 -0
  68. package/s3control/index.js.map +1 -1
  69. package/s3control/multiRegionAccessPoint.d.ts +123 -0
  70. package/s3control/multiRegionAccessPoint.js +103 -0
  71. package/s3control/multiRegionAccessPoint.js.map +1 -0
  72. package/s3control/multiRegionAccessPointPolicy.d.ts +115 -0
  73. package/s3control/multiRegionAccessPointPolicy.js +107 -0
  74. package/s3control/multiRegionAccessPointPolicy.js.map +1 -0
  75. package/s3control/objectLambdaAccessPoint.d.ts +105 -0
  76. package/s3control/objectLambdaAccessPoint.js +93 -0
  77. package/s3control/objectLambdaAccessPoint.js.map +1 -0
  78. package/s3control/objectLambdaAccessPointPolicy.d.ts +114 -0
  79. package/s3control/objectLambdaAccessPointPolicy.js +103 -0
  80. package/s3control/objectLambdaAccessPointPolicy.js.map +1 -0
  81. package/sagemaker/endpoint.d.ts +19 -6
  82. package/sagemaker/endpoint.js +2 -0
  83. package/sagemaker/endpoint.js.map +1 -1
  84. package/securityhub/findingAggregator.d.ts +124 -0
  85. package/securityhub/findingAggregator.js +120 -0
  86. package/securityhub/findingAggregator.js.map +1 -0
  87. package/securityhub/index.d.ts +1 -0
  88. package/securityhub/index.js +5 -0
  89. package/securityhub/index.js.map +1 -1
  90. package/types/enums/iam/index.d.ts +1 -0
  91. package/types/enums/iam/index.js +1 -0
  92. package/types/enums/iam/index.js.map +1 -1
  93. package/types/input.d.ts +463 -29
  94. package/types/output.d.ts +455 -28
@@ -0,0 +1,190 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Provides an independent configuration resource for S3 bucket [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html).
5
+ *
6
+ * ## Example Usage
7
+ * ### Using replication configuration
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as aws from "@pulumi/aws";
12
+ *
13
+ * const central = new aws.Provider("central", {region: "eu-central-1"});
14
+ * const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
15
+ * "Version": "2012-10-17",
16
+ * "Statement": [
17
+ * {
18
+ * "Action": "sts:AssumeRole",
19
+ * "Principal": {
20
+ * "Service": "s3.amazonaws.com"
21
+ * },
22
+ * "Effect": "Allow",
23
+ * "Sid": ""
24
+ * }
25
+ * ]
26
+ * }
27
+ * `});
28
+ * const destination = new aws.s3.Bucket("destination", {versioning: {
29
+ * enabled: true,
30
+ * }});
31
+ * const source = new aws.s3.Bucket("source", {
32
+ * acl: "private",
33
+ * versioning: {
34
+ * enabled: true,
35
+ * },
36
+ * }, {
37
+ * provider: aws.central,
38
+ * });
39
+ * const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
40
+ * "Version": "2012-10-17",
41
+ * "Statement": [
42
+ * {
43
+ * "Action": [
44
+ * "s3:GetReplicationConfiguration",
45
+ * "s3:ListBucket"
46
+ * ],
47
+ * "Effect": "Allow",
48
+ * "Resource": [
49
+ * "${source.arn}"
50
+ * ]
51
+ * },
52
+ * {
53
+ * "Action": [
54
+ * "s3:GetObjectVersionForReplication",
55
+ * "s3:GetObjectVersionAcl",
56
+ * "s3:GetObjectVersionTagging"
57
+ * ],
58
+ * "Effect": "Allow",
59
+ * "Resource": [
60
+ * "${source.arn}/*"
61
+ * ]
62
+ * },
63
+ * {
64
+ * "Action": [
65
+ * "s3:ReplicateObject",
66
+ * "s3:ReplicateDelete",
67
+ * "s3:ReplicateTags"
68
+ * ],
69
+ * "Effect": "Allow",
70
+ * "Resource": "${destination.arn}/*"
71
+ * }
72
+ * ]
73
+ * }
74
+ * `});
75
+ * const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
76
+ * role: replicationRole.name,
77
+ * policyArn: replicationPolicy.arn,
78
+ * });
79
+ * const replicationBucketReplicationConfig = new aws.s3.BucketReplicationConfig("replicationBucketReplicationConfig", {
80
+ * role: replicationRole.arn,
81
+ * bucket: source.id,
82
+ * rules: [{
83
+ * id: "foobar",
84
+ * prefix: "foo",
85
+ * status: "Enabled",
86
+ * destination: {
87
+ * bucket: destination.arn,
88
+ * storageClass: "STANDARD",
89
+ * },
90
+ * }],
91
+ * });
92
+ * ```
93
+ * ## Usage Notes
94
+ *
95
+ * > **NOTE:** To avoid conflicts always add the following lifecycle object to the `aws.s3.Bucket` resource of the source bucket.
96
+ *
97
+ * This resource implements the same features that are provided by the `replicationConfiguration` object of the [`aws.s3.Bucket` resource](https://www.terraform.io/docs/providers/aws/r/s3_bucket.html). To avoid conflicts or unexpected apply results, a lifecycle configuration is needed on the `aws.s3.Bucket` to ignore changes to the internal `replicationConfiguration` object. Failure to add the `lifecycle` configuration to the `aws.s3.Bucket` will result in conflicting state results.
98
+ *
99
+ * ```typescript
100
+ * import * as pulumi from "@pulumi/pulumi";
101
+ * ```
102
+ *
103
+ * The `aws.s3.BucketReplicationConfig` resource provides the following features that are not available in the [`aws.s3.Bucket` resource](https://www.terraform.io/docs/providers/aws/r/s3_bucket.html):
104
+ *
105
+ * * `replicaModifications` - Added to the `sourceSelectionCriteria` configuration object documented below
106
+ * * `metrics` - Added to the `destination` configuration object documented below
107
+ * * `replicationTime` - Added to the `destination` configuration object documented below
108
+ * * `existingObjectReplication` - Added to the replication rule object documented below
109
+ *
110
+ * Replication for existing objects requires activation by AWS Support. See [userguide/replication-what-is-isnot-replicated](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-what-is-isnot-replicated.html#existing-object-replication).
111
+ *
112
+ * ## Import
113
+ *
114
+ * S3 bucket replication configuration can be imported using the `bucket`, e.g.
115
+ *
116
+ * ```sh
117
+ * $ pulumi import aws:s3/bucketReplicationConfig:BucketReplicationConfig replication bucket-name
118
+ * ```
119
+ */
120
+ export declare class BucketReplicationConfig extends pulumi.CustomResource {
121
+ /**
122
+ * Get an existing BucketReplicationConfig resource's state with the given name, ID, and optional extra
123
+ * properties used to qualify the lookup.
124
+ *
125
+ * @param name The _unique_ name of the resulting resource.
126
+ * @param id The _unique_ provider ID of the resource to lookup.
127
+ * @param state Any extra arguments used during the lookup.
128
+ * @param opts Optional settings to control the behavior of the CustomResource.
129
+ */
130
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketReplicationConfigState, opts?: pulumi.CustomResourceOptions): BucketReplicationConfig;
131
+ /**
132
+ * Returns true if the given object is an instance of BucketReplicationConfig. This is designed to work even
133
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
134
+ */
135
+ static isInstance(obj: any): obj is BucketReplicationConfig;
136
+ /**
137
+ * The name of the source S3 bucket you want Amazon S3 to monitor.
138
+ */
139
+ readonly bucket: pulumi.Output<string>;
140
+ /**
141
+ * The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
142
+ */
143
+ readonly role: pulumi.Output<string>;
144
+ /**
145
+ * Set of configuration blocks describing the rules managing the replication documented below.
146
+ */
147
+ readonly rules: pulumi.Output<outputs.s3.BucketReplicationConfigRule[]>;
148
+ /**
149
+ * Create a BucketReplicationConfig resource with the given unique name, arguments, and options.
150
+ *
151
+ * @param name The _unique_ name of the resource.
152
+ * @param args The arguments to use to populate this resource's properties.
153
+ * @param opts A bag of options that control this resource's behavior.
154
+ */
155
+ constructor(name: string, args: BucketReplicationConfigArgs, opts?: pulumi.CustomResourceOptions);
156
+ }
157
+ /**
158
+ * Input properties used for looking up and filtering BucketReplicationConfig resources.
159
+ */
160
+ export interface BucketReplicationConfigState {
161
+ /**
162
+ * The name of the source S3 bucket you want Amazon S3 to monitor.
163
+ */
164
+ bucket?: pulumi.Input<string>;
165
+ /**
166
+ * The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
167
+ */
168
+ role?: pulumi.Input<string>;
169
+ /**
170
+ * Set of configuration blocks describing the rules managing the replication documented below.
171
+ */
172
+ rules?: pulumi.Input<pulumi.Input<inputs.s3.BucketReplicationConfigRule>[]>;
173
+ }
174
+ /**
175
+ * The set of arguments for constructing a BucketReplicationConfig resource.
176
+ */
177
+ export interface BucketReplicationConfigArgs {
178
+ /**
179
+ * The name of the source S3 bucket you want Amazon S3 to monitor.
180
+ */
181
+ bucket: pulumi.Input<string>;
182
+ /**
183
+ * The ARN of the IAM role for Amazon S3 to assume when replicating the objects.
184
+ */
185
+ role: pulumi.Input<string>;
186
+ /**
187
+ * Set of configuration blocks describing the rules managing the replication documented below.
188
+ */
189
+ rules: pulumi.Input<pulumi.Input<inputs.s3.BucketReplicationConfigRule>[]>;
190
+ }
@@ -0,0 +1,181 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.BucketReplicationConfig = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides an independent configuration resource for S3 bucket [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html).
10
+ *
11
+ * ## Example Usage
12
+ * ### Using replication configuration
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as aws from "@pulumi/aws";
17
+ *
18
+ * const central = new aws.Provider("central", {region: "eu-central-1"});
19
+ * const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
20
+ * "Version": "2012-10-17",
21
+ * "Statement": [
22
+ * {
23
+ * "Action": "sts:AssumeRole",
24
+ * "Principal": {
25
+ * "Service": "s3.amazonaws.com"
26
+ * },
27
+ * "Effect": "Allow",
28
+ * "Sid": ""
29
+ * }
30
+ * ]
31
+ * }
32
+ * `});
33
+ * const destination = new aws.s3.Bucket("destination", {versioning: {
34
+ * enabled: true,
35
+ * }});
36
+ * const source = new aws.s3.Bucket("source", {
37
+ * acl: "private",
38
+ * versioning: {
39
+ * enabled: true,
40
+ * },
41
+ * }, {
42
+ * provider: aws.central,
43
+ * });
44
+ * const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
45
+ * "Version": "2012-10-17",
46
+ * "Statement": [
47
+ * {
48
+ * "Action": [
49
+ * "s3:GetReplicationConfiguration",
50
+ * "s3:ListBucket"
51
+ * ],
52
+ * "Effect": "Allow",
53
+ * "Resource": [
54
+ * "${source.arn}"
55
+ * ]
56
+ * },
57
+ * {
58
+ * "Action": [
59
+ * "s3:GetObjectVersionForReplication",
60
+ * "s3:GetObjectVersionAcl",
61
+ * "s3:GetObjectVersionTagging"
62
+ * ],
63
+ * "Effect": "Allow",
64
+ * "Resource": [
65
+ * "${source.arn}/*"
66
+ * ]
67
+ * },
68
+ * {
69
+ * "Action": [
70
+ * "s3:ReplicateObject",
71
+ * "s3:ReplicateDelete",
72
+ * "s3:ReplicateTags"
73
+ * ],
74
+ * "Effect": "Allow",
75
+ * "Resource": "${destination.arn}/*"
76
+ * }
77
+ * ]
78
+ * }
79
+ * `});
80
+ * const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
81
+ * role: replicationRole.name,
82
+ * policyArn: replicationPolicy.arn,
83
+ * });
84
+ * const replicationBucketReplicationConfig = new aws.s3.BucketReplicationConfig("replicationBucketReplicationConfig", {
85
+ * role: replicationRole.arn,
86
+ * bucket: source.id,
87
+ * rules: [{
88
+ * id: "foobar",
89
+ * prefix: "foo",
90
+ * status: "Enabled",
91
+ * destination: {
92
+ * bucket: destination.arn,
93
+ * storageClass: "STANDARD",
94
+ * },
95
+ * }],
96
+ * });
97
+ * ```
98
+ * ## Usage Notes
99
+ *
100
+ * > **NOTE:** To avoid conflicts always add the following lifecycle object to the `aws.s3.Bucket` resource of the source bucket.
101
+ *
102
+ * This resource implements the same features that are provided by the `replicationConfiguration` object of the [`aws.s3.Bucket` resource](https://www.terraform.io/docs/providers/aws/r/s3_bucket.html). To avoid conflicts or unexpected apply results, a lifecycle configuration is needed on the `aws.s3.Bucket` to ignore changes to the internal `replicationConfiguration` object. Failure to add the `lifecycle` configuration to the `aws.s3.Bucket` will result in conflicting state results.
103
+ *
104
+ * ```typescript
105
+ * import * as pulumi from "@pulumi/pulumi";
106
+ * ```
107
+ *
108
+ * The `aws.s3.BucketReplicationConfig` resource provides the following features that are not available in the [`aws.s3.Bucket` resource](https://www.terraform.io/docs/providers/aws/r/s3_bucket.html):
109
+ *
110
+ * * `replicaModifications` - Added to the `sourceSelectionCriteria` configuration object documented below
111
+ * * `metrics` - Added to the `destination` configuration object documented below
112
+ * * `replicationTime` - Added to the `destination` configuration object documented below
113
+ * * `existingObjectReplication` - Added to the replication rule object documented below
114
+ *
115
+ * Replication for existing objects requires activation by AWS Support. See [userguide/replication-what-is-isnot-replicated](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-what-is-isnot-replicated.html#existing-object-replication).
116
+ *
117
+ * ## Import
118
+ *
119
+ * S3 bucket replication configuration can be imported using the `bucket`, e.g.
120
+ *
121
+ * ```sh
122
+ * $ pulumi import aws:s3/bucketReplicationConfig:BucketReplicationConfig replication bucket-name
123
+ * ```
124
+ */
125
+ class BucketReplicationConfig extends pulumi.CustomResource {
126
+ constructor(name, argsOrState, opts) {
127
+ let inputs = {};
128
+ opts = opts || {};
129
+ if (opts.id) {
130
+ const state = argsOrState;
131
+ inputs["bucket"] = state ? state.bucket : undefined;
132
+ inputs["role"] = state ? state.role : undefined;
133
+ inputs["rules"] = state ? state.rules : undefined;
134
+ }
135
+ else {
136
+ const args = argsOrState;
137
+ if ((!args || args.bucket === undefined) && !opts.urn) {
138
+ throw new Error("Missing required property 'bucket'");
139
+ }
140
+ if ((!args || args.role === undefined) && !opts.urn) {
141
+ throw new Error("Missing required property 'role'");
142
+ }
143
+ if ((!args || args.rules === undefined) && !opts.urn) {
144
+ throw new Error("Missing required property 'rules'");
145
+ }
146
+ inputs["bucket"] = args ? args.bucket : undefined;
147
+ inputs["role"] = args ? args.role : undefined;
148
+ inputs["rules"] = args ? args.rules : undefined;
149
+ }
150
+ if (!opts.version) {
151
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
152
+ }
153
+ super(BucketReplicationConfig.__pulumiType, name, inputs, opts);
154
+ }
155
+ /**
156
+ * Get an existing BucketReplicationConfig resource's state with the given name, ID, and optional extra
157
+ * properties used to qualify the lookup.
158
+ *
159
+ * @param name The _unique_ name of the resulting resource.
160
+ * @param id The _unique_ provider ID of the resource to lookup.
161
+ * @param state Any extra arguments used during the lookup.
162
+ * @param opts Optional settings to control the behavior of the CustomResource.
163
+ */
164
+ static get(name, id, state, opts) {
165
+ return new BucketReplicationConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
166
+ }
167
+ /**
168
+ * Returns true if the given object is an instance of BucketReplicationConfig. This is designed to work even
169
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
170
+ */
171
+ static isInstance(obj) {
172
+ if (obj === undefined || obj === null) {
173
+ return false;
174
+ }
175
+ return obj['__pulumiType'] === BucketReplicationConfig.__pulumiType;
176
+ }
177
+ }
178
+ exports.BucketReplicationConfig = BucketReplicationConfig;
179
+ /** @internal */
180
+ BucketReplicationConfig.__pulumiType = 'aws:s3/bucketReplicationConfig:BucketReplicationConfig';
181
+ //# sourceMappingURL=bucketReplicationConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucketReplicationConfig.js","sourceRoot":"","sources":["../../s3/bucketReplicationConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAiD9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAuD,CAAC;YACtE,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SACrD;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC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C;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;;AA1BL,0DA6EC;AA/DG,gBAAgB;AACO,oCAAY,GAAG,wDAAwD,CAAC"}
package/s3/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./bucketObject";
9
9
  export * from "./bucketOwnershipControls";
10
10
  export * from "./bucketPolicy";
11
11
  export * from "./bucketPublicAccessBlock";
12
+ export * from "./bucketReplicationConfig";
12
13
  export * from "./cannedAcl";
13
14
  export * from "./getBucket";
14
15
  export * from "./getBucketObject";
package/s3/index.js CHANGED
@@ -26,6 +26,7 @@ __exportStar(require("./bucketObject"), exports);
26
26
  __exportStar(require("./bucketOwnershipControls"), exports);
27
27
  __exportStar(require("./bucketPolicy"), exports);
28
28
  __exportStar(require("./bucketPublicAccessBlock"), exports);
29
+ __exportStar(require("./bucketReplicationConfig"), exports);
29
30
  __exportStar(require("./cannedAcl"), exports);
30
31
  __exportStar(require("./getBucket"), exports);
31
32
  __exportStar(require("./getBucketObject"), exports);
@@ -49,6 +50,7 @@ const bucketObject_1 = require("./bucketObject");
49
50
  const bucketOwnershipControls_1 = require("./bucketOwnershipControls");
50
51
  const bucketPolicy_1 = require("./bucketPolicy");
51
52
  const bucketPublicAccessBlock_1 = require("./bucketPublicAccessBlock");
53
+ const bucketReplicationConfig_1 = require("./bucketReplicationConfig");
52
54
  const inventory_1 = require("./inventory");
53
55
  const objectCopy_1 = require("./objectCopy");
54
56
  const _module = {
@@ -77,6 +79,8 @@ const _module = {
77
79
  return new bucketPolicy_1.BucketPolicy(name, undefined, { urn });
78
80
  case "aws:s3/bucketPublicAccessBlock:BucketPublicAccessBlock":
79
81
  return new bucketPublicAccessBlock_1.BucketPublicAccessBlock(name, undefined, { urn });
82
+ case "aws:s3/bucketReplicationConfig:BucketReplicationConfig":
83
+ return new bucketReplicationConfig_1.BucketReplicationConfig(name, undefined, { urn });
80
84
  case "aws:s3/inventory:Inventory":
81
85
  return new inventory_1.Inventory(name, undefined, { urn });
82
86
  case "aws:s3/objectCopy:ObjectCopy":
@@ -97,6 +101,7 @@ pulumi.runtime.registerResourceModule("aws", "s3/bucketObject", _module);
97
101
  pulumi.runtime.registerResourceModule("aws", "s3/bucketOwnershipControls", _module);
98
102
  pulumi.runtime.registerResourceModule("aws", "s3/bucketPolicy", _module);
99
103
  pulumi.runtime.registerResourceModule("aws", "s3/bucketPublicAccessBlock", _module);
104
+ pulumi.runtime.registerResourceModule("aws", "s3/bucketReplicationConfig", _module);
100
105
  pulumi.runtime.registerResourceModule("aws", "s3/inventory", _module);
101
106
  pulumi.runtime.registerResourceModule("aws", "s3/objectCopy", _module);
102
107
  //# sourceMappingURL=index.js.map
package/s3/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../s3/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,kBAAkB;AAClB,gDAA8B;AAC9B,6DAA2C;AAC3C,2DAAyC;AACzC,2CAAyB;AACzB,0EAAwD;AACxD,iDAA+B;AAC/B,uDAAqC;AACrC,iDAA+B;AAC/B,4DAA0C;AAC1C,iDAA+B;AAC/B,4DAA0C;AAC1C,8CAA4B;AAC5B,8CAA4B;AAC5B,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAC/B,6CAA2B;AAE3B,gBAAgB;AAChB,oDAAkC;AAElC,gCAAgC;AAChC,+CAA4C;AAC5C,yEAAsE;AACtE,qEAAkE;AAClE,qCAAkC;AAClC,mGAAgG;AAChG,iDAA8C;A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AsB,CAAC,KAAK,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,4BAA4B,EAAE,OAAO,CAAC,CAAA;AACnF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;AACrE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,77 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Import
4
+ *
5
+ * Access Point policies can be imported using the `access_point_arn`, e.g.
6
+ *
7
+ * ```sh
8
+ * $ pulumi import aws:s3control/accessPointPolicy:AccessPointPolicy example arn:aws:s3:us-west-2:123456789012:accesspoint/example
9
+ * ```
10
+ */
11
+ export declare class AccessPointPolicy extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing AccessPointPolicy resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccessPointPolicyState, opts?: pulumi.CustomResourceOptions): AccessPointPolicy;
22
+ /**
23
+ * Returns true if the given object is an instance of AccessPointPolicy. This is designed to work even
24
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
25
+ */
26
+ static isInstance(obj: any): obj is AccessPointPolicy;
27
+ /**
28
+ * The ARN of the access point that you want to associate with the specified policy.
29
+ */
30
+ readonly accessPointArn: pulumi.Output<string>;
31
+ /**
32
+ * Indicates whether this access point currently has a policy that allows public access.
33
+ */
34
+ readonly hasPublicAccessPolicy: pulumi.Output<boolean>;
35
+ /**
36
+ * The policy that you want to apply to the specified access point.
37
+ */
38
+ readonly policy: pulumi.Output<string>;
39
+ /**
40
+ * Create a AccessPointPolicy resource with the given unique name, arguments, and options.
41
+ *
42
+ * @param name The _unique_ name of the resource.
43
+ * @param args The arguments to use to populate this resource's properties.
44
+ * @param opts A bag of options that control this resource's behavior.
45
+ */
46
+ constructor(name: string, args: AccessPointPolicyArgs, opts?: pulumi.CustomResourceOptions);
47
+ }
48
+ /**
49
+ * Input properties used for looking up and filtering AccessPointPolicy resources.
50
+ */
51
+ export interface AccessPointPolicyState {
52
+ /**
53
+ * The ARN of the access point that you want to associate with the specified policy.
54
+ */
55
+ accessPointArn?: pulumi.Input<string>;
56
+ /**
57
+ * Indicates whether this access point currently has a policy that allows public access.
58
+ */
59
+ hasPublicAccessPolicy?: pulumi.Input<boolean>;
60
+ /**
61
+ * The policy that you want to apply to the specified access point.
62
+ */
63
+ policy?: pulumi.Input<string>;
64
+ }
65
+ /**
66
+ * The set of arguments for constructing a AccessPointPolicy resource.
67
+ */
68
+ export interface AccessPointPolicyArgs {
69
+ /**
70
+ * The ARN of the access point that you want to associate with the specified policy.
71
+ */
72
+ accessPointArn: pulumi.Input<string>;
73
+ /**
74
+ * The policy that you want to apply to the specified access point.
75
+ */
76
+ policy: pulumi.Input<string>;
77
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AccessPointPolicy = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Import
10
+ *
11
+ * Access Point policies can be imported using the `access_point_arn`, e.g.
12
+ *
13
+ * ```sh
14
+ * $ pulumi import aws:s3control/accessPointPolicy:AccessPointPolicy example arn:aws:s3:us-west-2:123456789012:accesspoint/example
15
+ * ```
16
+ */
17
+ class AccessPointPolicy extends pulumi.CustomResource {
18
+ constructor(name, argsOrState, opts) {
19
+ let inputs = {};
20
+ opts = opts || {};
21
+ if (opts.id) {
22
+ const state = argsOrState;
23
+ inputs["accessPointArn"] = state ? state.accessPointArn : undefined;
24
+ inputs["hasPublicAccessPolicy"] = state ? state.hasPublicAccessPolicy : undefined;
25
+ inputs["policy"] = state ? state.policy : undefined;
26
+ }
27
+ else {
28
+ const args = argsOrState;
29
+ if ((!args || args.accessPointArn === undefined) && !opts.urn) {
30
+ throw new Error("Missing required property 'accessPointArn'");
31
+ }
32
+ if ((!args || args.policy === undefined) && !opts.urn) {
33
+ throw new Error("Missing required property 'policy'");
34
+ }
35
+ inputs["accessPointArn"] = args ? args.accessPointArn : undefined;
36
+ inputs["policy"] = args ? args.policy : undefined;
37
+ inputs["hasPublicAccessPolicy"] = undefined /*out*/;
38
+ }
39
+ if (!opts.version) {
40
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
41
+ }
42
+ super(AccessPointPolicy.__pulumiType, name, inputs, opts);
43
+ }
44
+ /**
45
+ * Get an existing AccessPointPolicy resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name, id, state, opts) {
54
+ return new AccessPointPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
+ }
56
+ /**
57
+ * Returns true if the given object is an instance of AccessPointPolicy. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === AccessPointPolicy.__pulumiType;
65
+ }
66
+ }
67
+ exports.AccessPointPolicy = AccessPointPolicy;
68
+ /** @internal */
69
+ AccessPointPolicy.__pulumiType = 'aws:s3control/accessPointPolicy:AccessPointPolicy';
70
+ //# sourceMappingURL=accessPointPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessPointPolicy.js","sourceRoot":"","sources":["../../s3control/accessPointPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IAiDxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,MAAM,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,MAAM,CAAC,uBAAuB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;aAAM;YACH,MAAM,IAAI,GAAG,WAAgD,CAAC;YAC9D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3D,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;aACjE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI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
  export * from "./bucketLifecycleConfiguration";
3
4
  export * from "./bucketPolicy";
5
+ export * from "./multiRegionAccessPoint";
6
+ export * from "./multiRegionAccessPointPolicy";
7
+ export * from "./objectLambdaAccessPoint";
8
+ export * from "./objectLambdaAccessPointPolicy";
@@ -15,29 +15,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const pulumi = require("@pulumi/pulumi");
16
16
  const utilities = require("../utilities");
17
17
  // Export members:
18
+ __exportStar(require("./accessPointPolicy"), exports);
18
19
  __exportStar(require("./bucket"), exports);
19
20
  __exportStar(require("./bucketLifecycleConfiguration"), exports);
20
21
  __exportStar(require("./bucketPolicy"), exports);
22
+ __exportStar(require("./multiRegionAccessPoint"), exports);
23
+ __exportStar(require("./multiRegionAccessPointPolicy"), exports);
24
+ __exportStar(require("./objectLambdaAccessPoint"), exports);
25
+ __exportStar(require("./objectLambdaAccessPointPolicy"), exports);
21
26
  // Import resources to register:
27
+ const accessPointPolicy_1 = require("./accessPointPolicy");
22
28
  const bucket_1 = require("./bucket");
23
29
  const bucketLifecycleConfiguration_1 = require("./bucketLifecycleConfiguration");
24
30
  const bucketPolicy_1 = require("./bucketPolicy");
31
+ const multiRegionAccessPoint_1 = require("./multiRegionAccessPoint");
32
+ const multiRegionAccessPointPolicy_1 = require("./multiRegionAccessPointPolicy");
33
+ const objectLambdaAccessPoint_1 = require("./objectLambdaAccessPoint");
34
+ const objectLambdaAccessPointPolicy_1 = require("./objectLambdaAccessPointPolicy");
25
35
  const _module = {
26
36
  version: utilities.getVersion(),
27
37
  construct: (name, type, urn) => {
28
38
  switch (type) {
39
+ case "aws:s3control/accessPointPolicy:AccessPointPolicy":
40
+ return new accessPointPolicy_1.AccessPointPolicy(name, undefined, { urn });
29
41
  case "aws:s3control/bucket:Bucket":
30
42
  return new bucket_1.Bucket(name, undefined, { urn });
31
43
  case "aws:s3control/bucketLifecycleConfiguration:BucketLifecycleConfiguration":
32
44
  return new bucketLifecycleConfiguration_1.BucketLifecycleConfiguration(name, undefined, { urn });
33
45
  case "aws:s3control/bucketPolicy:BucketPolicy":
34
46
  return new bucketPolicy_1.BucketPolicy(name, undefined, { urn });
47
+ case "aws:s3control/multiRegionAccessPoint:MultiRegionAccessPoint":
48
+ return new multiRegionAccessPoint_1.MultiRegionAccessPoint(name, undefined, { urn });
49
+ case "aws:s3control/multiRegionAccessPointPolicy:MultiRegionAccessPointPolicy":
50
+ return new multiRegionAccessPointPolicy_1.MultiRegionAccessPointPolicy(name, undefined, { urn });
51
+ case "aws:s3control/objectLambdaAccessPoint:ObjectLambdaAccessPoint":
52
+ return new objectLambdaAccessPoint_1.ObjectLambdaAccessPoint(name, undefined, { urn });
53
+ case "aws:s3control/objectLambdaAccessPointPolicy:ObjectLambdaAccessPointPolicy":
54
+ return new objectLambdaAccessPointPolicy_1.ObjectLambdaAccessPointPolicy(name, undefined, { urn });
35
55
  default:
36
56
  throw new Error(`unknown resource type ${type}`);
37
57
  }
38
58
  },
39
59
  };
60
+ pulumi.runtime.registerResourceModule("aws", "s3control/accessPointPolicy", _module);
40
61
  pulumi.runtime.registerResourceModule("aws", "s3control/bucket", _module);
41
62
  pulumi.runtime.registerResourceModule("aws", "s3control/bucketLifecycleConfiguration", _module);
42
63
  pulumi.runtime.registerResourceModule("aws", "s3control/bucketPolicy", _module);
64
+ pulumi.runtime.registerResourceModule("aws", "s3control/multiRegionAccessPoint", _module);
65
+ pulumi.runtime.registerResourceModule("aws", "s3control/multiRegionAccessPointPolicy", _module);
66
+ pulumi.runtime.registerResourceModule("aws", "s3control/objectLambdaAccessPoint", _module);
67
+ pulumi.runtime.registerResourceModule("aws", "s3control/objectLambdaAccessPointPolicy", _module);
43
68
  //# sourceMappingURL=index.js.map