aws-cdk-lib 2.186.0__py3-none-any.whl → 2.188.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 +303 -119
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.186.0.jsii.tgz → aws-cdk-lib@2.188.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplify/__init__.py +136 -0
- aws_cdk/aws_apigateway/__init__.py +69 -17
- aws_cdk/aws_apigatewayv2/__init__.py +88 -0
- aws_cdk/aws_appconfig/__init__.py +30 -14
- aws_cdk/aws_appsync/__init__.py +14 -5
- aws_cdk/aws_arczonalshift/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +637 -32
- aws_cdk/aws_budgets/__init__.py +8 -8
- aws_cdk/aws_cassandra/__init__.py +4 -2
- aws_cdk/aws_ce/__init__.py +2 -2
- aws_cdk/aws_cloudformation/__init__.py +3 -3
- aws_cdk/aws_cloudfront/__init__.py +11 -0
- aws_cdk/aws_cloudtrail/__init__.py +4 -18
- aws_cdk/aws_cloudwatch/__init__.py +50 -50
- aws_cdk/aws_codebuild/__init__.py +32 -1
- aws_cdk/aws_codepipeline/__init__.py +47 -32
- aws_cdk/aws_codepipeline_actions/__init__.py +2786 -1042
- aws_cdk/aws_codestarnotifications/__init__.py +16 -16
- aws_cdk/aws_cognito/__init__.py +8 -2
- aws_cdk/aws_config/__init__.py +2 -5
- aws_cdk/aws_datazone/__init__.py +287 -226
- aws_cdk/aws_detective/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +37 -0
- aws_cdk/aws_ec2/__init__.py +2448 -442
- aws_cdk/aws_ecr/__init__.py +143 -0
- aws_cdk/aws_ecr_assets/__init__.py +115 -4
- aws_cdk/aws_ecs/__init__.py +51 -0
- aws_cdk/aws_eks/__init__.py +222 -6
- aws_cdk/aws_events/__init__.py +8 -11
- aws_cdk/aws_events_targets/__init__.py +136 -0
- aws_cdk/aws_forecast/__init__.py +1 -1
- aws_cdk/aws_fsx/__init__.py +2 -2
- aws_cdk/aws_gamelift/__init__.py +11 -11
- aws_cdk/aws_iam/__init__.py +6 -4
- aws_cdk/aws_identitystore/__init__.py +6 -4
- aws_cdk/aws_iotsitewise/__init__.py +623 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +38 -0
- aws_cdk/aws_kms/__init__.py +10 -11
- aws_cdk/aws_lakeformation/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +105 -4
- aws_cdk/aws_lambda_event_sources/__init__.py +87 -25
- aws_cdk/aws_lambda_nodejs/__init__.py +5 -24
- aws_cdk/aws_lex/__init__.py +985 -5
- aws_cdk/aws_logs/__init__.py +18 -0
- aws_cdk/aws_logs_destinations/__init__.py +146 -0
- aws_cdk/aws_mediaconnect/__init__.py +714 -290
- aws_cdk/aws_mwaa/__init__.py +9 -9
- aws_cdk/aws_networkfirewall/__init__.py +44 -0
- aws_cdk/aws_notifications/__init__.py +4 -4
- aws_cdk/aws_omics/__init__.py +225 -1
- aws_cdk/aws_opensearchserverless/__init__.py +31 -23
- aws_cdk/aws_organizations/__init__.py +1 -1
- aws_cdk/aws_pcaconnectorad/__init__.py +3 -2
- aws_cdk/aws_quicksight/__init__.py +268 -50
- aws_cdk/aws_rds/__init__.py +186 -10
- aws_cdk/aws_route53/__init__.py +5 -5
- aws_cdk/aws_route53recoverycontrol/__init__.py +41 -2
- aws_cdk/aws_rum/__init__.py +13 -10
- aws_cdk/aws_s3/__init__.py +3 -6
- aws_cdk/aws_s3_assets/__init__.py +70 -1
- aws_cdk/aws_s3_deployment/__init__.py +4 -0
- aws_cdk/aws_sagemaker/__init__.py +47 -4
- aws_cdk/aws_scheduler_targets/__init__.py +4 -16
- aws_cdk/aws_securitylake/__init__.py +2 -2
- aws_cdk/aws_servicecatalog/__init__.py +4 -0
- aws_cdk/aws_sns/__init__.py +1 -1
- aws_cdk/aws_ssmincidents/__init__.py +10 -10
- aws_cdk/aws_stepfunctions/__init__.py +23 -17
- aws_cdk/aws_stepfunctions_tasks/__init__.py +4 -0
- aws_cdk/aws_synthetics/__init__.py +9 -0
- aws_cdk/aws_systemsmanagersap/__init__.py +160 -0
- aws_cdk/aws_transfer/__init__.py +19 -10
- aws_cdk/aws_wafv2/__init__.py +512 -1141
- aws_cdk/cloud_assembly_schema/__init__.py +60 -10
- aws_cdk/cx_api/__init__.py +38 -2
- aws_cdk/pipelines/__init__.py +52 -2
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/METADATA +4 -4
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/RECORD +85 -85
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.186.0.dist-info → aws_cdk_lib-2.188.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_logs/__init__.py
CHANGED
|
@@ -159,6 +159,24 @@ logs.SubscriptionFilter(self, "Subscription",
|
|
|
159
159
|
)
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
+
When you use `FirehoseDestination`, you can choose the method used to
|
|
163
|
+
distribute log data to the destination by setting the `distribution` property.
|
|
164
|
+
|
|
165
|
+
```python
|
|
166
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
167
|
+
import aws_cdk.aws_kinesisfirehose as firehose
|
|
168
|
+
|
|
169
|
+
# delivery_stream: firehose.IDeliveryStream
|
|
170
|
+
# log_group: logs.LogGroup
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
174
|
+
log_group=log_group,
|
|
175
|
+
destination=destinations.FirehoseDestination(delivery_stream),
|
|
176
|
+
filter_pattern=logs.FilterPattern.all_events()
|
|
177
|
+
)
|
|
178
|
+
```
|
|
179
|
+
|
|
162
180
|
## Metric Filters
|
|
163
181
|
|
|
164
182
|
CloudWatch Logs can extract and emit metrics based on a textual log stream.
|
|
@@ -41,6 +41,7 @@ from .._jsii import *
|
|
|
41
41
|
import constructs as _constructs_77d1e7e8
|
|
42
42
|
from ..aws_iam import IRole as _IRole_235f5d8e
|
|
43
43
|
from ..aws_kinesis import IStream as _IStream_4e2457d2
|
|
44
|
+
from ..aws_kinesisfirehose import IDeliveryStream as _IDeliveryStream_8f118861
|
|
44
45
|
from ..aws_lambda import IFunction as _IFunction_6adb0ab8
|
|
45
46
|
from ..aws_logs import (
|
|
46
47
|
ILogGroup as _ILogGroup_3c4fa718,
|
|
@@ -49,6 +50,127 @@ from ..aws_logs import (
|
|
|
49
50
|
)
|
|
50
51
|
|
|
51
52
|
|
|
53
|
+
@jsii.implements(_ILogSubscriptionDestination_99a12804)
|
|
54
|
+
class FirehoseDestination(
|
|
55
|
+
metaclass=jsii.JSIIMeta,
|
|
56
|
+
jsii_type="aws-cdk-lib.aws_logs_destinations.FirehoseDestination",
|
|
57
|
+
):
|
|
58
|
+
'''Use a Data Firehose delivery stream as the destination for a log subscription.
|
|
59
|
+
|
|
60
|
+
:exampleMetadata: infused
|
|
61
|
+
|
|
62
|
+
Example::
|
|
63
|
+
|
|
64
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
65
|
+
import aws_cdk.aws_kinesisfirehose as firehose
|
|
66
|
+
|
|
67
|
+
# delivery_stream: firehose.IDeliveryStream
|
|
68
|
+
# log_group: logs.LogGroup
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
72
|
+
log_group=log_group,
|
|
73
|
+
destination=destinations.FirehoseDestination(delivery_stream),
|
|
74
|
+
filter_pattern=logs.FilterPattern.all_events()
|
|
75
|
+
)
|
|
76
|
+
'''
|
|
77
|
+
|
|
78
|
+
def __init__(
|
|
79
|
+
self,
|
|
80
|
+
stream: _IDeliveryStream_8f118861,
|
|
81
|
+
*,
|
|
82
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
83
|
+
) -> None:
|
|
84
|
+
'''
|
|
85
|
+
:param stream: The Data Firehose delivery stream to use as destination.
|
|
86
|
+
:param role: The role to assume to write log events to the destination. Default: - A new Role is created
|
|
87
|
+
'''
|
|
88
|
+
if __debug__:
|
|
89
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4cb4e49bfe3a6c7ef67778da7a93e24765ed8e25b0e86da6e92e1d5205457086)
|
|
90
|
+
check_type(argname="argument stream", value=stream, expected_type=type_hints["stream"])
|
|
91
|
+
props = FirehoseDestinationProps(role=role)
|
|
92
|
+
|
|
93
|
+
jsii.create(self.__class__, self, [stream, props])
|
|
94
|
+
|
|
95
|
+
@jsii.member(jsii_name="bind")
|
|
96
|
+
def bind(
|
|
97
|
+
self,
|
|
98
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
99
|
+
_source_log_group: _ILogGroup_3c4fa718,
|
|
100
|
+
) -> _LogSubscriptionDestinationConfig_15877ced:
|
|
101
|
+
'''Return the properties required to send subscription events to this destination.
|
|
102
|
+
|
|
103
|
+
If necessary, the destination can use the properties of the SubscriptionFilter
|
|
104
|
+
object itself to configure its permissions to allow the subscription to write
|
|
105
|
+
to it.
|
|
106
|
+
|
|
107
|
+
The destination may reconfigure its own permissions in response to this
|
|
108
|
+
function call.
|
|
109
|
+
|
|
110
|
+
:param scope: -
|
|
111
|
+
:param _source_log_group: -
|
|
112
|
+
'''
|
|
113
|
+
if __debug__:
|
|
114
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b48d2560b01f38d75fb9bf3c773ce107d4b79363d6f0dced504bd870eebb715b)
|
|
115
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
116
|
+
check_type(argname="argument _source_log_group", value=_source_log_group, expected_type=type_hints["_source_log_group"])
|
|
117
|
+
return typing.cast(_LogSubscriptionDestinationConfig_15877ced, jsii.invoke(self, "bind", [scope, _source_log_group]))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
@jsii.data_type(
|
|
121
|
+
jsii_type="aws-cdk-lib.aws_logs_destinations.FirehoseDestinationProps",
|
|
122
|
+
jsii_struct_bases=[],
|
|
123
|
+
name_mapping={"role": "role"},
|
|
124
|
+
)
|
|
125
|
+
class FirehoseDestinationProps:
|
|
126
|
+
def __init__(self, *, role: typing.Optional[_IRole_235f5d8e] = None) -> None:
|
|
127
|
+
'''Customize the Amazon Data Firehose Logs Destination.
|
|
128
|
+
|
|
129
|
+
:param role: The role to assume to write log events to the destination. Default: - A new Role is created
|
|
130
|
+
|
|
131
|
+
:exampleMetadata: fixture=_generated
|
|
132
|
+
|
|
133
|
+
Example::
|
|
134
|
+
|
|
135
|
+
# The code below shows an example of how to instantiate this type.
|
|
136
|
+
# The values are placeholders you should change.
|
|
137
|
+
from aws_cdk import aws_iam as iam
|
|
138
|
+
from aws_cdk import aws_logs_destinations as logs_destinations
|
|
139
|
+
|
|
140
|
+
# role: iam.Role
|
|
141
|
+
|
|
142
|
+
firehose_destination_props = logs_destinations.FirehoseDestinationProps(
|
|
143
|
+
role=role
|
|
144
|
+
)
|
|
145
|
+
'''
|
|
146
|
+
if __debug__:
|
|
147
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b45f72f38e87e36b03e7d6828642750a36a55581864f0124704f80206950b2e6)
|
|
148
|
+
check_type(argname="argument role", value=role, expected_type=type_hints["role"])
|
|
149
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
150
|
+
if role is not None:
|
|
151
|
+
self._values["role"] = role
|
|
152
|
+
|
|
153
|
+
@builtins.property
|
|
154
|
+
def role(self) -> typing.Optional[_IRole_235f5d8e]:
|
|
155
|
+
'''The role to assume to write log events to the destination.
|
|
156
|
+
|
|
157
|
+
:default: - A new Role is created
|
|
158
|
+
'''
|
|
159
|
+
result = self._values.get("role")
|
|
160
|
+
return typing.cast(typing.Optional[_IRole_235f5d8e], result)
|
|
161
|
+
|
|
162
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
163
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
164
|
+
|
|
165
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
166
|
+
return not (rhs == self)
|
|
167
|
+
|
|
168
|
+
def __repr__(self) -> str:
|
|
169
|
+
return "FirehoseDestinationProps(%s)" % ", ".join(
|
|
170
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
52
174
|
@jsii.implements(_ILogSubscriptionDestination_99a12804)
|
|
53
175
|
class KinesisDestination(
|
|
54
176
|
metaclass=jsii.JSIIMeta,
|
|
@@ -296,6 +418,8 @@ class LambdaDestinationOptions:
|
|
|
296
418
|
|
|
297
419
|
|
|
298
420
|
__all__ = [
|
|
421
|
+
"FirehoseDestination",
|
|
422
|
+
"FirehoseDestinationProps",
|
|
299
423
|
"KinesisDestination",
|
|
300
424
|
"KinesisDestinationProps",
|
|
301
425
|
"LambdaDestination",
|
|
@@ -304,6 +428,28 @@ __all__ = [
|
|
|
304
428
|
|
|
305
429
|
publication.publish()
|
|
306
430
|
|
|
431
|
+
def _typecheckingstub__4cb4e49bfe3a6c7ef67778da7a93e24765ed8e25b0e86da6e92e1d5205457086(
|
|
432
|
+
stream: _IDeliveryStream_8f118861,
|
|
433
|
+
*,
|
|
434
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
435
|
+
) -> None:
|
|
436
|
+
"""Type checking stubs"""
|
|
437
|
+
pass
|
|
438
|
+
|
|
439
|
+
def _typecheckingstub__b48d2560b01f38d75fb9bf3c773ce107d4b79363d6f0dced504bd870eebb715b(
|
|
440
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
441
|
+
_source_log_group: _ILogGroup_3c4fa718,
|
|
442
|
+
) -> None:
|
|
443
|
+
"""Type checking stubs"""
|
|
444
|
+
pass
|
|
445
|
+
|
|
446
|
+
def _typecheckingstub__b45f72f38e87e36b03e7d6828642750a36a55581864f0124704f80206950b2e6(
|
|
447
|
+
*,
|
|
448
|
+
role: typing.Optional[_IRole_235f5d8e] = None,
|
|
449
|
+
) -> None:
|
|
450
|
+
"""Type checking stubs"""
|
|
451
|
+
pass
|
|
452
|
+
|
|
307
453
|
def _typecheckingstub__6f4422231f62d5490fdbb0217f4c6e73134c1c066522144d9488224a6ffe689b(
|
|
308
454
|
stream: _IStream_4e2457d2,
|
|
309
455
|
*,
|