cdk-real-drift 0.2.25 → 0.2.27
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 +16 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1306,11 +1306,14 @@ const KNOWN_DEFAULTS = {
|
|
|
1306
1306
|
"AWS::ApiGatewayV2::Api": {
|
|
1307
1307
|
RouteSelectionExpression: "$request.method $request.path",
|
|
1308
1308
|
IpAddressType: "ipv4",
|
|
1309
|
-
DisableExecuteApiEndpoint: false
|
|
1309
|
+
DisableExecuteApiEndpoint: false,
|
|
1310
|
+
ApiKeySelectionExpression: "$request.header.x-api-key"
|
|
1310
1311
|
},
|
|
1311
1312
|
"AWS::ApiGatewayV2::Integration": {
|
|
1312
1313
|
ConnectionType: "INTERNET",
|
|
1313
|
-
|
|
1314
|
+
PayloadFormatVersion: "1.0",
|
|
1315
|
+
IntegrationMethod: "POST",
|
|
1316
|
+
PassthroughBehavior: "WHEN_NO_MATCH"
|
|
1314
1317
|
},
|
|
1315
1318
|
"AWS::CodeBuild::Project": {
|
|
1316
1319
|
TimeoutInMinutes: 60,
|
|
@@ -1698,7 +1701,9 @@ const KNOWN_DEFAULTS = {
|
|
|
1698
1701
|
},
|
|
1699
1702
|
"AWS::CodeStarConnections::Connection": { HostArn: "arn:aws:codestar-connections:us-west-2:000000000000:host/00000000-0000-0000-0000-000000000000" }
|
|
1700
1703
|
};
|
|
1704
|
+
const KNOWN_DEFAULT_ONE_OF = { "AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] } };
|
|
1701
1705
|
const KNOWN_DEFAULT_PATHS = {
|
|
1706
|
+
"AWS::ApiGatewayV2::Stage": { "DefaultRouteSettings.LoggingLevel": "OFF" },
|
|
1702
1707
|
"AWS::ServiceCatalog::CloudFormationProduct": { "ProvisioningArtifactParameters.*.Type": "CLOUD_FORMATION_TEMPLATE" },
|
|
1703
1708
|
"AWS::KinesisAnalyticsV2::Application": { "ApplicationConfiguration.ApplicationEncryptionConfiguration": { KeyType: "AWS_OWNED_KEY" } },
|
|
1704
1709
|
"AWS::Lambda::Function": {
|
|
@@ -4278,7 +4283,7 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
4278
4283
|
}
|
|
4279
4284
|
continue;
|
|
4280
4285
|
}
|
|
4281
|
-
if (k in schema.defaults && matchesKnownDefault(v, schema.defaults[k]) || k in knownDef && matchesKnownDefault(v, knownDef[k]) || VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS[resourceType]?.has(k)) {
|
|
4286
|
+
if (k in schema.defaults && matchesKnownDefault(v, schema.defaults[k]) || k in knownDef && matchesKnownDefault(v, knownDef[k]) || KNOWN_DEFAULT_ONE_OF[resourceType]?.[k]?.some((d) => matchesKnownDefault(v, d)) || VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS[resourceType]?.has(k)) {
|
|
4282
4287
|
findings.push({
|
|
4283
4288
|
tier: "atDefault",
|
|
4284
4289
|
logicalId,
|
|
@@ -7871,6 +7876,12 @@ const CC_IDENTIFIER_ADAPTERS = {
|
|
|
7871
7876
|
if (pid.includes("|")) return pid;
|
|
7872
7877
|
const vpcId = declared.VpcId;
|
|
7873
7878
|
return typeof vpcId === "string" && vpcId.length > 0 ? `${pid}|${vpcId}` : void 0;
|
|
7879
|
+
},
|
|
7880
|
+
"AWS::ApiGatewayV2::RouteResponse": (pid, declared) => {
|
|
7881
|
+
if (pid.includes("|")) return pid;
|
|
7882
|
+
const apiId = declared.ApiId;
|
|
7883
|
+
const routeId = declared.RouteId;
|
|
7884
|
+
return typeof apiId === "string" && apiId.length > 0 && typeof routeId === "string" && routeId.length > 0 ? `${apiId}|${routeId}|${pid}` : void 0;
|
|
7874
7885
|
}
|
|
7875
7886
|
};
|
|
7876
7887
|
function scalingPolicyComposite(pid, declared) {
|
|
@@ -10496,6 +10507,8 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
10496
10507
|
"AWS::InternetMonitor::Monitor\0Status",
|
|
10497
10508
|
"AWS::RolesAnywhere::Profile\0DurationSeconds",
|
|
10498
10509
|
"AWS::RolesAnywhere::Profile\0AttributeMappings",
|
|
10510
|
+
"AWS::EC2::Subnet\0AssignIpv6AddressOnCreation",
|
|
10511
|
+
"AWS::EC2::Subnet\0PrivateDnsNameOptionsOnLaunch",
|
|
10499
10512
|
"AWS::EC2::Subnet\0EnableDns64"
|
|
10500
10513
|
]);
|
|
10501
10514
|
const REVERT_SET_DEFAULT_VALUES = { "AWS::EC2::Subnet\0EnableDns64": false };
|