-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental stackmapping changes for Gen2 #1593
base: main
Are you sure you want to change the base?
Changes from 7 commits
7fb5080
68a1655
ee38b52
f272100
3198840
4de927f
295d596
b168169
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@aws-amplify/backend-data': minor | ||
--- | ||
|
||
Added experimental option to map data resources to nested stacks |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,6 +239,7 @@ class DataGenerator implements ConstructContainerEntryGenerator { | |
authorizationModes, | ||
outputStorageStrategy: this.outputStorageStrategy, | ||
functionNameMap, | ||
stackMappings: this.props.experimentalStackMapping, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this |
||
translationBehavior: { | ||
sandboxModeEnabled, | ||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,6 +139,12 @@ export type DataProps = { | |
* Functions invokable by the API. The specific input type of the function is subject to change or removal. | ||
*/ | ||
functions?: Record<string, ConstructFactory<AmplifyFunction>>; | ||
|
||
/** | ||
* ExperimentalStackMapping override the assigned nested stack on a per-resource basis. Only applies to resolvers, and takes the form | ||
* { <logicalId>: <stackName> } | ||
*/ | ||
experimentalStackMapping?: Record<string, string>; | ||
Comment on lines
+143
to
+147
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have not yet finalized a method to expose experimental APIs so please hold with this change. |
||
}; | ||
|
||
export type AmplifyDataError = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's review the API design internally. We may need a consolidated attribute to configure experimental features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's just works like gen1. It was working property on Gen 1. Now it can be usable on Gen 2. I don't know if it's experimental or not for this reason but it's works on Cloudformation same as gen 1.
But changing stacks with gen 1 or gen 2 not effecting resource limit on Cloudformation. These are still hits the resource limit