@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.js CHANGED
@@ -6,6 +6,372 @@ exports.BucketV2 = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
+ * Provides a S3 bucket resource.
10
+ *
11
+ * > 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.
12
+ *
13
+ * > **NOTE on S3 Bucket Accelerate Configuration:** S3 Bucket Accelerate can be configured in either the standalone resource `aws.s3.BucketAccelerateConfigurationV2`
14
+ * or with the deprecated parameter `accelerationStatus` in the resource `aws.s3.BucketV2`.
15
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
16
+ *
17
+ * > **NOTE on S3 Bucket canned ACL Configuration:** S3 Bucket canned ACL can be configured in either the standalone resource `aws.s3.BucketAclV2`
18
+ * or with the deprecated parameter `acl` in the resource `aws.s3.BucketV2`.
19
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
20
+ *
21
+ * > **NOTE on S3 Bucket ACL Grants Configuration:** S3 Bucket grants can be configured in either the standalone resource `aws.s3.BucketAclV2`
22
+ * or with the deprecated parameter `grant` in the resource `aws.s3.BucketV2`.
23
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
24
+ *
25
+ * > **NOTE on S3 Bucket CORS Configuration:** S3 Bucket CORS can be configured in either the standalone resource `aws.s3.BucketCorsConfigurationV2`
26
+ * or with the deprecated parameter `corsRule` in the resource `aws.s3.BucketV2`.
27
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
28
+ *
29
+ * > **NOTE on S3 Bucket Lifecycle Configuration:** S3 Bucket Lifecycle can be configured in either the standalone resource `aws.s3.BucketLifecycleConfigurationV2`
30
+ * or with the deprecated parameter `lifecycleRule` in the resource `aws.s3.BucketV2`.
31
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
32
+ *
33
+ * > **NOTE on S3 Bucket Logging Configuration:** S3 Bucket logging can be configured in either the standalone resource `aws.s3.BucketLoggingV2`
34
+ * or with the deprecated parameter `logging` in the resource `aws.s3.BucketV2`.
35
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
36
+ *
37
+ * > **NOTE on S3 Bucket Object Lock Configuration:** S3 Bucket Object Lock can be configured in either the standalone resource `aws.s3.BucketObjectLockConfigurationV2`
38
+ * or with the deprecated parameter `objectLockConfiguration` in the resource `aws.s3.BucketV2`.
39
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
40
+ *
41
+ * > **NOTE on S3 Bucket Policy Configuration:** S3 Bucket Policy can be configured in either the standalone resource `aws.s3.BucketPolicy`
42
+ * or with the deprecated parameter `policy` in the resource `aws.s3.BucketV2`.
43
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
44
+ *
45
+ * > **NOTE on S3 Bucket Replication Configuration:** S3 Bucket Replication can be configured in either the standalone resource `awsS3BucketReplicatonConfiguration`
46
+ * or with the deprecated parameter `replicationConfiguration` in the resource `aws.s3.BucketV2`.
47
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
48
+ *
49
+ * > **NOTE on S3 Bucket Request Payment Configuration:** S3 Bucket Request Payment can be configured in either the standalone resource `aws.s3.BucketRequestPaymentConfigurationV2`
50
+ * or with the deprecated parameter `requestPayer` in the resource `aws.s3.BucketV2`.
51
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
52
+ *
53
+ * > **NOTE on S3 Bucket Server Side Encryption Configuration:** S3 Bucket Server Side Encryption can be configured in either the standalone resource `aws.s3.BucketServerSideEncryptionConfigurationV2`
54
+ * or with the deprecated parameter `serverSideEncryptionConfiguration` in the resource `aws.s3.BucketV2`.
55
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
56
+ *
57
+ * > **NOTE on S3 Bucket Versioning Configuration:** S3 Bucket versioning can be configured in either the standalone resource `aws.s3.BucketVersioningV2`
58
+ * or with the deprecated parameter `versioning` in the resource `aws.s3.BucketV2`.
59
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
60
+ *
61
+ * > **NOTE on S3 Bucket Website Configuration:** S3 Bucket Website can be configured in either the standalone resource `aws.s3.BucketWebsiteConfigurationV2`
62
+ * or with the deprecated parameter `website` in the resource `aws.s3.BucketV2`.
63
+ * Configuring with both will cause inconsistencies and may overwrite configuration.
64
+ *
65
+ * ## Example Usage
66
+ * ### Private Bucket w/ Tags
67
+ *
68
+ * ```typescript
69
+ * import * as pulumi from "@pulumi/pulumi";
70
+ * import * as aws from "@pulumi/aws";
71
+ *
72
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {tags: {
73
+ * Name: "My bucket",
74
+ * Environment: "Dev",
75
+ * }});
76
+ * const example = new aws.s3.BucketAclV2("example", {
77
+ * bucket: bucketV2.id,
78
+ * acl: "private",
79
+ * });
80
+ * ```
81
+ * ### Static Website Hosting
82
+ *
83
+ * ```typescript
84
+ * import * as pulumi from "@pulumi/pulumi";
85
+ * import * as aws from "@pulumi/aws";
86
+ * import * from "fs";
87
+ *
88
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {
89
+ * acl: "public-read",
90
+ * policy: fs.readFileSync("policy.json"),
91
+ * websites: [{
92
+ * indexDocument: "index.html",
93
+ * errorDocument: "error.html",
94
+ * routingRules: `[{
95
+ * "Condition": {
96
+ * "KeyPrefixEquals": "docs/"
97
+ * },
98
+ * "Redirect": {
99
+ * "ReplaceKeyPrefixWith": "documents/"
100
+ * }
101
+ * }]
102
+ * `,
103
+ * }],
104
+ * });
105
+ * ```
106
+ * ### Using CORS
107
+ *
108
+ * ```typescript
109
+ * import * as pulumi from "@pulumi/pulumi";
110
+ * import * as aws from "@pulumi/aws";
111
+ *
112
+ * const bucketV2 = new aws.s3.BucketV2("b", {
113
+ * acl: "public-read",
114
+ * corsRules: [{
115
+ * allowedHeaders: ["*"],
116
+ * allowedMethods: [
117
+ * "PUT",
118
+ * "POST",
119
+ * ],
120
+ * allowedOrigins: ["https://s3-website-test.hashicorp.com"],
121
+ * exposeHeaders: ["ETag"],
122
+ * maxAgeSeconds: 3000,
123
+ * }],
124
+ * });
125
+ * ```
126
+ * ### Using versioning
127
+ *
128
+ * ```typescript
129
+ * import * as pulumi from "@pulumi/pulumi";
130
+ * import * as aws from "@pulumi/aws";
131
+ *
132
+ * const bucketV2 = new aws.s3.BucketV2("b", {
133
+ * acl: "private",
134
+ * versionings: [{
135
+ * enabled: true,
136
+ * }],
137
+ * });
138
+ * ```
139
+ * ### Enable Logging
140
+ *
141
+ * ```typescript
142
+ * import * as pulumi from "@pulumi/pulumi";
143
+ * import * as aws from "@pulumi/aws";
144
+ *
145
+ * const logBucket = new aws.s3.BucketV2("logBucket", {acl: "log-delivery-write"});
146
+ * const bucketV2 = new aws.s3.BucketV2("bucketV2", {
147
+ * acl: "private",
148
+ * loggings: [{
149
+ * targetBucket: logBucket.id,
150
+ * targetPrefix: "log/",
151
+ * }],
152
+ * });
153
+ * ```
154
+ * ### Using object lifecycle
155
+ *
156
+ * ```typescript
157
+ * import * as pulumi from "@pulumi/pulumi";
158
+ * import * as aws from "@pulumi/aws";
159
+ *
160
+ * const bucket = new aws.s3.BucketV2("bucket", {
161
+ * acl: "private",
162
+ * lifecycleRules: [
163
+ * {
164
+ * enabled: true,
165
+ * expirations: [{
166
+ * days: 90,
167
+ * }],
168
+ * id: "log",
169
+ * prefix: "log/",
170
+ * tags: {
171
+ * autoclean: "true",
172
+ * rule: "log",
173
+ * },
174
+ * transitions: [
175
+ * {
176
+ * days: 30,
177
+ * storageClass: "STANDARD_IA", // or "ONEZONE_IA"
178
+ * },
179
+ * {
180
+ * days: 60,
181
+ * storageClass: "GLACIER",
182
+ * },
183
+ * ],
184
+ * },
185
+ * {
186
+ * enabled: true,
187
+ * expirations: [{
188
+ * date: "2016-01-12",
189
+ * }],
190
+ * id: "tmp",
191
+ * prefix: "tmp/",
192
+ * },
193
+ * ],
194
+ * });
195
+ * const versioningBucket = new aws.s3.BucketV2("versioning_bucket", {
196
+ * acl: "private",
197
+ * lifecycleRules: [{
198
+ * enabled: true,
199
+ * noncurrentVersionExpirations: [{
200
+ * days: 90,
201
+ * }],
202
+ * noncurrentVersionTransitions: [
203
+ * {
204
+ * days: 30,
205
+ * storageClass: "STANDARD_IA",
206
+ * },
207
+ * {
208
+ * days: 60,
209
+ * storageClass: "GLACIER",
210
+ * },
211
+ * ],
212
+ * prefix: "config/",
213
+ * }],
214
+ * versionings: [{
215
+ * enabled: true,
216
+ * }],
217
+ * });
218
+ * ```
219
+ * ### Using object lock configuration
220
+ *
221
+ * ```typescript
222
+ * import * as pulumi from "@pulumi/pulumi";
223
+ * import * as aws from "@pulumi/aws";
224
+ *
225
+ * const example = new aws.s3.BucketV2("example", {
226
+ * objectLockConfiguration: {
227
+ * objectLockEnabled: "Enabled",
228
+ * rules: [{
229
+ * defaultRetentions: [{
230
+ * days: 5,
231
+ * mode: "COMPLIANCE",
232
+ * }],
233
+ * }],
234
+ * },
235
+ * });
236
+ * ```
237
+ * ### Using replication configuration
238
+ *
239
+ * ```typescript
240
+ * import * as pulumi from "@pulumi/pulumi";
241
+ * import * as aws from "@pulumi/aws";
242
+ *
243
+ * const central = new aws.Provider("central", {region: "eu-central-1"});
244
+ * const replicationRole = new aws.iam.Role("replicationRole", {assumeRolePolicy: `{
245
+ * "Version": "2012-10-17",
246
+ * "Statement": [
247
+ * {
248
+ * "Action": "sts:AssumeRole",
249
+ * "Principal": {
250
+ * "Service": "s3.amazonaws.com"
251
+ * },
252
+ * "Effect": "Allow",
253
+ * "Sid": ""
254
+ * }
255
+ * ]
256
+ * }
257
+ * `});
258
+ * const destination = new aws.s3.BucketV2("destination", {versionings: [{
259
+ * enabled: true,
260
+ * }]});
261
+ * const source = new aws.s3.BucketV2("source", {
262
+ * acl: "private",
263
+ * versionings: [{
264
+ * enabled: true,
265
+ * }],
266
+ * replicationConfigurations: [{
267
+ * role: replicationRole.arn,
268
+ * rules: [{
269
+ * id: "foobar",
270
+ * status: "Enabled",
271
+ * filters: [{
272
+ * tags: {},
273
+ * }],
274
+ * destinations: [{
275
+ * bucket: destination.arn,
276
+ * storageClass: "STANDARD",
277
+ * replicationTimes: [{
278
+ * status: "Enabled",
279
+ * minutes: 15,
280
+ * }],
281
+ * metrics: [{
282
+ * status: "Enabled",
283
+ * minutes: 15,
284
+ * }],
285
+ * }],
286
+ * }],
287
+ * }],
288
+ * }, {
289
+ * provider: aws.central,
290
+ * });
291
+ * const replicationPolicy = new aws.iam.Policy("replicationPolicy", {policy: pulumi.interpolate`{
292
+ * "Version": "2012-10-17",
293
+ * "Statement": [
294
+ * {
295
+ * "Action": [
296
+ * "s3:GetReplicationConfiguration",
297
+ * "s3:ListBucket"
298
+ * ],
299
+ * "Effect": "Allow",
300
+ * "Resource": [
301
+ * "${source.arn}"
302
+ * ]
303
+ * },
304
+ * {
305
+ * "Action": [
306
+ * "s3:GetObjectVersionForReplication",
307
+ * "s3:GetObjectVersionAcl",
308
+ * "s3:GetObjectVersionTagging"
309
+ * ],
310
+ * "Effect": "Allow",
311
+ * "Resource": [
312
+ * "${source.arn}/*"
313
+ * ]
314
+ * },
315
+ * {
316
+ * "Action": [
317
+ * "s3:ReplicateObject",
318
+ * "s3:ReplicateDelete",
319
+ * "s3:ReplicateTags"
320
+ * ],
321
+ * "Effect": "Allow",
322
+ * "Resource": "${destination.arn}/*"
323
+ * }
324
+ * ]
325
+ * }
326
+ * `});
327
+ * const replicationRolePolicyAttachment = new aws.iam.RolePolicyAttachment("replicationRolePolicyAttachment", {
328
+ * role: replicationRole.name,
329
+ * policyArn: replicationPolicy.arn,
330
+ * });
331
+ * ```
332
+ * ### Enable Default Server Side Encryption
333
+ *
334
+ * ```typescript
335
+ * import * as pulumi from "@pulumi/pulumi";
336
+ * import * as aws from "@pulumi/aws";
337
+ *
338
+ * const mykey = new aws.kms.Key("mykey", {
339
+ * description: "This key is used to encrypt bucket objects",
340
+ * deletionWindowInDays: 10,
341
+ * });
342
+ * const mybucket = new aws.s3.BucketV2("mybucket", {serverSideEncryptionConfigurations: [{
343
+ * rules: [{
344
+ * applyServerSideEncryptionByDefaults: [{
345
+ * kmsMasterKeyId: mykey.arn,
346
+ * sseAlgorithm: "aws:kms",
347
+ * }],
348
+ * }],
349
+ * }]});
350
+ * ```
351
+ * ### Using ACL policy grants
352
+ *
353
+ * ```typescript
354
+ * import * as pulumi from "@pulumi/pulumi";
355
+ * import * as aws from "@pulumi/aws";
356
+ *
357
+ * const currentUser = aws.s3.getCanonicalUserId({});
358
+ * const bucket = new aws.s3.BucketV2("bucket", {grants: [
359
+ * {
360
+ * id: currentUser.then(currentUser => currentUser.id),
361
+ * type: "CanonicalUser",
362
+ * permissions: ["FULL_CONTROL"],
363
+ * },
364
+ * {
365
+ * type: "Group",
366
+ * permissions: [
367
+ * "READ_ACP",
368
+ * "WRITE",
369
+ * ],
370
+ * uri: "http://acs.amazonaws.com/groups/s3/LogDelivery",
371
+ * },
372
+ * ]});
373
+ * ```
374
+ *
9
375
  * ## Import
