cdk-preflight 1.13.0 → 1.14.0

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/docs/rules.md CHANGED
@@ -792,6 +792,7 @@
792
792
  | `pf-agentcore-gateway-target-openapi-schema` | AWS::BedrockAgentCore::GatewayTarget | Inline OpenAPI schemas for gateway targets must be OpenAPI 3 with a servers list and an operationId on every operation | ERROR | none |
793
793
  | `pf-agentcore-harness-endpoint-name-default` | AWS::BedrockAgentCore::HarnessEndpoint | A HarnessEndpoint cannot be named DEFAULT (the name is reserved) | ERROR | none |
794
794
  | `pf-agentcore-harness-endpoint-name-unique` | AWS::BedrockAgentCore::HarnessEndpoint | Endpoint names must be unique within one harness | ERROR | none |
795
+ | `pf-agentcore-harness-lifecycle-timeout-order` | AWS::BedrockAgentCore::Harness | AgentCore Harness IdleRuntimeSessionTimeout must not exceed MaxLifetime | ERROR | none |
795
796
  | `pf-agentcore-jwt-authorizer-claims` | AWS::BedrockAgentCore::Gateway<br>AWS::BedrockAgentCore::Runtime<br>AWS::BedrockAgentCore::Harness | A CustomJWTAuthorizer needs at least one of AllowedAudience, AllowedClients, AllowedScopes, or CustomClaims | ERROR | none |
796
797
  | `pf-agentcore-kms-key-region` | AWS::BedrockAgentCore::Dataset<br>AWS::BedrockAgentCore::Evaluator<br>AWS::BedrockAgentCore::ConfigurationBundle | A KmsKeyArn must name a key in the deploy region | ERROR | none |
797
798
  | `pf-agentcore-memory-custom-strategy-execution-role` | AWS::BedrockAgentCore::Memory | Memories with a custom strategy require MemoryExecutionRoleArn | ERROR | none |
@@ -1009,6 +1010,7 @@
1009
1010
  | `pf-cloudwatch-alarm-metrics-max` | AWS::CloudWatch::Alarm | An alarm takes at most 10 MetricStat queries | ERROR | none |
1010
1011
  | `pf-cloudwatch-alarm-period` | AWS::CloudWatch::Alarm | Period must be 10, 20, 30 or a multiple of 60 | ERROR | none |
1011
1012
  | `pf-cloudwatch-alarm-search-expression` | AWS::CloudWatch::Alarm | SEARCH() cannot be used in a metric alarm | ERROR | none |
1013
+ | `pf-cloudwatch-alarm-tags-propagation-include-exclude-exclusive` | AWS::CloudWatch::Alarm | AlarmTagsPropagation takes IncludedTagKeys or ExcludedTagKeys, not both | ERROR | pending-engine |
1012
1014
  | `pf-cloudwatch-alarm-threshold` | AWS::CloudWatch::Alarm | Standard operators need Threshold, range operators need ThresholdMetricId | ERROR | none |
1013
1015
  | `pf-cloudwatch-anomaly-detector-excluded-range-order` | AWS::CloudWatch::AnomalyDetector | An excluded time range must start before it ends | ERROR | none |
1014
1016
  | `pf-cloudwatch-anomaly-detector-exclusive` | AWS::CloudWatch::AnomalyDetector | SingleMetricAnomalyDetector and MetricMathAnomalyDetector are mutually exclusive | ERROR | none |
@@ -1519,6 +1521,8 @@
1519
1521
  | `pf-ecs-fargate-shared-memory-size` | AWS::ECS::TaskDefinition | LinuxParameters.SharedMemorySize is not supported on Fargate | ERROR | none |
1520
1522
  | `pf-ecs-fargate-task-cpu-memory` | AWS::ECS::TaskDefinition | FARGATE compatibility requires task-level Cpu and Memory | ERROR | retired: engine E3048 covers it from aws-cdk-lib 2.268.0 |
1521
1523
  | `pf-ecs-fargate-windows-cpu-under-1vcpu` | AWS::ECS::TaskDefinition | Windows tasks on Fargate need at least 1 vCPU | ERROR | none |
