aws-cdk-lib 2.154.1__py3-none-any.whl → 2.156.0__py3-none-any.whl
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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +2 -2
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.154.1.jsii.tgz → aws-cdk-lib@2.156.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +17 -17
- aws_cdk/aws_bedrock/__init__.py +22 -4
- aws_cdk/aws_cloudfront/__init__.py +654 -59
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +349 -8
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +250 -61
- aws_cdk/aws_ecs/__init__.py +18 -14
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +74 -8
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +22 -46
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_ivs/__init__.py +10 -8
- aws_cdk/aws_kms/__init__.py +89 -10
- aws_cdk/aws_lambda/__init__.py +38 -23
- aws_cdk/aws_lambda_event_sources/__init__.py +27 -0
- aws_cdk/aws_rds/__init__.py +12 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_secretsmanager/__init__.py +3 -2
- aws_cdk/aws_ses/__init__.py +7 -7
- aws_cdk/aws_ssmcontacts/__init__.py +12 -0
- aws_cdk/aws_stepfunctions/__init__.py +12 -14
- aws_cdk/aws_stepfunctions_tasks/__init__.py +178 -41
- aws_cdk/aws_synthetics/__init__.py +26 -0
- aws_cdk/custom_resources/__init__.py +106 -1
- aws_cdk/cx_api/__init__.py +16 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/RECORD +37 -37
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.154.1.dist-info → aws_cdk_lib-2.156.0.dist-info}/top_level.txt +0 -0
aws_cdk/__init__.py
CHANGED
|
@@ -2073,11 +2073,11 @@ class ArnComponents:
|
|
|
2073
2073
|
)
|
|
2074
2074
|
delegation_role = iam.Role.from_role_arn(self, "DelegationRole", delegation_role_arn)
|
|
2075
2075
|
|
|
2076
|
-
# create the record
|
|
2077
2076
|
route53.CrossAccountZoneDelegationRecord(self, "delegate",
|
|
2078
2077
|
delegated_zone=sub_zone,
|
|
2079
2078
|
parent_hosted_zone_name="someexample.com", # or you can use parentHostedZoneId
|
|
2080
|
-
delegation_role=delegation_role
|
|
2079
|
+
delegation_role=delegation_role,
|
|
2080
|
+
assume_role_region="us-east-1"
|
|
2081
2081
|
)
|
|
2082
2082
|
'''
|
|
2083
2083
|
if __debug__:
|
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -20,7 +20,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
20
20
|
import constructs._jsii
|
|
21
21
|
|
|
22
22
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
23
|
-
"aws-cdk-lib", "2.
|
|
23
|
+
"aws-cdk-lib", "2.156.0", __name__[0:-6], "aws-cdk-lib@2.156.0.jsii.tgz"
|
|
24
24
|
)
|
|
25
25
|
|
|
26
26
|
__all__ = [
|
|
Binary file
|
aws_cdk/assertions/__init__.py
CHANGED
|
@@ -700,7 +700,7 @@ class Annotations(
|
|
|
700
700
|
) -> typing.List[_SynthesisMessage_b3ae3c62]:
|
|
701
701
|
'''Get the set of matching errors of a given construct path and message.
|
|
702
702
|
|
|
703
|
-
:param construct_path: the construct path to the error
|
|
703
|
+
:param construct_path: the construct path to the error, provide ``'*'`` to match all errors in the template.
|
|
704
704
|
:param message: the error message as should be expected. This should be a string or Matcher object.
|
|
705
705
|
'''
|
|
706
706
|
if __debug__:
|
|
@@ -717,7 +717,7 @@ class Annotations(
|
|
|
717
717
|
) -> typing.List[_SynthesisMessage_b3ae3c62]:
|
|
718
718
|
'''Get the set of matching infos of a given construct path and message.
|
|
719
719
|
|
|
720
|
-
:param construct_path: the construct path to the info
|
|
720
|
+
:param construct_path: the construct path to the info, provide ``'*'`` to match all infos in the template.
|
|
721
721
|
:param message: the info message as should be expected. This should be a string or Matcher object.
|
|
722
722
|
'''
|
|
723
723
|
if __debug__:
|
|
@@ -734,7 +734,7 @@ class Annotations(
|
|
|
734
734
|
) -> typing.List[_SynthesisMessage_b3ae3c62]:
|
|
735
735
|
'''Get the set of matching warning of a given construct path and message.
|
|
736
736
|
|
|
737
|
-
:param construct_path: the construct path to the warning
|
|
737
|
+
:param construct_path: the construct path to the warning, provide ``'*'`` to match all warnings in the template.
|
|
738
738
|
:param message: the warning message as should be expected. This should be a string or Matcher object.
|
|
739
739
|
'''
|
|
740
740
|
if __debug__:
|
|
@@ -747,7 +747,7 @@ class Annotations(
|
|
|
747
747
|
def has_error(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
748
748
|
'''Assert that an error with the given message exists in the synthesized CDK ``Stack``.
|
|
749
749
|
|
|
750
|
-
:param construct_path: the construct path to the error
|
|
750
|
+
:param construct_path: the construct path to the error, provide ``'*'`` to match all errors in the template.
|
|
751
751
|
:param message: the error message as should be expected. This should be a string or Matcher object.
|
|
752
752
|
'''
|
|
753
753
|
if __debug__:
|
|
@@ -760,7 +760,7 @@ class Annotations(
|
|
|
760
760
|
def has_info(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
761
761
|
'''Assert that an info with the given message exists in the synthesized CDK ``Stack``.
|
|
762
762
|
|
|
763
|
-
:param construct_path: the construct path to the info
|
|
763
|
+
:param construct_path: the construct path to the info, provide ``'*'`` to match all info in the template.
|
|
764
764
|
:param message: the info message as should be expected. This should be a string or Matcher object.
|
|
765
765
|
'''
|
|
766
766
|
if __debug__:
|
|
@@ -773,7 +773,7 @@ class Annotations(
|
|
|
773
773
|
def has_no_error(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
774
774
|
'''Assert that an error with the given message does not exist in the synthesized CDK ``Stack``.
|
|
775
775
|
|
|
776
|
-
:param construct_path: the construct path to the error
|
|
776
|
+
:param construct_path: the construct path to the error, provide ``'*'`` to match all errors in the template.
|
|
777
777
|
:param message: the error message as should be expected. This should be a string or Matcher object.
|
|
778
778
|
'''
|
|
779
779
|
if __debug__:
|
|
@@ -786,7 +786,7 @@ class Annotations(
|
|
|
786
786
|
def has_no_info(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
787
787
|
'''Assert that an info with the given message does not exist in the synthesized CDK ``Stack``.
|
|
788
788
|
|
|
789
|
-
:param construct_path: the construct path to the info
|
|
789
|
+
:param construct_path: the construct path to the info, provide ``'*'`` to match all info in the template.
|
|
790
790
|
:param message: the info message as should be expected. This should be a string or Matcher object.
|
|
791
791
|
'''
|
|
792
792
|
if __debug__:
|
|
@@ -799,7 +799,7 @@ class Annotations(
|
|
|
799
799
|
def has_no_warning(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
800
800
|
'''Assert that an warning with the given message does not exist in the synthesized CDK ``Stack``.
|
|
801
801
|
|
|
802
|
-
:param construct_path: the construct path to the warning
|
|
802
|
+
:param construct_path: the construct path to the warning, provide ``'*'`` to match all warnings in the template.
|
|
803
803
|
:param message: the warning message as should be expected. This should be a string or Matcher object.
|
|
804
804
|
'''
|
|
805
805
|
if __debug__:
|
|
@@ -812,7 +812,7 @@ class Annotations(
|
|
|
812
812
|
def has_warning(self, construct_path: builtins.str, message: typing.Any) -> None:
|
|
813
813
|
'''Assert that an warning with the given message exists in the synthesized CDK ``Stack``.
|
|
814
814
|
|
|
815
|
-
:param construct_path: the construct path to the warning
|
|
815
|
+
:param construct_path: the construct path to the warning, provide ``'*'`` to match all warnings in the template.
|
|
816
816
|
:param message: the warning message as should be expected. This should be a string or Matcher object.
|
|
817
817
|
'''
|
|
818
818
|
if __debug__:
|
|
@@ -1586,7 +1586,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1586
1586
|
) -> typing.Mapping[builtins.str, typing.Mapping[builtins.str, typing.Any]]:
|
|
1587
1587
|
'''Get the set of matching Conditions that match the given properties in the CloudFormation template.
|
|
1588
1588
|
|
|
1589
|
-
:param logical_id: the name of the condition
|
|
1589
|
+
:param logical_id: the name of the condition, provide ``'*'`` to match all conditions in the template.
|
|
1590
1590
|
:param props: by default, matches all Conditions in the template. When a literal object is provided, performs a partial match via ``Match.objectLike()``. Use the ``Match`` APIs to configure a different behaviour.
|
|
1591
1591
|
'''
|
|
1592
1592
|
if __debug__:
|
|
@@ -1603,7 +1603,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1603
1603
|
) -> typing.Mapping[builtins.str, typing.Mapping[builtins.str, typing.Any]]:
|
|
1604
1604
|
'''Get the set of matching Mappings that match the given properties in the CloudFormation template.
|
|
1605
1605
|
|
|
1606
|
-
:param logical_id: the name of the mapping
|
|
1606
|
+
:param logical_id: the name of the mapping, provide ``'*'`` to match all mappings in the template.
|
|
1607
1607
|
:param props: by default, matches all Mappings in the template. When a literal object is provided, performs a partial match via ``Match.objectLike()``. Use the ``Match`` APIs to configure a different behaviour.
|
|
1608
1608
|
'''
|
|
1609
1609
|
if __debug__:
|
|
@@ -1620,7 +1620,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1620
1620
|
) -> typing.Mapping[builtins.str, typing.Mapping[builtins.str, typing.Any]]:
|
|
1621
1621
|
'''Get the set of matching Outputs that match the given properties in the CloudFormation template.
|
|
1622
1622
|
|
|
1623
|
-
:param logical_id: the name of the output
|
|
1623
|
+
:param logical_id: the name of the output, provide ``'*'`` to match all outputs in the template.
|
|
1624
1624
|
:param props: by default, matches all Outputs in the template. When a literal object is provided, performs a partial match via ``Match.objectLike()``. Use the ``Match`` APIs to configure a different behaviour.
|
|
1625
1625
|
'''
|
|
1626
1626
|
if __debug__:
|
|
@@ -1637,7 +1637,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1637
1637
|
) -> typing.Mapping[builtins.str, typing.Mapping[builtins.str, typing.Any]]:
|
|
1638
1638
|
'''Get the set of matching Parameters that match the given properties in the CloudFormation template.
|
|
1639
1639
|
|
|
1640
|
-
:param logical_id: the name of the parameter
|
|
1640
|
+
:param logical_id: the name of the parameter, provide ``'*'`` to match all parameters in the template.
|
|
1641
1641
|
:param props: by default, matches all Parameters in the template. When a literal object is provided, performs a partial match via ``Match.objectLike()``. Use the ``Match`` APIs to configure a different behaviour.
|
|
1642
1642
|
'''
|
|
1643
1643
|
if __debug__:
|
|
@@ -1670,7 +1670,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1670
1670
|
By default, performs partial matching on the resource, via the ``Match.objectLike()``.
|
|
1671
1671
|
To configure different behavior, use other matchers in the ``Match`` class.
|
|
1672
1672
|
|
|
1673
|
-
:param logical_id: the name of the mapping
|
|
1673
|
+
:param logical_id: the name of the mapping, provide ``'*'`` to match all conditions in the template.
|
|
1674
1674
|
:param props: the output as should be expected in the template.
|
|
1675
1675
|
'''
|
|
1676
1676
|
if __debug__:
|
|
@@ -1686,7 +1686,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1686
1686
|
By default, performs partial matching on the resource, via the ``Match.objectLike()``.
|
|
1687
1687
|
To configure different behavior, use other matchers in the ``Match`` class.
|
|
1688
1688
|
|
|
1689
|
-
:param logical_id: the name of the mapping
|
|
1689
|
+
:param logical_id: the name of the mapping, provide ``'*'`` to match all mappings in the template.
|
|
1690
1690
|
:param props: the output as should be expected in the template.
|
|
1691
1691
|
'''
|
|
1692
1692
|
if __debug__:
|
|
@@ -1702,7 +1702,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1702
1702
|
By default, performs partial matching on the resource, via the ``Match.objectLike()``.
|
|
1703
1703
|
To configure different behavior, use other matchers in the ``Match`` class.
|
|
1704
1704
|
|
|
1705
|
-
:param logical_id: the name of the output
|
|
1705
|
+
:param logical_id: the name of the output, provide ``'*'`` to match all outputs in the template.
|
|
1706
1706
|
:param props: the output as should be expected in the template.
|
|
1707
1707
|
'''
|
|
1708
1708
|
if __debug__:
|
|
@@ -1718,7 +1718,7 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1718
1718
|
By default, performs partial matching on the parameter, via the ``Match.objectLike()``.
|
|
1719
1719
|
To configure different behavior, use other matchers in the ``Match`` class.
|
|
1720
1720
|
|
|
1721
|
-
:param logical_id: the name of the parameter
|
|
1721
|
+
:param logical_id: the name of the parameter, provide ``'*'`` to match all parameters in the template.
|
|
1722
1722
|
:param props: the parameter as should be expected in the template.
|
|
1723
1723
|
'''
|
|
1724
1724
|
if __debug__:
|
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -18160,8 +18160,8 @@ class FoundationModelIdentifier(
|
|
|
18160
18160
|
|
|
18161
18161
|
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
18162
18162
|
model=model,
|
|
18163
|
-
|
|
18164
|
-
|
|
18163
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
18164
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
18165
18165
|
)
|
|
18166
18166
|
'''
|
|
18167
18167
|
|
|
@@ -18606,6 +18606,12 @@ class FoundationModelIdentifier(
|
|
|
18606
18606
|
'''Base model "mistral.mistral-small-2402-v1:0".'''
|
|
18607
18607
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_SMALL_V0_1"))
|
|
18608
18608
|
|
|
18609
|
+
@jsii.python.classproperty
|
|
18610
|
+
@jsii.member(jsii_name="STABILITY_SD3_LARGE_V1_0")
|
|
18611
|
+
def STABILITY_SD3_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
18612
|
+
'''Base model "stability.sd3-large-v1:0".'''
|
|
18613
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_SD3_LARGE_V1_0"))
|
|
18614
|
+
|
|
18609
18615
|
@jsii.python.classproperty
|
|
18610
18616
|
@jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL")
|
|
18611
18617
|
def STABILITY_STABLE_DIFFUSION_XL(cls) -> "FoundationModelIdentifier":
|
|
@@ -18640,6 +18646,18 @@ class FoundationModelIdentifier(
|
|
|
18640
18646
|
'''Base model "stability.stable-diffusion-xl-v1:0".'''
|
|
18641
18647
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1_0"))
|
|
18642
18648
|
|
|
18649
|
+
@jsii.python.classproperty
|
|
18650
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_CORE_V1_0")
|
|
18651
|
+
def STABILITY_STABLE_IMAGE_CORE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
18652
|
+
'''Base model "stability.stable-image-core-v1:0".'''
|
|
18653
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_0"))
|
|
18654
|
+
|
|
18655
|
+
@jsii.python.classproperty
|
|
18656
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_0")
|
|
18657
|
+
def STABILITY_STABLE_IMAGE_ULTRA_V1_0(cls) -> "FoundationModelIdentifier":
|
|
18658
|
+
'''Base model "stability.stable-image-ultra-v1:0".'''
|
|
18659
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_0"))
|
|
18660
|
+
|
|
18643
18661
|
@builtins.property
|
|
18644
18662
|
@jsii.member(jsii_name="modelId")
|
|
18645
18663
|
def model_id(self) -> builtins.str:
|
|
@@ -18755,8 +18773,8 @@ class FoundationModel(
|
|
|
18755
18773
|
|
|
18756
18774
|
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
18757
18775
|
model=model,
|
|
18758
|
-
|
|
18759
|
-
|
|
18776
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
18777
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
18760
18778
|
)
|
|
18761
18779
|
'''
|
|
18762
18780
|
|