@aws-amplify/data-schema
Advanced tools
Comparing version 0.14.3 to 0.14.4
@@ -28,2 +28,11 @@ import type { DerivedApiDefinition, SetTypeSubArg } from '@aws-amplify/data-schema-types'; | ||
export type DatasourceEngine = 'mysql' | 'postgresql' | 'dynamodb'; | ||
type SubnetAZ = { | ||
subnetId: string; | ||
availabilityZone: string; | ||
}; | ||
type VpcConfig = { | ||
vpcId: string; | ||
securityGroupIds: string[]; | ||
subnetAvailabilityZones: SubnetAZ[]; | ||
}; | ||
type DatasourceConfig<DE extends DatasourceEngine> = DE extends 'dynamodb' ? { | ||
@@ -33,8 +42,4 @@ engine: DE; | ||
engine: DE; | ||
hostname: BackendSecret; | ||
username: BackendSecret; | ||
password: BackendSecret; | ||
port: BackendSecret; | ||
databaseName: BackendSecret; | ||
vpcConfig?: Record<string, never>; | ||
connectionUri: BackendSecret; | ||
vpcConfig?: VpcConfig; | ||
}; | ||
@@ -41,0 +46,0 @@ export type SchemaConfig<DE extends DatasourceEngine, DC extends DatasourceConfig<DE>> = { |
{ | ||
"name": "@aws-amplify/data-schema", | ||
"version": "0.14.3", | ||
"version": "0.14.4", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
654298
4069