1524
+ | `pf-ecs-gpu-sharing-mixed-across-containers` | AWS::ECS::TaskDefinition | Containers in one task cannot mix GPU Value and SharingStrategy | ERROR | pending-engine |
1525
+ | `pf-ecs-gpu-value-sharing-exclusive` | AWS::ECS::TaskDefinition | A GPU resource requirement takes Value or SharingStrategy, not both | ERROR | pending-engine |
1522
1526
  | `pf-ecs-healthcheck-interval-range` | AWS::ECS::TaskDefinition | HealthCheck.Interval must be 5-300 seconds | ERROR | none |
1523
1527
  | `pf-ecs-healthcheck-retries-range` | AWS::ECS::TaskDefinition | HealthCheck.Retries must be 1-10 | ERROR | none |
1524
1528
  | `pf-ecs-healthcheck-start-period-range` | AWS::ECS::TaskDefinition | HealthCheck.StartPeriod must be 0-300 seconds | ERROR | none |
@@ -1678,6 +1682,8 @@
1678
1682
  | `pf-elasticache-port` | AWS::ElastiCache::ReplicationGroup<br>AWS::ElastiCache::CacheCluster | Port must be in 1150-8004 or 8006-65535 | ERROR | none |
1679
1683
  | `pf-elasticache-preferred-availability-zones` | AWS::ElastiCache::ReplicationGroup<br>AWS::ElastiCache::CacheCluster | The preferred Availability Zone list must have exactly one entry per node | ERROR | none |
1680
1684
  | `pf-elasticache-replication-group-clusters` | AWS::ElastiCache::ReplicationGroup | Automatic failover needs at least two cache clusters (CloudFormation turns it on by default), and NumCacheClusters cannot be combined with NumNodeGroups | ERROR | none |
1685
+ | `pf-elasticache-serverless-public-valkey-only` | AWS::ElastiCache::ServerlessCache | ConnectionType public is only for the valkey engine | ERROR | pending-engine |
1686
+ | `pf-elasticache-serverless-public-valkey9` | AWS::ElastiCache::ServerlessCache | ConnectionType public needs valkey major version 9 or later | ERROR | pending-engine |
1681
1687
  | `pf-elasticache-snapshot-retention` | AWS::ElastiCache::ReplicationGroup<br>AWS::ElastiCache::CacheCluster | SnapshotRetentionLimit is 0-35 days and Memcached does not support snapshots at all | ERROR | none |
1682
1688
  | `pf-elasticache-snapshot-source-engine` | AWS::ElastiCache::CacheCluster | SnapshotArns and SnapshotName only restore Redis clusters | ERROR | none |
1683
1689
  | `pf-elasticache-snapshot-window` | AWS::ElastiCache::ReplicationGroup<br>AWS::ElastiCache::CacheCluster | SnapshotWindow must be hh24:mi-hh24:mi and must not overlap the maintenance window | ERROR | none |
@@ -1898,11 +1904,11 @@
1898
1904
  | `pf-events-input-transformer-json-var` | AWS::Events::Rule | <aws.events.event.json> needs a JSON object InputTemplate | ERROR | none |
1899
1905
  | `pf-events-input-transformer-limits` | AWS::Events::Rule | InputPathsMap is capped at 100 entries and may not use reserved variable names | ERROR | none |
1900
1906
  | `pf-events-input-transformer-placeholders` | AWS::Events::Rule | InputTemplate placeholders must be declared in InputPathsMap | ERROR | none |
