@pulumi/aws 5.2.0-alpha.1650047579 → 5.2.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 (324) hide show
  1. package/apigateway/stage.d.ts +18 -6
  2. package/apigateway/stage.js +2 -0
  3. package/apigateway/stage.js.map +1 -1
  4. package/athena/database.d.ts +42 -0
  5. package/athena/database.js +26 -0
  6. package/athena/database.js.map +1 -1
  7. package/autoscaling/attachment.d.ts +1 -1
  8. package/autoscaling/attachment.js +1 -1
  9. package/autoscaling/group.d.ts +19 -10
  10. package/autoscaling/group.js +4 -1
  11. package/autoscaling/group.js.map +1 -1
  12. package/backup/plan.d.ts +3 -0
  13. package/backup/plan.js +3 -0
  14. package/backup/plan.js.map +1 -1
  15. package/cfg/rule.d.ts +39 -12
  16. package/cfg/rule.js +27 -0
  17. package/cfg/rule.js.map +1 -1
  18. package/cloudformation/stackSet.d.ts +12 -0
  19. package/cloudformation/stackSet.js +2 -0
  20. package/cloudformation/stackSet.js.map +1 -1
  21. package/cloudformation/stackSetInstance.d.ts +19 -1
  22. package/cloudformation/stackSetInstance.js +9 -1
  23. package/cloudformation/stackSetInstance.js.map +1 -1
  24. package/cloudtrail/trail.d.ts +31 -30
  25. package/cloudtrail/trail.js +31 -30
  26. package/cloudtrail/trail.js.map +1 -1
  27. package/cloudwatch/getEventBus.d.ts +51 -0
  28. package/cloudwatch/getEventBus.js +38 -0
  29. package/cloudwatch/getEventBus.js.map +1 -0
  30. package/cloudwatch/index.d.ts +1 -0
  31. package/cloudwatch/index.js +1 -0
  32. package/cloudwatch/index.js.map +1 -1
  33. package/cognito/index.d.ts +1 -0
  34. package/cognito/index.js +5 -0
  35. package/cognito/index.js.map +1 -1
  36. package/cognito/userInGroup.d.ts +100 -0
  37. package/cognito/userInGroup.js +90 -0
  38. package/cognito/userInGroup.js.map +1 -0
  39. package/cognito/userPoolClient.d.ts +22 -0
  40. package/cognito/userPoolClient.js +22 -0
  41. package/cognito/userPoolClient.js.map +1 -1
  42. package/datasync/fsxOpenZfsFileSystem.d.ts +175 -0
  43. package/datasync/fsxOpenZfsFileSystem.js +104 -0
  44. package/datasync/fsxOpenZfsFileSystem.js.map +1 -0
  45. package/datasync/index.d.ts +1 -0
  46. package/datasync/index.js +5 -0
  47. package/datasync/index.js.map +1 -1
  48. package/dynamodb/contributorInsights.d.ts +82 -0
  49. package/dynamodb/contributorInsights.js +76 -0
  50. package/dynamodb/contributorInsights.js.map +1 -0
  51. package/dynamodb/index.d.ts +1 -0
  52. package/dynamodb/index.js +5 -0
  53. package/dynamodb/index.js.map +1 -1
  54. package/dynamodb/tableItem.d.ts +6 -9
  55. package/dynamodb/tableItem.js.map +1 -1
  56. package/ec2/amiLaunchPermission.d.ts +70 -10
  57. package/ec2/amiLaunchPermission.js +32 -5
  58. package/ec2/amiLaunchPermission.js.map +1 -1
  59. package/ec2/defaultNetworkAcl.d.ts +1 -1
  60. package/ec2/defaultNetworkAcl.js +1 -1
  61. package/ec2/getEips.d.ts +1 -1
  62. package/ec2/getNatGateways.d.ts +65 -0
  63. package/ec2/getNatGateways.js +28 -0
  64. package/ec2/getNatGateways.js.map +1 -0
  65. package/ec2/getRoute.d.ts +9 -0
  66. package/ec2/getRoute.js +1 -0
  67. package/ec2/getRoute.js.map +1 -1
  68. package/ec2/index.d.ts +1 -0
  69. package/ec2/index.js +1 -0
  70. package/ec2/index.js.map +1 -1
  71. package/ec2/instance.d.ts +18 -6
  72. package/ec2/instance.js +2 -0
  73. package/ec2/instance.js.map +1 -1
  74. package/ec2/keyPair.d.ts +3 -12
  75. package/ec2/keyPair.js.map +1 -1
  76. package/ec2/route.d.ts +12 -0
  77. package/ec2/route.js +2 -0
  78. package/ec2/route.js.map +1 -1
  79. package/ec2/spotInstanceRequest.d.ts +18 -6
  80. package/ec2/spotInstanceRequest.js +2 -0
  81. package/ec2/spotInstanceRequest.js.map +1 -1
  82. package/ec2/vpc.d.ts +3 -3
  83. package/ec2/vpcEndpointService.d.ts +4 -4
  84. package/ec2/vpcIpam.d.ts +12 -0
  85. package/ec2/vpcIpam.js +2 -0
  86. package/ec2/vpcIpam.js.map +1 -1
  87. package/ec2/vpnConnection.d.ts +16 -0
  88. package/ec2/vpnConnection.js +4 -0
  89. package/ec2/vpnConnection.js.map +1 -1
  90. package/eks/addon.d.ts +18 -6
  91. package/eks/addon.js +2 -0
  92. package/eks/addon.js.map +1 -1
  93. package/eks/getAddonVersion.d.ts +82 -0
  94. package/eks/getAddonVersion.js +51 -0
  95. package/eks/getAddonVersion.js.map +1 -0
  96. package/eks/index.d.ts +1 -0
  97. package/eks/index.js +1 -0
  98. package/eks/index.js.map +1 -1
  99. package/elasticache/cluster.d.ts +64 -3
  100. package/elasticache/cluster.js +32 -0
  101. package/elasticache/cluster.js.map +1 -1
  102. package/elasticache/getCluster.d.ts +4 -0
  103. package/elasticache/getCluster.js.map +1 -1
  104. package/elasticache/getReplicationGroup.d.ts +5 -0
  105. package/elasticache/getReplicationGroup.js.map +1 -1
  106. package/elasticache/index.d.ts +1 -0
  107. package/elasticache/index.js +5 -0
  108. package/elasticache/index.js.map +1 -1
  109. package/elasticache/replicationGroup.d.ts +54 -6
  110. package/elasticache/replicationGroup.js +32 -0
  111. package/elasticache/replicationGroup.js.map +1 -1
  112. package/elasticache/userGroupAssociation.d.ts +100 -0
  113. package/elasticache/userGroupAssociation.js +97 -0
  114. package/elasticache/userGroupAssociation.js.map +1 -0
  115. package/emr/cluster.d.ts +6 -6
  116. package/gamelift/alias.d.ts +2 -2
  117. package/gamelift/alias.js +2 -2
  118. package/gamelift/build.d.ts +6 -6
  119. package/gamelift/build.js +2 -2
  120. package/gamelift/fleet.d.ts +10 -14
  121. package/gamelift/fleet.js +2 -2
  122. package/gamelift/fleet.js.map +1 -1
  123. package/gamelift/gameServerGroup.d.ts +5 -5
  124. package/gamelift/gameServerGroup.js +3 -3
  125. package/gamelift/gameSessionQueue.d.ts +2 -2
  126. package/gamelift/gameSessionQueue.js +2 -2
  127. package/gamelift/script.d.ts +4 -4
  128. package/gamelift/script.js +2 -2
  129. package/getCanonicalUserId.d.ts +2 -0
  130. package/getCanonicalUserId.js +2 -0
  131. package/getCanonicalUserId.js.map +1 -1
  132. package/glue/schema.d.ts +3 -3
  133. package/grafana/index.d.ts +1 -0
  134. package/grafana/index.js +5 -0
  135. package/grafana/index.js.map +1 -1
  136. package/grafana/roleAssociation.d.ts +121 -0
  137. package/grafana/roleAssociation.js +98 -0
  138. package/grafana/roleAssociation.js.map +1 -0
  139. package/guardduty/ipset.d.ts +0 -1
  140. package/guardduty/ipset.js +0 -1
  141. package/guardduty/ipset.js.map +1 -1
  142. package/iam/getSamlProvider.d.ts +81 -0
  143. package/iam/getSamlProvider.js +39 -0
  144. package/iam/getSamlProvider.js.map +1 -0
  145. package/iam/group.d.ts +0 -2
  146. package/iam/group.js +0 -2
  147. package/iam/group.js.map +1 -1
  148. package/iam/index.d.ts +1 -0
  149. package/iam/index.js +1 -0
  150. package/iam/index.js.map +1 -1
  151. package/imagebuilder/getImagePipelines.d.ts +57 -0
  152. package/imagebuilder/getImagePipelines.js +40 -0
  153. package/imagebuilder/getImagePipelines.js.map +1 -0
  154. package/imagebuilder/index.d.ts +1 -0
  155. package/imagebuilder/index.js +1 -0
  156. package/imagebuilder/index.js.map +1 -1
  157. package/index.d.ts +3 -1
  158. package/index.js +7 -3
  159. package/index.js.map +1 -1
  160. package/iot/authorizer.d.ts +12 -0
  161. package/iot/authorizer.js +2 -0
  162. package/iot/authorizer.js.map +1 -1
  163. package/iot/index.d.ts +3 -0
  164. package/iot/index.js +15 -0
  165. package/iot/index.js.map +1 -1
  166. package/iot/indexingConfiguration.d.ts +98 -0
  167. package/iot/indexingConfiguration.js +88 -0
  168. package/iot/indexingConfiguration.js.map +1 -0
  169. package/iot/loggingOptions.d.ts +87 -0
  170. package/iot/loggingOptions.js +74 -0
  171. package/iot/loggingOptions.js.map +1 -0
  172. package/iot/provisioningTemplate.d.ts +232 -0
  173. package/iot/provisioningTemplate.js +144 -0
  174. package/iot/provisioningTemplate.js.map +1 -0
  175. package/keyspaces/index.d.ts +1 -0
  176. package/keyspaces/index.js +37 -0
  177. package/keyspaces/index.js.map +1 -0
  178. package/keyspaces/keyspace.d.ts +114 -0
  179. package/keyspaces/keyspace.js +77 -0
  180. package/keyspaces/keyspace.js.map +1 -0
  181. package/lambda/function.d.ts +44 -0
  182. package/lambda/function.js +34 -0
  183. package/lambda/function.js.map +1 -1
  184. package/lambda/functionUrl.d.ts +153 -0
  185. package/lambda/functionUrl.js +111 -0
  186. package/lambda/functionUrl.js.map +1 -0
  187. package/lambda/getFunction.d.ts +4 -0
  188. package/lambda/getFunction.js.map +1 -1
  189. package/lambda/getFunctionUrl.d.ts +85 -0
  190. package/lambda/getFunctionUrl.js +39 -0
  191. package/lambda/getFunctionUrl.js.map +1 -0
  192. package/lambda/index.d.ts +2 -0
  193. package/lambda/index.js +6 -0
  194. package/lambda/index.js.map +1 -1
  195. package/lambda/permission.d.ts +18 -6
  196. package/lambda/permission.js +2 -0
  197. package/lambda/permission.js.map +1 -1
  198. package/memorydb/getAcl.d.ts +75 -0
  199. package/memorydb/getAcl.js +37 -0
  200. package/memorydb/getAcl.js.map +1 -0
  201. package/memorydb/getCluster.d.ts +152 -0
  202. package/memorydb/getCluster.js +37 -0
  203. package/memorydb/getCluster.js.map +1 -0
  204. package/memorydb/getParameterGroup.d.ts +83 -0
  205. package/memorydb/getParameterGroup.js +37 -0
  206. package/memorydb/getParameterGroup.js.map +1 -0
  207. package/memorydb/getSnapshot.d.ts +87 -0
  208. package/memorydb/getSnapshot.js +37 -0
  209. package/memorydb/getSnapshot.js.map +1 -0
  210. package/memorydb/getSubnetGroup.d.ts +79 -0
  211. package/memorydb/getSubnetGroup.js +37 -0
  212. package/memorydb/getSubnetGroup.js.map +1 -0
  213. package/memorydb/getUser.d.ts +80 -0
  214. package/memorydb/getUser.js +37 -0
  215. package/memorydb/getUser.js.map +1 -0
  216. package/memorydb/index.d.ts +6 -0
  217. package/memorydb/index.js +6 -0
  218. package/memorydb/index.js.map +1 -1
  219. package/msk/getCluster.d.ts +4 -0
  220. package/msk/getCluster.js.map +1 -1
  221. package/mskconnect/connector.d.ts +270 -0
  222. package/mskconnect/connector.js +166 -0
  223. package/mskconnect/connector.js.map +1 -0
  224. package/mskconnect/getConnector.d.ts +57 -0
  225. package/mskconnect/getConnector.js +36 -0
  226. package/mskconnect/getConnector.js.map +1 -0
  227. package/mskconnect/index.d.ts +2 -0
  228. package/mskconnect/index.js +6 -0
  229. package/mskconnect/index.js.map +1 -1
  230. package/mwaa/environment.d.ts +12 -0
  231. package/mwaa/environment.js +2 -0
  232. package/mwaa/environment.js.map +1 -1
  233. package/neptune/clusterEndpoint.d.ts +9 -0
  234. package/neptune/clusterEndpoint.js.map +1 -1
  235. package/opensearch/domain.d.ts +445 -0
  236. package/opensearch/domain.js +273 -0
  237. package/opensearch/domain.js.map +1 -0
  238. package/opensearch/domainPolicy.d.ts +93 -0
  239. package/opensearch/domainPolicy.js +90 -0
  240. package/opensearch/domainPolicy.js.map +1 -0
  241. package/opensearch/domainSamlOptions.d.ts +105 -0
  242. package/opensearch/domainSamlOptions.js +98 -0
  243. package/opensearch/domainSamlOptions.js.map +1 -0
  244. package/opensearch/getDomain.d.ts +144 -0
  245. package/opensearch/getDomain.js +37 -0
  246. package/opensearch/getDomain.js.map +1 -0
  247. package/opensearch/index.d.ts +4 -0
  248. package/opensearch/index.js +48 -0
  249. package/opensearch/index.js.map +1 -0
  250. package/organizations/account.d.ts +17 -5
  251. package/organizations/account.js +4 -2
  252. package/organizations/account.js.map +1 -1
  253. package/package.json +2 -2
  254. package/package.json.dev +2 -2
  255. package/qldb/getLedger.d.ts +10 -0
  256. package/qldb/getLedger.js +1 -0
  257. package/qldb/getLedger.js.map +1 -1
  258. package/qldb/index.d.ts +1 -0
  259. package/qldb/index.js +5 -0
  260. package/qldb/index.js.map +1 -1
  261. package/qldb/ledger.d.ts +12 -0
  262. package/qldb/ledger.js +2 -0
  263. package/qldb/ledger.js.map +1 -1
  264. package/qldb/stream.d.ts +159 -0
  265. package/qldb/stream.js +104 -0
  266. package/qldb/stream.js.map +1 -0
  267. package/rds/cluster.d.ts +3 -3
  268. package/rds/clusterActivityStream.d.ts +138 -0
  269. package/rds/clusterActivityStream.js +112 -0
  270. package/rds/clusterActivityStream.js.map +1 -0
  271. package/rds/index.d.ts +2 -0
  272. package/rds/index.js +10 -0
  273. package/rds/index.js.map +1 -1
  274. package/rds/instance.d.ts +3 -3
  275. package/rds/instanceAutomatedBackupsReplication.d.ts +153 -0
  276. package/rds/instanceAutomatedBackupsReplication.js +127 -0
  277. package/rds/instanceAutomatedBackupsReplication.js.map +1 -0
  278. package/route53/getTrafficPolicyDocument.d.ts +125 -0
  279. package/route53/getTrafficPolicyDocument.js +72 -0
  280. package/route53/getTrafficPolicyDocument.js.map +1 -0
  281. package/route53/index.d.ts +3 -0
  282. package/route53/index.js +11 -0
  283. package/route53/index.js.map +1 -1
  284. package/route53/trafficPolicy.d.ts +122 -0
  285. package/route53/trafficPolicy.js +94 -0
  286. package/route53/trafficPolicy.js.map +1 -0
  287. package/route53/trafficPolicyInstance.d.ts +121 -0
  288. package/route53/trafficPolicyInstance.js +94 -0
  289. package/route53/trafficPolicyInstance.js.map +1 -0
  290. package/s3/bucketObject.d.ts +2 -12
  291. package/s3/bucketObject.js +2 -0
  292. package/s3/bucketObject.js.map +1 -1
  293. package/s3/bucketObjectLockConfigurationV2.d.ts +35 -2
  294. package/s3/bucketObjectLockConfigurationV2.js +35 -2
  295. package/s3/bucketObjectLockConfigurationV2.js.map +1 -1
  296. package/s3/bucketV2.d.ts +518 -32
  297. package/s3/bucketV2.js +378 -12
  298. package/s3/bucketV2.js.map +1 -1
  299. package/s3/getCanonicalUserId.d.ts +2 -0
  300. package/s3/getCanonicalUserId.js +2 -0
  301. package/s3/getCanonicalUserId.js.map +1 -1
  302. package/ses/identityNotificationTopic.d.ts +10 -10
  303. package/ses/identityNotificationTopic.js +1 -1
  304. package/ssm/getDocument.d.ts +3 -3
  305. package/ssm/getMaintenanceWindows.d.ts +53 -0
  306. package/ssm/getMaintenanceWindows.js +40 -0
  307. package/ssm/getMaintenanceWindows.js.map +1 -0
  308. package/ssm/index.d.ts +1 -0
  309. package/ssm/index.js +1 -0
  310. package/ssm/index.js.map +1 -1
  311. package/ssm/maintenanceWindowTask.d.ts +30 -2
  312. package/ssm/maintenanceWindowTask.js +6 -6
  313. package/ssm/maintenanceWindowTask.js.map +1 -1
  314. package/storagegateway/gateway.d.ts +12 -0
  315. package/storagegateway/gateway.js +2 -0
  316. package/storagegateway/gateway.js.map +1 -1
  317. package/storagegateway/nfsFileShare.d.ts +24 -0
  318. package/storagegateway/nfsFileShare.js +4 -0
  319. package/storagegateway/nfsFileShare.js.map +1 -1
  320. package/types/input.d.ts +1658 -413
  321. package/types/output.d.ts +1672 -285
  322. package/xray/group.d.ts +17 -0
  323. package/xray/group.js +6 -0
  324. package/xray/group.js.map +1 -1
