Skip to content

Commit 720b3c0

Browse files
authored
chore(iot-actions-alpha): update references of aws-kinesisfirehose-alpha (#33760)
### Reason for this change References to stabilized aws-kinsisfirehose-alpha module still exist. ### Description of changes - Updated `@aws-cdk/aws-kinesisfirehose-alpha` and `@aws-cdk/aws-kinesisfirehose-destinations-alpha` to `aws-cdk-lib/aws-kinesisfirehose` - Removed dependency to `@aws-cdk/aws-kinesisfirehose-alpha` and `@aws-cdk/aws-kinesisfirehose-destinations-alpha` ### Describe any new or updated permissions being added N/A ### Description of how you validated changes Unit tests passed. No snapshot changes are made. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 242690f commit 720b3c0

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

packages/@aws-cdk/aws-iot-actions-alpha/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,11 @@ The code snippet below creates an AWS IoT Rule that puts records to Put records
238238
to Kinesis Data Firehose stream when it is triggered.
239239

240240
```ts
241-
import * as firehose from '@aws-cdk/aws-kinesisfirehose-alpha';
242-
import * as destinations from '@aws-cdk/aws-kinesisfirehose-destinations-alpha';
241+
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
243242

244243
const bucket = new s3.Bucket(this, 'MyBucket');
245244
const stream = new firehose.DeliveryStream(this, 'MyStream', {
246-
destination: new destinations.S3Bucket(bucket),
245+
destination: new firehose.S3Bucket(bucket),
247246
});
248247

249248
const topicRule = new iot.TopicRule(this, 'TopicRule', {

packages/@aws-cdk/aws-iot-actions-alpha/lib/firehose-put-record-action.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as iam from 'aws-cdk-lib/aws-iam';
2+
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
23
import * as iot from '@aws-cdk/aws-iot-alpha';
3-
import * as firehose from '@aws-cdk/aws-kinesisfirehose-alpha';
44
import { CommonActionProps } from './common-action-props';
55
import { singletonActionRole } from './private/role';
66

packages/@aws-cdk/aws-iot-actions-alpha/package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@
8888
"jest": "^29.7.0",
8989
"constructs": "^10.0.0",
9090
"aws-cdk-lib": "0.0.0",
91-
"@aws-cdk/aws-kinesisfirehose-destinations-alpha": "0.0.0",
9291
"@aws-cdk/integ-tests-alpha": "0.0.0",
9392
"@aws-cdk/aws-iot-alpha": "0.0.0",
94-
"@aws-cdk/aws-iotevents-alpha": "0.0.0",
95-
"@aws-cdk/aws-kinesisfirehose-alpha": "0.0.0"
93+
"@aws-cdk/aws-iotevents-alpha": "0.0.0"
9694
},
9795
"dependencies": {
9896
"case": "1.6.3"
@@ -101,8 +99,6 @@
10199
"peerDependencies": {
102100
"@aws-cdk/aws-iot-alpha": "0.0.0",
103101
"@aws-cdk/aws-iotevents-alpha": "0.0.0",
104-
"@aws-cdk/aws-kinesisfirehose-alpha": "0.0.0",
105-
"@aws-cdk/aws-kinesisfirehose-destinations-alpha": "0.0.0",
106102
"aws-cdk-lib": "^0.0.0",
107103
"constructs": "^10.0.0"
108104
},

packages/@aws-cdk/aws-iot-actions-alpha/test/kinesis-firehose/firehose-put-record-action.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Template, Match } from 'aws-cdk-lib/assertions';
22
import * as iam from 'aws-cdk-lib/aws-iam';
33
import * as iot from '@aws-cdk/aws-iot-alpha';
4-
import * as firehose from '@aws-cdk/aws-kinesisfirehose-alpha';
54
import * as cdk from 'aws-cdk-lib';
5+
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
66
import * as actions from '../../lib';
77

88
test('Default firehose stream action', () => {

packages/@aws-cdk/aws-iot-actions-alpha/test/kinesis-firehose/integ.firehose-put-record-action.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as iot from '@aws-cdk/aws-iot-alpha';
2-
import * as firehose from '@aws-cdk/aws-kinesisfirehose-alpha';
3-
import * as destinations from '@aws-cdk/aws-kinesisfirehose-destinations-alpha';
2+
import * as firehose from 'aws-cdk-lib/aws-kinesisfirehose';
43
import * as s3 from 'aws-cdk-lib/aws-s3';
54
import * as cdk from 'aws-cdk-lib';
65
import * as actions from '../../lib';
@@ -21,7 +20,7 @@ class TestStack extends cdk.Stack {
2120
removalPolicy: cdk.RemovalPolicy.DESTROY,
2221
});
2322
const stream = new firehose.DeliveryStream(this, 'MyStream', {
24-
destination: new destinations.S3Bucket(bucket),
23+
destination: new firehose.S3Bucket(bucket),
2524
});
2625
topicRule.addAction(
2726
new actions.FirehosePutRecordAction(stream, {

0 commit comments

Comments
 (0)