10
376
  *
11
377
  * S3 bucket can be imported using the `bucket`, e.g.,
@@ -49,32 +415,32 @@ class BucketV2 extends pulumi.CustomResource {
49
415
  }
50
416
  else {
51
417
  const args = argsOrState;
418
+ resourceInputs["accelerationStatus"] = args ? args.accelerationStatus : undefined;
419
+ resourceInputs["acl"] = args ? args.acl : undefined;
52
420
  resourceInputs["arn"] = args ? args.arn : undefined;
53
421
  resourceInputs["bucket"] = args ? args.bucket : undefined;
54
422
  resourceInputs["bucketPrefix"] = args ? args.bucketPrefix : undefined;
423
+ resourceInputs["corsRules"] = args ? args.corsRules : undefined;
55
424
  resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined;
425
+ resourceInputs["grants"] = args ? args.grants : undefined;
56
426
  resourceInputs["hostedZoneId"] = args ? args.hostedZoneId : undefined;
427
+ resourceInputs["lifecycleRules"] = args ? args.lifecycleRules : undefined;
428
+ resourceInputs["loggings"] = args ? args.loggings : undefined;
57
429
  resourceInputs["objectLockConfiguration"] = args ? args.objectLockConfiguration : undefined;
58
430
  resourceInputs["objectLockEnabled"] = args ? args.objectLockEnabled : undefined;
431
+ resourceInputs["policy"] = args ? args.policy : undefined;
432
+ resourceInputs["replicationConfigurations"] = args ? args.replicationConfigurations : undefined;
433
+ resourceInputs["requestPayer"] = args ? args.requestPayer : undefined;
434
+ resourceInputs["serverSideEncryptionConfigurations"] = args ? args.serverSideEncryptionConfigurations : undefined;
59
435
  resourceInputs["tags"] = args ? args.tags : undefined;
60
- resourceInputs["accelerationStatus"] = undefined /*out*/;
61
- resourceInputs["acl"] = undefined /*out*/;
436
+ resourceInputs["versionings"] = args ? args.versionings : undefined;
437
+ resourceInputs["websites"] = args ? args.websites : undefined;
62
438
  resourceInputs["bucketDomainName"] = undefined /*out*/;
63
439
  resourceInputs["bucketRegionalDomainName"] = undefined /*out*/;
64
- resourceInputs["corsRules"] = undefined /*out*/;
65
- resourceInputs["grants"] = undefined /*out*/;
66
- resourceInputs["lifecycleRules"] = undefined /*out*/;
67
- resourceInputs["loggings"] = undefined /*out*/;
68
- resourceInputs["policy"] = undefined /*out*/;
69
440
  resourceInputs["region"] = undefined /*out*/;
70
- resourceInputs["replicationConfigurations"] = undefined /*out*/;
71
- resourceInputs["requestPayer"] = undefined /*out*/;
72
- resourceInputs["serverSideEncryptionConfigurations"] = undefined /*out*/;
73
441
  resourceInputs["tagsAll"] = undefined /*out*/;
74
- resourceInputs["versionings"] = undefined /*out*/;
75
442
  resourceInputs["websiteDomain"] = undefined /*out*/;
76
443
  resourceInputs["websiteEndpoint"] = undefined /*out*/;
77
- resourceInputs["websites"] = undefined /*out*/;
78
444
  }