1901
- | `pf-events-pattern-empty` | AWS::Events::Rule | An empty EventPattern counts as no pattern at all | ERROR | none |
1902
- | `pf-events-pattern-empty-array` | AWS::Events::Rule<br>AWS::Events::Archive | An event pattern may not hold an empty array | ERROR | none |
1903
- | `pf-events-pattern-operator` | AWS::Events::Rule<br>AWS::Events::Archive | Event pattern matchers must name a real operator and give it the right shape | ERROR | none |
1904
- | `pf-events-pattern-or-exclusive` | AWS::Events::Rule<br>AWS::Events::Archive | $or cannot share an object with other keys | ERROR | none |
1905
- | `pf-events-pattern-scalar-value` | AWS::Events::Rule<br>AWS::Events::Archive | Event pattern values must be arrays or objects, not scalars | ERROR | none |
1907
+ | `pf-events-pattern-empty` | AWS::Events::Rule | An empty EventPattern counts as no pattern at all | ERROR | retired: engine E9014 covers it from aws-cdk-lib 2.276.0 |
1908
+ | `pf-events-pattern-empty-array` | AWS::Events::Rule<br>AWS::Events::Archive | An event pattern may not hold an empty array | ERROR | retired: engine E9014 covers it from aws-cdk-lib 2.276.0 |
1909
+ | `pf-events-pattern-operator` | AWS::Events::Rule<br>AWS::Events::Archive | Event pattern matchers must name a real operator and give it the right shape | ERROR | retired: engine E9014 covers it from aws-cdk-lib 2.276.0 |
1910
+ | `pf-events-pattern-or-exclusive` | AWS::Events::Rule<br>AWS::Events::Archive | $or cannot share an object with other keys | ERROR | retired: engine E9014 covers it from aws-cdk-lib 2.276.0 |
1911
+ | `pf-events-pattern-scalar-value` | AWS::Events::Rule<br>AWS::Events::Archive | Event pattern values must be arrays or objects, not scalars | ERROR | retired: engine E9014 covers it from aws-cdk-lib 2.276.0 |
1906
1912
  | `pf-events-rule-cron-fields` | AWS::Events::Rule | cron() fields must stay in range and keep | ERROR | none |
1907
1913
  | `pf-events-rule-name-duplicate` | AWS::Events::Rule | Two rules in one template may not share a name | ERROR | none |
1908
1914
  | `pf-events-rule-schedule-default-bus` | AWS::Events::Rule | A scheduled rule only works on the default event bus | ERROR | none |
@@ -2071,7 +2077,7 @@
2071
2077
  | `pf-grafana-ws-saml-idp-metadata-source` | AWS::Grafana::Workspace | A SAML identity provider names exactly one metadata source | ERROR | none |
2072
2078
  | `pf-iam-identity-policy-no-principal` | AWS::IAM::Role<br>AWS::IAM::Policy<br>AWS::IAM::ManagedPolicy | Identity policies cannot carry a Principal field | ERROR | retired: engine E3510 covers it from aws-cdk-lib 2.268.0 |
2073
2079
  | `pf-iam-inline-policy-size` | AWS::IAM::Policy<br>AWS::IAM::RolePolicy<br>AWS::IAM::UserPolicy<br>AWS::IAM::GroupPolicy | Inline policy documents are limited per identity (role 10240 / group 5120 / user 2048 characters) | ERROR | none |
2074
- | `pf-iam-instance-profile-single-role` | AWS::IAM::InstanceProfile | An instance profile holds exactly one role | ERROR | none |
2080
+ | `pf-iam-instance-profile-single-role` | AWS::IAM::InstanceProfile | An instance profile holds exactly one role | ERROR | retired: engine F3032 covers it from aws-cdk-lib 2.276.0 |
2075
2081
  | `pf-iam-managed-policy-count` | AWS::IAM::Role<br>AWS::IAM::User<br>AWS::IAM::Group | Managed policies per identity are capped (hard maximums role 25 / user 20 / group 10) | ERROR | none |
2076
2082
  | `pf-iam-managed-policy-size` | AWS::IAM::ManagedPolicy | Managed policy documents are limited to 6144 characters (whitespace excluded) | ERROR | none |
2077
2083
  | `pf-iam-name-format` | AWS::IAM::Role<br>AWS::IAM::User<br>AWS::IAM::Group<br>AWS::IAM::ManagedPolicy | IAM entity names allow only alphanumerics and +=,.@-_ | ERROR | none |
@@ -2153,6 +2159,7 @@
2153
2159
  | `pf-kinesis-encryption-key-region` | AWS::Kinesis::Stream | The stream encryption key must live in the stream region | ERROR | none |
2154
2160
  | `pf-kinesis-on-demand-shard-count` | AWS::Kinesis::Stream | An on-demand stream cannot set ShardCount | ERROR | none |
2155
2161
  | `pf-kinesis-provisioned-shard-count` | AWS::Kinesis::Stream | A provisioned stream must set ShardCount | ERROR | none |
