aws-cdk-lib 2.181.1__py3-none-any.whl → 2.183.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 +751 -41
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.181.1.jsii.tgz → aws-cdk-lib@2.183.0.jsii.tgz} +0 -0
- aws_cdk/assertions/__init__.py +59 -0
- aws_cdk/aws_apigateway/__init__.py +122 -66
- aws_cdk/aws_applicationautoscaling/__init__.py +4 -0
- aws_cdk/aws_appsync/__init__.py +30 -4
- aws_cdk/aws_autoscaling/__init__.py +409 -36
- aws_cdk/aws_batch/__init__.py +638 -14
- aws_cdk/aws_bedrock/__init__.py +6009 -2326
- aws_cdk/aws_ce/__init__.py +141 -3
- aws_cdk/aws_certificatemanager/__init__.py +24 -0
- aws_cdk/aws_cloudformation/__init__.py +310 -35
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +8 -8
- aws_cdk/aws_codebuild/__init__.py +4 -10
- aws_cdk/aws_cognito/__init__.py +3 -3
- aws_cdk/aws_datazone/__init__.py +82 -0
- aws_cdk/aws_dms/__init__.py +350 -0
- aws_cdk/aws_ec2/__init__.py +95 -17
- aws_cdk/aws_ecr/__init__.py +10 -4
- aws_cdk/aws_ecs/__init__.py +58 -9
- aws_cdk/aws_eks/__init__.py +32 -3
- aws_cdk/aws_elasticache/__init__.py +3 -3
- aws_cdk/aws_emr/__init__.py +9 -3
- aws_cdk/aws_fsx/__init__.py +2 -0
- aws_cdk/aws_gameliftstreams/__init__.py +1205 -0
- aws_cdk/aws_guardduty/__init__.py +38 -26
- aws_cdk/aws_iam/__init__.py +295 -37
- aws_cdk/aws_inspector/__init__.py +180 -1
- aws_cdk/aws_iot/__init__.py +616 -22
- aws_cdk/aws_iotfleetwise/__init__.py +72 -10
- aws_cdk/aws_iotsitewise/__init__.py +14 -11
- aws_cdk/aws_kafkaconnect/__init__.py +4 -2
- aws_cdk/aws_kinesisfirehose/__init__.py +6 -0
- aws_cdk/aws_lambda/__init__.py +17 -0
- aws_cdk/aws_logs/__init__.py +135 -0
- aws_cdk/aws_medialive/__init__.py +86 -86
- aws_cdk/aws_mediapackagev2/__init__.py +22 -14
- aws_cdk/aws_msk/__init__.py +236 -128
- aws_cdk/aws_neptunegraph/__init__.py +3 -3
- aws_cdk/aws_opensearchserverless/__init__.py +1031 -0
- aws_cdk/aws_opensearchservice/__init__.py +261 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +30 -4
- aws_cdk/aws_pipes/__init__.py +6 -2
- aws_cdk/aws_quicksight/__init__.py +6712 -20758
- aws_cdk/aws_rds/__init__.py +174 -30
- aws_cdk/aws_redshift/__init__.py +8 -8
- aws_cdk/aws_s3/__init__.py +8 -0
- aws_cdk/aws_sagemaker/__init__.py +80 -18
- aws_cdk/aws_securitylake/__init__.py +3 -0
- aws_cdk/aws_sns/__init__.py +76 -1
- aws_cdk/aws_synthetics/__init__.py +2 -0
- aws_cdk/aws_transfer/__init__.py +241 -40
- aws_cdk/aws_vpclattice/__init__.py +144 -9
- aws_cdk/aws_wafv2/__init__.py +790 -0
- aws_cdk/aws_wisdom/__init__.py +3 -110
- aws_cdk/aws_workspacesthinclient/__init__.py +4 -4
- aws_cdk/aws_workspacesweb/__init__.py +179 -2
- aws_cdk/aws_xray/__init__.py +195 -0
- aws_cdk/cloud_assembly_schema/__init__.py +224 -4
- aws_cdk/custom_resources/__init__.py +65 -8
- aws_cdk/cx_api/__init__.py +2 -1
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/RECORD +69 -68
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.181.1.dist-info → aws_cdk_lib-2.183.0.dist-info}/top_level.txt +0 -0
aws_cdk/_jsii/__init__.py
CHANGED
|
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
|
|
|
34
34
|
import constructs._jsii
|
|
35
35
|
|
|
36
36
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
37
|
-
"aws-cdk-lib", "2.
|
|
37
|
+
"aws-cdk-lib", "2.183.0", __name__[0:-6], "aws-cdk-lib@2.183.0.jsii.tgz"
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
__all__ = [
|
|
Binary file
|
aws_cdk/assertions/__init__.py
CHANGED
|
@@ -135,6 +135,34 @@ Beyond assertions, the module provides APIs to retrieve matching resources.
|
|
|
135
135
|
The `findResources()` API is complementary to the `hasResource()` API, except,
|
|
136
136
|
instead of asserting its presence, it returns the set of matching resources.
|
|
137
137
|
|
|
138
|
+
Similarly, the `getResourceId()` API is complementary to the `findResources()` API,
|
|
139
|
+
except it expects only one matching resource, and returns the matched resource's resource id.
|
|
140
|
+
Useful for asserting that certain cloudformation resources correlate expectedly.
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
# Assert that a certain bucket denies unsecure communication
|
|
144
|
+
bucket = template.get_resource_id("AWS::S3::Bucket", {
|
|
145
|
+
"Properties": {
|
|
146
|
+
"BucketName": "my-bucket"
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
template.has_resource_properties("AWS::S3::BucketPolicy", {
|
|
151
|
+
"Bucket": {
|
|
152
|
+
"Ref": bucket
|
|
153
|
+
},
|
|
154
|
+
"PolicyDocument": {
|
|
155
|
+
"Statement": [{
|
|
156
|
+
"Effect": "Deny",
|
|
157
|
+
"Action": "s3:*",
|
|
158
|
+
"Principal": {"AWS": "*"},
|
|
159
|
+
"Condition": {"Bool": {"aws:_secure_transport": "false"}}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
})
|
|
164
|
+
```
|
|
165
|
+
|
|
138
166
|
By default, the `hasResource()` and `hasResourceProperties()` APIs perform deep
|
|
139
167
|
partial object matching. This behavior can be configured using matchers.
|
|
140
168
|
See subsequent section on [special matchers](#special-matchers).
|
|
@@ -1678,6 +1706,30 @@ class Template(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.assertions.Templa
|
|
|
1678
1706
|
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1679
1707
|
return typing.cast(typing.Mapping[builtins.str, typing.Mapping[builtins.str, typing.Any]], jsii.invoke(self, "findResources", [type, props]))
|
|
1680
1708
|
|
|
1709
|
+
@jsii.member(jsii_name="getResourceId")
|
|
1710
|
+
def get_resource_id(
|
|
1711
|
+
self,
|
|
1712
|
+
type: builtins.str,
|
|
1713
|
+
props: typing.Any = None,
|
|
1714
|
+
) -> builtins.str:
|
|
1715
|
+
'''Get the Resource ID of a matching resource, expects only to find one match.
|
|
1716
|
+
|
|
1717
|
+
Throws AssertionError if none or multiple resources were found.
|
|
1718
|
+
|
|
1719
|
+
:param type: the resource type; ex: ``AWS::S3::Bucket``
|
|
1720
|
+
:param props: by default, matches all resources with the given type.
|
|
1721
|
+
|
|
1722
|
+
:return:
|
|
1723
|
+
|
|
1724
|
+
The resource id of the matched resource.
|
|
1725
|
+
Performs a partial match via ``Match.objectLike()``.
|
|
1726
|
+
'''
|
|
1727
|
+
if __debug__:
|
|
1728
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2f7c6944fc7b237368ae228a894f8b38d522a3e852eff794e0f83205175667d4)
|
|
1729
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1730
|
+
check_type(argname="argument props", value=props, expected_type=type_hints["props"])
|
|
1731
|
+
return typing.cast(builtins.str, jsii.invoke(self, "getResourceId", [type, props]))
|
|
1732
|
+
|
|
1681
1733
|
@jsii.member(jsii_name="hasCondition")
|
|
1682
1734
|
def has_condition(self, logical_id: builtins.str, props: typing.Any) -> None:
|
|
1683
1735
|
'''Assert that a Condition with the given properties exists in the CloudFormation template.
|
|
@@ -2274,6 +2326,13 @@ def _typecheckingstub__8dfdecc696a85cbadb9124975e7619b743acea4afb3b4cfdbc07ad48a
|
|
|
2274
2326
|
"""Type checking stubs"""
|
|
2275
2327
|
pass
|
|
2276
2328
|
|
|
2329
|
+
def _typecheckingstub__2f7c6944fc7b237368ae228a894f8b38d522a3e852eff794e0f83205175667d4(
|
|
2330
|
+
type: builtins.str,
|
|
2331
|
+
props: typing.Any = None,
|
|
2332
|
+
) -> None:
|
|
2333
|
+
"""Type checking stubs"""
|
|
2334
|
+
pass
|
|
2335
|
+
|
|
2277
2336
|
def _typecheckingstub__ac5b639f55bbadd46a290effbbbd13769b71a711bcc8b3e04c9b2e4f29931a84(
|
|
2278
2337
|
logical_id: builtins.str,
|
|
2279
2338
|
props: typing.Any,
|