@pulumi/aws 7.0.0-alpha.1 → 7.0.0-alpha.3

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 (201) hide show
  1. package/accessanalyzer/analyzer.d.ts +54 -7
  2. package/accessanalyzer/analyzer.js +48 -1
  3. package/accessanalyzer/analyzer.js.map +1 -1
  4. package/amplify/app.d.ts +26 -0
  5. package/amplify/app.js +16 -0
  6. package/amplify/app.js.map +1 -1
  7. package/bedrock/agentAgent.d.ts +2 -2
  8. package/bedrock/agentAgent.js +2 -2
  9. package/bedrock/agentAgentCollaborator.d.ts +4 -4
  10. package/bedrock/agentAgentCollaborator.js +4 -4
  11. package/cloudtrail/trail.d.ts +2 -2
  12. package/cloudtrail/trail.js +2 -2
  13. package/cloudwatch/eventArchive.d.ts +91 -15
  14. package/cloudwatch/eventArchive.js +67 -1
  15. package/cloudwatch/eventArchive.js.map +1 -1
  16. package/cloudwatch/logGroup.d.ts +6 -6
  17. package/codeartifact/domainPermissions.d.ts +1 -1
  18. package/codeartifact/domainPermissions.js +0 -3
  19. package/codeartifact/domainPermissions.js.map +1 -1
  20. package/connect/botAssociation.d.ts +1 -1
  21. package/connect/botAssociation.js +1 -1
  22. package/controltower/controlTowerControl.d.ts +1 -1
  23. package/controltower/controlTowerControl.js +1 -1
  24. package/cur/reportDefinition.d.ts +3 -3
  25. package/datasync/agent.d.ts +1 -1
  26. package/datasync/agent.js +1 -1
  27. package/dynamodb/table.d.ts +1 -1
  28. package/dynamodb/table.js +1 -1
  29. package/dynamodb/tag.d.ts +1 -1
  30. package/dynamodb/tag.js +1 -1
  31. package/ec2/getManagedPrefixList.d.ts +2 -2
  32. package/ec2/getManagedPrefixList.js +2 -2
  33. package/ec2/securityGroupRule.d.ts +1 -1
  34. package/ec2/securityGroupRule.js +1 -1
  35. package/ec2/vpc.d.ts +2 -2
  36. package/ec2/vpc.js +2 -2
  37. package/ec2/vpcIpam.d.ts +1 -1
  38. package/ec2/vpcIpam.js +1 -1
  39. package/ec2/vpcIpamPool.d.ts +4 -4
  40. package/ec2/vpcIpamPool.js +4 -4
  41. package/ec2/vpcIpamPoolCidr.d.ts +3 -3
  42. package/ec2/vpcIpamPoolCidr.js +3 -3
  43. package/ec2/vpcIpamPoolCidrAllocation.d.ts +4 -4
  44. package/ec2/vpcIpamPoolCidrAllocation.js +4 -4
  45. package/ec2/vpcIpamPreviewNextCidr.d.ts +2 -2
  46. package/ec2/vpcIpamPreviewNextCidr.js +2 -2
  47. package/ec2/vpcIpamResourceDiscovery.d.ts +1 -1
  48. package/ec2/vpcIpamResourceDiscovery.js +1 -1
  49. package/ec2/vpcIpamScope.d.ts +1 -1
  50. package/ec2/vpcIpamScope.js +1 -1
  51. package/ecr/index.d.ts +1 -0
  52. package/ecr/index.js +1 -0
  53. package/ecr/index.js.map +1 -1
  54. package/ecr/lifecyclePolicyDocument.d.ts +5 -0
  55. package/ecr/lifecyclePolicyDocument.js +3 -0
  56. package/ecr/lifecyclePolicyDocument.js.map +1 -0
  57. package/ecr/registryPolicy.d.ts +1 -1
  58. package/ecr/registryPolicy.js +1 -1
  59. package/eks/podIdentityAssociation.d.ts +32 -0
  60. package/eks/podIdentityAssociation.js +6 -0
  61. package/eks/podIdentityAssociation.js.map +1 -1
  62. package/elasticsearch/domain.d.ts +2 -2
  63. package/elasticsearch/domain.js +2 -2
  64. package/emr/cluster.d.ts +12 -0
  65. package/emr/cluster.js +2 -0
  66. package/emr/cluster.js.map +1 -1
  67. package/fms/policy.d.ts +12 -0
  68. package/fms/policy.js +2 -0
  69. package/fms/policy.js.map +1 -1
  70. package/getRegion.d.ts +2 -2
  71. package/getService.d.ts +2 -2
  72. package/getService.js +2 -2
  73. package/glue/job.d.ts +12 -0
  74. package/glue/job.js +2 -0
  75. package/glue/job.js.map +1 -1
  76. package/glue/resourcePolicy.d.ts +1 -1
  77. package/glue/resourcePolicy.js +1 -1
  78. package/guardduty/detectorFeature.d.ts +21 -0
  79. package/guardduty/detectorFeature.js +21 -0
  80. package/guardduty/detectorFeature.js.map +1 -1
  81. package/guardduty/memberDetectorFeature.d.ts +1 -11
  82. package/guardduty/memberDetectorFeature.js +1 -11
  83. package/guardduty/memberDetectorFeature.js.map +1 -1
  84. package/guardduty/publishingDestination.d.ts +2 -2
  85. package/guardduty/publishingDestination.js +2 -2
  86. package/iam/documents.d.ts +5 -0
  87. package/imagebuilder/imageRecipe.d.ts +1 -1
  88. package/imagebuilder/imageRecipe.js +1 -1
  89. package/kinesis/firehoseDeliveryStream.d.ts +1 -1
  90. package/kinesis/firehoseDeliveryStream.js +1 -1
  91. package/kms/getKey.d.ts +1 -1
  92. package/kms/key.d.ts +3 -3
  93. package/lightsail/instancePublicPorts.d.ts +6 -6
  94. package/macie/findingsFilter.d.ts +1 -1
  95. package/macie/findingsFilter.js +1 -1
  96. package/mediastore/containerPolicy.d.ts +1 -1
  97. package/mediastore/containerPolicy.js +1 -1
  98. package/networkfirewall/firewallPolicy.d.ts +51 -2
  99. package/networkfirewall/firewallPolicy.js +51 -2
  100. package/networkfirewall/firewallPolicy.js.map +1 -1
  101. package/networkmanager/dxGatewayAttachment.d.ts +1 -1
  102. package/networkmanager/dxGatewayAttachment.js +1 -1
  103. package/opensearch/domain.d.ts +2 -2
  104. package/opensearch/domain.js +2 -2
  105. package/opensearch/inboundConnectionAccepter.d.ts +2 -2
  106. package/opensearch/inboundConnectionAccepter.js +2 -2
  107. package/opensearch/outboundConnection.d.ts +2 -2
  108. package/opensearch/outboundConnection.js +2 -2
  109. package/opensearchingest/pipeline.d.ts +1 -1
  110. package/opensearchingest/pipeline.js +1 -1
  111. package/package.json +2 -2
  112. package/quicksight/dataSource.d.ts +1 -1
  113. package/quicksight/dataSource.js +1 -1
  114. package/route53/getTrafficPolicyDocument.d.ts +4 -4
  115. package/route53/getTrafficPolicyDocument.js +4 -4
  116. package/s3/bucket.d.ts +5 -4
  117. package/s3/bucketAccelerateConfiguration.js +1 -1
  118. package/s3/bucketAccelerateConfiguration.js.map +1 -1
  119. package/s3/bucketAccelerateConfigurationV2.d.ts +122 -0
  120. package/s3/bucketAccelerateConfigurationV2.js +103 -0
  121. package/s3/bucketAccelerateConfigurationV2.js.map +1 -0
  122. package/s3/bucketAcl.js +1 -1
  123. package/s3/bucketAcl.js.map +1 -1
  124. package/s3/bucketAclV2.d.ts +241 -0
  125. package/s3/bucketAclV2.js +207 -0
  126. package/s3/bucketAclV2.js.map +1 -0
  127. package/s3/bucketCorsConfiguration.js +1 -1
  128. package/s3/bucketCorsConfiguration.js.map +1 -1
  129. package/s3/bucketCorsConfigurationV2.d.ts +141 -0
  130. package/s3/bucketCorsConfigurationV2.js +120 -0
  131. package/s3/bucketCorsConfigurationV2.js.map +1 -0
  132. package/s3/bucketLifecycleConfiguration.js +1 -1
  133. package/s3/bucketLifecycleConfiguration.js.map +1 -1
  134. package/s3/bucketLifecycleConfigurationV2.d.ts +437 -0
  135. package/s3/bucketLifecycleConfigurationV2.js +402 -0
  136. package/s3/bucketLifecycleConfigurationV2.js.map +1 -0
  137. package/s3/bucketLogging.js +1 -1
  138. package/s3/bucketLogging.js.map +1 -1
  139. package/s3/bucketLoggingV2.d.ts +174 -0
  140. package/s3/bucketLoggingV2.js +126 -0
  141. package/s3/bucketLoggingV2.js.map +1 -0
  142. package/s3/bucketObjectLockConfiguration.js +1 -1
  143. package/s3/bucketObjectLockConfiguration.js.map +1 -1
  144. package/s3/bucketObjectLockConfigurationV2.d.ts +164 -0
  145. package/s3/bucketObjectLockConfigurationV2.js +119 -0
  146. package/s3/bucketObjectLockConfigurationV2.js.map +1 -0
  147. package/s3/bucketPolicy.d.ts +2 -0
  148. package/s3/bucketPolicy.js +2 -0
  149. package/s3/bucketPolicy.js.map +1 -1
  150. package/s3/bucketRequestPaymentConfiguration.js +1 -1
  151. package/s3/bucketRequestPaymentConfiguration.js.map +1 -1
  152. package/s3/bucketRequestPaymentConfigurationV2.d.ts +123 -0
  153. package/s3/bucketRequestPaymentConfigurationV2.js +104 -0
  154. package/s3/bucketRequestPaymentConfigurationV2.js.map +1 -0
  155. package/s3/bucketServerSideEncryptionConfiguration.js +1 -1
  156. package/s3/bucketServerSideEncryptionConfiguration.js.map +1 -1
  157. package/s3/bucketServerSideEncryptionConfigurationV2.d.ts +133 -0
  158. package/s3/bucketServerSideEncryptionConfigurationV2.js +112 -0
  159. package/s3/bucketServerSideEncryptionConfigurationV2.js.map +1 -0
  160. package/s3/bucketV2.d.ts +518 -0
  161. package/s3/bucketV2.js +138 -0
  162. package/s3/bucketV2.js.map +1 -0
  163. package/s3/bucketVersioning.js +1 -1
  164. package/s3/bucketVersioning.js.map +1 -1
  165. package/s3/bucketVersioningV2.d.ts +195 -0
  166. package/s3/bucketVersioningV2.js +164 -0
  167. package/s3/bucketVersioningV2.js.map +1 -0
  168. package/s3/bucketWebsiteConfiguration.js +1 -1
  169. package/s3/bucketWebsiteConfiguration.js.map +1 -1
  170. package/s3/bucketWebsiteConfigurationV2.d.ts +231 -0
  171. package/s3/bucketWebsiteConfigurationV2.js +152 -0
  172. package/s3/bucketWebsiteConfigurationV2.js.map +1 -0
  173. package/s3/index.d.ts +33 -0
  174. package/s3/index.js +57 -1
  175. package/s3/index.js.map +1 -1
  176. package/s3tables/table.d.ts +62 -0
  177. package/s3tables/table.js +49 -0
  178. package/s3tables/table.js.map +1 -1
  179. package/sagemaker/flowDefinition.d.ts +1 -1
  180. package/sagemaker/flowDefinition.js +1 -1
  181. package/securityhub/productSubscription.d.ts +1 -1
  182. package/securityhub/productSubscription.js +1 -1
  183. package/securityhub/standardsSubscription.d.ts +1 -1
  184. package/securityhub/standardsSubscription.js +1 -1
  185. package/serverlessrepository/cloudFormationStack.d.ts +1 -1
  186. package/serverlessrepository/cloudFormationStack.js +1 -1
  187. package/shield/drtAccessLogBucketAssociation.d.ts +1 -1
  188. package/shield/drtAccessLogBucketAssociation.js +1 -1
  189. package/shield/protection.d.ts +1 -1
  190. package/shield/protection.js +1 -1
  191. package/shield/protectionGroup.d.ts +2 -2
  192. package/shield/protectionGroup.js +2 -2
  193. package/shield/protectionHealthCheckAssociation.d.ts +1 -1
  194. package/shield/protectionHealthCheckAssociation.js +1 -1
  195. package/ssm/parameter.d.ts +1 -1
  196. package/ssm/quicksetupConfigurationManager.d.ts +2 -2
  197. package/ssm/quicksetupConfigurationManager.js +2 -2
  198. package/types/input.d.ts +897 -20
  199. package/types/input.js.map +1 -1
  200. package/types/output.d.ts +897 -19
  201. package/types/output.js.map +1 -1
