aws-cdk-lib 2.118.0__py3-none-any.whl → 2.119.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 +4 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.118.0.jsii.tgz → aws-cdk-lib@2.119.0.jsii.tgz} +0 -0
- aws_cdk/amzn_sdc/__init__.py +496 -0
- aws_cdk/aws_appsync/__init__.py +23 -9
- aws_cdk/aws_certificatemanager/__init__.py +164 -3
- aws_cdk/aws_cloud9/__init__.py +3 -3
- aws_cdk/aws_cloudfront/__init__.py +105 -5
- aws_cdk/aws_cloudtrail/__init__.py +54 -34
- aws_cdk/aws_cloudwatch_actions/__init__.py +105 -0
- aws_cdk/aws_codebuild/__init__.py +1 -0
- aws_cdk/aws_codecommit/__init__.py +9 -3
- aws_cdk/aws_codetest/__init__.py +788 -0
- aws_cdk/aws_cognito/__init__.py +104 -0
- aws_cdk/aws_connect/__init__.py +626 -78
- aws_cdk/aws_docdb/__init__.py +442 -0
- aws_cdk/aws_dynamodb/__init__.py +14 -0
- aws_cdk/aws_ec2/__init__.py +372 -44
- aws_cdk/aws_emrserverless/__init__.py +20 -13
- aws_cdk/aws_events/__init__.py +90 -1
- aws_cdk/aws_fis/__init__.py +12 -32
- aws_cdk/aws_globalaccelerator/__init__.py +19 -0
- aws_cdk/aws_glue/__init__.py +329 -0
- aws_cdk/aws_iam/__init__.py +30 -24
- aws_cdk/aws_iot/__init__.py +112 -0
- aws_cdk/aws_iotsitewise/__init__.py +4 -4
- aws_cdk/aws_kendra/__init__.py +10 -5
- aws_cdk/aws_kinesisfirehose/__init__.py +111 -0
- aws_cdk/aws_location/__init__.py +1132 -17
- aws_cdk/aws_mediatailor/__init__.py +120 -17
- aws_cdk/aws_networkfirewall/__init__.py +2 -2
- aws_cdk/aws_networkmanager/__init__.py +1 -1
- aws_cdk/aws_omics/__init__.py +4 -4
- aws_cdk/aws_opensearchservice/__init__.py +2 -0
- aws_cdk/aws_pinpoint/__init__.py +14 -6
- aws_cdk/aws_pipes/__init__.py +7 -2
- aws_cdk/aws_rds/__init__.py +15 -9
- aws_cdk/aws_redshift/__init__.py +103 -0
- aws_cdk/aws_route53/__init__.py +68 -20
- aws_cdk/aws_s3/__init__.py +2 -4
- aws_cdk/aws_s3objectlambda/__init__.py +2 -2
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -3
- aws_cdk/aws_signer/__init__.py +27 -4
- aws_cdk/aws_ssm/__init__.py +76 -13
- aws_cdk/aws_stepfunctions/__init__.py +110 -5
- aws_cdk/pipelines/__init__.py +136 -37
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/METADATA +2 -2
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/RECORD +52 -50
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.118.0.dist-info → aws_cdk_lib-2.119.0.dist-info}/top_level.txt +0 -0
|
@@ -36,6 +36,29 @@ alarm.add_alarm_action(
|
|
|
36
36
|
actions.SsmIncidentAction("ResponsePlanName"))
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
## Lambda Action Example
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import aws_cdk.aws_lambda as lambda_
|
|
43
|
+
# alarm: cloudwatch.Alarm
|
|
44
|
+
# fn: lambda.Function
|
|
45
|
+
# alias: lambda.Alias
|
|
46
|
+
# version: lambda.Version
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Attach a Lambda Function when alarm triggers
|
|
50
|
+
alarm.add_alarm_action(
|
|
51
|
+
actions.LambdaAction(fn))
|
|
52
|
+
|
|
53
|
+
# Attach a Lambda Function Alias when alarm triggers
|
|
54
|
+
alarm.add_alarm_action(
|
|
55
|
+
actions.LambdaAction(alias))
|
|
56
|
+
|
|
57
|
+
# Attach a Lambda Function version when alarm triggers
|
|
58
|
+
alarm.add_alarm_action(
|
|
59
|
+
actions.LambdaAction(version))
|
|
60
|
+
```
|
|
61
|
+
|
|
39
62
|
See `aws-cdk-lib/aws-cloudwatch` for more information.
|
|
40
63
|
'''
|
|
41
64
|
import abc
|
|
@@ -62,6 +85,11 @@ from ..aws_cloudwatch import (
|
|
|
62
85
|
IAlarm as _IAlarm_ff3eabc0,
|
|
63
86
|
IAlarmAction as _IAlarmAction_922c5aa8,
|
|
64
87
|
)
|
|
88
|
+
from ..aws_lambda import (
|
|
89
|
+
IAlias as _IAlias_c8fe45f4,
|
|
90
|
+
IFunction as _IFunction_6adb0ab8,
|
|
91
|
+
IVersion as _IVersion_faf7234e,
|
|
92
|
+
)
|
|
65
93
|
from ..aws_sns import ITopic as _ITopic_9eca4852
|
|
66
94
|
|
|
67
95
|
|
|
@@ -233,6 +261,69 @@ class Ec2InstanceAction(enum.Enum):
|
|
|
233
261
|
'''Reboot the instance.'''
|
|
234
262
|
|
|
235
263
|
|
|
264
|
+
@jsii.implements(_IAlarmAction_922c5aa8)
|
|
265
|
+
class LambdaAction(
|
|
266
|
+
metaclass=jsii.JSIIMeta,
|
|
267
|
+
jsii_type="aws-cdk-lib.aws_cloudwatch_actions.LambdaAction",
|
|
268
|
+
):
|
|
269
|
+
'''Use a Lambda action as an Alarm action.
|
|
270
|
+
|
|
271
|
+
:exampleMetadata: infused
|
|
272
|
+
|
|
273
|
+
Example::
|
|
274
|
+
|
|
275
|
+
import aws_cdk.aws_lambda as lambda_
|
|
276
|
+
# alarm: cloudwatch.Alarm
|
|
277
|
+
# fn: lambda.Function
|
|
278
|
+
# alias: lambda.Alias
|
|
279
|
+
# version: lambda.Version
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# Attach a Lambda Function when alarm triggers
|
|
283
|
+
alarm.add_alarm_action(
|
|
284
|
+
actions.LambdaAction(fn))
|
|
285
|
+
|
|
286
|
+
# Attach a Lambda Function Alias when alarm triggers
|
|
287
|
+
alarm.add_alarm_action(
|
|
288
|
+
actions.LambdaAction(alias))
|
|
289
|
+
|
|
290
|
+
# Attach a Lambda Function version when alarm triggers
|
|
291
|
+
alarm.add_alarm_action(
|
|
292
|
+
actions.LambdaAction(version))
|
|
293
|
+
'''
|
|
294
|
+
|
|
295
|
+
def __init__(
|
|
296
|
+
self,
|
|
297
|
+
lambda_function: typing.Union[_IFunction_6adb0ab8, _IVersion_faf7234e, _IAlias_c8fe45f4],
|
|
298
|
+
) -> None:
|
|
299
|
+
'''
|
|
300
|
+
:param lambda_function: -
|
|
301
|
+
'''
|
|
302
|
+
if __debug__:
|
|
303
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2693adec8362e537633b2584509df8d0d77cb381732395de1707d1edfe2c3c9e)
|
|
304
|
+
check_type(argname="argument lambda_function", value=lambda_function, expected_type=type_hints["lambda_function"])
|
|
305
|
+
jsii.create(self.__class__, self, [lambda_function])
|
|
306
|
+
|
|
307
|
+
@jsii.member(jsii_name="bind")
|
|
308
|
+
def bind(
|
|
309
|
+
self,
|
|
310
|
+
_scope: _constructs_77d1e7e8.Construct,
|
|
311
|
+
_alarm: _IAlarm_ff3eabc0,
|
|
312
|
+
) -> _AlarmActionConfig_f831c655:
|
|
313
|
+
'''Returns an alarm action configuration to use a Lambda action as an alarm action.
|
|
314
|
+
|
|
315
|
+
:param _scope: -
|
|
316
|
+
:param _alarm: -
|
|
317
|
+
|
|
318
|
+
:see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html
|
|
319
|
+
'''
|
|
320
|
+
if __debug__:
|
|
321
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2856bb69373ffd5b6a7628782cc0fb8ab9fd20450269ca5c709a08e9bfac50d5)
|
|
322
|
+
check_type(argname="argument _scope", value=_scope, expected_type=type_hints["_scope"])
|
|
323
|
+
check_type(argname="argument _alarm", value=_alarm, expected_type=type_hints["_alarm"])
|
|
324
|
+
return typing.cast(_AlarmActionConfig_f831c655, jsii.invoke(self, "bind", [_scope, _alarm]))
|
|
325
|
+
|
|
326
|
+
|
|
236
327
|
@jsii.enum(jsii_type="aws-cdk-lib.aws_cloudwatch_actions.OpsItemCategory")
|
|
237
328
|
class OpsItemCategory(enum.Enum):
|
|
238
329
|
'''Types of OpsItem category available.
|
|
@@ -432,6 +523,7 @@ __all__ = [
|
|
|
432
523
|
"AutoScalingAction",
|
|
433
524
|
"Ec2Action",
|
|
434
525
|
"Ec2InstanceAction",
|
|
526
|
+
"LambdaAction",
|
|
435
527
|
"OpsItemCategory",
|
|
436
528
|
"OpsItemSeverity",
|
|
437
529
|
"SnsAction",
|
|
@@ -480,6 +572,19 @@ def _typecheckingstub__617684dcf0b429d0176779c30669a734e5e356a2d0dbb98bf321e897c
|
|
|
480
572
|
"""Type checking stubs"""
|
|
481
573
|
pass
|
|
482
574
|
|
|
575
|
+
def _typecheckingstub__2693adec8362e537633b2584509df8d0d77cb381732395de1707d1edfe2c3c9e(
|
|
576
|
+
lambda_function: typing.Union[_IFunction_6adb0ab8, _IVersion_faf7234e, _IAlias_c8fe45f4],
|
|
577
|
+
) -> None:
|
|
578
|
+
"""Type checking stubs"""
|
|
579
|
+
pass
|
|
580
|
+
|
|
581
|
+
def _typecheckingstub__2856bb69373ffd5b6a7628782cc0fb8ab9fd20450269ca5c709a08e9bfac50d5(
|
|
582
|
+
_scope: _constructs_77d1e7e8.Construct,
|
|
583
|
+
_alarm: _IAlarm_ff3eabc0,
|
|
584
|
+
) -> None:
|
|
585
|
+
"""Type checking stubs"""
|
|
586
|
+
pass
|
|
587
|
+
|
|
483
588
|
def _typecheckingstub__d45c9fa069d1e0b882f975c29c8eb30315e60025b85741889c42ee16c1f229ca(
|
|
484
589
|
topic: _ITopic_9eca4852,
|
|
485
590
|
) -> None:
|
|
@@ -200,7 +200,7 @@ class CfnRepository(
|
|
|
200
200
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
201
201
|
:param repository_name: The name of the new repository to be created. .. epigraph:: The repository name must be unique across the calling AWS account . Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see `Quotas <https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html>`_ in the *AWS CodeCommit User Guide* . The suffix .git is prohibited.
|
|
202
202
|
:param code: Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. Information about code is only used in resource creation. Updates to a stack will not reflect changes made to code properties after initial resource creation. .. epigraph:: You can only use this property to add code when creating a repository with a AWS CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
|
|
203
|
-
:param kms_key_id:
|
|
203
|
+
:param kms_key_id: The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository. .. epigraph:: The input can be the full ARN, the key ID, or the key alias. For more information, see `Finding the key ID and key ARN <https://docs.aws.amazon.com/kms/latest/developerguide/find-cmk-id-arn.html>`_ .
|
|
204
204
|
:param repository_description: A comment or description about the new repository. .. epigraph:: The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
|
|
205
205
|
:param tags: One or more tag key-value pairs to use when tagging this repository.
|
|
206
206
|
:param triggers: The JSON block of configuration information for each trigger.
|
|
@@ -339,6 +339,7 @@ class CfnRepository(
|
|
|
339
339
|
@builtins.property
|
|
340
340
|
@jsii.member(jsii_name="kmsKeyId")
|
|
341
341
|
def kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
342
|
+
'''The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.'''
|
|
342
343
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "kmsKeyId"))
|
|
343
344
|
|
|
344
345
|
@kms_key_id.setter
|
|
@@ -740,7 +741,7 @@ class CfnRepositoryProps:
|
|
|
740
741
|
|
|
741
742
|
:param repository_name: The name of the new repository to be created. .. epigraph:: The repository name must be unique across the calling AWS account . Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see `Quotas <https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html>`_ in the *AWS CodeCommit User Guide* . The suffix .git is prohibited.
|
|
742
743
|
:param code: Information about code to be committed to a repository after it is created in an AWS CloudFormation stack. Information about code is only used in resource creation. Updates to a stack will not reflect changes made to code properties after initial resource creation. .. epigraph:: You can only use this property to add code when creating a repository with a AWS CloudFormation template at creation time. This property cannot be used for updating code to an existing repository.
|
|
743
|
-
:param kms_key_id:
|
|
744
|
+
:param kms_key_id: The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository. .. epigraph:: The input can be the full ARN, the key ID, or the key alias. For more information, see `Finding the key ID and key ARN <https://docs.aws.amazon.com/kms/latest/developerguide/find-cmk-id-arn.html>`_ .
|
|
744
745
|
:param repository_description: A comment or description about the new repository. .. epigraph:: The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a webpage.
|
|
745
746
|
:param tags: One or more tag key-value pairs to use when tagging this repository.
|
|
746
747
|
:param triggers: The JSON block of configuration information for each trigger.
|
|
@@ -841,7 +842,12 @@ class CfnRepositoryProps:
|
|
|
841
842
|
|
|
842
843
|
@builtins.property
|
|
843
844
|
def kms_key_id(self) -> typing.Optional[builtins.str]:
|
|
844
|
-
'''
|
|
845
|
+
'''The ID of the AWS Key Management Service encryption key used to encrypt and decrypt the repository.
|
|
846
|
+
|
|
847
|
+
.. epigraph::
|
|
848
|
+
|
|
849
|
+
The input can be the full ARN, the key ID, or the key alias. For more information, see `Finding the key ID and key ARN <https://docs.aws.amazon.com/kms/latest/developerguide/find-cmk-id-arn.html>`_ .
|
|
850
|
+
|
|
845
851
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codecommit-repository.html#cfn-codecommit-repository-kmskeyid
|
|
846
852
|
'''
|
|
847
853
|
result = self._values.get("kms_key_id")
|