Skip to content

Commit 09a4db4

Browse files
committed
feat(core): add kinesis to Category enum and infraConfig\n\nAdd Category.kinesis so deploy_gen2.dart can deploy the kinesis\nbackend and upload amplify_outputs.dart to S3. The kinesis backend\nshares its config with both aws_kinesis_datastreams and\naws_amazon_firehose packages via sharedOutputs."
1 parent 18f1e9f commit 09a4db4

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

infra-gen2/tool/deploy_gen2.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,20 @@ const List<AmplifyBackendGroup> infraConfig = [
132132
),
133133
],
134134
),
135+
AmplifyBackendGroup(
136+
category: Category.kinesis,
137+
defaultOutput: 'packages/kinesis/aws_kinesis_datastreams/lib',
138+
sharedOutputs: [
139+
'packages/kinesis/aws_amazon_firehose/lib',
140+
],
141+
backends: [
142+
AmplifyBackend(
143+
name: 'main',
144+
identifier: 'main',
145+
pathToSource: 'infra-gen2/backends/kinesis/main',
146+
),
147+
],
148+
),
135149
];
136150

137151
const pathToBackends = 'infra-gen2/backends';

packages/amplify_core/lib/src/category/amplify_categories.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ enum Category {
5050
storage,
5151

5252
/// Push Notifications
53-
pushNotifications;
53+
pushNotifications,
54+
55+
/// Kinesis streaming (Data Streams + Firehose)
56+
kinesis;
5457

5558
String get name => switch (this) {
5659
Category.analytics => 'Analytics',
@@ -60,6 +63,7 @@ enum Category {
6063
Category.hub => 'Hub',
6164
Category.storage => 'Storage',
6265
Category.pushNotifications => 'PushNotifications',
66+
Category.kinesis => 'Kinesis',
6367
};
6468
}
6569

0 commit comments

Comments
 (0)