@@ -0,0 +1,104 @@
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.BucketRequestPaymentConfigurationV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * 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).
10
+ *
11
+ * > **NOTE:** Destroying an `aws.s3.BucketRequestPaymentConfiguration` resource resets the bucket's `payer` to the S3 default: the bucket owner.
12
+ *
13
+ * > This resource cannot be used with S3 directory buckets.
14
+ *
15
+ * ## Example Usage
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as aws from "@pulumi/aws";
20
+ *
21
+ * const example = new aws.s3.BucketRequestPaymentConfiguration("example", {
22
+ * bucket: exampleAwsS3Bucket.id,
23
+ * payer: "Requester",
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * 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 (`,`):
30
+ *
31
+ * __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:
32
+ *
33
+ * If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
34
+ *
35
+ * ```sh
36
+ * $ pulumi import aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2 example bucket-name
37
+ * ```
38
+ * 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 (`,`):
39
+ *
40
+ * ```sh
41
+ * $ pulumi import aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2 example bucket-name,123456789012
42
+ * ```
43
+ *
44
+ * @deprecated aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration
45
+ */
46
+ class BucketRequestPaymentConfigurationV2 extends pulumi.CustomResource {
47
+ /**
48
+ * Get an existing BucketRequestPaymentConfigurationV2 resource's state with the given name, ID, and optional extra
49
+ * properties used to qualify the lookup.
50
+ *
51
+ * @param name The _unique_ name of the resulting resource.
52
+ * @param id The _unique_ provider ID of the resource to lookup.
53
+ * @param state Any extra arguments used during the lookup.
54
+ * @param opts Optional settings to control the behavior of the CustomResource.
55
+ */
56
+ static get(name, id, state, opts) {
57
+ pulumi.log.warn("BucketRequestPaymentConfigurationV2 is deprecated: aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration");
58
+ return new BucketRequestPaymentConfigurationV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
59
+ }
60
+ /**
61
+ * Returns true if the given object is an instance of BucketRequestPaymentConfigurationV2. This is designed to work even
62
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
+ */
64
+ static isInstance(obj) {
65
+ if (obj === undefined || obj === null) {
66
+ return false;
67
+ }
68
+ return obj['__pulumiType'] === BucketRequestPaymentConfigurationV2.__pulumiType;
69
+ }
70
+ /** @deprecated aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration */
71
+ constructor(name, argsOrState, opts) {
72
+ pulumi.log.warn("BucketRequestPaymentConfigurationV2 is deprecated: aws.s3/bucketrequestpaymentconfigurationv2.BucketRequestPaymentConfigurationV2 has been deprecated in favor of aws.s3/bucketrequestpaymentconfiguration.BucketRequestPaymentConfiguration");
73
+ let resourceInputs = {};
74
+ opts = opts || {};
75
+ if (opts.id) {
76
+ const state = argsOrState;
77
+ resourceInputs["bucket"] = state ? state.bucket : undefined;
78
+ resourceInputs["expectedBucketOwner"] = state ? state.expectedBucketOwner : undefined;
79
+ resourceInputs["payer"] = state ? state.payer : undefined;
80
+ resourceInputs["region"] = state ? state.region : undefined;
81
+ }
82
+ else {
83
+ const args = argsOrState;
84
+ if ((!args || args.bucket === undefined) && !opts.urn) {
85
+ throw new Error("Missing required property 'bucket'");
86
+ }
87
+ if ((!args || args.payer === undefined) && !opts.urn) {
88
+ throw new Error("Missing required property 'payer'");
89
+ }
90
+ resourceInputs["bucket"] = args ? args.bucket : undefined;
91
+ resourceInputs["expectedBucketOwner"] = args ? args.expectedBucketOwner : undefined;
92
+ resourceInputs["payer"] = args ? args.payer : undefined;
93
+ resourceInputs["region"] = args ? args.region : undefined;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2" }] };
97
+ opts = pulumi.mergeOptions(opts, aliasOpts);
98
+ super(BucketRequestPaymentConfigurationV2.__pulumiType, name, resourceInputs, opts);
99
+ }
100
+ }
101
+ exports.BucketRequestPaymentConfigurationV2 = BucketRequestPaymentConfigurationV2;
102
+ /** @internal */
103
+ BucketRequestPaymentConfigurationV2.__pulumiType = 'aws:s3/bucketRequestPaymentConfigurationV2:BucketRequestPaymentConfigurationV2';
104
+ //# sourceMappingURL=bucketRequestPaymentConfigurationV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucketRequestPaymentConfigurationV2.js","sourceRoot":"","sources":["../../s3/bucketRequestPaymentConfigurationV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,mCAAoC,SAAQ,MAAM,CAAC,cAAc;IAC1E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgD,EAAE,IAAmC;QAC9I,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8OAA8O,CAAC,CAAA;QAC/P,OAAO,IAAI,mCAAmC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1F,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,mCAAmC,CAAC,YAAY,CAAC;IACpF,CAAC;IA4BD,4MAA4M;IAC5M,YAAY,IAAY,EAAE,WAAgG,EAAE,IAAmC;QAC3J,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,8OAA8O,CAAC,CAAA;QAC/P,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmE,CAAC;YAClF,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,qBAAqB,CAAC,GAAG,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AAG,EAAE,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,mCAAmC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxF,CAAC;;AAnFL,kFAoFC;AArEG,gBAAgB;AACO,gDAAY,GAAG,gFAAgF,CAAC"}
@@ -96,7 +96,7 @@ class BucketServerSideEncryptionConfiguration extends pulumi.CustomResource {
96
96
  resourceInputs["rules"] = args ? args.rules : undefined;
97
97
  }
98
98
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
99
- const aliasOpts = { aliases: [{ type: "aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2" }, { type: "aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2" }] };
99
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2" }] };
100
100
  opts = pulumi.mergeOptions(opts, aliasOpts);
101
101
  super(BucketServerSideEncryptionConfiguration.__pulumiType, name, resourceInputs, opts);
102
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bucketServerSideEncryptionConfiguration.js","sourceRoot":"","sources":["../../s3/bucketServerSideEncryptionConfiguration.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,uCAAwC,SAAQ,MAAM,CAAC,cAAc;IAC9E;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoD,EAAE,IAAmC;QAClJ,OAAO,IAAI,uCAAuC,CAAC,IAAI,EA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";
4
+ /**
5
+ * Provides a S3 bucket server-side encryption configuration resource.
6
+ *
7
+ * > **NOTE:** Destroying an `aws.s3.BucketServerSideEncryptionConfiguration` resource resets the bucket to [Amazon S3 bucket default encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/default-encryption-faq.html).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as aws from "@pulumi/aws";
14
+ *
15
+ * const mykey = new aws.kms.Key("mykey", {
16
+ * description: "This key is used to encrypt bucket objects",
17
+ * deletionWindowInDays: 10,
18
+ * });
19
+ * const mybucket = new aws.s3.Bucket("mybucket", {bucket: "mybucket"});
20
+ * const example = new aws.s3.BucketServerSideEncryptionConfiguration("example", {
21
+ * bucket: mybucket.id,
22
+ * rules: [{
23
+ * applyServerSideEncryptionByDefault: {
24
+ * kmsMasterKeyId: mykey.arn,
25
+ * sseAlgorithm: "aws:kms",
26
+ * },
27
+ * }],
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * 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 (`,`):
34
+ *
35
+ * __Using `pulumi import` to import__ S3 bucket server-side encryption configuration using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:
36
+ *
37
+ * If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
38
+ *
39
+ * ```sh
40
+ * $ pulumi import aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2 example bucket-name
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
+ * ```sh
45
+ * $ pulumi import aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2 example bucket-name,123456789012
46
+ * ```
47
+ *
48
+ * @deprecated aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration
49
+ */
50
+ export declare class BucketServerSideEncryptionConfigurationV2 extends pulumi.CustomResource {
51
+ /**
52
+ * Get an existing BucketServerSideEncryptionConfigurationV2 resource's state with the given name, ID, and optional extra
53
+ * properties used to qualify the lookup.
54
+ *
55
+ * @param name The _unique_ name of the resulting resource.
56
+ * @param id The _unique_ provider ID of the resource to lookup.
57
+ * @param state Any extra arguments used during the lookup.
58
+ * @param opts Optional settings to control the behavior of the CustomResource.
59
+ */
60
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BucketServerSideEncryptionConfigurationV2State, opts?: pulumi.CustomResourceOptions): BucketServerSideEncryptionConfigurationV2;
61
+ /**
62
+ * Returns true if the given object is an instance of BucketServerSideEncryptionConfigurationV2. This is designed to work even
63
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
64
+ */
65
+ static isInstance(obj: any): obj is BucketServerSideEncryptionConfigurationV2;
66
+ /**
67
+ * ID (name) of the bucket.
68
+ */
69
+ readonly bucket: pulumi.Output<string>;
70
+ /**
71
+ * Account ID of the expected bucket owner.
72
+ */
73
+ readonly expectedBucketOwner: pulumi.Output<string | undefined>;
74
+ /**
75
+ * 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.
76
+ */
77
+ readonly region: pulumi.Output<string>;
78
+ /**
79
+ * Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
80
+ */
81
+ readonly rules: pulumi.Output<outputs.s3.BucketServerSideEncryptionConfigurationV2Rule[]>;
82
+ /**
83
+ * Create a BucketServerSideEncryptionConfigurationV2 resource with the given unique name, arguments, and options.
84
+ *
85
+ * @param name The _unique_ name of the resource.
86
+ * @param args The arguments to use to populate this resource's properties.
87
+ * @param opts A bag of options that control this resource's behavior.
88
+ */
89
+ /** @deprecated aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration */
90
+ constructor(name: string, args: BucketServerSideEncryptionConfigurationV2Args, opts?: pulumi.CustomResourceOptions);
91
+ }
92
+ /**
93
+ * Input properties used for looking up and filtering BucketServerSideEncryptionConfigurationV2 resources.
94
+ */
95
+ export interface BucketServerSideEncryptionConfigurationV2State {
96
+ /**
97
+ * ID (name) of the bucket.
98
+ */
99
+ bucket?: pulumi.Input<string>;
100
+ /**
101
+ * Account ID of the expected bucket owner.
102
+ */
103
+ expectedBucketOwner?: pulumi.Input<string>;
104
+ /**
105
+ * 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.
106
+ */
107
+ region?: pulumi.Input<string>;
108
+ /**
109
+ * Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
110
+ */
111
+ rules?: pulumi.Input<pulumi.Input<inputs.s3.BucketServerSideEncryptionConfigurationV2Rule>[]>;
112
+ }
113
+ /**
114
+ * The set of arguments for constructing a BucketServerSideEncryptionConfigurationV2 resource.
115
+ */
116
+ export interface BucketServerSideEncryptionConfigurationV2Args {
117
+ /**
118
+ * ID (name) of the bucket.
119
+ */
120
+ bucket: pulumi.Input<string>;
121
+ /**
122
+ * Account ID of the expected bucket owner.
123
+ */
124
+ expectedBucketOwner?: pulumi.Input<string>;
125
+ /**
126
+ * 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.
127
+ */
128
+ region?: pulumi.Input<string>;
129
+ /**
130
+ * Set of server-side encryption configuration rules. See below. Currently, only a single rule is supported.
131
+ */
132
+ rules: pulumi.Input<pulumi.Input<inputs.s3.BucketServerSideEncryptionConfigurationV2Rule>[]>;
133
+ }
@@ -0,0 +1,112 @@
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.BucketServerSideEncryptionConfigurationV2 = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides a S3 bucket server-side encryption configuration resource.
10
+ *
11
+ * > **NOTE:** Destroying an `aws.s3.BucketServerSideEncryptionConfiguration` resource resets the bucket to [Amazon S3 bucket default encryption](https://docs.aws.amazon.com/AmazonS3/latest/userguide/default-encryption-faq.html).
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as aws from "@pulumi/aws";
18
+ *
19
+ * const mykey = new aws.kms.Key("mykey", {
20
+ * description: "This key is used to encrypt bucket objects",
21
+ * deletionWindowInDays: 10,
22
+ * });
23
+ * const mybucket = new aws.s3.Bucket("mybucket", {bucket: "mybucket"});
24
+ * const example = new aws.s3.BucketServerSideEncryptionConfiguration("example", {
25
+ * bucket: mybucket.id,
26
+ * rules: [{
27
+ * applyServerSideEncryptionByDefault: {
28
+ * kmsMasterKeyId: mykey.arn,
29
+ * sseAlgorithm: "aws:kms",
30
+ * },
31
+ * }],
32
+ * });
33
+ * ```
34
+ *
35
+ * ## Import
36
+ *
37
+ * 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 (`,`):
38
+ *
39
+ * __Using `pulumi import` to import__ S3 bucket server-side encryption configuration using the `bucket` or using the `bucket` and `expected_bucket_owner` separated by a comma (`,`). For example:
40
+ *
41
+ * If the owner (account ID) of the source bucket is the same account used to configure the AWS Provider, import using the `bucket`:
42
+ *
43
+ * ```sh
44
+ * $ pulumi import aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2 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 (`,`):
47
+ *
48
+ * ```sh
49
+ * $ pulumi import aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2 example bucket-name,123456789012
50
+ * ```
51
+ *
52
+ * @deprecated aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration
53
+ */
54
+ class BucketServerSideEncryptionConfigurationV2 extends pulumi.CustomResource {
55
+ /**
56
+ * Get an existing BucketServerSideEncryptionConfigurationV2 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, id, state, opts) {
65
+ pulumi.log.warn("BucketServerSideEncryptionConfigurationV2 is deprecated: aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration");
66
+ return new BucketServerSideEncryptionConfigurationV2(name, state, Object.assign(Object.assign({}, opts), { id: id }));
67
+ }
68
+ /**
69
+ * Returns true if the given object is an instance of BucketServerSideEncryptionConfigurationV2. This is designed to work even
70
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
71
+ */
72
+ static isInstance(obj) {
73
+ if (obj === undefined || obj === null) {
74
+ return false;
75
+ }
76
+ return obj['__pulumiType'] === BucketServerSideEncryptionConfigurationV2.__pulumiType;
77
+ }
78
+ /** @deprecated aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration */
79
+ constructor(name, argsOrState, opts) {
80
+ pulumi.log.warn("BucketServerSideEncryptionConfigurationV2 is deprecated: aws.s3/bucketserversideencryptionconfigurationv2.BucketServerSideEncryptionConfigurationV2 has been deprecated in favor of aws.s3/bucketserversideencryptionconfiguration.BucketServerSideEncryptionConfiguration");
81
+ let resourceInputs = {};
82
+ opts = opts || {};
83
+ if (opts.id) {
84
+ const state = argsOrState;
85
+ resourceInputs["bucket"] = state ? state.bucket : undefined;
86
+ resourceInputs["expectedBucketOwner"] = state ? state.expectedBucketOwner : undefined;
87
+ resourceInputs["region"] = state ? state.region : undefined;
88
+ resourceInputs["rules"] = state ? state.rules : undefined;
89
+ }
90
+ else {
91
+ const args = argsOrState;
92
+ if ((!args || args.bucket === undefined) && !opts.urn) {
93
+ throw new Error("Missing required property 'bucket'");
94
+ }
95
+ if ((!args || args.rules === undefined) && !opts.urn) {
96
+ throw new Error("Missing required property 'rules'");
97
+ }
98
+ resourceInputs["bucket"] = args ? args.bucket : undefined;
99
+ resourceInputs["expectedBucketOwner"] = args ? args.expectedBucketOwner : undefined;
100
+ resourceInputs["region"] = args ? args.region : undefined;
101
+ resourceInputs["rules"] = args ? args.rules : undefined;
102
+ }
103
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
+ const aliasOpts = { aliases: [{ type: "aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2" }] };
105
+ opts = pulumi.mergeOptions(opts, aliasOpts);
106
+ super(BucketServerSideEncryptionConfigurationV2.__pulumiType, name, resourceInputs, opts);
107
+ }
108
+ }
109
+ exports.BucketServerSideEncryptionConfigurationV2 = BucketServerSideEncryptionConfigurationV2;
110
+ /** @internal */
111
+ BucketServerSideEncryptionConfigurationV2.__pulumiType = 'aws:s3/bucketServerSideEncryptionConfigurationV2:BucketServerSideEncryptionConfigurationV2';
112
+ //# sourceMappingURL=bucketServerSideEncryptionConfigurationV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bucketServerSideEncryptionConfigurationV2.js","sourceRoot":"","sources":["../../s3/bucketServerSideEncryptionConf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