UNPKG

1.24 kBPlain TextView Raw
1/**
2 * Resource Constants that are specific to the Relation Database Transform
3 */
4export class ResourceConstants {
5 public static readonly ENVIRONMENT_CONTEXT_KEYS = {
6 // Aurora Serverless Imports
7 RDSRegion: 'rdsRegion',
8 RDSClusterIdentifier: 'rdsClusterIdentifier',
9 RDSSecretStoreArn: 'rdsSecretStoreArn',
10 RDSDatabaseName: 'rdsDatabaseName',
11 };
12
13 public static readonly RESOURCES = {
14 // AppSync
15 GraphQLAPILogicalID: 'GraphQLAPI',
16 GraphQLSchemaLogicalID: 'GraphQLSchema',
17 APIKeyLogicalID: 'GraphQLAPIKey',
18
19 // Relational Database
20 ResolverFileName: 'ResolverFileName',
21 RelationalDatabaseDataSource: 'RelationalDatabaseDataSource',
22 RelationalDatabaseAccessRole: 'RelationalDatabaseAccessRole',
23 };
24
25 public static PARAMETERS = {
26 // cli
27 Env: 'env',
28 S3DeploymentBucket: 'S3DeploymentBucket',
29 S3DeploymentRootKey: 'S3DeploymentRootKey',
30
31 // AppSync
32 AppSyncApiName: 'AppSyncApiName',
33 AppSyncApiId: 'AppSyncApiId',
34 APIKeyExpirationEpoch: 'APIKeyExpirationEpoch',
35
36 // Aurora Serverless
37 rdsRegion: 'rdsRegion',
38 rdsClusterIdentifier: 'rdsClusterIdentifier',
39 rdsSecretStoreArn: 'rdsSecretStoreArn',
40 rdsDatabaseName: 'rdsDatabaseName',
41 };
42}