package/s3/bucketV2.d.ts CHANGED
@@ -1,6 +1,372 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "../types";
3
3
  /**
4
+ * Provides a S3 bucket resource.
5
+ *
6
+ * > This functionality is for managing S3 in an AWS Partition. To manage [S3 on Outposts](https://docs.aws.amazon.com/AmazonS3/latest/dev/S3onOutposts.html), see the `aws.s3control.Bucket` resource.
7
+ *
8
+ * > **NOTE on S3 Bucket Accelerate Configuration:** S3 Bucket Accelerate can be configured in either the standalone resource `aws.s3.BucketAccelerateConfigurationV2`
9
+ * or with the deprecated parameter `accelerationStatus` in the resource `aws.s3.BucketV2`.
10
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
11
+ *
12
+ * > **NOTE on S3 Bucket canned ACL Configuration:** S3 Bucket canned ACL can be configured in either the standalone resource `aws.s3.BucketAclV2`
13
+ * or with the deprecated parameter `acl` in the resource `aws.s3.BucketV2`.
14
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
15
+ *
16
+ * > **NOTE on S3 Bucket ACL Grants Configuration:** S3 Bucket grants can be configured in either the standalone resource `aws.s3.BucketAclV2`
17
+ * or with the deprecated parameter `grant` in the resource `aws.s3.BucketV2`.
18
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
19
+ *
20
+ * > **NOTE on S3 Bucket CORS Configuration:** S3 Bucket CORS can be configured in either the standalone resource `aws.s3.BucketCorsConfigurationV2`
21
+ * or with the deprecated parameter `corsRule` in the resource `aws.s3.BucketV2`.
22
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
23
+ *
24
+ * > **NOTE on S3 Bucket Lifecycle Configuration:** S3 Bucket Lifecycle can be configured in either the standalone resource `aws.s3.BucketLifecycleConfigurationV2`
25
+ * or with the deprecated parameter `lifecycleRule` in the resource `aws.s3.BucketV2`.
26
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
27
+ *
28
+ * > **NOTE on S3 Bucket Logging Configuration:** S3 Bucket logging can be configured in either the standalone resource `aws.s3.BucketLoggingV2`
29
+ * or with the deprecated parameter `logging` in the resource `aws.s3.BucketV2`.
30
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
31
+ *
32
+ * > **NOTE on S3 Bucket Object Lock Configuration:** S3 Bucket Object Lock can be configured in either the standalone resource `aws.s3.BucketObjectLockConfigurationV2`
33
+ * or with the deprecated parameter `objectLockConfiguration` in the resource `aws.s3.BucketV2`.
34
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
35
+ *
36
+ * > **NOTE on S3 Bucket Policy Configuration:** S3 Bucket Policy can be configured in either the standalone resource `aws.s3.BucketPolicy`
37
+ * or with the deprecated parameter `policy` in the resource `aws.s3.BucketV2`.
38
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
39
+ *
40
+ * > **NOTE on S3 Bucket Replication Configuration:** S3 Bucket Replication can be configured in either the standalone resource `awsS3BucketReplicatonConfiguration`
41
+ * or with the deprecated parameter `replicationConfiguration` in the resource `aws.s3.BucketV2`.
42
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
43
+ *
44
+ * > **NOTE on S3 Bucket Request Payment Configuration:** S3 Bucket Request Payment can be configured in either the standalone resource `aws.s3.BucketRequestPaymentConfigurationV2`
45
+ * or with the deprecated parameter `requestPayer` in the resource `aws.s3.BucketV2`.
46
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
47
+ *
48
+ * > **NOTE on S3 Bucket Server Side Encryption Configuration:** S3 Bucket Server Side Encryption can be configured in either the standalone resource `aws.s3.BucketServerSideEncryptionConfigurationV2`
49
+ * or with the deprecated parameter `serverSideEncryptionConfiguration` in the resource `aws.s3.BucketV2`.
50
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
51
+ *
52
+ * > **NOTE on S3 Bucket Versioning Configuration:** S3 Bucket versioning can be configured in either the standalone resource `aws.s3.BucketVersioningV2`
53
+ * or with the deprecated parameter `versioning` in the resource `aws.s3.BucketV2`.
54
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
55
+ *
56
+ * > **NOTE on S3 Bucket Website Configuration:** S3 Bucket Website can be configured in either the standalone resource `aws.s3.BucketWebsiteConfigurationV2`
57
+ * or with the deprecated parameter `website` in the resource `aws.s3.BucketV2`.
58
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
59
+ *
60
+ * ## Example Usage
61
+ * ### Private Bucket w/ Tags
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as aws from "@pulumi/aws";
66
+ *
67
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {tags: {
68
+ * Name: "My bucket",
69
+ * Environment: "Dev",
70
+ * }});
71
+ * const example = new aws.s3.BucketAclV2("example", {
72
+ * bucket: bucketV2.id,
73
+ * acl: "private",
74
+ * });
75
+ * ```
76
+ * ### Static Website Hosting
77
+ *
78
+ * ```typescript
79
+ * import * as pulumi from "@pulumi/pulumi";
80
+ * import * as aws from "@pulumi/aws";
81
+ * import * from "fs";
82
+ *
83
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {
84
+ * acl: "public-read",
85
+ * policy: fs.readFileSync("policy.json"),
86
+ * websites: [{
87
+ * indexDocument: "index.html",
88
+ * errorDocument: "error.html",
89
+ * routingRules: `[{
90
+ * "Condition": {
91
+ * "KeyPrefixEquals": "docs/"
92
+ * },
93
+ * "Redirect": {
94
+ * "ReplaceKeyPrefixWith": "documents/"
95
+ * }
96
+ * }]
97
+ * `,
98
+ * }],
99
+ * });
100
+ * ```
101
+ * ### Using CORS
102
+ *
103
+ * ```typescript
104
+ * import * as pulumi from "@pulumi/pulumi";
105
+ * import * as aws from "@pulumi/aws";
106
+ *
107
+ * const bucketV2 = new aws.s3.BucketV2("b", {
108
+ * acl: "public-read",
109
+ * corsRules: [{
110
+ * allowedHeaders: ["*"],
111
+ * allowedMethods: [
112
+ * "PUT",
113
+ * "POST",
114
+ * ],
115
+ * allowedOrigins: ["https://s3-website-test.hashicorp.com"],
116
+ * exposeHeaders: ["ETag"],
117
+ * maxAgeSeconds: 3000,
118
+ * }],
119
+ * });
120
+ * ```
121
+ * ### Using versioning
122
+ *
123
+ * ```typescript
124
+ * import * as pulumi from "@pulumi/pulumi";
125
+ * import * as aws from "@pulumi/aws";
126
+ *
127
+ * const bucketV2 = new aws.s3.BucketV2("b", {
128
+ * acl: "private",
129
+ * versionings: [{
130
+ * enabled: true,
131
+ * }],
132
+ * });
133
+ * ```
134
+ * ### Enable Logging
135
+ *
136
+ * ```typescript
137
+ * import * as pulumi from "@pulumi/pulumi";
138
+ * import * as aws from "@pulumi/aws";
139
+ *
140
+ * const logBucket = new aws.s3.BucketV2("logBucket", {acl: "log-delivery-write"});
141
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {
142
+ * acl: "private",
143
+ * loggings: [{
144
+ * targetBucket: logBucket.id,
145
+ * targetPrefix: "log/",
146
+ * }],
147
+ * });
148
+ * ```
149
+ * ### Using object lifecycle
150
+ *
151
+ * ```typescript
152
+ * import * as pulumi from "@pulumi/pulumi";
153
+ * import * as aws from "@pulumi/aws";
154
+ *
155
+ * const bucket = new aws.s3.BucketV2("bucket", {
156
+ * acl: "private",
157
+ * lifecycleRules: [
158
+ * {
159
+ * enabled: true,
160
+ * expirations: [{
161
+ * days: 90,
162
+ * }],
163
+ * id: "log",
164
+ * prefix: "log/",
165
+ * tags: {
166
+ * autoclean: "true",
167
+ * rule: "log",
168
+ * },
169
+ * transitions: [
170
+ * {
171
+ * days: 30,
172
+ * storageClass: "STANDARD_IA", // or "ONEZONE_IA"
173
+ * },
174
+ * {
175
+ * days: 60,
176
+ * storageClass: "GLACIER",
177
+ * },
178
+ * ],
179
+ * },
180
+ * {
181
+ * enabled: true,
182
+ * expirations: [{
183
+ * date: "2016-01-12",
184
+ * }],
185
+ * id: "tmp",
186
+ * prefix: "tmp/",
187
+ * },
188
+ * ],
189
+ * });
190
+ * const versioningBucket = new aws.s3.BucketV2("versioning_bucket", {
191
+ * acl: "private",
192
+ * lifecycleRules: [{
193
+ * enabled: true,
194
+ * noncurrentVersionExpirations: [{
195
+ * days: 90,
196
+ * }],
197
+ * noncurrentVersionTransitions: [
198
+ * {
199
+ * days: 30,
200
+ * storageClass: "STANDARD_IA",
201
+ * },
202
+ * {
203
+ * days: 60,
204
+ * storageClass: "GLACIER",
205
+ * },
206
+ * ],
207
+ * prefix: "config/",
208
+ * }],
209
+ * versionings: [{
210
+ * enabled: true,
211
+ * }],
212
+ * });
213
+ * ```
214
+ * ### Using object lock configuration
215
+ *
216
+ * ```typescript
217
+ * import * as pulumi from "@pulumi/pulumi";
218
+ * import * as aws from "@pulumi/aws";
219
+ *
220
+ * const example = new aws.s3.BucketV2("example", {
221
+ * objectLockConfiguration: {
222
+ * objectLockEnabled: "Enabled",
223
+ * rules: [{
224
+ * defaultRetentions: [{
225
+ * days: 5,
226
+ * mode: "COMPLIANCE",
227
+ * }],
228
+ * }],
229
+ * },
230
+ * });
231
+ * ```
232
+ * ### Using replication configuration
233
+ *
234
+ * ```typescript
235
+ * import * as pulumi from "@pulumi/pulumi";
236
+ * import * as aws from "@pulumi/aws";
237
+ *
238
+ * const central = new aws.Provider("central", {region: "eu-central-1"});
239
+ * const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
240
+ * "Version": "2012-10-17",
241
+ * "Statement": [
242
+ * {
243
+ * "Action": "sts:AssumeRole",
244
+ * "Principal": {
245
+ * "Service": "s3.amazonaws.com"
246
+ * },
247
+ * "Effect": "Allow",
248
+ * "Sid": ""
249
+ * }
250
+ * ]
251
+ * }
252
+ * `});
253
+ * const destination = new aws.s3.BucketV2("destination", {versionings: [{
254
+ * enabled: true,
255
+ * }]});
256
+ * const source = new aws.s3.BucketV2("source", {
257
+ * acl: "private",
258
+ * versionings: [{
259
+ * enabled: true,
260
+ * }],
261
+ * replicationConfigurations: [{
262
+ * role: replicationRole.arn,
263
+ * rules: [{
264
+ * id: "foobar",
265
+ * status: "Enabled",
266
+ * filters: [{
267
+ * tags: {},
268
+ * }],
269
+ * destinations: [{
270
+ * bucket: destination.arn,
271
+ * storageClass: "STANDARD",
272
+ * replicationTimes: [{
273
+ * status: "Enabled",
274
+ * minutes: 15,
275
+ * }],
276
+ * metrics: [{
277
+ * status: "Enabled",
278
+ * minutes: 15,
279
+ * }],
280
+ * }],
281
+ * }],
282
+ * }],
283
+ * }, {
284
+ * provider: aws.central,
285
+ * });
286
+ * const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
287
+ * "Version": "2012-10-17",
288
+ * "Statement": [
289
+ * {
290
+ * "Action": [
291
+ * "s3:GetReplicationConfiguration",
292
+ * "s3:ListBucket"
293
+ * ],
294
+ * "Effect": "Allow",
295
+ * "Resource": [
296
+ * "${source.arn}"
297
+ * ]
298
+ * },
299
+ * {
300
+ * "Action": [
301
+ * "s3:GetObjectVersionForReplication",
302
+ * "s3:GetObjectVersionAcl",
303
+ * "s3:GetObjectVersionTagging"
304
+ * ],
305
+ * "Effect": "Allow",
306
+ * "Resource": [
307
+ * "${source.arn}/*"
308
+ * ]
309
+ * },
310
+ * {
311
+ * "Action": [
312
+ * "s3:ReplicateObject",
313
+ * "s3:ReplicateDelete",
314
+ * "s3:ReplicateTags"
315
+ * ],
316
+ * "Effect": "Allow",
317
+ * "Resource": "${destination.arn}/*"
318
+ * }
319
+ * ]
320
+ * }
321
+ * `});
322
+ * const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
323
+ * role: replicationRole.name,
324
+ * policyArn: replicationPolicy.arn,
325
+ * });
326
+ * ```
327
+ * ### Enable Default Server Side Encryption
328
+ *
329
+ * ```typescript
330
+ * import * as pulumi from "@pulumi/pulumi";
331
+ * import * as aws from "@pulumi/aws";
332
+ *
333
+ * const mykey = new aws.kms.Key("mykey", {
334
+ * description: "This key is used to encrypt bucket objects",
335
+ * deletionWindowInDays: 10,
336
+ * });
337
+ * const mybucket = new aws.s3.BucketV2("mybucket", {serverSideEncryptionConfigurations: [{
338
+ * rules: [{
339
+ * applyServerSideEncryptionByDefaults: [{
340
+ * kmsMasterKeyId: mykey.arn,
341
+ * sseAlgorithm: "aws:kms",
342
+ * }],
343
+ * }],
344
+ * }]});
345
+ * ```
346
+ * ### Using ACL policy grants
347
+ *
348
+ * ```typescript
349
+ * import * as pulumi from "@pulumi/pulumi";
350
+ * import * as aws from "@pulumi/aws";
351
+ *
352
+ * const currentUser = aws.s3.getCanonicalUserId({});
353
+ * const bucket = new aws.s3.BucketV2("bucket", {grants: [
354
+ * {
355
+ * id: currentUser.then(currentUser => currentUser.id),
356
+ * type: "CanonicalUser",
357
+ * permissions: ["FULL_CONTROL"],
358
+ * },
359
+ * {
360
+ * type: "Group",
361
+ * permissions: [
362
+ * "READ_ACP",
363
+ * "WRITE",
364
+ * ],
365
+ * uri: "http://acs.amazonaws.com/groups/s3/LogDelivery",
366
+ * },
367
+ * ]});
368
+ * ```
369
+ *
4
370
  * ## Import
5
371
  *
6
372
  * S3 bucket can be imported using the `bucket`, e.g.,
@@ -26,13 +392,14 @@ export declare class BucketV2 extends pulumi.CustomResource {
26
392
  */
