@aws-amplify/graphql-api-construct 1.16.1-ai-next.1 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.jsii +159 -86
- package/API.md +11 -1
- package/CHANGELOG.md +5 -5
- package/lib/amplify-dynamodb-table-wrapper.js +1 -1
- package/lib/amplify-graphql-api.js +14 -2
- package/lib/amplify-graphql-definition.js +1 -1
- package/lib/model-datasource-strategy-types.d.ts +21 -1
- package/lib/model-datasource-strategy-types.js +1 -1
- package/lib/sql-model-datasource-strategy.js +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.js +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-auth-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-auth-transformer/package.json +14 -13
- package/node_modules/@aws-amplify/graphql-conversation-transformer/CHANGELOG.md +5 -5
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/graphql-types/message-model.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/resolvers/templates/assistant-streaming-mutation-resolver-fn.template.js +0 -2
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-field-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js +10 -10
- package/node_modules/@aws-amplify/graphql-conversation-transformer/lib/transformer-steps/conversation-resolver-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-conversation-transformer/package.json +10 -10
- package/node_modules/@aws-amplify/graphql-default-value-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-default-value-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-default-value-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-directives/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-directives/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js +1 -1
- package/node_modules/@aws-amplify/graphql-directives/lib/directives/belongs-to.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-directives/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-function-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-function-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-function-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-generation-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-generation-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-generation-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-http-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-http-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-http-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-index-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-index-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-index-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/lib/assets/mapping-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-maps-to-transformer/package.json +12 -11
- package/node_modules/@aws-amplify/graphql-model-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js +7 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/graphql-model-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-notification-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/rds-patching-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js +12 -3
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamo-model-resource-generator.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts +2 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js +4 -2
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-dynamodb-table-construct/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js +6 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/amplify-table-manager-handler.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts +7 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.d.ts.map +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js +205 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.js.map +1 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/.package-lock.json +13 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/LICENSE +47 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/README.md +18 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/index.js +1848 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/node_modules/lodash.isequal/package.json +16 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package-lock.json +21 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/lib/resources/amplify-dynamodb-table/amplify-table-manager-lambda/package.json +11 -0
- package/node_modules/@aws-amplify/graphql-model-transformer/package.json +13 -9
- package/node_modules/@aws-amplify/graphql-predictions-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-predictions-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/lib/predictionsLambdaFunction.zip +0 -0
- package/node_modules/@aws-amplify/graphql-predictions-transformer/package.json +8 -7
- package/node_modules/@aws-amplify/graphql-relational-transformer/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-relational-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js +6 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/graphql-belongs-to-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-many/has-many-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js +7 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/has-one/has-one-directive-ddb-references-transformer.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts +1 -0
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js +9 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/lib/utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-relational-transformer/package.json +10 -9
- package/node_modules/@aws-amplify/graphql-searchable-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-searchable-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/lib/streaming-lambda.zip +0 -0
- package/node_modules/@aws-amplify/graphql-searchable-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-sql-transformer/CHANGELOG.md +1 -1
- package/node_modules/@aws-amplify/graphql-sql-transformer/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-sql-transformer/package.json +9 -8
- package/node_modules/@aws-amplify/graphql-transformer/CHANGELOG.md +1 -5
- package/node_modules/@aws-amplify/graphql-transformer/package.json +18 -18
- package/node_modules/@aws-amplify/graphql-transformer-core/API.md +4 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/CHANGELOG.md +4 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/index.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts +2 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js +9 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/lib/utils/model-datasource-strategy-utils.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-core/package.json +6 -5
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/API.md +11 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/CHANGELOG.md +6 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/LICENSE +201 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts +6 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.d.ts.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/lib/model-datasource/types.js.map +1 -1
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/package.json +3 -2
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/src/model-datasource/types.ts +15 -0
- package/node_modules/@aws-amplify/graphql-transformer-interfaces/tsconfig.tsbuildinfo +1 -1
- package/node_modules/graphql-transformer-common/CHANGELOG.md +1 -1
- package/node_modules/graphql-transformer-common/LICENSE +201 -0
- package/node_modules/graphql-transformer-common/package.json +3 -2
- package/package.json +21 -21
- package/src/amplify-graphql-api.ts +16 -1
- package/src/model-datasource-strategy-types.ts +25 -0
- package/src/types.ts +1 -1
@@ -0,0 +1,205 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getImportedTableComparisonProperties = exports.getExpectedTableProperties = exports.validateImportedTableProperties = exports.importTable = void 0;
|
7
|
+
const lodash_isequal_1 = __importDefault(require("lodash.isequal"));
|
8
|
+
const client_dynamodb_1 = require("@aws-sdk/client-dynamodb");
|
9
|
+
const importTable = async (createTableInput) => {
|
10
|
+
const ddbClient = new client_dynamodb_1.DynamoDB();
|
11
|
+
console.log('Initiating table import process');
|
12
|
+
console.log(`Fetching current state of table ${createTableInput.TableName}`);
|
13
|
+
const describeTableResult = await ddbClient.describeTable({ TableName: createTableInput.TableName });
|
14
|
+
if (!describeTableResult.Table) {
|
15
|
+
throw new Error(`Could not find ${createTableInput.TableName} to update`);
|
16
|
+
}
|
17
|
+
console.log('Current table state: ', describeTableResult);
|
18
|
+
const expectedTableProperties = (0, exports.getExpectedTableProperties)(createTableInput);
|
19
|
+
const importedTableProperties = (0, exports.getImportedTableComparisonProperties)(describeTableResult.Table);
|
20
|
+
(0, exports.validateImportedTableProperties)(importedTableProperties, expectedTableProperties);
|
21
|
+
const result = {
|
22
|
+
PhysicalResourceId: describeTableResult.Table.TableName,
|
23
|
+
Data: {
|
24
|
+
TableArn: describeTableResult.Table.TableArn,
|
25
|
+
TableStreamArn: describeTableResult.Table.LatestStreamArn,
|
26
|
+
TableName: describeTableResult.Table.TableName,
|
27
|
+
},
|
28
|
+
};
|
29
|
+
console.log('Returning result: ', result);
|
30
|
+
return result;
|
31
|
+
};
|
32
|
+
exports.importTable = importTable;
|
33
|
+
const validateImportedTableProperties = (importedTableProperties, expectedTableProperties) => {
|
34
|
+
const errors = [];
|
35
|
+
const assertEqual = (propertyName, imported, expected) => {
|
36
|
+
if (!(0, lodash_isequal_1.default)(imported, expected)) {
|
37
|
+
errors.push(`${propertyName} does not match the expected value.\nActual: ${JSON.stringify(imported)}\nExpected: ${JSON.stringify(expected)}`);
|
38
|
+
}
|
39
|
+
};
|
40
|
+
const sanitizedImportedTableProperties = JSON.parse(JSON.stringify(importedTableProperties));
|
41
|
+
const sanitizedExpectedTableProperties = JSON.parse(JSON.stringify(expectedTableProperties));
|
42
|
+
assertEqual('AttributeDefinitions', sanitizedImportedTableProperties.AttributeDefinitions, sanitizedExpectedTableProperties.AttributeDefinitions);
|
43
|
+
assertEqual('KeySchema', sanitizedImportedTableProperties.KeySchema, sanitizedExpectedTableProperties.KeySchema);
|
44
|
+
assertEqual('GlobalSecondaryIndexes', sanitizedImportedTableProperties.GlobalSecondaryIndexes, sanitizedExpectedTableProperties.GlobalSecondaryIndexes);
|
45
|
+
assertEqual('BillingModeSummary', sanitizedImportedTableProperties.BillingModeSummary, sanitizedExpectedTableProperties.BillingModeSummary);
|
46
|
+
assertEqual('ProvisionedThroughput', sanitizedImportedTableProperties.ProvisionedThroughput, sanitizedExpectedTableProperties.ProvisionedThroughput);
|
47
|
+
assertEqual('StreamSpecification', sanitizedImportedTableProperties.StreamSpecification, sanitizedExpectedTableProperties.StreamSpecification);
|
48
|
+
assertEqual('SSEDescription', sanitizedImportedTableProperties.SSEDescription, sanitizedExpectedTableProperties.SSEDescription);
|
49
|
+
assertEqual('DeletionProtectionEnabled', sanitizedImportedTableProperties.DeletionProtectionEnabled, sanitizedExpectedTableProperties.DeletionProtectionEnabled);
|
50
|
+
if (errors.length > 0) {
|
51
|
+
throw new Error(`Imported table properties did not match the expected table properties.\n${errors.join('\n')}`);
|
52
|
+
}
|
53
|
+
};
|
54
|
+
exports.validateImportedTableProperties = validateImportedTableProperties;
|
55
|
+
const getExpectedTableProperties = (createTableInput) => {
|
56
|
+
return {
|
57
|
+
AttributeDefinitions: getExpectedAttributeDefinitions(createTableInput),
|
58
|
+
KeySchema: getExpectedKeySchema(createTableInput),
|
59
|
+
GlobalSecondaryIndexes: getExpectedGlobalSecondaryIndexes(createTableInput),
|
60
|
+
BillingModeSummary: getExpectedBillingModeSummary(createTableInput),
|
61
|
+
ProvisionedThroughput: getExpectedProvisionedThroughput(createTableInput),
|
62
|
+
StreamSpecification: getExpectedStreamSpecification(createTableInput),
|
63
|
+
SSEDescription: getExpectedSSEDescription(createTableInput),
|
64
|
+
DeletionProtectionEnabled: getExpectedDeletionProtectionEnabled(createTableInput),
|
65
|
+
};
|
66
|
+
};
|
67
|
+
exports.getExpectedTableProperties = getExpectedTableProperties;
|
68
|
+
const getExpectedAttributeDefinitions = (createTableInput) => {
|
69
|
+
return createTableInput.AttributeDefinitions;
|
70
|
+
};
|
71
|
+
const getExpectedKeySchema = (createTableInput) => {
|
72
|
+
return createTableInput.KeySchema;
|
73
|
+
};
|
74
|
+
const getExpectedGlobalSecondaryIndexes = (createTableInput) => {
|
75
|
+
var _a;
|
76
|
+
return (_a = createTableInput.GlobalSecondaryIndexes) === null || _a === void 0 ? void 0 : _a.map((gsi) => {
|
77
|
+
if (createTableInput.BillingMode === 'PAY_PER_REQUEST') {
|
78
|
+
return {
|
79
|
+
...gsi,
|
80
|
+
ProvisionedThroughput: gsi.ProvisionedThroughput
|
81
|
+
? {
|
82
|
+
ReadCapacityUnits: 0,
|
83
|
+
WriteCapacityUnits: 0,
|
84
|
+
}
|
85
|
+
: undefined,
|
86
|
+
};
|
87
|
+
}
|
88
|
+
return gsi;
|
89
|
+
});
|
90
|
+
};
|
91
|
+
const getExpectedBillingModeSummary = (createTableInput) => {
|
92
|
+
return {
|
93
|
+
BillingMode: createTableInput.BillingMode,
|
94
|
+
};
|
95
|
+
};
|
96
|
+
const getExpectedStreamSpecification = (createTableInput) => {
|
97
|
+
return createTableInput.StreamSpecification;
|
98
|
+
};
|
99
|
+
const getExpectedProvisionedThroughput = (createTableInput) => {
|
100
|
+
return createTableInput.ProvisionedThroughput || { ReadCapacityUnits: 0, WriteCapacityUnits: 0 };
|
101
|
+
};
|
102
|
+
const getExpectedSSEDescription = (createTableInput) => {
|
103
|
+
return createTableInput.SSESpecification && createTableInput.SSESpecification.Enabled
|
104
|
+
? {
|
105
|
+
SSEType: createTableInput.SSESpecification.SSEType || 'KMS',
|
106
|
+
Status: 'ENABLED',
|
107
|
+
}
|
108
|
+
: undefined;
|
109
|
+
};
|
110
|
+
const getExpectedDeletionProtectionEnabled = (createTableInput) => {
|
111
|
+
return createTableInput.DeletionProtectionEnabled || false;
|
112
|
+
};
|
113
|
+
const getImportedTableComparisonProperties = (importedTable) => {
|
114
|
+
return {
|
115
|
+
AttributeDefinitions: getAttributeDefinitionsForComparison(importedTable),
|
116
|
+
KeySchema: getKeySchemaForComparison(importedTable),
|
117
|
+
GlobalSecondaryIndexes: getGlobalSecondaryIndexesForComparison(importedTable),
|
118
|
+
BillingModeSummary: getBillingModeSummaryForComparison(importedTable),
|
119
|
+
ProvisionedThroughput: getProvisionedThroughputForComparison(importedTable),
|
120
|
+
StreamSpecification: getStreamSpecificationForComparison(importedTable),
|
121
|
+
SSEDescription: getSSEDescriptionForComparison(importedTable),
|
122
|
+
DeletionProtectionEnabled: getDeletionProtectionEnabledForComparison(importedTable),
|
123
|
+
};
|
124
|
+
};
|
125
|
+
exports.getImportedTableComparisonProperties = getImportedTableComparisonProperties;
|
126
|
+
const getAttributeDefinitionsForComparison = (importedTable) => {
|
127
|
+
var _a;
|
128
|
+
return (_a = importedTable.AttributeDefinitions) === null || _a === void 0 ? void 0 : _a.map((attributeDefinition) => ({
|
129
|
+
AttributeName: attributeDefinition.AttributeName,
|
130
|
+
AttributeType: attributeDefinition.AttributeType,
|
131
|
+
}));
|
132
|
+
};
|
133
|
+
const getKeySchemaForComparison = (importedTable) => {
|
134
|
+
var _a;
|
135
|
+
return (_a = importedTable.KeySchema) === null || _a === void 0 ? void 0 : _a.map((key) => ({
|
136
|
+
AttributeName: key.AttributeName,
|
137
|
+
KeyType: key.KeyType,
|
138
|
+
}));
|
139
|
+
};
|
140
|
+
const getGlobalSecondaryIndexesForComparison = (importedTable) => {
|
141
|
+
var _a;
|
142
|
+
return (_a = importedTable.GlobalSecondaryIndexes) === null || _a === void 0 ? void 0 : _a.map((gsi) => {
|
143
|
+
var _a;
|
144
|
+
return ({
|
145
|
+
IndexName: gsi.IndexName,
|
146
|
+
KeySchema: (_a = gsi.KeySchema) === null || _a === void 0 ? void 0 : _a.map((key) => ({
|
147
|
+
AttributeName: key.AttributeName,
|
148
|
+
KeyType: key.KeyType,
|
149
|
+
})),
|
150
|
+
OnDemandThroughput: gsi.OnDemandThroughput
|
151
|
+
? {
|
152
|
+
MaxReadRequestUnits: gsi.OnDemandThroughput.MaxReadRequestUnits,
|
153
|
+
MaxWriteRequestUnits: gsi.OnDemandThroughput.MaxWriteRequestUnits,
|
154
|
+
}
|
155
|
+
: undefined,
|
156
|
+
Projection: gsi.Projection
|
157
|
+
? {
|
158
|
+
NonKeyAttributes: gsi.Projection.NonKeyAttributes,
|
159
|
+
ProjectionType: gsi.Projection.ProjectionType,
|
160
|
+
}
|
161
|
+
: undefined,
|
162
|
+
ProvisionedThroughput: gsi.ProvisionedThroughput
|
163
|
+
? {
|
164
|
+
ReadCapacityUnits: gsi.ProvisionedThroughput.ReadCapacityUnits,
|
165
|
+
WriteCapacityUnits: gsi.ProvisionedThroughput.WriteCapacityUnits,
|
166
|
+
}
|
167
|
+
: undefined,
|
168
|
+
});
|
169
|
+
});
|
170
|
+
};
|
171
|
+
const getBillingModeSummaryForComparison = (importedTable) => {
|
172
|
+
return importedTable.BillingModeSummary
|
173
|
+
? {
|
174
|
+
BillingMode: importedTable.BillingModeSummary.BillingMode,
|
175
|
+
}
|
176
|
+
: undefined;
|
177
|
+
};
|
178
|
+
const getProvisionedThroughputForComparison = (importedTable) => {
|
179
|
+
return importedTable.ProvisionedThroughput
|
180
|
+
? {
|
181
|
+
ReadCapacityUnits: importedTable.ProvisionedThroughput.ReadCapacityUnits,
|
182
|
+
WriteCapacityUnits: importedTable.ProvisionedThroughput.WriteCapacityUnits,
|
183
|
+
}
|
184
|
+
: undefined;
|
185
|
+
};
|
186
|
+
const getStreamSpecificationForComparison = (importedTable) => {
|
187
|
+
var _a, _b;
|
188
|
+
return importedTable.StreamSpecification
|
189
|
+
? {
|
190
|
+
StreamEnabled: (_a = importedTable.StreamSpecification) === null || _a === void 0 ? void 0 : _a.StreamEnabled,
|
191
|
+
StreamViewType: (_b = importedTable.StreamSpecification) === null || _b === void 0 ? void 0 : _b.StreamViewType,
|
192
|
+
}
|
193
|
+
: undefined;
|
194
|
+
};
|
195
|
+
const getSSEDescriptionForComparison = (importedTable) => {
|
196
|
+
return importedTable.SSEDescription
|
197
|
+
? {
|
198
|
+
SSEType: importedTable.SSEDescription.SSEType,
|
199
|
+
}
|
200
|
+
: undefined;
|
201
|
+
};
|
202
|
+
const getDeletionProtectionEnabledForComparison = (importedTable) => {
|
203
|
+
return importedTable.DeletionProtectionEnabled;
|
204
|
+
};
|
205
|
+
//# sourceMappingURL=import-table.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"import-table.js","sourceRoot":"","sources":["../../../../src/resources/amplify-dynamodb-table/amplify-table-manager-lambda/import-table.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAqC;AACrC,8DAA+F;AAOxF,MAAM,WAAW,GAAG,KAAK,EAAE,gBAAyC,EAAsD,EAAE;IACjI,MAAM,SAAS,GAAG,IAAI,0BAAQ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mBAAmB,0CAAE,cAAc;SAClE;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,8BAA8B,GAAG,CAAC,aAA+B,EAA+C,EAAE;IACtH,OAAO,aAAa,CAAC,cAAc;QACjC,CAAC,CAAC;YACE,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,OAAO;SAC9C;QACH,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,yCAAyC,GAAG,CAChD,aAA+B,EACyB,EAAE;IAC1D,OAAO,aAAa,CAAC,yBAAyB,CAAC;AACjD,CAAC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"name": "amplify-table-manager-lambda",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"lockfileVersion": 3,
|
5
|
+
"requires": true,
|
6
|
+
"packages": {
|
7
|
+
"node_modules/lodash.isequal": {
|
8
|
+
"version": "4.5.0",
|
9
|
+
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
|
10
|
+
"integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ=="
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
Copyright JS Foundation and other contributors <https://js.foundation/>
|
2
|
+
|
3
|
+
Based on Underscore.js, copyright Jeremy Ashkenas,
|
4
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
5
|
+
|
6
|
+
This software consists of voluntary contributions made by many
|
7
|
+
individuals. For exact contribution history, see the revision history
|
8
|
+
available at https://github.com/lodash/lodash
|
9
|
+
|
10
|
+
The following license applies to all parts of this software except as
|
11
|
+
documented below:
|
12
|
+
|
13
|
+
====
|
14
|
+
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
16
|
+
a copy of this software and associated documentation files (the
|
17
|
+
"Software"), to deal in the Software without restriction, including
|
18
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
19
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
20
|
+
permit persons to whom the Software is furnished to do so, subject to
|
21
|
+
the following conditions:
|
22
|
+
|
23
|
+
The above copyright notice and this permission notice shall be
|
24
|
+
included in all copies or substantial portions of the Software.
|
25
|
+
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
27
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
28
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
29
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
30
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
31
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
32
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
33
|
+
|
34
|
+
====
|
35
|
+
|
36
|
+
Copyright and related rights for sample code are waived via CC0. Sample
|
37
|
+
code is defined as all source code displayed within the prose of the
|
38
|
+
documentation.
|
39
|
+
|
40
|
+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
41
|
+
|
42
|
+
====
|
43
|
+
|
44
|
+
Files located in the node_modules and vendor directories are externally
|
45
|
+
maintained libraries used by this software which have their own
|
46
|
+
licenses; we recommend you read them, as their terms may differ from the
|
47
|
+
terms above.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# lodash.isequal v4.5.0
|
2
|
+
|
3
|
+
The [Lodash](https://lodash.com/) method `_.isEqual` exported as a [Node.js](https://nodejs.org/) module.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Using npm:
|
8
|
+
```bash
|
9
|
+
$ {sudo -H} npm i -g npm
|
10
|
+
$ npm i --save lodash.isequal
|
11
|
+
```
|
12
|
+
|
13
|
+
In Node.js:
|
14
|
+
```js
|
15
|
+
var isEqual = require('lodash.isequal');
|
16
|
+
```
|
17
|
+
|
18
|
+
See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.isequal) for more details.
|