79
445
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
80
446
  const aliasOpts = { aliases: [{ type: "aws:s3/bucket:Bucket" }] };
@@ -1 +1 @@
1
- {"version":3,"file":"bucketV2.js","sourceRoot":"","sources":["../../s3/bucketV2.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;GAQG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAyK/C,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QA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,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AA1BL,4BA0PC;AA5OG,gBAAgB;AACO,qBAAY,GAAG,0BAA0B,CAAC"}
@@ -3,6 +3,8 @@ import * as pulumi from "@pulumi/pulumi";
3
3
  * The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
4
4
  * for the effective account in which this provider is working.
5
5
  *
6
+ * > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission.
7
+ *
6
8
  * ## Example Usage
7
9
  *
8
10
  * ```typescript
@@ -9,6 +9,8 @@ const utilities = require("../utilities");
9
9
  * The Canonical User ID data source allows access to the [canonical user ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
10
10
  * for the effective account in which this provider is working.
11
11
  *
12
+ * > **NOTE:** To use this data source, you must have the `s3:ListAllMyBuckets` permission.
13
+ *
12
14
  * ## Example Usage
13
15
  *
14
16
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"getCanonicalUserId.js","sourceRoot":"","sources":["../../s3/getCanonicalUserId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;GAaG;AACH,SAAgB,kBAAkB,CAAC,IAA2B;IAC1D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC"}
1
+ {"version":3,"file":"getCanonicalUserId.js","sourceRoot":"","sources":["../../s3/getCanonicalUserId.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,kBAAkB,CAAC,IAA2B;IAC1D,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE,EAC5E,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gDAQC"}
@@ -18,7 +18,7 @@ import * as pulumi from "@pulumi/pulumi";
18
18
  *
19
19
  * ## Import
20
20
  *
21
- * Identity Notification Topics can be imported using ID of the record. The ID is made up as IDENTITY|TYPE where IDENTITY is the SES Identity and TYPE is the Notification Type.
21
+ * Identity Notification Topics can be imported using the ID of the record. The ID is made up as `IDENTITY|TYPE` where `IDENTITY` is the SES Identity and `TYPE` is the Notification Type.
22
22
  *
23
23
  * ```sh
24
24
  * $ pulumi import aws:ses/identityNotificationTopic:IdentityNotificationTopic test 'example.com|Bounce'
@@ -45,15 +45,15 @@ export declare class IdentityNotificationTopic extends pulumi.CustomResource {
45
45
  */
46
46
  readonly identity: pulumi.Output<string>;
47
47
  /**
48
- * Whether SES should include original email headers in SNS notifications of this type. *false* by default.
48
+ * Whether SES should include original email headers in SNS notifications of this type. `false` by default.
49
49
  */
50
50
  readonly includeOriginalHeaders: pulumi.Output<boolean | undefined>;
51
51
  /**
52
- * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: *Bounce*, *Complaint* or *Delivery*.
52
+ * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
53
53
  */
54
54
  readonly notificationType: pulumi.Output<string>;
55
55
  /**
56
- * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
56
+ * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
57
57
  */
58
58
  readonly topicArn: pulumi.Output<string | undefined>;
59
59
  /**
@@ -74,15 +74,15 @@ export interface IdentityNotificationTopicState {
74
74
  */
75
75
  identity?: pulumi.Input<string>;
76
76
  /**
77
- * Whether SES should include original email headers in SNS notifications of this type. *false* by default.
77
+ * Whether SES should include original email headers in SNS notifications of this type. `false` by default.
78
78
  */
79
79
  includeOriginalHeaders?: pulumi.Input<boolean>;
80
80
  /**
81
- * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: *Bounce*, *Complaint* or *Delivery*.
81
+ * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
82
82
  */
83
83
  notificationType?: pulumi.Input<string>;
84
84
  /**
85
- * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
85
+ * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
86
86
  */
87
87
  topicArn?: pulumi.Input<string>;
88
88
  }
@@ -95,15 +95,15 @@ export interface IdentityNotificationTopicArgs {
95
95
  */
96
96
  identity: pulumi.Input<string>;
97
97
  /**
98
- * Whether SES should include original email headers in SNS notifications of this type. *false* by default.
98
+ * Whether SES should include original email headers in SNS notifications of this type. `false` by default.
99
99
  */
100
100
  includeOriginalHeaders?: pulumi.Input<boolean>;
101
101
  /**
102
- * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: *Bounce*, *Complaint* or *Delivery*.
102
+ * The type of notifications that will be published to the specified Amazon SNS topic. Valid Values: `Bounce`, `Complaint` or `Delivery`.
103
103
  */
104
104
  notificationType: pulumi.Input<string>;
105
105
  /**
106
- * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to "" (an empty string) to disable publishing.
106
+ * The Amazon Resource Name (ARN) of the Amazon SNS topic. Can be set to `""` (an empty string) to disable publishing.
107
107
  */
108
108
  topicArn?: pulumi.Input<string>;
109
109
  }
@@ -24,7 +24,7 @@ const utilities = require("../utilities");
24
24
  *
25
25
  * ## Import
26
26
  *
27
- * Identity Notification Topics can be imported using ID of the record. The ID is made up as IDENTITY|TYPE where IDENTITY is the SES Identity and TYPE is the Notification Type.
27
+ * Identity Notification Topics can be imported using the ID of the record. The ID is made up as `IDENTITY|TYPE` where `IDENTITY` is the SES Identity and `TYPE` is the Notification Type.
28
28
  *
29
29
  * ```sh
30
30
  * $ pulumi import aws:ses/identityNotificationTopic:IdentityNotificationTopic test 'example.com|Bounce'
@@ -35,7 +35,7 @@ export declare function getDocument(args: GetDocumentArgs, opts?: pulumi.InvokeO
35
35
  */
36
36
  export interface GetDocumentArgs {
37
37
  /**
38
- * Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.
38
+ * Returns the document in the specified format. The document format can be either `JSON`, `YAML` and `TEXT`. JSON is the default format.
39
39
  */
40
40
  documentFormat?: string;
41
41
  /**
@@ -52,7 +52,7 @@ export interface GetDocumentArgs {
52
52
  */
53
53
  export interface GetDocumentResult {
54
54
  /**
55
- * The ARN of the document.
55
+ * The ARN of the document. If the document is an AWS managed document, this value will be set to the name of the document instead.
56
56
  */
57
57
  readonly arn: string;
58
58
  /**
@@ -77,7 +77,7 @@ export declare function getDocumentOutput(args: GetDocumentOutputArgs, opts?: pu
77
77
  */
78
78
  export interface GetDocumentOutputArgs {
79
79
  /**
80
- * Returns the document in the specified format. The document format can be either JSON or YAML. JSON is the default format.
80
+ * Returns the document in the specified format. The document format can be either `JSON`, `YAML` and `TEXT`. JSON is the default format.
81
81
  */
82
82
  documentFormat?: pulumi.Input<string>;
83
83
  /**
@@ -0,0 +1,53 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Use this data source to get the window IDs of SSM maintenance windows.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as aws from "@pulumi/aws";
11
+ *
12
+ * const example = pulumi.output(aws.ssm.getMaintenanceWindows({
13
+ * filters: [{
14
+ * name: "Enabled",
15
+ * values: ["true"],
16
+ * }],
17
+ * }));
18
+ * ```
19
+ */
20
+ export declare function getMaintenanceWindows(args?: GetMaintenanceWindowsArgs, opts?: pulumi.InvokeOptions): Promise<GetMaintenanceWindowsResult>;
21
+ /**
22
+ * A collection of arguments for invoking getMaintenanceWindows.
23
+ */
24
+ export interface GetMaintenanceWindowsArgs {
25
+ /**
26
+ * Configuration block(s) for filtering. Detailed below.
27
+ */
28
+ filters?: inputs.ssm.GetMaintenanceWindowsFilter[];
29
+ }
30
+ /**
31
+ * A collection of values returned by getMaintenanceWindows.
32
+ */
33
+ export interface GetMaintenanceWindowsResult {
34
+ readonly filters?: outputs.ssm.GetMaintenanceWindowsFilter[];
35
+ /**
36
+ * The provider-assigned unique ID for this managed resource.
37
+ */
38
+ readonly id: string;
39
+ /**
40
+ * List of window IDs of the matched SSM maintenance windows.
41
+ */
42
+ readonly ids: string[];
43
+ }
44
+ export declare function getMaintenanceWindowsOutput(args?: GetMaintenanceWindowsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMaintenanceWindowsResult>;
45
+ /**
46
+ * A collection of arguments for invoking getMaintenanceWindows.
47
+ */
48
+ export interface GetMaintenanceWindowsOutputArgs {
49
+ /**
50
+ * Configuration block(s) for filtering. Detailed below.
51
+ */
52
+ filters?: pulumi.Input<pulumi.Input<inputs.ssm.GetMaintenanceWindowsFilterArgs>[]>;
53
+ }
@@ -0,0 +1,40 @@
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.getMaintenanceWindowsOutput = exports.getMaintenanceWindows = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Use this data source to get the window IDs of SSM maintenance windows.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as aws from "@pulumi/aws";
16
+ *
17
+ * const example = pulumi.output(aws.ssm.getMaintenanceWindows({
18
+ * filters: [{
19
+ * name: "Enabled",
20
+ * values: ["true"],
21
+ * }],
22
+ * }));
23
+ * ```
24
+ */
25
+ function getMaintenanceWindows(args, opts) {
26
+ args = args || {};
27
+ if (!opts) {
28
+ opts = {};
29
+ }
30
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
31
+ return pulumi.runtime.invoke("aws:ssm/getMaintenanceWindows:getMaintenanceWindows", {
32
+ "filters": args.filters,
33
+ }, opts);
34
+ }
35
+ exports.getMaintenanceWindows = getMaintenanceWindows;
36
+ function getMaintenanceWindowsOutput(args, opts) {
37
+ return pulumi.output(args).apply(a => getMaintenanceWindows(a, opts));
38
+ }
39
+ exports.getMaintenanceWindowsOutput = getMaintenanceWindowsOutput;
40
+ //# sourceMappingURL=getMaintenanceWindows.js.map