cdk-real-drift 0.2.33 → 0.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +45 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1284,6 +1284,7 @@ const KNOWN_DEFAULTS = {
|
|
|
1284
1284
|
DisableExecuteApiEndpoint: false
|
|
1285
1285
|
},
|
|
1286
1286
|
"AWS::ApiGateway::DomainName": { SecurityPolicy: "TLS_1_2" },
|
|
1287
|
+
"AWS::ApiGateway::GatewayResponse": { ResponseTemplates: { "application/json": "{\"message\":$context.error.messageString}" } },
|
|
1287
1288
|
"AWS::EC2::VPC": {
|
|
1288
1289
|
InstanceTenancy: "default",
|
|
1289
1290
|
EnableDnsSupport: true
|
|
@@ -1337,11 +1338,16 @@ const KNOWN_DEFAULTS = {
|
|
|
1337
1338
|
EncryptionConfiguration: { EncryptionType: "AES256" },
|
|
1338
1339
|
ImageTagMutability: "MUTABLE"
|
|
1339
1340
|
},
|
|
1341
|
+
"AWS::ECR::RepositoryCreationTemplate": {
|
|
1342
|
+
EncryptionConfiguration: { EncryptionType: "AES256" },
|
|
1343
|
+
ImageTagMutability: "MUTABLE"
|
|
1344
|
+
},
|
|
1340
1345
|
"AWS::Kinesis::Stream": { MaxRecordSizeInKiB: 1024 },
|
|
1341
1346
|
"AWS::SSM::Parameter": {
|
|
1342
1347
|
DataType: "text",
|
|
1343
1348
|
Tier: "Standard"
|
|
1344
1349
|
},
|
|
1350
|
+
"AWS::SSM::ResourceDataSync": { SyncType: "SyncToDestination" },
|
|
1345
1351
|
"AWS::StepFunctions::Activity": { EncryptionConfiguration: { Type: "AWS_OWNED_KEY" } },
|
|
1346
1352
|
"AWS::SNS::Subscription": { FilterPolicyScope: "MessageAttributes" },
|
|
1347
1353
|
"AWS::Cognito::UserPool": {
|
|
@@ -1361,7 +1367,8 @@ const KNOWN_DEFAULTS = {
|
|
|
1361
1367
|
SignInPolicy: { AllowedFirstAuthFactors: ["PASSWORD"] }
|
|
1362
1368
|
},
|
|
1363
1369
|
KeyConfiguration: { KeyType: "AWS_OWNED_KEY" },
|
|
1364
|
-
IssuerConfiguration: { Type: "ORIGINAL" }
|
|
1370
|
+
IssuerConfiguration: { Type: "ORIGINAL" },
|
|
1371
|
+
WebAuthnFactorConfiguration: "SINGLE_FACTOR"
|
|
1365
1372
|
},
|
|
1366
1373
|
"AWS::Cognito::IdentityPool": { AllowClassicFlow: false },
|
|
1367
1374
|
"AWS::Cognito::UserPoolClient": {
|
|
@@ -2144,6 +2151,7 @@ function ebOptionSettingTier(namespace, optionName, value, envType) {
|
|
|
2144
2151
|
return "undeclared";
|
|
2145
2152
|
}
|
|
2146
2153
|
const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
2154
|
+
"AWS::Batch::JobQueue": new Set(["JobQueueType"]),
|
|
2147
2155
|
"AWS::ECS::Service": new Set(["AvailabilityZoneRebalancing", "PlatformVersion"]),
|
|
2148
2156
|
"AWS::KinesisAnalyticsV2::Application": new Set(["ApplicationMaintenanceConfiguration"]),
|
|
2149
2157
|
"AWS::ElasticBeanstalk::ConfigurationTemplate": new Set(["PlatformArn"]),
|
|
@@ -2701,6 +2709,7 @@ function alignNameValueSubset(declared, live, spec) {
|
|
|
2701
2709
|
return live.filter((e) => !dm.has(e[spec.nameField]));
|
|
2702
2710
|
}
|
|
2703
2711
|
const UNORDERED_ARRAY_PROPS = {
|
|
2712
|
+
"AWS::CloudFront::Distribution": new Set(["DistributionConfig.Restrictions.GeoRestriction.Locations"]),
|
|
2704
2713
|
"AWS::Cognito::UserPoolClient": new Set([
|
|
2705
2714
|
"AllowedOAuthFlows",
|
|
2706
2715
|
"AllowedOAuthScopes",
|
|
@@ -3974,6 +3983,41 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
3974
3983
|
...knownDefPaths,
|
|
3975
3984
|
"LoggingConfig.LogFormat": "JSON"
|
|
3976
3985
|
};
|
|
3986
|
+
if (resourceType === "AWS::ApiGateway::RestApi") {
|
|
3987
|
+
const types = declared["EndpointConfiguration"]?.["Types"];
|
|
3988
|
+
if (Array.isArray(types) && types.includes("PRIVATE")) {
|
|
3989
|
+
knownDef = {
|
|
3990
|
+
...knownDef,
|
|
3991
|
+
SecurityPolicy: "TLS_1_2"
|
|
3992
|
+
};
|
|
3993
|
+
knownDefPaths = {
|
|
3994
|
+
...knownDefPaths,
|
|
3995
|
+
"EndpointConfiguration.IpAddressType": "dualstack"
|
|
3996
|
+
};
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
if (resourceType === "AWS::Cognito::UserPool") {
|
|
4000
|
+
const tpvd = (declared["Policies"]?.["PasswordPolicy"])?.["TemporaryPasswordValidityDays"];
|
|
4001
|
+
knownDefPaths = {
|
|
4002
|
+
...knownDefPaths,
|
|
4003
|
+
"AdminCreateUserConfig.UnusedAccountValidityDays": tpvd ?? 7
|
|
4004
|
+
};
|
|
4005
|
+
}
|
|
4006
|
+
if (resourceType === "AWS::SSM::ResourceDataSync") {
|
|
4007
|
+
const s3 = declared["S3Destination"];
|
|
4008
|
+
if (s3 && typeof s3 === "object") {
|
|
4009
|
+
const twins = {};
|
|
4010
|
+
for (const key of [
|
|
4011
|
+
"BucketName",
|
|
4012
|
+
"BucketRegion",
|
|
4013
|
+
"SyncFormat"
|
|
4014
|
+
]) if (key in s3) twins[key] = s3[key];
|
|
4015
|
+
knownDef = {
|
|
4016
|
+
...knownDef,
|
|
4017
|
+
...twins
|
|
4018
|
+
};
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
3977
4021
|
const generatedPaths = GENERATED_PATHS[resourceType] ?? [];
|
|
3978
4022
|
const generatedNestedPaths = GENERATED_NESTED_PATHS[resourceType];
|
|
3979
4023
|
const freeFormMapPaths = schema.freeFormMapPaths ?? [];
|