aws-cdk-lib 2.200.2__py3-none-any.whl → 2.202.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 +129 -37
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.200.2.jsii.tgz → aws-cdk-lib@2.202.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +2 -3
- aws_cdk/aws_amplify/__init__.py +3 -3
- aws_cdk/aws_apigateway/__init__.py +21 -17
- aws_cdk/aws_apigatewayv2/__init__.py +87 -45
- aws_cdk/aws_appconfig/__init__.py +38 -1
- aws_cdk/aws_appsync/__init__.py +10 -10
- aws_cdk/aws_athena/__init__.py +227 -0
- aws_cdk/aws_autoscaling/__init__.py +38 -37
- aws_cdk/aws_bedrock/__init__.py +5108 -1571
- aws_cdk/aws_cloudfront/__init__.py +38 -38
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
- aws_cdk/aws_cloudtrail/__init__.py +178 -0
- aws_cdk/aws_cloudwatch/__init__.py +7 -3
- aws_cdk/aws_codepipeline_actions/__init__.py +746 -0
- aws_cdk/aws_connect/__init__.py +5 -5
- aws_cdk/aws_customerprofiles/__init__.py +377 -8
- aws_cdk/aws_datasync/__init__.py +189 -160
- aws_cdk/aws_datazone/__init__.py +512 -170
- aws_cdk/aws_deadline/__init__.py +32 -4
- aws_cdk/aws_dsql/__init__.py +150 -10
- aws_cdk/aws_ec2/__init__.py +1191 -304
- aws_cdk/aws_ecs/__init__.py +94 -11
- aws_cdk/aws_efs/__init__.py +103 -12
- aws_cdk/aws_eks/__init__.py +337 -168
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +2 -2
- aws_cdk/aws_emr/__init__.py +10 -4
- aws_cdk/aws_entityresolution/__init__.py +25 -10
- aws_cdk/aws_evs/__init__.py +2204 -0
- aws_cdk/aws_fsx/__init__.py +7 -7
- aws_cdk/aws_glue/__init__.py +58 -24
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_kms/__init__.py +10 -4
- aws_cdk/aws_lambda/__init__.py +1167 -55
- aws_cdk/aws_lambda_event_sources/__init__.py +638 -1
- aws_cdk/aws_lightsail/__init__.py +17 -13
- aws_cdk/aws_logs/__init__.py +1 -0
- aws_cdk/aws_msk/__init__.py +21 -2
- aws_cdk/aws_mwaa/__init__.py +45 -2
- aws_cdk/aws_networkfirewall/__init__.py +562 -0
- aws_cdk/aws_opensearchservice/__init__.py +3 -3
- aws_cdk/aws_opsworkscm/__init__.py +9 -43
- aws_cdk/aws_rds/__init__.py +287 -87
- aws_cdk/aws_s3/__init__.py +39 -15
- aws_cdk/aws_sagemaker/__init__.py +223 -3
- aws_cdk/aws_securityhub/__init__.py +18 -34
- aws_cdk/aws_ssm/__init__.py +83 -1
- aws_cdk/aws_stepfunctions/__init__.py +235 -45
- aws_cdk/aws_synthetics/__init__.py +74 -0
- aws_cdk/aws_transfer/__init__.py +3 -3
- aws_cdk/aws_verifiedpermissions/__init__.py +17 -6
- aws_cdk/aws_wafv2/__init__.py +770 -7
- aws_cdk/cx_api/__init__.py +14 -0
- aws_cdk/pipelines/__init__.py +147 -38
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/METADATA +3 -3
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/RECORD +62 -61
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.200.2.dist-info → aws_cdk_lib-2.202.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ssm/__init__.py
CHANGED
|
@@ -57,6 +57,22 @@ This method uses AWS API calls to lookup the value from SSM during synthesis.
|
|
|
57
57
|
string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter")
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
The result of the `StringParameter.valueFromLookup()` operation will be written to a file
|
|
61
|
+
called `cdk.context.json`. You must commit this file to source control so
|
|
62
|
+
that the lookup values are available in non-privileged environments such
|
|
63
|
+
as CI build steps, and to ensure your template builds are repeatable.
|
|
64
|
+
|
|
65
|
+
To customize the cache key, use the `additionalCacheKey` property of the `options` parameter.
|
|
66
|
+
This allows you to have multiple lookups with the same parameters
|
|
67
|
+
cache their values separately. This can be useful if you want to
|
|
68
|
+
scope the context variable to a construct (ie, using `additionalCacheKey: this.node.path`),
|
|
69
|
+
so that if the value in the cache needs to be updated, it does not need to be updated
|
|
70
|
+
for all constructs at the same time.
|
|
71
|
+
|
|
72
|
+
```python
|
|
73
|
+
string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter", undefined, additional_cache_key=self.node.path)
|
|
74
|
+
```
|
|
75
|
+
|
|
60
76
|
When using `valueFromLookup` an initial value of 'dummy-value-for-${parameterName}'
|
|
61
77
|
(`dummy-value-for-/My/Public/Parameter` in the above example)
|
|
62
78
|
is returned prior to the lookup being performed. This can lead to errors if you are using this
|
|
@@ -8834,6 +8850,8 @@ class StringParameter(
|
|
|
8834
8850
|
scope: _constructs_77d1e7e8.Construct,
|
|
8835
8851
|
parameter_name: builtins.str,
|
|
8836
8852
|
default_value: typing.Optional[builtins.str] = None,
|
|
8853
|
+
*,
|
|
8854
|
+
additional_cache_key: typing.Optional[builtins.str] = None,
|
|
8837
8855
|
) -> builtins.str:
|
|
8838
8856
|
'''Reads the value of an SSM parameter during synthesis through an environmental context provider.
|
|
8839
8857
|
|
|
@@ -8847,13 +8865,18 @@ class StringParameter(
|
|
|
8847
8865
|
:param scope: -
|
|
8848
8866
|
:param parameter_name: -
|
|
8849
8867
|
:param default_value: -
|
|
8868
|
+
:param additional_cache_key: Adds an additional discriminator to the ``cdk.context.json`` cache key. Default: - no additional cache key
|
|
8850
8869
|
'''
|
|
8851
8870
|
if __debug__:
|
|
8852
8871
|
type_hints = typing.get_type_hints(_typecheckingstub__352ba5506c7762dcb469028a7b0515dc3daed2b43c5a8ff339ed16372f650250)
|
|
8853
8872
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
8854
8873
|
check_type(argname="argument parameter_name", value=parameter_name, expected_type=type_hints["parameter_name"])
|
|
8855
8874
|
check_type(argname="argument default_value", value=default_value, expected_type=type_hints["default_value"])
|
|
8856
|
-
|
|
8875
|
+
options = StringParameterLookupOptions(
|
|
8876
|
+
additional_cache_key=additional_cache_key
|
|
8877
|
+
)
|
|
8878
|
+
|
|
8879
|
+
return typing.cast(builtins.str, jsii.sinvoke(cls, "valueFromLookup", [scope, parameter_name, default_value, options]))
|
|
8857
8880
|
|
|
8858
8881
|
@jsii.member(jsii_name="grantRead")
|
|
8859
8882
|
def grant_read(self, grantee: _IGrantable_71c4f5de) -> _Grant_a7ae64f8:
|
|
@@ -9100,6 +9123,55 @@ class StringParameterAttributes(CommonStringParameterAttributes):
|
|
|
9100
9123
|
)
|
|
9101
9124
|
|
|
9102
9125
|
|
|
9126
|
+
@jsii.data_type(
|
|
9127
|
+
jsii_type="aws-cdk-lib.aws_ssm.StringParameterLookupOptions",
|
|
9128
|
+
jsii_struct_bases=[],
|
|
9129
|
+
name_mapping={"additional_cache_key": "additionalCacheKey"},
|
|
9130
|
+
)
|
|
9131
|
+
class StringParameterLookupOptions:
|
|
9132
|
+
def __init__(
|
|
9133
|
+
self,
|
|
9134
|
+
*,
|
|
9135
|
+
additional_cache_key: typing.Optional[builtins.str] = None,
|
|
9136
|
+
) -> None:
|
|
9137
|
+
'''Additional properties for looking up an existing StringParameter.
|
|
9138
|
+
|
|
9139
|
+
:param additional_cache_key: Adds an additional discriminator to the ``cdk.context.json`` cache key. Default: - no additional cache key
|
|
9140
|
+
|
|
9141
|
+
:exampleMetadata: infused
|
|
9142
|
+
|
|
9143
|
+
Example::
|
|
9144
|
+
|
|
9145
|
+
string_value = ssm.StringParameter.value_from_lookup(self, "/My/Public/Parameter", undefined, additional_cache_key=self.node.path)
|
|
9146
|
+
'''
|
|
9147
|
+
if __debug__:
|
|
9148
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0b618e024c5c8f9f30e5674f96c195555764789c667bad41049a169d5d6af1d3)
|
|
9149
|
+
check_type(argname="argument additional_cache_key", value=additional_cache_key, expected_type=type_hints["additional_cache_key"])
|
|
9150
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9151
|
+
if additional_cache_key is not None:
|
|
9152
|
+
self._values["additional_cache_key"] = additional_cache_key
|
|
9153
|
+
|
|
9154
|
+
@builtins.property
|
|
9155
|
+
def additional_cache_key(self) -> typing.Optional[builtins.str]:
|
|
9156
|
+
'''Adds an additional discriminator to the ``cdk.context.json`` cache key.
|
|
9157
|
+
|
|
9158
|
+
:default: - no additional cache key
|
|
9159
|
+
'''
|
|
9160
|
+
result = self._values.get("additional_cache_key")
|
|
9161
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
9162
|
+
|
|
9163
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9164
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9165
|
+
|
|
9166
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9167
|
+
return not (rhs == self)
|
|
9168
|
+
|
|
9169
|
+
def __repr__(self) -> str:
|
|
9170
|
+
return "StringParameterLookupOptions(%s)" % ", ".join(
|
|
9171
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9172
|
+
)
|
|
9173
|
+
|
|
9174
|
+
|
|
9103
9175
|
@jsii.data_type(
|
|
9104
9176
|
jsii_type="aws-cdk-lib.aws_ssm.StringParameterProps",
|
|
9105
9177
|
jsii_struct_bases=[ParameterOptions],
|
|
@@ -9327,6 +9399,7 @@ __all__ = [
|
|
|
9327
9399
|
"StringListParameterProps",
|
|
9328
9400
|
"StringParameter",
|
|
9329
9401
|
"StringParameterAttributes",
|
|
9402
|
+
"StringParameterLookupOptions",
|
|
9330
9403
|
"StringParameterProps",
|
|
9331
9404
|
]
|
|
9332
9405
|
|
|
@@ -10722,6 +10795,8 @@ def _typecheckingstub__352ba5506c7762dcb469028a7b0515dc3daed2b43c5a8ff339ed16372
|
|
|
10722
10795
|
scope: _constructs_77d1e7e8.Construct,
|
|
10723
10796
|
parameter_name: builtins.str,
|
|
10724
10797
|
default_value: typing.Optional[builtins.str] = None,
|
|
10798
|
+
*,
|
|
10799
|
+
additional_cache_key: typing.Optional[builtins.str] = None,
|
|
10725
10800
|
) -> None:
|
|
10726
10801
|
"""Type checking stubs"""
|
|
10727
10802
|
pass
|
|
@@ -10750,6 +10825,13 @@ def _typecheckingstub__045695ee32d353600237b891b14ad138098a0add8ba99199144ee57ef
|
|
|
10750
10825
|
"""Type checking stubs"""
|
|
10751
10826
|
pass
|
|
10752
10827
|
|
|
10828
|
+
def _typecheckingstub__0b618e024c5c8f9f30e5674f96c195555764789c667bad41049a169d5d6af1d3(
|
|
10829
|
+
*,
|
|
10830
|
+
additional_cache_key: typing.Optional[builtins.str] = None,
|
|
10831
|
+
) -> None:
|
|
10832
|
+
"""Type checking stubs"""
|
|
10833
|
+
pass
|
|
10834
|
+
|
|
10753
10835
|
def _typecheckingstub__a14e5cea1d211f374b7c289d526224c03be1f2e91a2a94cbcdf8f1d251335822(
|
|
10754
10836
|
*,
|
|
10755
10837
|
allowed_pattern: typing.Optional[builtins.str] = None,
|