cdk-real-drift 0.18.12 → 0.18.13
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 +51 -3
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2091,6 +2091,7 @@ const KNOWN_DEFAULTS = {
|
|
|
2091
2091
|
IngressConfiguration: { IsPubliclyAccessible: true }
|
|
2092
2092
|
}
|
|
2093
2093
|
},
|
|
2094
|
+
"AWS::GuardDuty::Filter": { Action: "NOOP" },
|
|
2094
2095
|
"AWS::GuardDuty::Detector": {
|
|
2095
2096
|
FindingPublishingFrequency: "SIX_HOURS",
|
|
2096
2097
|
DataSources: {
|
|
@@ -2234,7 +2235,9 @@ const KNOWN_DEFAULTS = {
|
|
|
2234
2235
|
MaximumRetryAttempts: -1,
|
|
2235
2236
|
MaximumRecordAgeInSeconds: -1,
|
|
2236
2237
|
Enabled: true,
|
|
2237
|
-
MaximumBatchingWindowInSeconds: 0
|
|
2238
|
+
MaximumBatchingWindowInSeconds: 0,
|
|
2239
|
+
ParallelizationFactor: 1,
|
|
2240
|
+
TumblingWindowInSeconds: 0
|
|
2238
2241
|
},
|
|
2239
2242
|
"AWS::Lambda::Alias": { Description: "" },
|
|
2240
2243
|
"AWS::Lambda::Version": { RuntimePolicy: { UpdateRuntimeOn: "Auto" } },
|
|
@@ -2933,6 +2936,7 @@ const KNOWN_DEFAULT_ONE_OF = {
|
|
|
2933
2936
|
"AWS::ApiGatewayV2::Integration": { TimeoutInMillis: [29e3, 3e4] },
|
|
2934
2937
|
"AWS::SecurityHub::Hub": { ControlFindingGenerator: ["SECURITY_CONTROL", "STANDARD_CONTROL"] },
|
|
2935
2938
|
"AWS::Glue::Job": { Timeout: [2880, 480] },
|
|
2939
|
+
"AWS::CodePipeline::Pipeline": { PipelineType: ["V1", "V2"] },
|
|
2936
2940
|
"AWS::OpenSearchService::Domain": { DomainEndpointOptions: [{
|
|
2937
2941
|
CustomEndpointEnabled: false,
|
|
2938
2942
|
EnforceHTTPS: false,
|
|
@@ -3082,7 +3086,9 @@ const KNOWN_DEFAULT_PATHS = {
|
|
|
3082
3086
|
MaximumEventAgeInSeconds: 86400,
|
|
3083
3087
|
MaximumRetryAttempts: 185
|
|
3084
3088
|
} },
|
|
3089
|
+
"AWS::CodePipeline::Pipeline": { "Stages.*.Actions.*.RunOrder": 1 },
|
|
3085
3090
|
"AWS::ECS::Service": {
|
|
3091
|
+
"NetworkConfiguration.AwsvpcConfiguration.AssignPublicIp": "DISABLED",
|
|
3086
3092
|
"DeploymentConfiguration.Strategy": "ROLLING",
|
|
3087
3093
|
"DeploymentConfiguration.BakeTimeInMinutes": 0,
|
|
3088
3094
|
"DeploymentConfiguration.DeploymentCircuitBreaker.ResetOnHealthyTask": true,
|
|
@@ -3551,6 +3557,7 @@ const VALUE_INDEPENDENT_DEFAULT_TOPLEVEL_PATHS = {
|
|
|
3551
3557
|
"LifecycleHookSpecificationList"
|
|
3552
3558
|
]),
|
|
3553
3559
|
"AWS::ApiGateway::Authorizer": new Set(["AuthType"]),
|
|
3560
|
+
"AWS::GuardDuty::Filter": new Set(["Rank"]),
|
|
3554
3561
|
"AWS::DMS::Endpoint": new Set(["KmsKeyId"]),
|
|
3555
3562
|
"AWS::DMS::ReplicationInstance": new Set([
|
|
3556
3563
|
"EngineVersion",
|
|
@@ -3966,6 +3973,40 @@ function isBooleanTokenEquivalent(a, b) {
|
|
|
3966
3973
|
return ta !== void 0 && ta === tok(b);
|
|
3967
3974
|
}
|
|
3968
3975
|
const CASE_INSENSITIVE_KEY_PATHS = { "AWS::DataBrew::Recipe": new Set(["Steps[].Action.Parameters"]) };
|
|
3976
|
+
const GUARDDUTY_CONDITION_KEY_ALIASES = {
|
|
3977
|
+
Eq: "Equals",
|
|
3978
|
+
Neq: "NotEquals",
|
|
3979
|
+
Gt: "GreaterThan",
|
|
3980
|
+
Gte: "GreaterThanOrEqual",
|
|
3981
|
+
Lt: "LessThan",
|
|
3982
|
+
Lte: "LessThanOrEqual"
|
|
3983
|
+
};
|
|
3984
|
+
function canonicalizeGuardDutyCriterionKeys(declared) {
|
|
3985
|
+
const fc = declared["FindingCriteria"];
|
|
3986
|
+
if (fc === null || typeof fc !== "object" || Array.isArray(fc)) return declared;
|
|
3987
|
+
const criterion = fc["Criterion"];
|
|
3988
|
+
if (criterion === null || typeof criterion !== "object" || Array.isArray(criterion)) return declared;
|
|
3989
|
+
const outCriterion = {};
|
|
3990
|
+
for (const [field, cond] of Object.entries(criterion)) {
|
|
3991
|
+
if (cond === null || typeof cond !== "object" || Array.isArray(cond)) {
|
|
3992
|
+
outCriterion[field] = cond;
|
|
3993
|
+
continue;
|
|
3994
|
+
}
|
|
3995
|
+
const outCond = {};
|
|
3996
|
+
for (const [k, v] of Object.entries(cond)) {
|
|
3997
|
+
const long = GUARDDUTY_CONDITION_KEY_ALIASES[k];
|
|
3998
|
+
outCond[long !== void 0 && !(long in cond) ? long : k] = v;
|
|
3999
|
+
}
|
|
4000
|
+
outCriterion[field] = outCond;
|
|
4001
|
+
}
|
|
4002
|
+
return {
|
|
4003
|
+
...declared,
|
|
4004
|
+
FindingCriteria: {
|
|
4005
|
+
...fc,
|
|
4006
|
+
Criterion: outCriterion
|
|
4007
|
+
}
|
|
4008
|
+
};
|
|
4009
|
+
}
|
|
3969
4010
|
function isCaseInsensitiveKeyMapEqual(a, b) {
|
|
3970
4011
|
if (a === null || b === null || typeof a !== "object" || typeof b !== "object") return false;
|
|
3971
4012
|
if (Array.isArray(a) || Array.isArray(b)) return false;
|
|
@@ -5842,6 +5883,7 @@ const MEANINGFUL_WHEN_OFF_NESTED = {
|
|
|
5842
5883
|
} }
|
|
5843
5884
|
};
|
|
5844
5885
|
const GUARDDUTY_FEATURE_CREATION_STATUS = {
|
|
5886
|
+
AI_PROTECTION: ["DISABLED"],
|
|
5845
5887
|
AI_ANALYST: ["DISABLED"],
|
|
5846
5888
|
RUNTIME_MONITORING: ["DISABLED", "ENABLED"],
|
|
5847
5889
|
EKS_RUNTIME_MONITORING: ["DISABLED", "ENABLED"],
|
|
@@ -6757,7 +6799,8 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
6757
6799
|
oaiCanonicalIds: oaiMap,
|
|
6758
6800
|
resourceType
|
|
6759
6801
|
}), opts.stackTags ?? {}, declaredTagKeys(declaredForCompare));
|
|
6760
|
-
|
|
6802
|
+
let declared = canonicalizeForCompare(rewriteOaiPrincipalsDeep(declaredForCompare, oaiMap), resourceType);
|
|
6803
|
+
if (resourceType === "AWS::GuardDuty::Filter") declared = canonicalizeGuardDutyCriterionKeys(declared);
|
|
6761
6804
|
const reflected = REFLECTED_CHILD_PROPS[resourceType];
|
|
6762
6805
|
if (reflected && !(reflected in declared)) delete live[reflected];
|
|
6763
6806
|
if (resourceType === EVENT_BUS_TYPE && !(EVENT_BUS_POLICY_PROP in declared)) {
|
|
@@ -18825,6 +18868,10 @@ const REVERT_SET_DEFAULT_PATHS = new Set([
|
|
|
18825
18868
|
"AWS::ECR::Repository\0ImageTagMutability",
|
|
18826
18869
|
"AWS::ECR::Repository\0ImageScanningConfiguration",
|
|
18827
18870
|
"AWS::SQS::Queue\0MaximumMessageSize",
|
|
18871
|
+
"AWS::SQS::Queue\0SqsManagedSseEnabled",
|
|
18872
|
+
"AWS::StepFunctions::StateMachine\0LoggingConfiguration",
|
|
18873
|
+
"AWS::ApiGateway::RestApi\0DisableExecuteApiEndpoint",
|
|
18874
|
+
"AWS::Cognito::UserPoolClient\0RefreshTokenValidity",
|
|
18828
18875
|
"AWS::Lambda::Url\0InvokeMode",
|
|
18829
18876
|
"AWS::RolesAnywhere::Profile\0DurationSeconds",
|
|
18830
18877
|
"AWS::RolesAnywhere::Profile\0AttributeMappings",
|
|
@@ -19414,7 +19461,8 @@ const CC_UPDATE_REJECTED_EMPTY_PATHS = {
|
|
|
19414
19461
|
"/Distributions/*/FastLaunchConfigurations",
|
|
19415
19462
|
"/Distributions/*/LaunchTemplateConfigurations"
|
|
19416
19463
|
],
|
|
19417
|
-
"AWS::Lambda::EventInvokeConfig": ["/DestinationConfig/OnSuccess", "/DestinationConfig/OnFailure"]
|
|
19464
|
+
"AWS::Lambda::EventInvokeConfig": ["/DestinationConfig/OnSuccess", "/DestinationConfig/OnFailure"],
|
|
19465
|
+
"AWS::Lambda::EventSourceMapping": ["/DestinationConfig/OnFailure"]
|
|
19418
19466
|
};
|
|
19419
19467
|
function expandPointer(model, pointer) {
|
|
19420
19468
|
let frontier = [{
|