Skip to content

Commit 7191aed

Browse files
authored
Merge pull request #2812 from aws/main-copy
chore: Merge branch "main" into "develop" to apply the patch and version bump
2 parents 96691c1 + 111bb11 commit 7191aed

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.cfnlintrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ ignore_templates:
108108
- tests/translator/output/**/s3_intrinsics.json
109109
- tests/translator/output/**/schema_validation_1.json
110110
- tests/translator/output/**/self_managed_kafka_with_intrinsics.json
111-
- tests/translator/output/**/sqs_with_scaling_config.json # TODO: remove once SQS scaling config is available
111+
- tests/translator/output/**/sqs_with_scaling_config.json # Invalid Property Resources/SQSFunctionMySqsQueue/Properties/ScalingConfig
112112
- tests/translator/output/**/state_machine_with_condition.json
113113
- tests/translator/output/**/state_machine_with_condition_and_events.json
114114
- tests/translator/output/**/state_machine_with_eb_dlq_target_id.json

samtranslator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.58.0"
1+
__version__ = "1.58.1"

samtranslator/model/eventsources/pull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class PullEventSource(ResourceMacro, metaclass=ABCMeta):
5454
"KafkaBootstrapServers": PropertyType(False, is_type(list)),
5555
"FilterCriteria": PropertyType(False, IS_DICT),
5656
"ConsumerGroupId": PropertyType(False, IS_STR),
57-
"ScalingConfig": PropertyType(False, IS_STR),
57+
"ScalingConfig": PropertyType(False, IS_DICT),
5858
}
5959

6060
BatchSize: Optional[Intrinsicable[int]]

samtranslator/model/types.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,15 @@ def validate(value: Any, should_raise: bool = False) -> bool:
135135
return True
136136

137137
return validate
138+
139+
140+
def is_str() -> Validator:
141+
"""
142+
For compatibility reason, we need this `is_str()` as it
143+
is consumed by old versions of AWS SAM CLI (<1.71.0).
144+
145+
Related PRs/commits:
146+
https://github.com/aws/serverless-application-model/pull/2752
147+
https://github.com/aws/aws-sam-cli/commit/d18f57c5f39273a04fb582f90e6c5817a4651912
148+
"""
149+
return IS_STR

0 commit comments

Comments
 (0)