Skip to content

Commit 1f44f11

Browse files
author
Dane Pilcher
authored
chore: prep data migrations release (#2707)
1 parent 0bba9c5 commit 1f44f11

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.changeset/shaky-news-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/backend-data': patch
3+
---
4+
5+
Remove experimental tag from migratedAmplifyGen1DynamoDbTableMappings

packages/backend-data/src/factory.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ import {
4242
CDKContextKey,
4343
TagName,
4444
} from '@aws-amplify/platform-core';
45-
import {
46-
Annotations,
47-
Aspects,
48-
IAspect,
49-
RemovalPolicy,
50-
Tags,
51-
} from 'aws-cdk-lib';
45+
import { Aspects, IAspect, RemovalPolicy, Tags } from 'aws-cdk-lib';
5246
import { convertJsResolverDefinition } from './convert_js_resolvers.js';
5347
import { AppSyncPolicyGenerator } from './app_sync_policy_generator.js';
5448
import {
@@ -166,10 +160,6 @@ class DataGenerator implements ConstructContainerEntryGenerator {
166160
: scope.node.tryGetContext(CDKContextKey.BACKEND_NAME);
167161
// ensure all branch names are unique
168162
if (this.props.migratedAmplifyGen1DynamoDbTableMappings) {
169-
// Remove this warning for GA
170-
Annotations.of(scope).addInfo(
171-
'migratedAmplifyGen1DynamoDbTableMappings is experimental and is not recommended for production use. This functionality may be changed or removed without warning.',
172-
);
173163
const branchNames = new Set<string>();
174164
for (const tableMap of this.props
175165
.migratedAmplifyGen1DynamoDbTableMappings) {

packages/backend-data/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export type DataProps = {
153153
/**
154154
* Mapping of model name to existing DynamoDB table that should be used as the data source.
155155
* Each element in the array represents a mapping for a specific branch.
156-
* @experimental migratedAmplifyGen1DynamoDbTableMappings is experimental and is not recommended for production use. This functionality may be changed or removed without warning.
157156
*/
158157
migratedAmplifyGen1DynamoDbTableMappings?: AmplifyGen1DynamoDbTableMapping[];
159158
};

0 commit comments

Comments
 (0)