@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
@@ -0,0 +1,159 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Provides an AWS Quantum Ledger Database (QLDB) Stream resource
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 = new aws.qldb.Stream("example", {
13
+ * inclusiveStartTime: "2021-01-01T00:00:00Z",
14
+ * kinesisConfiguration: {
15
+ * aggegationEnabled: false,
16
+ * streamArn: "arn:aws:kinesis:us-east-1:xxxxxxxxxxxx:stream/example-kinesis-stream",
17
+ * },
18
+ * ledgerName: "existing-ledger-name",
19
+ * roleArn: "sample-role-arn",
20
+ * streamName: "sample-ledger-stream",
21
+ * tags: {
22
+ * example: "tag",
23
+ * },
24
+ * });
25
+ * ```
26
+ */
27
+ export declare class Stream extends pulumi.CustomResource {
28
+ /**
29
+ * Get an existing Stream resource's state with the given name, ID, and optional extra
30
+ * properties used to qualify the lookup.
31
+ *
32
+ * @param name The _unique_ name of the resulting resource.
33
+ * @param id The _unique_ provider ID of the resource to lookup.
34
+ * @param state Any extra arguments used during the lookup.
35
+ * @param opts Optional settings to control the behavior of the CustomResource.
36
+ */
37
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StreamState, opts?: pulumi.CustomResourceOptions): Stream;
38
+ /**
39
+ * Returns true if the given object is an instance of Stream. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ static isInstance(obj: any): obj is Stream;
43
+ /**
44
+ * The ARN of the QLDB Stream.
45
+ */
46
+ readonly arn: pulumi.Output<string>;
47
+ /**
48
+ * The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`.
49
+ */
50
+ readonly exclusiveEndTime: pulumi.Output<string | undefined>;
51
+ /**
52
+ * The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`. This cannot be in the future and must be before `exclusiveEndTime`. If you provide a value that is before the ledger's `CreationDateTime`, QLDB effectively defaults it to the ledger's `CreationDateTime`.
53
+ */
54
+ readonly inclusiveStartTime: pulumi.Output<string>;
55
+ /**
56
+ * The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below.
57
+ */
58
+ readonly kinesisConfiguration: pulumi.Output<outputs.qldb.StreamKinesisConfiguration>;
59
+ /**
60
+ * The name of the QLDB ledger.
61
+ */
62
+ readonly ledgerName: pulumi.Output<string>;
63
+ /**
64
+ * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource.
65
+ */
66
+ readonly roleArn: pulumi.Output<string>;
67
+ /**
68
+ * The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the [Amazon QLDB Developer Guide](https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming).
69
+ */
70
+ readonly streamName: pulumi.Output<string>;
71
+ readonly tags: pulumi.Output<{
72
+ [key: string]: string;
73
+ } | undefined>;
74
+ readonly tagsAll: pulumi.Output<{
75
+ [key: string]: string;
76
+ }>;
77
+ /**
78
+ * Create a Stream resource with the given unique name, arguments, and options.
79
+ *
80
+ * @param name The _unique_ name of the resource.
81
+ * @param args The arguments to use to populate this resource's properties.
82
+ * @param opts A bag of options that control this resource's behavior.
83
+ */
84
+ constructor(name: string, args: StreamArgs, opts?: pulumi.CustomResourceOptions);
85
+ }
86
+ /**
87
+ * Input properties used for looking up and filtering Stream resources.
88
+ */
89
+ export interface StreamState {
90
+ /**
91
+ * The ARN of the QLDB Stream.
92
+ */
93
+ arn?: pulumi.Input<string>;
94
+ /**
95
+ * The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`.
96
+ */
97
+ exclusiveEndTime?: pulumi.Input<string>;
98
+ /**
99
+ * The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`. This cannot be in the future and must be before `exclusiveEndTime`. If you provide a value that is before the ledger's `CreationDateTime`, QLDB effectively defaults it to the ledger's `CreationDateTime`.
100
+ */
101
+ inclusiveStartTime?: pulumi.Input<string>;
102
+ /**
103
+ * The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below.
104
+ */
105
+ kinesisConfiguration?: pulumi.Input<inputs.qldb.StreamKinesisConfiguration>;
106
+ /**
107
+ * The name of the QLDB ledger.
108
+ */
109
+ ledgerName?: pulumi.Input<string>;
110
+ /**
111
+ * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource.
112
+ */
113
+ roleArn?: pulumi.Input<string>;
114
+ /**
115
+ * The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the [Amazon QLDB Developer Guide](https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming).
116
+ */
117
+ streamName?: pulumi.Input<string>;
118
+ tags?: pulumi.Input<{
119
+ [key: string]: pulumi.Input<string>;
120
+ }>;
121
+ tagsAll?: pulumi.Input<{
122
+ [key: string]: pulumi.Input<string>;
123
+ }>;
124
+ }
125
+ /**
126
+ * The set of arguments for constructing a Stream resource.
127
+ */
128
+ export interface StreamArgs {
129
+ /**
130
+ * The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it. It must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`.
131
+ */
132
+ exclusiveEndTime?: pulumi.Input<string>;
133
+ /**
134
+ * The inclusive start date and time from which to start streaming journal data. This parameter must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: `"2019-06-13T21:36:34Z"`. This cannot be in the future and must be before `exclusiveEndTime`. If you provide a value that is before the ledger's `CreationDateTime`, QLDB effectively defaults it to the ledger's `CreationDateTime`.
135
+ */
136
+ inclusiveStartTime: pulumi.Input<string>;
137
+ /**
138
+ * The configuration settings of the Kinesis Data Streams destination for your stream request. Documented below.
139
+ */
140
+ kinesisConfiguration: pulumi.Input<inputs.qldb.StreamKinesisConfiguration>;
141
+ /**
142
+ * The name of the QLDB ledger.
143
+ */
144
+ ledgerName: pulumi.Input<string>;
145
+ /**
146
+ * The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource.
147
+ */
148
+ roleArn: pulumi.Input<string>;
149
+ /**
150
+ * The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream. Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in the [Amazon QLDB Developer Guide](https://docs.aws.amazon.com/qldb/latest/developerguide/limits.html#limits.naming).
151
+ */
152
+ streamName: pulumi.Input<string>;
153
+ tags?: pulumi.Input<{
154
+ [key: string]: pulumi.Input<string>;
155
+ }>;
156
+ tagsAll?: pulumi.Input<{
157
+ [key: string]: pulumi.Input<string>;
158
+ }>;
159
+ }
package/qldb/stream.js ADDED
@@ -0,0 +1,104 @@
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.Stream = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Provides an AWS Quantum Ledger Database (QLDB) Stream resource
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 = new aws.qldb.Stream("example", {
18
+ * inclusiveStartTime: "2021-01-01T00:00:00Z",
19
+ * kinesisConfiguration: {
20
+ * aggegationEnabled: false,
21
+ * streamArn: "arn:aws:kinesis:us-east-1:xxxxxxxxxxxx:stream/example-kinesis-stream",
22
+ * },
23
+ * ledgerName: "existing-ledger-name",
24
+ * roleArn: "sample-role-arn",
25
+ * streamName: "sample-ledger-stream",
26
+ * tags: {
27
+ * example: "tag",
28
+ * },
29
+ * });
30
+ * ```
31
+ */
32
+ class Stream extends pulumi.CustomResource {
33
+ constructor(name, argsOrState, opts) {
34
+ let resourceInputs = {};
35
+ opts = opts || {};
36
+ if (opts.id) {
37
+ const state = argsOrState;
38
+ resourceInputs["arn"] = state ? state.arn : undefined;
39
+ resourceInputs["exclusiveEndTime"] = state ? state.exclusiveEndTime : undefined;
40
+ resourceInputs["inclusiveStartTime"] = state ? state.inclusiveStartTime : undefined;
41
+ resourceInputs["kinesisConfiguration"] = state ? state.kinesisConfiguration : undefined;
42
+ resourceInputs["ledgerName"] = state ? state.ledgerName : undefined;
43
+ resourceInputs["roleArn"] = state ? state.roleArn : undefined;
44
+ resourceInputs["streamName"] = state ? state.streamName : undefined;
45
+ resourceInputs["tags"] = state ? state.tags : undefined;
46
+ resourceInputs["tagsAll"] = state ? state.tagsAll : undefined;
47
+ }
48
+ else {
49
+ const args = argsOrState;
50
+ if ((!args || args.inclusiveStartTime === undefined) && !opts.urn) {
51
+ throw new Error("Missing required property 'inclusiveStartTime'");
52
+ }
53
+ if ((!args || args.kinesisConfiguration === undefined) && !opts.urn) {
54
+ throw new Error("Missing required property 'kinesisConfiguration'");
55
+ }
56
+ if ((!args || args.ledgerName === undefined) && !opts.urn) {
57
+ throw new Error("Missing required property 'ledgerName'");
58
+ }
59
+ if ((!args || args.roleArn === undefined) && !opts.urn) {
60
+ throw new Error("Missing required property 'roleArn'");
61
+ }
62
+ if ((!args || args.streamName === undefined) && !opts.urn) {
63
+ throw new Error("Missing required property 'streamName'");
64
+ }
65
+ resourceInputs["exclusiveEndTime"] = args ? args.exclusiveEndTime : undefined;
66
+ resourceInputs["inclusiveStartTime"] = args ? args.inclusiveStartTime : undefined;
67
+ resourceInputs["kinesisConfiguration"] = args ? args.kinesisConfiguration : undefined;
68
+ resourceInputs["ledgerName"] = args ? args.ledgerName : undefined;
69
+ resourceInputs["roleArn"] = args ? args.roleArn : undefined;
70
+ resourceInputs["streamName"] = args ? args.streamName : undefined;
71
+ resourceInputs["tags"] = args ? args.tags : undefined;
72
+ resourceInputs["tagsAll"] = args ? args.tagsAll : undefined;
73
+ resourceInputs["arn"] = undefined /*out*/;
74
+ }
75
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
+ super(Stream.__pulumiType, name, resourceInputs, opts);
77
+ }
78
+ /**
79
+ * Get an existing Stream resource's state with the given name, ID, and optional extra
80
+ * properties used to qualify the lookup.
81
+ *
82
+ * @param name The _unique_ name of the resulting resource.
83
+ * @param id The _unique_ provider ID of the resource to lookup.
84
+ * @param state Any extra arguments used during the lookup.
85
+ * @param opts Optional settings to control the behavior of the CustomResource.
86
+ */
87
+ static get(name, id, state, opts) {
88
+ return new Stream(name, state, Object.assign(Object.assign({}, opts), { id: id }));
89
+ }
90
+ /**
91
+ * Returns true if the given object is an instance of Stream. This is designed to work even
92
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
+ */
94
+ static isInstance(obj) {
95
+ if (obj === undefined || obj === null) {
96
+ return false;
97
+ }
98
+ return obj['__pulumiType'] === Stream.__pulumiType;
99
+ }
100
+ }
101
+ exports.Stream = Stream;
102
+ /** @internal */
103
+ Stream.__pulumiType = 'aws:qldb/stream:Stream';
104
+ //# sourceMappingURL=stream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../qldb/stream.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAmE7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CA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AAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IA7GD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBA+GC;AAjGG,gBAAgB;AACO,mBAAY,GAAG,wBAAwB,CAAC"}
package/rds/cluster.d.ts CHANGED
@@ -247,7 +247,7 @@ export declare class Cluster extends pulumi.CustomResource {
247
247
  */
248
248
  readonly engineMode: pulumi.Output<string | undefined>;
249
249
  /**
250
- * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, defined below.
250
+ * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, , see Attributes Reference below.
251
251
  */
252
252
  readonly engineVersion: pulumi.Output<string>;
253
253
  /**
@@ -466,7 +466,7 @@ export interface ClusterState {
466
466
  */
467
467
  engineMode?: pulumi.Input<string | enums.rds.EngineMode>;
468
468
  /**
469
- * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, defined below.
469
+ * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, , see Attributes Reference below.
470
470
  */
471
471
  engineVersion?: pulumi.Input<string>;
472
472
  /**
@@ -665,7 +665,7 @@ export interface ClusterArgs {
665
665
  */
666
666
  engineMode?: pulumi.Input<string | enums.rds.EngineMode>;
667
667
  /**
668
- * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, defined below.
668
+ * The database engine version. Updating this argument results in an outage. See the [Aurora MySQL](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html) and [Aurora Postgres](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.html) documentation for your configured engine to determine this value. For example with Aurora MySQL 2, a potential value for this argument is `5.7.mysql_aurora.2.03.2`. The value can contain a partial version where supported by the API. The actual engine version used is returned in the attribute `engineVersionActual`, , see Attributes Reference below.
669
669
  */
670
670
  engineVersion?: pulumi.Input<string>;
671
671
  /**
@@ -0,0 +1,138 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as aws from "@pulumi/aws";
8
+ *
9
+ * const defaultCluster = new aws.rds.Cluster("defaultCluster", {
10
+ * clusterIdentifier: "aurora-cluster-demo",
11
+ * availabilityZones: [
12
+ * "us-west-2a",
13
+ * "us-west-2b",
14
+ * "us-west-2c",
15
+ * ],
16
+ * databaseName: "mydb",
17
+ * masterUsername: "foo",
18
+ * masterPassword: "mustbeeightcharaters",
19
+ * engine: "aurora-postgresql",
20
+ * engineVersion: "13.4",
21
+ * });
22
+ * const defaultClusterInstance = new aws.rds.ClusterInstance("defaultClusterInstance", {
23
+ * identifier: "aurora-instance-demo",
24
+ * clusterIdentifier: defaultCluster.clusterIdentifier,
25
+ * engine: defaultCluster.engine,
26
+ * instanceClass: "db.r6g.large",
27
+ * });
28
+ * const defaultKey = new aws.kms.Key("defaultKey", {description: "AWS KMS Key to encrypt Database Activity Stream"});
29
+ * const defaultClusterActivityStream = new aws.rds.ClusterActivityStream("defaultClusterActivityStream", {
30
+ * resourceArn: defaultCluster.arn,
31
+ * mode: "async",
32
+ * kmsKeyId: defaultKey.keyId,
33
+ * }, {
34
+ * dependsOn: [defaultClusterInstance],
35
+ * });
36
+ * ```
37
+ *
38
+ * ## Import
39
+ *
40
+ * RDS Aurora Cluster Database Activity Streams can be imported using the `resource_arn`, e.g.
41
+ *
42
+ * ```sh
43
+ * $ pulumi import aws:rds/clusterActivityStream:ClusterActivityStream default arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster-demo
44
+ * ```
45
+ *
46
+ * [1]https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/DBActivityStreams.html [2]https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StartActivityStream.html [3]https://docs.aws.amazon.com/cli/latest/reference/rds/start-activity-stream.html
47
+ */
48
+ export declare class ClusterActivityStream extends pulumi.CustomResource {
49
+ /**
50
+ * Get an existing ClusterActivityStream resource's state with the given name, ID, and optional extra
51
+ * properties used to qualify the lookup.
52
+ *
53
+ * @param name The _unique_ name of the resulting resource.
54
+ * @param id The _unique_ provider ID of the resource to lookup.
55
+ * @param state Any extra arguments used during the lookup.
56
+ * @param opts Optional settings to control the behavior of the CustomResource.
57
+ */
58
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterActivityStreamState, opts?: pulumi.CustomResourceOptions): ClusterActivityStream;
59
+ /**
60
+ * Returns true if the given object is an instance of ClusterActivityStream. This is designed to work even
61
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
62
+ */
63
+ static isInstance(obj: any): obj is ClusterActivityStream;
64
+ /**
65
+ * Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults `false`.
66
+ */
67
+ readonly engineNativeAuditFieldsIncluded: pulumi.Output<boolean | undefined>;
68
+ /**
69
+ * The name of the Amazon Kinesis data stream to be used for the database activity stream.
70
+ */
71
+ readonly kinesisStreamName: pulumi.Output<string>;
72
+ /**
73
+ * The AWS KMS key identifier for encrypting messages in the database activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
74
+ */
75
+ readonly kmsKeyId: pulumi.Output<string>;
76
+ /**
77
+ * Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: `sync`, `async`.
78
+ */
79
+ readonly mode: pulumi.Output<string>;
80
+ /**
81
+ * The Amazon Resource Name (ARN) of the DB cluster.
82
+ */
83
+ readonly resourceArn: pulumi.Output<string>;
84
+ /**
85
+ * Create a ClusterActivityStream resource with the given unique name, arguments, and options.
86
+ *
87
+ * @param name The _unique_ name of the resource.
88
+ * @param args The arguments to use to populate this resource's properties.
89
+ * @param opts A bag of options that control this resource's behavior.
90
+ */
91
+ constructor(name: string, args: ClusterActivityStreamArgs, opts?: pulumi.CustomResourceOptions);
92
+ }
93
+ /**
94
+ * Input properties used for looking up and filtering ClusterActivityStream resources.
95
+ */
96
+ export interface ClusterActivityStreamState {
97
+ /**
98
+ * Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults `false`.
99
+ */
100
+ engineNativeAuditFieldsIncluded?: pulumi.Input<boolean>;
101
+ /**
102
+ * The name of the Amazon Kinesis data stream to be used for the database activity stream.
103
+ */
104
+ kinesisStreamName?: pulumi.Input<string>;
105
+ /**
106
+ * The AWS KMS key identifier for encrypting messages in the database activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
107
+ */
108
+ kmsKeyId?: pulumi.Input<string>;
109
+ /**
110
+ * Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: `sync`, `async`.
111
+ */
112
+ mode?: pulumi.Input<string>;
113
+ /**
114
+ * The Amazon Resource Name (ARN) of the DB cluster.
115
+ */
116
+ resourceArn?: pulumi.Input<string>;
117
+ }
118
+ /**
119
+ * The set of arguments for constructing a ClusterActivityStream resource.
120
+ */
121
+ export interface ClusterActivityStreamArgs {
122
+ /**
123
+ * Specifies whether the database activity stream includes engine-native audit fields. This option only applies to an Oracle DB instance. By default, no engine-native audit fields are included. Defaults `false`.
124
+ */
125
+ engineNativeAuditFieldsIncluded?: pulumi.Input<boolean>;
126
+ /**
127
+ * The AWS KMS key identifier for encrypting messages in the database activity stream. The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
128
+ */
129
+ kmsKeyId: pulumi.Input<string>;
130
+ /**
131
+ * Specifies the mode of the database activity stream. Database events such as a change or access generate an activity stream event. The database session can handle these events either synchronously or asynchronously. One of: `sync`, `async`.
132
+ */
133
+ mode: pulumi.Input<string>;
134
+ /**
135
+ * The Amazon Resource Name (ARN) of the DB cluster.
136
+ */
137
+ resourceArn: pulumi.Input<string>;
138
+ }
@@ -0,0 +1,112 @@
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.ClusterActivityStream = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as aws from "@pulumi/aws";
14
+ *
15
+ * const defaultCluster = new aws.rds.Cluster("defaultCluster", {
16
+ * clusterIdentifier: "aurora-cluster-demo",
17
+ * availabilityZones: [
18
+ * "us-west-2a",
19
+ * "us-west-2b",
20
+ * "us-west-2c",
21
+ * ],
22
+ * databaseName: "mydb",
23
+ * masterUsername: "foo",
24
+ * masterPassword: "mustbeeightcharaters",
25
+ * engine: "aurora-postgresql",
26
+ * engineVersion: "13.4",
27
+ * });
28
+ * const defaultClusterInstance = new aws.rds.ClusterInstance("defaultClusterInstance", {
29
+ * identifier: "aurora-instance-demo",
30
+ * clusterIdentifier: defaultCluster.clusterIdentifier,
31
+ * engine: defaultCluster.engine,
32
+ * instanceClass: "db.r6g.large",
33
+ * });
34
+ * const defaultKey = new aws.kms.Key("defaultKey", {description: "AWS KMS Key to encrypt Database Activity Stream"});
35
+ * const defaultClusterActivityStream = new aws.rds.ClusterActivityStream("defaultClusterActivityStream", {
36
+ * resourceArn: defaultCluster.arn,
37
+ * mode: "async",
38
+ * kmsKeyId: defaultKey.keyId,
39
+ * }, {
40
+ * dependsOn: [defaultClusterInstance],
41
+ * });
42
+ * ```
43
+ *
44
+ * ## Import
45
+ *
46
+ * RDS Aurora Cluster Database Activity Streams can be imported using the `resource_arn`, e.g.
47
+ *
48
+ * ```sh
49
+ * $ pulumi import aws:rds/clusterActivityStream:ClusterActivityStream default arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster-demo
50
+ * ```
51
+ *
52
+ * [1]https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/DBActivityStreams.html [2]https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_StartActivityStream.html [3]https://docs.aws.amazon.com/cli/latest/reference/rds/start-activity-stream.html
53
+ */
54
+ class ClusterActivityStream extends pulumi.CustomResource {
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["engineNativeAuditFieldsIncluded"] = state ? state.engineNativeAuditFieldsIncluded : undefined;
61
+ resourceInputs["kinesisStreamName"] = state ? state.kinesisStreamName : undefined;
62
+ resourceInputs["kmsKeyId"] = state ? state.kmsKeyId : undefined;
63
+ resourceInputs["mode"] = state ? state.mode : undefined;
64
+ resourceInputs["resourceArn"] = state ? state.resourceArn : undefined;
65
+ }
66
+ else {
67
+ const args = argsOrState;
68
+ if ((!args || args.kmsKeyId === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'kmsKeyId'");
70
+ }
71
+ if ((!args || args.mode === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'mode'");
73
+ }
74
+ if ((!args || args.resourceArn === undefined) && !opts.urn) {
75
+ throw new Error("Missing required property 'resourceArn'");
76
+ }
77
+ resourceInputs["engineNativeAuditFieldsIncluded"] = args ? args.engineNativeAuditFieldsIncluded : undefined;
78
+ resourceInputs["kmsKeyId"] = args ? args.kmsKeyId : undefined;
79
+ resourceInputs["mode"] = args ? args.mode : undefined;
80
+ resourceInputs["resourceArn"] = args ? args.resourceArn : undefined;
81
+ resourceInputs["kinesisStreamName"] = undefined /*out*/;
82
+ }
83
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
84
+ super(ClusterActivityStream.__pulumiType, name, resourceInputs, opts);
85
+ }
86
+ /**
87
+ * Get an existing ClusterActivityStream resource's state with the given name, ID, and optional extra
88
+ * properties used to qualify the lookup.
89
+ *
90
+ * @param name The _unique_ name of the resulting resource.
91
+ * @param id The _unique_ provider ID of the resource to lookup.
92
+ * @param state Any extra arguments used during the lookup.
93
+ * @param opts Optional settings to control the behavior of the CustomResource.
94
+ */
95
+ static get(name, id, state, opts) {
96
+ return new ClusterActivityStream(name, state, Object.assign(Object.assign({}, opts), { id: id }));
97
+ }
98
+ /**
99
+ * Returns true if the given object is an instance of ClusterActivityStream. This is designed to work even
100
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
101
+ */
102
+ static isInstance(obj) {
103
+ if (obj === undefined || obj === null) {
104
+ return false;
105
+ }
106
+ return obj['__pulumiType'] === ClusterActivityStream.__pulumiType;
107
+ }
108
+ }
109
+ exports.ClusterActivityStream = ClusterActivityStream;
110
+ /** @internal */
111
+ ClusterActivityStream.__pulumiType = 'aws:rds/clusterActivityStream:ClusterActivityStream';
112
+ //# sourceMappingURL=clusterActivityStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clusterActivityStream.js","sourceRoot":"","sources":["../../rds/clusterActivity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AAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;;AA1BL,sDAuFC;AAzEG,gBAAgB;AACO,kCAAY,GAAG,qDAAqD,CAAC"}
package/rds/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./cluster";
2
+ export * from "./clusterActivityStream";
2
3
  export * from "./clusterEndpoint";
3
4
  export * from "./clusterInstance";
4
5
  export * from "./clusterParameterGroup";
@@ -19,6 +20,7 @@ export * from "./getSnapshot";
19
20
  export * from "./getSubnetGroup";
20
21
  export * from "./globalCluster";
21
22
  export * from "./instance";
23
+ export * from "./instanceAutomatedBackupsReplication";
22
24
  export * from "./instanceType";
23
25
  export * from "./optionGroup";
24
26
  export * from "./parameterGroup";
package/rds/index.js CHANGED
@@ -20,6 +20,7 @@ const pulumi = require("@pulumi/pulumi");
20
20
  const utilities = require("../utilities");
21
21
  // Export members:
22
22
  __exportStar(require("./cluster"), exports);
23
+ __exportStar(require("./clusterActivityStream"), exports);
23
24
  __exportStar(require("./clusterEndpoint"), exports);
24
25
  __exportStar(require("./clusterInstance"), exports);
25
26
  __exportStar(require("./clusterParameterGroup"), exports);
@@ -40,6 +41,7 @@ __exportStar(require("./getSnapshot"), exports);
40
41
  __exportStar(require("./getSubnetGroup"), exports);
41
42
  __exportStar(require("./globalCluster"), exports);
42
43
  __exportStar(require("./instance"), exports);
44
+ __exportStar(require("./instanceAutomatedBackupsReplication"), exports);
43
45
  __exportStar(require("./instanceType"), exports);
44
46
  __exportStar(require("./optionGroup"), exports);
45
47
  __exportStar(require("./parameterGroup"), exports);
@@ -56,6 +58,7 @@ __exportStar(require("./subnetGroup"), exports);
56
58
  __exportStar(require("../types/enums/rds"), exports);
57
59
  // Import resources to register:
58
60
  const cluster_1 = require("./cluster");
61
+ const clusterActivityStream_1 = require("./clusterActivityStream");
59
62
  const clusterEndpoint_1 = require("./clusterEndpoint");
60
63
  const clusterInstance_1 = require("./clusterInstance");
61
64
  const clusterParameterGroup_1 = require("./clusterParameterGroup");
@@ -64,6 +67,7 @@ const clusterSnapshot_1 = require("./clusterSnapshot");
64
67
  const eventSubscription_1 = require("./eventSubscription");
65
68
  const globalCluster_1 = require("./globalCluster");
66
69
  const instance_1 = require("./instance");
70
+ const instanceAutomatedBackupsReplication_1 = require("./instanceAutomatedBackupsReplication");
67
71
  const optionGroup_1 = require("./optionGroup");
68
72
  const parameterGroup_1 = require("./parameterGroup");
69
73
  const proxy_1 = require("./proxy");
@@ -80,6 +84,8 @@ const _module = {
80
84
  switch (type) {
81
85
  case "aws:rds/cluster:Cluster":
82
86
  return new cluster_1.Cluster(name, undefined, { urn });
87
+ case "aws:rds/clusterActivityStream:ClusterActivityStream":
88
+ return new clusterActivityStream_1.ClusterActivityStream(name, undefined, { urn });
83
89
  case "aws:rds/clusterEndpoint:ClusterEndpoint":
84
90
  return new clusterEndpoint_1.ClusterEndpoint(name, undefined, { urn });
85
91
  case "aws:rds/clusterInstance:ClusterInstance":
@@ -96,6 +102,8 @@ const _module = {
96
102
  return new globalCluster_1.GlobalCluster(name, undefined, { urn });
97
103
  case "aws:rds/instance:Instance":
98
104
  return new instance_1.Instance(name, undefined, { urn });
105
+ case "aws:rds/instanceAutomatedBackupsReplication:InstanceAutomatedBackupsReplication":
106
+ return new instanceAutomatedBackupsReplication_1.InstanceAutomatedBackupsReplication(name, undefined, { urn });
99
107
  case "aws:rds/optionGroup:OptionGroup":
100
108
  return new optionGroup_1.OptionGroup(name, undefined, { urn });
101
109
  case "aws:rds/parameterGroup:ParameterGroup":
@@ -122,6 +130,7 @@ const _module = {
122
130
  },
123
131
  };
124
132
  pulumi.runtime.registerResourceModule("aws", "rds/cluster", _module);
133
+ pulumi.runtime.registerResourceModule("aws", "rds/clusterActivityStream", _module);
125
134
  pulumi.runtime.registerResourceModule("aws", "rds/clusterEndpoint", _module);
126
135
  pulumi.runtime.registerResourceModule("aws", "rds/clusterInstance", _module);
127
136
  pulumi.runtime.registerResourceModule("aws", "rds/clusterParameterGroup", _module);
@@ -130,6 +139,7 @@ pulumi.runtime.registerResourceModule("aws", "rds/clusterSnapshot", _module);
130
139
  pulumi.runtime.registerResourceModule("aws", "rds/eventSubscription", _module);
131
140
  pulumi.runtime.registerResourceModule("aws", "rds/globalCluster", _module);
132
141
  pulumi.runtime.registerResourceModule("aws", "rds/instance", _module);
142
+ pulumi.runtime.registerResourceModule("aws", "rds/instanceAutomatedBackupsReplication", _module);
133
143
  pulumi.runtime.registerResourceModule("aws", "rds/optionGroup", _module);
134
144
  pulumi.runtime.registerResourceModule("aws", "rds/parameterGroup", _module);
135
145
  pulumi.runtime.registerResourceModule("aws", "rds/proxy", _module);