2162
+ | `pf-kinesis-record-distribution-on-demand-only` | AWS::Kinesis::Stream | RecordDistributionStrategy is only for ON_DEMAND streams | ERROR | pending-engine |
2156
2163
  | `pf-kinesis-resource-policy-action` | AWS::Kinesis::ResourcePolicy | Resource policy actions must be plain kinesis: actions | ERROR | none |
2157
2164
  | `pf-kinesis-resource-policy-principal` | AWS::Kinesis::ResourcePolicy | Every policy statement needs a Principal (and no NotPrincipal) | ERROR | none |
2158
2165
  | `pf-kinesis-resource-policy-region` | AWS::Kinesis::ResourcePolicy | A resource policy must target a stream in its own region | ERROR | none |
@@ -2219,6 +2226,7 @@
2219
2226
  | `pf-lambda-eic-onsuccess-no-s3` | AWS::Lambda::EventInvokeConfig | An S3 bucket is an on-failure destination only | ERROR | none |
2220
2227
  | `pf-lambda-env-key-start-letter` | AWS::Lambda::Function | An environment variable name starts with a letter | ERROR | none |
2221
2228
  | `pf-lambda-env-size` | AWS::Lambda::Function | Lambda environment variables are limited to 4096 bytes in total | ERROR | none |
2229
+ | `pf-lambda-ephemeral-storage-max` | AWS::Lambda::Function | EphemeralStorage tops out at 10240 MB (32768 MB with AcceleratorConfig) | ERROR | pending-engine |
2222
2230
  | `pf-lambda-esm-batchsize-window` | AWS::Lambda::EventSourceMapping | SQS batch sizes over 10 need a batching window | ERROR | none |
2223
2231
  | `pf-lambda-esm-bisect-batch-stream-only` | AWS::Lambda::EventSourceMapping | BisectBatchOnFunctionError only applies to Kinesis and DynamoDB streams | ERROR | none |
2224
2232
  | `pf-lambda-esm-client-certificate-kafka-only` | AWS::Lambda::EventSourceMapping | CLIENT_CERTIFICATE_TLS_AUTH is not accepted on Amazon MQ | ERROR | none |
@@ -2317,7 +2325,7 @@
2317
2325
  | `pf-lambda-tenancy-no-function-url` | AWS::Lambda::Function | A tenant-isolated function cannot have a function URL | ERROR | none |
2318
2326
  | `pf-lambda-tenancy-no-provisioned-concurrency` | AWS::Lambda::Function | A tenant-isolated function cannot use provisioned concurrency | ERROR | none |
2319
2327
  | `pf-lambda-tenancy-no-snapstart` | AWS::Lambda::Function | A tenant-isolated function cannot use SnapStart | ERROR | pending-engine |
2320
- | `pf-lambda-timeout-max` | AWS::Lambda::Function | Timeout tops out at 900 seconds | ERROR | retired: engine E3717 covers it from aws-cdk-lib 2.271.0 |
2328
+ | `pf-lambda-timeout-max` | AWS::Lambda::Function | Timeout tops out at 1800 seconds without CapacityProviderConfig | ERROR | retired: engine E3717 covers it from aws-cdk-lib 2.271.0 |
2321
2329
  | `pf-lambda-tracing-mode-enum` | AWS::Lambda::Function | TracingConfig.Mode takes Active or PassThrough | ERROR | pending-engine |
2322
2330
  | `pf-lambda-url-auth-type-enum` | AWS::Lambda::Url | AuthType is AWS_IAM or NONE | ERROR | pending-engine |
2323
2331
  | `pf-lambda-url-cors-allow-methods-wildcard-mix` | AWS::Lambda::Url | CORS methods are a wildcard or a list, not both | ERROR | none |
package/lib/index.js CHANGED
@@ -19,7 +19,7 @@ const rules_generated_1 = require("./rules.generated");
19
19
  * Preflight.apply(app);
20
20
  */
21
21
  class Preflight {
22
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.13.0" };
22
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.14.0" };
23
23
  /**
24
24
  * Register the cdk-preflight rules on an App or Stage.
25
25
  */