aws-cdk-lib 2.143.1__py3-none-any.whl → 2.145.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 +1 -1
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.143.1.jsii.tgz → aws-cdk-lib@2.145.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
- aws_cdk/aws_apigatewayv2_integrations/__init__.py +28 -0
- aws_cdk/aws_appconfig/__init__.py +132 -1
- aws_cdk/aws_autoscaling/__init__.py +4 -4
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +149 -2
- aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
- aws_cdk/aws_codebuild/__init__.py +801 -16
- aws_cdk/aws_config/__init__.py +1305 -45
- aws_cdk/aws_dynamodb/__init__.py +309 -3
- aws_cdk/aws_ec2/__init__.py +112 -31
- aws_cdk/aws_ecs_patterns/__init__.py +89 -7
- aws_cdk/aws_eks/__init__.py +185 -41
- aws_cdk/aws_fsx/__init__.py +4 -4
- aws_cdk/aws_glue/__init__.py +39 -0
- aws_cdk/aws_iam/__init__.py +3 -3
- aws_cdk/aws_lambda/__init__.py +605 -42
- aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
- aws_cdk/aws_logs/__init__.py +114 -8
- aws_cdk/aws_logs_destinations/__init__.py +11 -9
- aws_cdk/aws_mediaconnect/__init__.py +2 -6
- aws_cdk/aws_medialive/__init__.py +20 -2
- aws_cdk/aws_mediapackagev2/__init__.py +476 -0
- aws_cdk/aws_rds/__init__.py +27 -19
- aws_cdk/aws_route53/__init__.py +3 -3
- aws_cdk/aws_s3/__init__.py +21 -0
- aws_cdk/aws_s3_deployment/__init__.py +3 -2
- aws_cdk/aws_securityhub/__init__.py +2415 -374
- aws_cdk/aws_securitylake/__init__.py +179 -314
- aws_cdk/aws_sqs/__init__.py +2 -2
- aws_cdk/aws_stepfunctions/__init__.py +53 -24
- aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
- aws_cdk/pipelines/__init__.py +2 -0
- aws_cdk/triggers/__init__.py +65 -9
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/RECORD +43 -43
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/WHEEL +1 -1
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_logs/__init__.py
CHANGED
|
@@ -130,6 +130,26 @@ logs.SubscriptionFilter(self, "Subscription",
|
|
|
130
130
|
)
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
When you use `KinesisDestination`, you can choose the method used to
|
|
134
|
+
distribute log data to the destination by setting the `distribution` property.
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
138
|
+
import aws_cdk.aws_kinesis as kinesis
|
|
139
|
+
|
|
140
|
+
# stream: kinesis.Stream
|
|
141
|
+
# log_group: logs.LogGroup
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
145
|
+
log_group=log_group,
|
|
146
|
+
destination=destinations.KinesisDestination(stream),
|
|
147
|
+
filter_pattern=logs.FilterPattern.all_terms("ERROR", "MainThread"),
|
|
148
|
+
filter_name="ErrorInMainThread",
|
|
149
|
+
distribution=logs.Distribution.RANDOM
|
|
150
|
+
)
|
|
151
|
+
```
|
|
152
|
+
|
|
133
153
|
## Metric Filters
|
|
134
154
|
|
|
135
155
|
CloudWatch Logs can extract and emit metrics based on a textual log stream.
|
|
@@ -5233,6 +5253,36 @@ class DataProtectionPolicyProps:
|
|
|
5233
5253
|
)
|
|
5234
5254
|
|
|
5235
5255
|
|
|
5256
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_logs.Distribution")
|
|
5257
|
+
class Distribution(enum.Enum):
|
|
5258
|
+
'''The method used to distribute log data to the destination.
|
|
5259
|
+
|
|
5260
|
+
:exampleMetadata: infused
|
|
5261
|
+
|
|
5262
|
+
Example::
|
|
5263
|
+
|
|
5264
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
5265
|
+
import aws_cdk.aws_kinesis as kinesis
|
|
5266
|
+
|
|
5267
|
+
# stream: kinesis.Stream
|
|
5268
|
+
# log_group: logs.LogGroup
|
|
5269
|
+
|
|
5270
|
+
|
|
5271
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
5272
|
+
log_group=log_group,
|
|
5273
|
+
destination=destinations.KinesisDestination(stream),
|
|
5274
|
+
filter_pattern=logs.FilterPattern.all_terms("ERROR", "MainThread"),
|
|
5275
|
+
filter_name="ErrorInMainThread",
|
|
5276
|
+
distribution=logs.Distribution.RANDOM
|
|
5277
|
+
)
|
|
5278
|
+
'''
|
|
5279
|
+
|
|
5280
|
+
BY_LOG_STREAM = "BY_LOG_STREAM"
|
|
5281
|
+
'''Log events from the same log stream are kept together and sent to the same destination.'''
|
|
5282
|
+
RANDOM = "RANDOM"
|
|
5283
|
+
'''Log events are distributed across the log destinations randomly.'''
|
|
5284
|
+
|
|
5285
|
+
|
|
5236
5286
|
class FilterPattern(
|
|
5237
5287
|
metaclass=jsii.JSIIMeta,
|
|
5238
5288
|
jsii_type="aws-cdk-lib.aws_logs.FilterPattern",
|
|
@@ -5243,14 +5293,18 @@ class FilterPattern(
|
|
|
5243
5293
|
|
|
5244
5294
|
Example::
|
|
5245
5295
|
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
#
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5296
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
5297
|
+
|
|
5298
|
+
# fn: lambda.Function
|
|
5299
|
+
# log_group: logs.LogGroup
|
|
5300
|
+
|
|
5301
|
+
|
|
5302
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
5303
|
+
log_group=log_group,
|
|
5304
|
+
destination=destinations.LambdaDestination(fn),
|
|
5305
|
+
filter_pattern=logs.FilterPattern.all_terms("ERROR", "MainThread"),
|
|
5306
|
+
filter_name="ErrorInMainThread"
|
|
5307
|
+
)
|
|
5254
5308
|
'''
|
|
5255
5309
|
|
|
5256
5310
|
def __init__(self) -> None:
|
|
@@ -5576,6 +5630,7 @@ class ILogGroup(_IResourceWithPolicy_720d64fc, typing_extensions.Protocol):
|
|
|
5576
5630
|
*,
|
|
5577
5631
|
destination: "ILogSubscriptionDestination",
|
|
5578
5632
|
filter_pattern: IFilterPattern,
|
|
5633
|
+
distribution: typing.Optional[Distribution] = None,
|
|
5579
5634
|
filter_name: typing.Optional[builtins.str] = None,
|
|
5580
5635
|
) -> "SubscriptionFilter":
|
|
5581
5636
|
'''Create a new Subscription Filter on this Log Group.
|
|
@@ -5583,6 +5638,7 @@ class ILogGroup(_IResourceWithPolicy_720d64fc, typing_extensions.Protocol):
|
|
|
5583
5638
|
:param id: Unique identifier for the construct in its parent.
|
|
5584
5639
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
5585
5640
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
5641
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
5586
5642
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
5587
5643
|
'''
|
|
5588
5644
|
...
|
|
@@ -5736,6 +5792,7 @@ class _ILogGroupProxy(
|
|
|
5736
5792
|
*,
|
|
5737
5793
|
destination: "ILogSubscriptionDestination",
|
|
5738
5794
|
filter_pattern: IFilterPattern,
|
|
5795
|
+
distribution: typing.Optional[Distribution] = None,
|
|
5739
5796
|
filter_name: typing.Optional[builtins.str] = None,
|
|
5740
5797
|
) -> "SubscriptionFilter":
|
|
5741
5798
|
'''Create a new Subscription Filter on this Log Group.
|
|
@@ -5743,6 +5800,7 @@ class _ILogGroupProxy(
|
|
|
5743
5800
|
:param id: Unique identifier for the construct in its parent.
|
|
5744
5801
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
5745
5802
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
5803
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
5746
5804
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
5747
5805
|
'''
|
|
5748
5806
|
if __debug__:
|
|
@@ -5751,6 +5809,7 @@ class _ILogGroupProxy(
|
|
|
5751
5809
|
props = SubscriptionFilterOptions(
|
|
5752
5810
|
destination=destination,
|
|
5753
5811
|
filter_pattern=filter_pattern,
|
|
5812
|
+
distribution=distribution,
|
|
5754
5813
|
filter_name=filter_name,
|
|
5755
5814
|
)
|
|
5756
5815
|
|
|
@@ -6149,6 +6208,7 @@ class LogGroup(
|
|
|
6149
6208
|
*,
|
|
6150
6209
|
destination: ILogSubscriptionDestination,
|
|
6151
6210
|
filter_pattern: IFilterPattern,
|
|
6211
|
+
distribution: typing.Optional[Distribution] = None,
|
|
6152
6212
|
filter_name: typing.Optional[builtins.str] = None,
|
|
6153
6213
|
) -> "SubscriptionFilter":
|
|
6154
6214
|
'''Create a new Subscription Filter on this Log Group.
|
|
@@ -6156,6 +6216,7 @@ class LogGroup(
|
|
|
6156
6216
|
:param id: Unique identifier for the construct in its parent.
|
|
6157
6217
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
6158
6218
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
6219
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
6159
6220
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
6160
6221
|
'''
|
|
6161
6222
|
if __debug__:
|
|
@@ -6164,6 +6225,7 @@ class LogGroup(
|
|
|
6164
6225
|
props = SubscriptionFilterOptions(
|
|
6165
6226
|
destination=destination,
|
|
6166
6227
|
filter_pattern=filter_pattern,
|
|
6228
|
+
distribution=distribution,
|
|
6167
6229
|
filter_name=filter_name,
|
|
6168
6230
|
)
|
|
6169
6231
|
|
|
@@ -8311,6 +8373,7 @@ class SubscriptionFilter(
|
|
|
8311
8373
|
log_group: ILogGroup,
|
|
8312
8374
|
destination: ILogSubscriptionDestination,
|
|
8313
8375
|
filter_pattern: IFilterPattern,
|
|
8376
|
+
distribution: typing.Optional[Distribution] = None,
|
|
8314
8377
|
filter_name: typing.Optional[builtins.str] = None,
|
|
8315
8378
|
) -> None:
|
|
8316
8379
|
'''
|
|
@@ -8319,6 +8382,7 @@ class SubscriptionFilter(
|
|
|
8319
8382
|
:param log_group: The log group to create the subscription on.
|
|
8320
8383
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
8321
8384
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
8385
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
8322
8386
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
8323
8387
|
'''
|
|
8324
8388
|
if __debug__:
|
|
@@ -8329,6 +8393,7 @@ class SubscriptionFilter(
|
|
|
8329
8393
|
log_group=log_group,
|
|
8330
8394
|
destination=destination,
|
|
8331
8395
|
filter_pattern=filter_pattern,
|
|
8396
|
+
distribution=distribution,
|
|
8332
8397
|
filter_name=filter_name,
|
|
8333
8398
|
)
|
|
8334
8399
|
|
|
@@ -8341,6 +8406,7 @@ class SubscriptionFilter(
|
|
|
8341
8406
|
name_mapping={
|
|
8342
8407
|
"destination": "destination",
|
|
8343
8408
|
"filter_pattern": "filterPattern",
|
|
8409
|
+
"distribution": "distribution",
|
|
8344
8410
|
"filter_name": "filterName",
|
|
8345
8411
|
},
|
|
8346
8412
|
)
|
|
@@ -8350,12 +8416,14 @@ class SubscriptionFilterOptions:
|
|
|
8350
8416
|
*,
|
|
8351
8417
|
destination: ILogSubscriptionDestination,
|
|
8352
8418
|
filter_pattern: IFilterPattern,
|
|
8419
|
+
distribution: typing.Optional[Distribution] = None,
|
|
8353
8420
|
filter_name: typing.Optional[builtins.str] = None,
|
|
8354
8421
|
) -> None:
|
|
8355
8422
|
'''Properties for a new SubscriptionFilter created from a LogGroup.
|
|
8356
8423
|
|
|
8357
8424
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
8358
8425
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
8426
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
8359
8427
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
8360
8428
|
|
|
8361
8429
|
:exampleMetadata: fixture=_generated
|
|
@@ -8374,6 +8442,7 @@ class SubscriptionFilterOptions:
|
|
|
8374
8442
|
filter_pattern=filter_pattern,
|
|
8375
8443
|
|
|
8376
8444
|
# the properties below are optional
|
|
8445
|
+
distribution=logs.Distribution.BY_LOG_STREAM,
|
|
8377
8446
|
filter_name="filterName"
|
|
8378
8447
|
)
|
|
8379
8448
|
'''
|
|
@@ -8381,11 +8450,14 @@ class SubscriptionFilterOptions:
|
|
|
8381
8450
|
type_hints = typing.get_type_hints(_typecheckingstub__177a84e94bfd826b20adc1107770c972772c540b0a1ac8475f63476502450a73)
|
|
8382
8451
|
check_type(argname="argument destination", value=destination, expected_type=type_hints["destination"])
|
|
8383
8452
|
check_type(argname="argument filter_pattern", value=filter_pattern, expected_type=type_hints["filter_pattern"])
|
|
8453
|
+
check_type(argname="argument distribution", value=distribution, expected_type=type_hints["distribution"])
|
|
8384
8454
|
check_type(argname="argument filter_name", value=filter_name, expected_type=type_hints["filter_name"])
|
|
8385
8455
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8386
8456
|
"destination": destination,
|
|
8387
8457
|
"filter_pattern": filter_pattern,
|
|
8388
8458
|
}
|
|
8459
|
+
if distribution is not None:
|
|
8460
|
+
self._values["distribution"] = distribution
|
|
8389
8461
|
if filter_name is not None:
|
|
8390
8462
|
self._values["filter_name"] = filter_name
|
|
8391
8463
|
|
|
@@ -8406,6 +8478,17 @@ class SubscriptionFilterOptions:
|
|
|
8406
8478
|
assert result is not None, "Required property 'filter_pattern' is missing"
|
|
8407
8479
|
return typing.cast(IFilterPattern, result)
|
|
8408
8480
|
|
|
8481
|
+
@builtins.property
|
|
8482
|
+
def distribution(self) -> typing.Optional[Distribution]:
|
|
8483
|
+
'''The method used to distribute log data to the destination.
|
|
8484
|
+
|
|
8485
|
+
This property can only be used with KinesisDestination.
|
|
8486
|
+
|
|
8487
|
+
:default: Distribution.BY_LOG_STREAM
|
|
8488
|
+
'''
|
|
8489
|
+
result = self._values.get("distribution")
|
|
8490
|
+
return typing.cast(typing.Optional[Distribution], result)
|
|
8491
|
+
|
|
8409
8492
|
@builtins.property
|
|
8410
8493
|
def filter_name(self) -> typing.Optional[builtins.str]:
|
|
8411
8494
|
'''The name of the subscription filter.
|
|
@@ -8433,6 +8516,7 @@ class SubscriptionFilterOptions:
|
|
|
8433
8516
|
name_mapping={
|
|
8434
8517
|
"destination": "destination",
|
|
8435
8518
|
"filter_pattern": "filterPattern",
|
|
8519
|
+
"distribution": "distribution",
|
|
8436
8520
|
"filter_name": "filterName",
|
|
8437
8521
|
"log_group": "logGroup",
|
|
8438
8522
|
},
|
|
@@ -8443,6 +8527,7 @@ class SubscriptionFilterProps(SubscriptionFilterOptions):
|
|
|
8443
8527
|
*,
|
|
8444
8528
|
destination: ILogSubscriptionDestination,
|
|
8445
8529
|
filter_pattern: IFilterPattern,
|
|
8530
|
+
distribution: typing.Optional[Distribution] = None,
|
|
8446
8531
|
filter_name: typing.Optional[builtins.str] = None,
|
|
8447
8532
|
log_group: ILogGroup,
|
|
8448
8533
|
) -> None:
|
|
@@ -8450,6 +8535,7 @@ class SubscriptionFilterProps(SubscriptionFilterOptions):
|
|
|
8450
8535
|
|
|
8451
8536
|
:param destination: The destination to send the filtered events to. For example, a Kinesis stream or a Lambda function.
|
|
8452
8537
|
:param filter_pattern: Log events matching this pattern will be sent to the destination.
|
|
8538
|
+
:param distribution: The method used to distribute log data to the destination. This property can only be used with KinesisDestination. Default: Distribution.BY_LOG_STREAM
|
|
8453
8539
|
:param filter_name: The name of the subscription filter. Default: Automatically generated
|
|
8454
8540
|
:param log_group: The log group to create the subscription on.
|
|
8455
8541
|
|
|
@@ -8474,6 +8560,7 @@ class SubscriptionFilterProps(SubscriptionFilterOptions):
|
|
|
8474
8560
|
type_hints = typing.get_type_hints(_typecheckingstub__eb936c8dd6a8ee03c9e8f4ffbe991c19b4b98648bbdd91f03367a058de3e8268)
|
|
8475
8561
|
check_type(argname="argument destination", value=destination, expected_type=type_hints["destination"])
|
|
8476
8562
|
check_type(argname="argument filter_pattern", value=filter_pattern, expected_type=type_hints["filter_pattern"])
|
|
8563
|
+
check_type(argname="argument distribution", value=distribution, expected_type=type_hints["distribution"])
|
|
8477
8564
|
check_type(argname="argument filter_name", value=filter_name, expected_type=type_hints["filter_name"])
|
|
8478
8565
|
check_type(argname="argument log_group", value=log_group, expected_type=type_hints["log_group"])
|
|
8479
8566
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -8481,6 +8568,8 @@ class SubscriptionFilterProps(SubscriptionFilterOptions):
|
|
|
8481
8568
|
"filter_pattern": filter_pattern,
|
|
8482
8569
|
"log_group": log_group,
|
|
8483
8570
|
}
|
|
8571
|
+
if distribution is not None:
|
|
8572
|
+
self._values["distribution"] = distribution
|
|
8484
8573
|
if filter_name is not None:
|
|
8485
8574
|
self._values["filter_name"] = filter_name
|
|
8486
8575
|
|
|
@@ -8501,6 +8590,17 @@ class SubscriptionFilterProps(SubscriptionFilterOptions):
|
|
|
8501
8590
|
assert result is not None, "Required property 'filter_pattern' is missing"
|
|
8502
8591
|
return typing.cast(IFilterPattern, result)
|
|
8503
8592
|
|
|
8593
|
+
@builtins.property
|
|
8594
|
+
def distribution(self) -> typing.Optional[Distribution]:
|
|
8595
|
+
'''The method used to distribute log data to the destination.
|
|
8596
|
+
|
|
8597
|
+
This property can only be used with KinesisDestination.
|
|
8598
|
+
|
|
8599
|
+
:default: Distribution.BY_LOG_STREAM
|
|
8600
|
+
'''
|
|
8601
|
+
result = self._values.get("distribution")
|
|
8602
|
+
return typing.cast(typing.Optional[Distribution], result)
|
|
8603
|
+
|
|
8504
8604
|
@builtins.property
|
|
8505
8605
|
def filter_name(self) -> typing.Optional[builtins.str]:
|
|
8506
8606
|
'''The name of the subscription filter.
|
|
@@ -8765,6 +8865,7 @@ __all__ = [
|
|
|
8765
8865
|
"DataIdentifier",
|
|
8766
8866
|
"DataProtectionPolicy",
|
|
8767
8867
|
"DataProtectionPolicyProps",
|
|
8868
|
+
"Distribution",
|
|
8768
8869
|
"FilterPattern",
|
|
8769
8870
|
"IFilterPattern",
|
|
8770
8871
|
"ILogGroup",
|
|
@@ -9678,6 +9779,7 @@ def _typecheckingstub__3445e5a6f896ca9cd9e8a527d7229440b3a517fd59dc21bc08b64ef68
|
|
|
9678
9779
|
*,
|
|
9679
9780
|
destination: ILogSubscriptionDestination,
|
|
9680
9781
|
filter_pattern: IFilterPattern,
|
|
9782
|
+
distribution: typing.Optional[Distribution] = None,
|
|
9681
9783
|
filter_name: typing.Optional[builtins.str] = None,
|
|
9682
9784
|
) -> None:
|
|
9683
9785
|
"""Type checking stubs"""
|
|
@@ -9781,6 +9883,7 @@ def _typecheckingstub__a53e1c08918ff12981b248135756d8f20c9acc571a2cab87ee6a35043
|
|
|
9781
9883
|
*,
|
|
9782
9884
|
destination: ILogSubscriptionDestination,
|
|
9783
9885
|
filter_pattern: IFilterPattern,
|
|
9886
|
+
distribution: typing.Optional[Distribution] = None,
|
|
9784
9887
|
filter_name: typing.Optional[builtins.str] = None,
|
|
9785
9888
|
) -> None:
|
|
9786
9889
|
"""Type checking stubs"""
|
|
@@ -10043,6 +10146,7 @@ def _typecheckingstub__e3c78d3f905ddfb9bb1ff8466a0b030e7b262b0793c43d2667b561e42
|
|
|
10043
10146
|
log_group: ILogGroup,
|
|
10044
10147
|
destination: ILogSubscriptionDestination,
|
|
10045
10148
|
filter_pattern: IFilterPattern,
|
|
10149
|
+
distribution: typing.Optional[Distribution] = None,
|
|
10046
10150
|
filter_name: typing.Optional[builtins.str] = None,
|
|
10047
10151
|
) -> None:
|
|
10048
10152
|
"""Type checking stubs"""
|
|
@@ -10052,6 +10156,7 @@ def _typecheckingstub__177a84e94bfd826b20adc1107770c972772c540b0a1ac8475f6347650
|
|
|
10052
10156
|
*,
|
|
10053
10157
|
destination: ILogSubscriptionDestination,
|
|
10054
10158
|
filter_pattern: IFilterPattern,
|
|
10159
|
+
distribution: typing.Optional[Distribution] = None,
|
|
10055
10160
|
filter_name: typing.Optional[builtins.str] = None,
|
|
10056
10161
|
) -> None:
|
|
10057
10162
|
"""Type checking stubs"""
|
|
@@ -10061,6 +10166,7 @@ def _typecheckingstub__eb936c8dd6a8ee03c9e8f4ffbe991c19b4b98648bbdd91f03367a058d
|
|
|
10061
10166
|
*,
|
|
10062
10167
|
destination: ILogSubscriptionDestination,
|
|
10063
10168
|
filter_pattern: IFilterPattern,
|
|
10169
|
+
distribution: typing.Optional[Distribution] = None,
|
|
10064
10170
|
filter_name: typing.Optional[builtins.str] = None,
|
|
10065
10171
|
log_group: ILogGroup,
|
|
10066
10172
|
) -> None:
|
|
@@ -41,21 +41,23 @@ class KinesisDestination(
|
|
|
41
41
|
):
|
|
42
42
|
'''Use a Kinesis stream as the destination for a log subscription.
|
|
43
43
|
|
|
44
|
-
:exampleMetadata:
|
|
44
|
+
:exampleMetadata: infused
|
|
45
45
|
|
|
46
46
|
Example::
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
from aws_cdk import aws_iam as iam
|
|
51
|
-
from aws_cdk import aws_kinesis as kinesis
|
|
52
|
-
from aws_cdk import aws_logs_destinations as logs_destinations
|
|
48
|
+
import aws_cdk.aws_logs_destinations as destinations
|
|
49
|
+
import aws_cdk.aws_kinesis as kinesis
|
|
53
50
|
|
|
54
|
-
# role: iam.Role
|
|
55
51
|
# stream: kinesis.Stream
|
|
52
|
+
# log_group: logs.LogGroup
|
|
53
|
+
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
logs.SubscriptionFilter(self, "Subscription",
|
|
56
|
+
log_group=log_group,
|
|
57
|
+
destination=destinations.KinesisDestination(stream),
|
|
58
|
+
filter_pattern=logs.FilterPattern.all_terms("ERROR", "MainThread"),
|
|
59
|
+
filter_name="ErrorInMainThread",
|
|
60
|
+
distribution=logs.Distribution.RANDOM
|
|
59
61
|
)
|
|
60
62
|
'''
|
|
61
63
|
|
|
@@ -3954,10 +3954,10 @@ class CfnFlow(
|
|
|
3954
3954
|
:param ingest_ip: The IP address that the flow listens on for incoming content.
|
|
3955
3955
|
:param ingest_port: The port that the flow listens on for incoming content. If the protocol of the source is Zixi, the port must be set to 2088.
|
|
3956
3956
|
:param max_bitrate: The maximum bitrate for RIST, RTP, and RTP-FEC streams.
|
|
3957
|
-
:param max_latency: The maximum latency in milliseconds for a RIST or Zixi-based source.
|
|
3957
|
+
:param max_latency: The maximum latency in milliseconds for a RIST or Zixi-based source.
|
|
3958
3958
|
:param max_sync_buffer: The size of the buffer (in milliseconds) to use to sync incoming source data.
|
|
3959
3959
|
:param media_stream_source_configurations: The media stream that is associated with the source, and the parameters for that association.
|
|
3960
|
-
:param min_latency: The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
|
|
3960
|
+
:param min_latency: The minimum latency in milliseconds for SRT-based streams. In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
|
|
3961
3961
|
:param name: The name of the source.
|
|
3962
3962
|
:param protocol: The protocol that is used by the source. AWS CloudFormation does not currently support CDI or ST 2110 JPEG XS source protocols.
|
|
3963
3963
|
:param sender_control_port: The port that the flow uses to send outbound requests to initiate connection with the sender.
|
|
@@ -4181,8 +4181,6 @@ class CfnFlow(
|
|
|
4181
4181
|
def max_latency(self) -> typing.Optional[jsii.Number]:
|
|
4182
4182
|
'''The maximum latency in milliseconds for a RIST or Zixi-based source.
|
|
4183
4183
|
|
|
4184
|
-
:default: - 2000
|
|
4185
|
-
|
|
4186
4184
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-maxlatency
|
|
4187
4185
|
'''
|
|
4188
4186
|
result = self._values.get("max_latency")
|
|
@@ -4214,8 +4212,6 @@ class CfnFlow(
|
|
|
4214
4212
|
|
|
4215
4213
|
In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
|
|
4216
4214
|
|
|
4217
|
-
:default: - 2000
|
|
4218
|
-
|
|
4219
4215
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-source.html#cfn-mediaconnect-flow-source-minlatency
|
|
4220
4216
|
'''
|
|
4221
4217
|
result = self._values.get("min_latency")
|
|
@@ -3259,19 +3259,24 @@ class CfnChannel(
|
|
|
3259
3259
|
@jsii.data_type(
|
|
3260
3260
|
jsii_type="aws-cdk-lib.aws_medialive.CfnChannel.AvailConfigurationProperty",
|
|
3261
3261
|
jsii_struct_bases=[],
|
|
3262
|
-
name_mapping={
|
|
3262
|
+
name_mapping={
|
|
3263
|
+
"avail_settings": "availSettings",
|
|
3264
|
+
"scte35_segmentation_scope": "scte35SegmentationScope",
|
|
3265
|
+
},
|
|
3263
3266
|
)
|
|
3264
3267
|
class AvailConfigurationProperty:
|
|
3265
3268
|
def __init__(
|
|
3266
3269
|
self,
|
|
3267
3270
|
*,
|
|
3268
3271
|
avail_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnChannel.AvailSettingsProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3272
|
+
scte35_segmentation_scope: typing.Optional[builtins.str] = None,
|
|
3269
3273
|
) -> None:
|
|
3270
3274
|
'''The setup of ad avail handling in the output.
|
|
3271
3275
|
|
|
3272
3276
|
The parent of this entity is EncoderSettings.
|
|
3273
3277
|
|
|
3274
3278
|
:param avail_settings: The setup of ad avail handling in the output.
|
|
3279
|
+
:param scte35_segmentation_scope:
|
|
3275
3280
|
|
|
3276
3281
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availconfiguration.html
|
|
3277
3282
|
:exampleMetadata: fixture=_generated
|
|
@@ -3302,15 +3307,19 @@ class CfnChannel(
|
|
|
3302
3307
|
no_regional_blackout_flag="noRegionalBlackoutFlag",
|
|
3303
3308
|
web_delivery_allowed_flag="webDeliveryAllowedFlag"
|
|
3304
3309
|
)
|
|
3305
|
-
)
|
|
3310
|
+
),
|
|
3311
|
+
scte35_segmentation_scope="scte35SegmentationScope"
|
|
3306
3312
|
)
|
|
3307
3313
|
'''
|
|
3308
3314
|
if __debug__:
|
|
3309
3315
|
type_hints = typing.get_type_hints(_typecheckingstub__64a141b4b3b5b23b51297f468895864a0795ec8b925d0233a715f29550246998)
|
|
3310
3316
|
check_type(argname="argument avail_settings", value=avail_settings, expected_type=type_hints["avail_settings"])
|
|
3317
|
+
check_type(argname="argument scte35_segmentation_scope", value=scte35_segmentation_scope, expected_type=type_hints["scte35_segmentation_scope"])
|
|
3311
3318
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
3312
3319
|
if avail_settings is not None:
|
|
3313
3320
|
self._values["avail_settings"] = avail_settings
|
|
3321
|
+
if scte35_segmentation_scope is not None:
|
|
3322
|
+
self._values["scte35_segmentation_scope"] = scte35_segmentation_scope
|
|
3314
3323
|
|
|
3315
3324
|
@builtins.property
|
|
3316
3325
|
def avail_settings(
|
|
@@ -3323,6 +3332,14 @@ class CfnChannel(
|
|
|
3323
3332
|
result = self._values.get("avail_settings")
|
|
3324
3333
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnChannel.AvailSettingsProperty"]], result)
|
|
3325
3334
|
|
|
3335
|
+
@builtins.property
|
|
3336
|
+
def scte35_segmentation_scope(self) -> typing.Optional[builtins.str]:
|
|
3337
|
+
'''
|
|
3338
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-availconfiguration.html#cfn-medialive-channel-availconfiguration-scte35segmentationscope
|
|
3339
|
+
'''
|
|
3340
|
+
result = self._values.get("scte35_segmentation_scope")
|
|
3341
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
3342
|
+
|
|
3326
3343
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
3327
3344
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
3328
3345
|
|
|
@@ -25638,6 +25655,7 @@ def _typecheckingstub__eca0526dd47d2b5efa5857a5e7d3c0d846ea42078c494f626e4d9e9f6
|
|
|
25638
25655
|
def _typecheckingstub__64a141b4b3b5b23b51297f468895864a0795ec8b925d0233a715f29550246998(
|
|
25639
25656
|
*,
|
|
25640
25657
|
avail_settings: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnChannel.AvailSettingsProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
25658
|
+
scte35_segmentation_scope: typing.Optional[builtins.str] = None,
|
|
25641
25659
|
) -> None:
|
|
25642
25660
|
"""Type checking stubs"""
|
|
25643
25661
|
pass
|