27
393
  static isInstance(obj: any): obj is BucketV2;
28
394
  /**
29
- * (Optional) The accelerate configuration status of the bucket. Not available in `cn-north-1` or `us-gov-west-1`.
395
+ * Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
396
+ * Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
30
397
  *
31
398
  * @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
32
399
  */
33
400
  readonly accelerationStatus: pulumi.Output<string>;
34
401
  /**
35
- * The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) applied to the bucket.
402
+ * The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
36
403
  *
37
404
  * @deprecated Use the aws_s3_bucket_acl resource instead
38
405
  */
@@ -58,7 +425,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
58
425
  */
59
426
  readonly bucketRegionalDomainName: pulumi.Output<string>;
60
427
  /**
61
- * Set of origins and methods ([cross-origin](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) access allowed).
428
+ * A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
62
429
  *
63
430
  * @deprecated Use the aws_s3_bucket_cors_configuration resource instead
64
431
  */
@@ -68,7 +435,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
68
435
  */
69
436
  readonly forceDestroy: pulumi.Output<boolean | undefined>;
70
437
  /**
71
- * The set of [ACL policy grants](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl).
438
+ * An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
72
439
  *
73
440
  * @deprecated Use the aws_s3_bucket_acl resource instead
74
441
  */
@@ -78,19 +445,25 @@ export declare class BucketV2 extends pulumi.CustomResource {
78
445
  */
79
446
  readonly hostedZoneId: pulumi.Output<string>;
80
447
  /**
81
- * A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
448
+ * A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
449
+ * Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
82
450
  *
83
451
  * @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
84
452
  */
85
453
  readonly lifecycleRules: pulumi.Output<outputs.s3.BucketV2LifecycleRule[]>;
86
454
  /**
87
- * The [logging parameters](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) for the bucket.
455
+ * A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
456
+ * Use the resource `aws.s3.BucketLoggingV2` instead.
88
457
  *
89
458
  * @deprecated Use the aws_s3_bucket_logging resource instead
90
459
  */
91
460
  readonly loggings: pulumi.Output<outputs.s3.BucketV2Logging[]>;
92
461
  /**
93
- * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below.
462
+ * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
463
+ * This provider wil only perform drift detection if a configuration value is provided.
464
+ * Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
465
+ *
466
+ * @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
94
467
  */
95
468
  readonly objectLockConfiguration: pulumi.Output<outputs.s3.BucketV2ObjectLockConfiguration>;
96
469
  /**
@@ -98,7 +471,8 @@ export declare class BucketV2 extends pulumi.CustomResource {
98
471
  */
99
472
  readonly objectLockEnabled: pulumi.Output<boolean>;
100
473
  /**
101
- * The [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document.
474
+ * A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
475
+ * Use the resource `aws.s3.BucketPolicy` instead.
102
476
  *
103
477
  * @deprecated Use the aws_s3_bucket_policy resource instead
104
478
  */
@@ -108,25 +482,32 @@ export declare class BucketV2 extends pulumi.CustomResource {
108
482
  */
109
483
  readonly region: pulumi.Output<string>;
110
484
  /**
111
- * The [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html).
485
+ * A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
486
+ * Use the resource `aws.s3.BucketReplicationConfig` instead.
112
487
  *
113
488
  * @deprecated Use the aws_s3_bucket_replication_configuration resource instead
114
489
  */
115
490
  readonly replicationConfigurations: pulumi.Output<outputs.s3.BucketV2ReplicationConfiguration[]>;
116
491
  /**
117
- * Either `BucketOwner` or `Requester` that pays for the download and request fees.
492
+ * Specifies who should bear the cost of Amazon S3 data transfer.
493
+ * Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
494
+ * See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
495
+ * This provider will only perform drift detection if a configuration value is provided.
496
+ * Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
118
497
  *
119
498
  * @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
120
499
  */
121
500
  readonly requestPayer: pulumi.Output<string>;
122
501
  /**
123
- * The [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html).
502
+ * A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
503
+ * This provider will only perform drift detection if a configuration value is provided.
504
+ * Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
124
505
  *
125
506
  * @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
126
507
  */
127
508
  readonly serverSideEncryptionConfigurations: pulumi.Output<outputs.s3.BucketV2ServerSideEncryptionConfiguration[]>;
128
509
  /**
129
- * A map of tags to assign to the bucket. If configured with a provider [`defaultTags` configuration blockpresent, tags with matching keys will overwrite those defined at the provider-level.
510
+ * A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
130
511
  */
131
512
  readonly tags: pulumi.Output<{
132
513
  [key: string]: string;
@@ -138,7 +519,7 @@ export declare class BucketV2 extends pulumi.CustomResource {
138
519
  [key: string]: string;
139
520
  }>;
140
521
  /**
141
- * The [versioning](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html) state of the bucket.
522
+ * A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
142
523
  *
143
524
  * @deprecated Use the aws_s3_bucket_versioning resource instead
144
525
  */
@@ -156,9 +537,10 @@ export declare class BucketV2 extends pulumi.CustomResource {
156
537
  */
157
538
  readonly websiteEndpoint: pulumi.Output<string>;
158
539
  /**
159
- * The website configuration, if configured.
540
+ * A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
541
+ * Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
160
542
  *
161
- * @deprecated Use the aws_s3_bucket_website_configuration resource
543
+ * @deprecated Use the aws_s3_bucket_website_configuration resource instead
162
544
  */
163
545
  readonly websites: pulumi.Output<outputs.s3.BucketV2Website[]>;
164
546
  /**
@@ -175,13 +557,14 @@ export declare class BucketV2 extends pulumi.CustomResource {
175
557
  */
176
558
  export interface BucketV2State {
177
559
  /**
178
- * (Optional) The accelerate configuration status of the bucket. Not available in `cn-north-1` or `us-gov-west-1`.
560
+ * Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
561
+ * Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
179
562
  *
180
563
  * @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
181
564
  */
182
565
  accelerationStatus?: pulumi.Input<string>;
183
566
  /**
184
- * The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) applied to the bucket.
567
+ * The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
185
568
  *
186
569
  * @deprecated Use the aws_s3_bucket_acl resource instead
187
570
  */
@@ -207,7 +590,7 @@ export interface BucketV2State {
207
590
  */
208
591
  bucketRegionalDomainName?: pulumi.Input<string>;
209
592
  /**
210
- * Set of origins and methods ([cross-origin](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html) access allowed).
593
+ * A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
211
594
  *
212
595
  * @deprecated Use the aws_s3_bucket_cors_configuration resource instead
213
596
  */
@@ -217,7 +600,7 @@ export interface BucketV2State {
217
600
  */
218
601
  forceDestroy?: pulumi.Input<boolean>;
219
602
  /**
220
- * The set of [ACL policy grants](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl).
603
+ * An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
221
604
  *
222
605
  * @deprecated Use the aws_s3_bucket_acl resource instead
223
606
  */
@@ -227,19 +610,25 @@ export interface BucketV2State {
227
610
  */
228
611
  hostedZoneId?: pulumi.Input<string>;
229
612
  /**
230
- * A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html).
613
+ * A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
614
+ * Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
231
615
  *
232
616
  * @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
233
617
  */
234
618
  lifecycleRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2LifecycleRule>[]>;
235
619
  /**
236
- * The [logging parameters](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) for the bucket.
620
+ * A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
621
+ * Use the resource `aws.s3.BucketLoggingV2` instead.
237
622
  *
238
623
  * @deprecated Use the aws_s3_bucket_logging resource instead
239
624
  */
240
625
  loggings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Logging>[]>;
241
626
  /**
242
- * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below.
627
+ * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
628
+ * This provider wil only perform drift detection if a configuration value is provided.
629
+ * Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
630
+ *
631
+ * @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
243
632
  */
244
633
  objectLockConfiguration?: pulumi.Input<inputs.s3.BucketV2ObjectLockConfiguration>;
245
634
  /**
@@ -247,7 +636,8 @@ export interface BucketV2State {
247
636
  */
248
637
  objectLockEnabled?: pulumi.Input<boolean>;
249
638
  /**
250
- * The [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document.
639
+ * A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
640
+ * Use the resource `aws.s3.BucketPolicy` instead.
251
641
  *
252
642
  * @deprecated Use the aws_s3_bucket_policy resource instead
253
643
  */
@@ -257,25 +647,32 @@ export interface BucketV2State {
257
647
  */
258
648
  region?: pulumi.Input<string>;
259
649
  /**
260
- * The [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html).
650
+ * A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
651
+ * Use the resource `aws.s3.BucketReplicationConfig` instead.
261
652
  *
262
653
  * @deprecated Use the aws_s3_bucket_replication_configuration resource instead
263
654
  */
264
655
  replicationConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ReplicationConfiguration>[]>;
265
656
  /**
266
- * Either `BucketOwner` or `Requester` that pays for the download and request fees.
657
+ * Specifies who should bear the cost of Amazon S3 data transfer.
658
+ * Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
659
+ * See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
660
+ * This provider will only perform drift detection if a configuration value is provided.
661
+ * Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
267
662
  *
268
663
  * @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
269
664
  */
270
665
  requestPayer?: pulumi.Input<string>;
271
666
  /**
272
- * The [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html).
667
+ * A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
668
+ * This provider will only perform drift detection if a configuration value is provided.
669
+ * Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
273
670
  *
274
671
  * @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
275
672
  */
276
673
  serverSideEncryptionConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ServerSideEncryptionConfiguration>[]>;
277
674
  /**
278
- * A map of tags to assign to the bucket. If configured with a provider [`defaultTags` configuration blockpresent, tags with matching keys will overwrite those defined at the provider-level.
675
+ * A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
279
676
  */
280
677
  tags?: pulumi.Input<{
281
678
  [key: string]: pulumi.Input<string>;
@@ -287,7 +684,7 @@ export interface BucketV2State {
287
684
  [key: string]: pulumi.Input<string>;
288
685
  }>;
289
686
  /**
290
- * The [versioning](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html) state of the bucket.
687
+ * A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
291
688
  *
292
689
  * @deprecated Use the aws_s3_bucket_versioning resource instead
293
690
  */
@@ -305,9 +702,10 @@ export interface BucketV2State {
305
702
  */
306
703
  websiteEndpoint?: pulumi.Input<string>;
307
704
  /**
308
- * The website configuration, if configured.
705
+ * A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
706
+ * Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
309
707
  *
310
- * @deprecated Use the aws_s3_bucket_website_configuration resource
708
+ * @deprecated Use the aws_s3_bucket_website_configuration resource instead
311
709
  */
312
710
  websites?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Website>[]>;
313
711
  }
@@ -315,6 +713,19 @@ export interface BucketV2State {
315
713
  * The set of arguments for constructing a BucketV2 resource.
316
714
  */
317
715
  export interface BucketV2Args {
716
+ /**
717
+ * Sets the accelerate configuration of an existing bucket. Can be `Enabled` or `Suspended`. Cannot be used in `cn-north-1` or `us-gov-west-1`. This provider will only perform drift detection if a configuration value is provided.
718
+ * Use the resource `aws.s3.BucketAccelerateConfigurationV2` instead.
719
+ *
720
+ * @deprecated Use the aws_s3_bucket_accelerate_configuration resource instead
721
+ */
722
+ accelerationStatus?: pulumi.Input<string>;
723
+ /**
724
+ * The [canned ACL](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl) to apply. Valid values are `private`, `public-read`, `public-read-write`, `aws-exec-read`, `authenticated-read`, and `log-delivery-write`. Defaults to `private`. Conflicts with `grant`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
725
+ *
726
+ * @deprecated Use the aws_s3_bucket_acl resource instead
727
+ */
728
+ acl?: pulumi.Input<string>;
318
729
  /**
319
730
  * The ARN of the bucket. Will be of format `arn:aws:s3:::bucketname`.
320
731
  */
@@ -327,16 +738,46 @@ export interface BucketV2Args {
327
738
  * Creates a unique bucket name beginning with the specified prefix. Conflicts with `bucket`. Must be lowercase and less than or equal to 37 characters in length. A full list of bucket naming rules [may be found here](https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html).
328
739
  */
329
740
  bucketPrefix?: pulumi.Input<string>;
741
+ /**
742
+ * A rule of [Cross-Origin Resource Sharing](https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html). See CORS rule below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketCorsConfigurationV2` instead.
743
+ *
744
+ * @deprecated Use the aws_s3_bucket_cors_configuration resource instead
745
+ */
746
+ corsRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2CorsRule>[]>;
330
747
  /**
331
748
  * A boolean that indicates all objects (including any [locked objects](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html)) should be deleted from the bucket so that the bucket can be destroyed without error. These objects are *not* recoverable.
332
749
  */
333
750
  forceDestroy?: pulumi.Input<boolean>;
751
+ /**
752
+ * An [ACL policy grant](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl). See Grant below for details. Conflicts with `acl`. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketAclV2` instead.
753
+ *
754
+ * @deprecated Use the aws_s3_bucket_acl resource instead
755
+ */
756
+ grants?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Grant>[]>;
334
757
  /**
335
758
  * The [Route 53 Hosted Zone ID](https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints) for this bucket's region.
336
759
  */
337
760
  hostedZoneId?: pulumi.Input<string>;
338
761
  /**
339
- * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below.
762
+ * A configuration of [object lifecycle management](http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html). See Lifecycle Rule below for details. This provider will only perform drift detection if a configuration value is provided.
763
+ * Use the resource `aws.s3.BucketLifecycleConfigurationV2` instead.
764
+ *
765
+ * @deprecated Use the aws_s3_bucket_lifecycle_configuration resource instead
766
+ */
767
+ lifecycleRules?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2LifecycleRule>[]>;
768
+ /**
769
+ * A configuration of [S3 bucket logging](https://docs.aws.amazon.com/AmazonS3/latest/UG/ManagingBucketLogging.html) parameters. See Logging below for details. This provider will only perform drift detection if a configuration value is provided.
770
+ * Use the resource `aws.s3.BucketLoggingV2` instead.
771
+ *
772
+ * @deprecated Use the aws_s3_bucket_logging resource instead
773
+ */
774
+ loggings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Logging>[]>;
775
+ /**
776
+ * A configuration of [S3 object locking](https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html). See Object Lock Configuration below for details.
777
+ * This provider wil only perform drift detection if a configuration value is provided.
778
+ * Use the `objectLockEnabled` parameter and the resource `aws.s3.BucketObjectLockConfigurationV2` instead.
779
+ *
780
+ * @deprecated Use the top-level parameter object_lock_enabled and the aws_s3_bucket_object_lock_configuration resource instead
340
781
  */
341
782
  objectLockConfiguration?: pulumi.Input<inputs.s3.BucketV2ObjectLockConfiguration>;
342
783
  /**
@@ -344,9 +785,54 @@ export interface BucketV2Args {
344
785
  */
345
786
  objectLockEnabled?: pulumi.Input<boolean>;
346
787
  /**
347
- * A map of tags to assign to the bucket. If configured with a provider [`defaultTags` configuration blockpresent, tags with matching keys will overwrite those defined at the provider-level.
788
+ * A valid [bucket policy](https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html) JSON document. Note that if the policy document is not specific enough (but still valid), this provider may view the policy as constantly changing in a plan. In this case, please make sure you use the verbose/specific version of the policy.
789
+ * Use the resource `aws.s3.BucketPolicy` instead.
790
+ *
791
+ * @deprecated Use the aws_s3_bucket_policy resource instead
792
+ */
793
+ policy?: pulumi.Input<string>;
794
+ /**
795
+ * A configuration of [replication configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/crr.html). See Replication Configuration below for details. this provider will only perform drift detection if a configuration value is provided.
796
+ * Use the resource `aws.s3.BucketReplicationConfig` instead.
797
+ *
798
+ * @deprecated Use the aws_s3_bucket_replication_configuration resource instead
799
+ */
800
+ replicationConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ReplicationConfiguration>[]>;
801
+ /**
802
+ * Specifies who should bear the cost of Amazon S3 data transfer.
803
+ * Can be either `BucketOwner` or `Requester`. By default, the owner of the S3 bucket would incur the costs of any data transfer.
804
+ * See [Requester Pays Buckets](http://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html) developer guide for more information.
805
+ * This provider will only perform drift detection if a configuration value is provided.
806
+ * Use the resource `aws.s3.BucketRequestPaymentConfigurationV2` instead.
807
+ *
808
+ * @deprecated Use the aws_s3_bucket_request_payment_configuration resource instead
809
+ */
810
+ requestPayer?: pulumi.Input<string>;
811
+ /**
812
+ * A configuration of [server-side encryption configuration](http://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html). See Server Side Encryption Configuration below for details.
813
+ * This provider will only perform drift detection if a configuration value is provided.
814
+ * Use the resource `aws.s3.BucketServerSideEncryptionConfigurationV2` instead.
815
+ *
816
+ * @deprecated Use the aws_s3_bucket_server_side_encryption_configuration resource instead
817
+ */
818
+ serverSideEncryptionConfigurations?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2ServerSideEncryptionConfiguration>[]>;
819
+ /**
820
+ * A map of tags to assign to the bucket. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
348
821
  */
349
822
  tags?: pulumi.Input<{
350
823
  [key: string]: pulumi.Input<string>;
351
824
  }>;
825
+ /**
826
+ * A configuration of the [S3 bucket versioning state](https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). See Versioning below for details. This provider will only perform drift detection if a configuration value is provided. Use the resource `aws.s3.BucketVersioningV2` instead.
827
+ *
828
+ * @deprecated Use the aws_s3_bucket_versioning resource instead
829
+ */
830
+ versionings?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Versioning>[]>;
831
+ /**
832
+ * A configuration of the [S3 bucket website](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html). See Website below for details. This provider will only perform drift detection if a configuration value is provided.
833
+ * Use the resource `aws.s3.BucketWebsiteConfigurationV2` instead.
834
+ *
835
+ * @deprecated Use the aws_s3_bucket_website_configuration resource instead
836
+ */
837
+ websites?: pulumi.Input<pulumi.Input<inputs.s3.BucketV2Website>[]>;
352
838
  }