aws-cdk-lib 2.73.0__py3-none-any.whl → 2.76.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 +245 -259
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.73.0.jsii.tgz → aws-cdk-lib@2.76.0.jsii.tgz} +0 -0
- aws_cdk/aws_amplifyuibuilder/__init__.py +182 -214
- aws_cdk/aws_apigateway/__init__.py +95 -148
- aws_cdk/aws_appconfig/__init__.py +8 -4
- aws_cdk/aws_appflow/__init__.py +27 -52
- aws_cdk/aws_appmesh/__init__.py +91 -200
- aws_cdk/aws_apprunner/__init__.py +4 -16
- aws_cdk/aws_appstream/__init__.py +18 -82
- aws_cdk/aws_athena/__init__.py +18 -32
- aws_cdk/aws_backup/__init__.py +48 -86
- aws_cdk/aws_batch/__init__.py +9 -2
- aws_cdk/aws_billingconductor/__init__.py +12 -7
- aws_cdk/aws_budgets/__init__.py +8 -17
- aws_cdk/aws_certificatemanager/__init__.py +7 -4
- aws_cdk/aws_cloudfront/__init__.py +14 -11
- aws_cdk/aws_cloudfront_origins/__init__.py +18 -8
- aws_cdk/aws_cloudtrail/__init__.py +7 -14
- aws_cdk/aws_cloudwatch/__init__.py +63 -35
- aws_cdk/aws_codebuild/__init__.py +10 -13
- aws_cdk/aws_codecommit/__init__.py +0 -1
- aws_cdk/aws_codedeploy/__init__.py +165 -162
- aws_cdk/aws_codegurureviewer/__init__.py +4 -4
- aws_cdk/aws_codepipeline/__init__.py +0 -4
- aws_cdk/aws_codepipeline_actions/__init__.py +16 -164
- aws_cdk/aws_cognito/__init__.py +195 -100
- aws_cdk/aws_config/__init__.py +28 -51
- aws_cdk/aws_connectcampaigns/__init__.py +5 -6
- aws_cdk/aws_databrew/__init__.py +5 -6
- aws_cdk/aws_dlm/__init__.py +33 -71
- aws_cdk/aws_docdb/__init__.py +20 -76
- aws_cdk/aws_dynamodb/__init__.py +29 -22
- aws_cdk/aws_ec2/__init__.py +2414 -603
- aws_cdk/aws_ecr/__init__.py +1 -2
- aws_cdk/aws_ecr_assets/__init__.py +27 -14
- aws_cdk/aws_ecs/__init__.py +458 -163
- aws_cdk/aws_ecs_patterns/__init__.py +13 -11
- aws_cdk/aws_eks/__init__.py +13 -8
- aws_cdk/aws_elasticloadbalancing/__init__.py +16 -9
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +142 -82
- aws_cdk/aws_elasticloadbalancingv2_actions/__init__.py +126 -61
- aws_cdk/aws_elasticsearch/__init__.py +0 -7
- aws_cdk/aws_emr/__init__.py +7 -16
- aws_cdk/aws_emrserverless/__init__.py +14 -18
- aws_cdk/aws_events/__init__.py +33 -29
- aws_cdk/aws_events_targets/__init__.py +248 -89
- aws_cdk/aws_frauddetector/__init__.py +3 -4
- aws_cdk/aws_fsx/__init__.py +13 -7
- aws_cdk/aws_gamelift/__init__.py +11 -20
- aws_cdk/aws_grafana/__init__.py +4 -4
- aws_cdk/aws_iam/__init__.py +21 -25
- aws_cdk/aws_imagebuilder/__init__.py +58 -80
- aws_cdk/aws_internetmonitor/__init__.py +18 -10
- aws_cdk/aws_iot/__init__.py +16 -10
- aws_cdk/aws_iotcoredeviceadvisor/__init__.py +16 -26
- aws_cdk/aws_iotevents/__init__.py +6 -4
- aws_cdk/aws_iotfleetwise/__init__.py +27 -40
- aws_cdk/aws_iotsitewise/__init__.py +8 -5
- aws_cdk/aws_iotwireless/__init__.py +14 -9
- aws_cdk/aws_kinesisfirehose/__init__.py +21 -38
- aws_cdk/aws_lambda/__init__.py +76 -53
- aws_cdk/aws_lambda_event_sources/__init__.py +6 -21
- aws_cdk/aws_logs/__init__.py +5 -7
- aws_cdk/aws_macie/__init__.py +28 -23
- aws_cdk/aws_mediaconnect/__init__.py +5 -8
- aws_cdk/aws_mediaconvert/__init__.py +2 -2
- aws_cdk/aws_medialive/__init__.py +2 -4
- aws_cdk/aws_mediapackage/__init__.py +9 -18
- aws_cdk/aws_memorydb/__init__.py +5 -10
- aws_cdk/aws_mwaa/__init__.py +8 -4
- aws_cdk/aws_neptune/__init__.py +4 -4
- aws_cdk/aws_networkfirewall/__init__.py +8 -4
- aws_cdk/aws_networkmanager/__init__.py +4 -4
- aws_cdk/aws_nimblestudio/__init__.py +25 -45
- aws_cdk/aws_opensearchservice/__init__.py +0 -1
- aws_cdk/aws_panorama/__init__.py +11 -12
- aws_cdk/aws_personalize/__init__.py +46 -72
- aws_cdk/aws_pinpoint/__init__.py +36 -65
- aws_cdk/aws_quicksight/__init__.py +9972 -13374
- aws_cdk/aws_rds/__init__.py +53 -22
- aws_cdk/aws_route53/__init__.py +8 -16
- aws_cdk/aws_route53_targets/__init__.py +2 -4
- aws_cdk/aws_s3/__init__.py +41 -90
- aws_cdk/aws_s3_notifications/__init__.py +0 -3
- aws_cdk/aws_sagemaker/__init__.py +16 -10
- aws_cdk/aws_secretsmanager/__init__.py +17 -14
- aws_cdk/aws_servicecatalog/__init__.py +60 -83
- aws_cdk/aws_servicediscovery/__init__.py +4 -6
- aws_cdk/aws_ses/__init__.py +734 -28
- aws_cdk/aws_sns/__init__.py +4 -8
- aws_cdk/aws_ssm/__init__.py +19 -23
- aws_cdk/aws_ssmcontacts/__init__.py +10 -6
- aws_cdk/aws_ssmincidents/__init__.py +2 -1
- aws_cdk/aws_sso/__init__.py +4 -4
- aws_cdk/aws_stepfunctions/__init__.py +6 -15
- aws_cdk/aws_stepfunctions_tasks/__init__.py +51 -24
- aws_cdk/aws_timestream/__init__.py +22 -28
- aws_cdk/aws_transfer/__init__.py +188 -86
- aws_cdk/aws_wafv2/__init__.py +54 -38
- aws_cdk/aws_xray/__init__.py +15 -22
- aws_cdk/cloud_assembly_schema/__init__.py +14 -6
- aws_cdk/custom_resources/__init__.py +2 -3
- aws_cdk/pipelines/__init__.py +104 -134
- aws_cdk/triggers/__init__.py +46 -61
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/METADATA +47 -92
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/RECORD +111 -111
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.73.0.dist-info → aws_cdk_lib-2.76.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -142,7 +142,7 @@ fn = lambda_.Function(self, "MyFunction",
|
|
|
142
142
|
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
143
143
|
handler="index.handler",
|
|
144
144
|
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler")),
|
|
145
|
-
timeout=
|
|
145
|
+
timeout=Duration.minutes(5)
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
if fn.timeout:
|
|
@@ -1128,25 +1128,23 @@ Lambda runtime management controls help reduce the risk of impact to your worklo
|
|
|
1128
1128
|
For more information, see [Runtime management controls](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html#runtime-management-controls)
|
|
1129
1129
|
|
|
1130
1130
|
```python
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
"
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
})
|
|
1131
|
+
lambda_.Function(self, "Lambda",
|
|
1132
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.AUTO,
|
|
1133
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
1134
|
+
handler="index.handler",
|
|
1135
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
1136
|
+
)
|
|
1138
1137
|
```
|
|
1139
1138
|
|
|
1140
1139
|
If you want to set the "Manual" setting, using the ARN of the runtime version as the argument.
|
|
1141
1140
|
|
|
1142
1141
|
```python
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
"
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
})
|
|
1142
|
+
lambda_.Function(self, "Lambda",
|
|
1143
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.manual("runtimeVersion-arn"),
|
|
1144
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
1145
|
+
handler="index.handler",
|
|
1146
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
1147
|
+
)
|
|
1150
1148
|
```
|
|
1151
1149
|
'''
|
|
1152
1150
|
import abc
|
|
@@ -2102,8 +2100,12 @@ class AssetImageCodeProps(_DockerImageAssetOptions_9580cd76):
|
|
|
2102
2100
|
|
|
2103
2101
|
Example::
|
|
2104
2102
|
|
|
2105
|
-
|
|
2106
|
-
|
|
2103
|
+
from aws_cdk import DockerBuildSecret
|
|
2104
|
+
|
|
2105
|
+
|
|
2106
|
+
build_secrets = {
|
|
2107
|
+
"MY_SECRET": DockerBuildSecret.from_src("file.txt")
|
|
2108
|
+
}
|
|
2107
2109
|
'''
|
|
2108
2110
|
result = self._values.get("build_secrets")
|
|
2109
2111
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -9114,7 +9116,7 @@ class CfnUrl(
|
|
|
9114
9116
|
:param auth_type: The type of authentication that your function URL uses. Set to ``AWS_IAM`` if you want to restrict access to authenticated users only. Set to ``NONE`` if you want to bypass IAM authentication to create a public endpoint. For more information, see `Security and auth model for Lambda function URLs <https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html>`_ .
|
|
9115
9117
|
:param target_function_arn: The name of the Lambda function. **Name formats** - *Function name* - ``my-function`` . - *Function ARN* - ``arn:aws:lambda:us-west-2:123456789012:function:my-function`` . - *Partial ARN* - ``123456789012:function:my-function`` . The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
|
|
9116
9118
|
:param cors: The `Cross-Origin Resource Sharing (CORS) <https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_ settings for your function URL.
|
|
9117
|
-
:param invoke_mode: ``
|
|
9119
|
+
:param invoke_mode: Use one of the following options:. - ``BUFFERED`` – This is the default option. Lambda invokes your function using the ``Invoke`` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. - ``RESPONSE_STREAM`` – Your function streams payload results as they become available. Lambda invokes your function using the ``InvokeWithResponseStream`` API operation. The maximum response payload size is 20 MB, however, you can `request a quota increase <https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html>`_ .
|
|
9118
9120
|
:param qualifier: The alias name.
|
|
9119
9121
|
'''
|
|
9120
9122
|
if __debug__:
|
|
@@ -9249,7 +9251,10 @@ class CfnUrl(
|
|
|
9249
9251
|
@builtins.property
|
|
9250
9252
|
@jsii.member(jsii_name="invokeMode")
|
|
9251
9253
|
def invoke_mode(self) -> typing.Optional[builtins.str]:
|
|
9252
|
-
'''
|
|
9254
|
+
'''Use one of the following options:.
|
|
9255
|
+
|
|
9256
|
+
- ``BUFFERED`` – This is the default option. Lambda invokes your function using the ``Invoke`` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
|
|
9257
|
+
- ``RESPONSE_STREAM`` – Your function streams payload results as they become available. Lambda invokes your function using the ``InvokeWithResponseStream`` API operation. The maximum response payload size is 20 MB, however, you can `request a quota increase <https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html>`_ .
|
|
9253
9258
|
|
|
9254
9259
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
|
|
9255
9260
|
'''
|
|
@@ -9458,7 +9463,7 @@ class CfnUrlProps:
|
|
|
9458
9463
|
:param auth_type: The type of authentication that your function URL uses. Set to ``AWS_IAM`` if you want to restrict access to authenticated users only. Set to ``NONE`` if you want to bypass IAM authentication to create a public endpoint. For more information, see `Security and auth model for Lambda function URLs <https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html>`_ .
|
|
9459
9464
|
:param target_function_arn: The name of the Lambda function. **Name formats** - *Function name* - ``my-function`` . - *Function ARN* - ``arn:aws:lambda:us-west-2:123456789012:function:my-function`` . - *Partial ARN* - ``123456789012:function:my-function`` . The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
|
|
9460
9465
|
:param cors: The `Cross-Origin Resource Sharing (CORS) <https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS>`_ settings for your function URL.
|
|
9461
|
-
:param invoke_mode: ``
|
|
9466
|
+
:param invoke_mode: Use one of the following options:. - ``BUFFERED`` – This is the default option. Lambda invokes your function using the ``Invoke`` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. - ``RESPONSE_STREAM`` – Your function streams payload results as they become available. Lambda invokes your function using the ``InvokeWithResponseStream`` API operation. The maximum response payload size is 20 MB, however, you can `request a quota increase <https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html>`_ .
|
|
9462
9467
|
:param qualifier: The alias name.
|
|
9463
9468
|
|
|
9464
9469
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html
|
|
@@ -9547,7 +9552,10 @@ class CfnUrlProps:
|
|
|
9547
9552
|
|
|
9548
9553
|
@builtins.property
|
|
9549
9554
|
def invoke_mode(self) -> typing.Optional[builtins.str]:
|
|
9550
|
-
'''
|
|
9555
|
+
'''Use one of the following options:.
|
|
9556
|
+
|
|
9557
|
+
- ``BUFFERED`` – This is the default option. Lambda invokes your function using the ``Invoke`` API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
|
|
9558
|
+
- ``RESPONSE_STREAM`` – Your function streams payload results as they become available. Lambda invokes your function using the ``InvokeWithResponseStream`` API operation. The maximum response payload size is 20 MB, however, you can `request a quota increase <https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html>`_ .
|
|
9551
9559
|
|
|
9552
9560
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html#cfn-lambda-url-invokemode
|
|
9553
9561
|
'''
|
|
@@ -13973,7 +13981,7 @@ class FunctionProps(FunctionOptions):
|
|
|
13973
13981
|
|
|
13974
13982
|
rule.add_target(targets.LambdaFunction(fn,
|
|
13975
13983
|
dead_letter_queue=queue, # Optional: add a dead letter queue
|
|
13976
|
-
max_event_age=
|
|
13984
|
+
max_event_age=Duration.hours(2), # Optional: set the maxEventAge retry policy
|
|
13977
13985
|
retry_attempts=2
|
|
13978
13986
|
))
|
|
13979
13987
|
'''
|
|
@@ -17864,7 +17872,7 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.Runtime
|
|
|
17864
17872
|
@jsii.python.classproperty
|
|
17865
17873
|
@jsii.member(jsii_name="NODEJS_18_X")
|
|
17866
17874
|
def NODEJS_18_X(cls) -> "Runtime":
|
|
17867
|
-
'''The NodeJS 18.x runtime (nodejs18.x)
|
|
17875
|
+
'''The NodeJS 18.x runtime (nodejs18.x).'''
|
|
17868
17876
|
return typing.cast("Runtime", jsii.sget(cls, "NODEJS_18_X"))
|
|
17869
17877
|
|
|
17870
17878
|
@jsii.python.classproperty
|
|
@@ -17923,6 +17931,12 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.Runtime
|
|
|
17923
17931
|
'''
|
|
17924
17932
|
return typing.cast("Runtime", jsii.sget(cls, "PYTHON_2_7"))
|
|
17925
17933
|
|
|
17934
|
+
@jsii.python.classproperty
|
|
17935
|
+
@jsii.member(jsii_name="PYTHON_3_10")
|
|
17936
|
+
def PYTHON_3_10(cls) -> "Runtime":
|
|
17937
|
+
'''The Python 3.10 runtime (python3.10).'''
|
|
17938
|
+
return typing.cast("Runtime", jsii.sget(cls, "PYTHON_3_10"))
|
|
17939
|
+
|
|
17926
17940
|
@jsii.python.classproperty
|
|
17927
17941
|
@jsii.member(jsii_name="PYTHON_3_6")
|
|
17928
17942
|
def PYTHON_3_6(cls) -> "Runtime":
|
|
@@ -18019,15 +18033,16 @@ class RuntimeManagementMode(
|
|
|
18019
18033
|
):
|
|
18020
18034
|
'''Specify the runtime update mode.
|
|
18021
18035
|
|
|
18022
|
-
:exampleMetadata:
|
|
18036
|
+
:exampleMetadata: infused
|
|
18023
18037
|
|
|
18024
18038
|
Example::
|
|
18025
18039
|
|
|
18026
|
-
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18040
|
+
lambda_.Function(self, "Lambda",
|
|
18041
|
+
runtime_management_mode=lambda_.RuntimeManagementMode.AUTO,
|
|
18042
|
+
runtime=lambda_.Runtime.NODEJS_18_X,
|
|
18043
|
+
handler="index.handler",
|
|
18044
|
+
code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler"))
|
|
18045
|
+
)
|
|
18031
18046
|
'''
|
|
18032
18047
|
|
|
18033
18048
|
def __init__(
|
|
@@ -20127,7 +20142,6 @@ class AliasProps(AliasOptions):
|
|
|
20127
20142
|
|
|
20128
20143
|
Example::
|
|
20129
20144
|
|
|
20130
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
20131
20145
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
20132
20146
|
func = lambda_.Function(self, "Lambda",
|
|
20133
20147
|
code=lambda_code,
|
|
@@ -20293,34 +20307,45 @@ class AssetCode(
|
|
|
20293
20307
|
):
|
|
20294
20308
|
'''Lambda code from a local directory.
|
|
20295
20309
|
|
|
20296
|
-
:exampleMetadata: infused
|
|
20310
|
+
:exampleMetadata: nofixture infused
|
|
20297
20311
|
|
|
20298
20312
|
Example::
|
|
20299
20313
|
|
|
20300
|
-
|
|
20301
|
-
|
|
20302
|
-
|
|
20303
|
-
handler="index.handler",
|
|
20304
|
-
runtime=lambda_.Runtime.NODEJS_14_X
|
|
20305
|
-
)
|
|
20314
|
+
class MyStack(Stack):
|
|
20315
|
+
def __init__(self, scope, id):
|
|
20316
|
+
super().__init__(scope, id)
|
|
20306
20317
|
|
|
20307
|
-
|
|
20308
|
-
|
|
20309
|
-
|
|
20310
|
-
|
|
20311
|
-
|
|
20312
|
-
)
|
|
20318
|
+
authorizer_fn = lambda_.Function(self, "MyAuthorizerFunction",
|
|
20319
|
+
runtime=lambda_.Runtime.NODEJS_14_X,
|
|
20320
|
+
handler="index.handler",
|
|
20321
|
+
code=lambda_.AssetCode.from_asset(path.join(__dirname, "integ.token-authorizer.handler"))
|
|
20322
|
+
)
|
|
20313
20323
|
|
|
20314
|
-
|
|
20315
|
-
|
|
20324
|
+
authorizer = TokenAuthorizer(self, "MyAuthorizer",
|
|
20325
|
+
handler=authorizer_fn
|
|
20326
|
+
)
|
|
20316
20327
|
|
|
20317
|
-
|
|
20318
|
-
|
|
20328
|
+
restapi = RestApi(self, "MyRestApi",
|
|
20329
|
+
cloud_watch_role=True,
|
|
20330
|
+
default_method_options=MethodOptions(
|
|
20331
|
+
authorizer=authorizer
|
|
20332
|
+
),
|
|
20333
|
+
default_cors_preflight_options=CorsOptions(
|
|
20334
|
+
allow_origins=Cors.ALL_ORIGINS
|
|
20335
|
+
)
|
|
20336
|
+
)
|
|
20319
20337
|
|
|
20320
|
-
|
|
20321
|
-
|
|
20322
|
-
|
|
20323
|
-
|
|
20338
|
+
restapi.root.add_method("ANY", MockIntegration(
|
|
20339
|
+
integration_responses=[IntegrationResponse(status_code="200")
|
|
20340
|
+
],
|
|
20341
|
+
passthrough_behavior=PassthroughBehavior.NEVER,
|
|
20342
|
+
request_templates={
|
|
20343
|
+
"application/json": "{ \"statusCode\": 200 }"
|
|
20344
|
+
}
|
|
20345
|
+
),
|
|
20346
|
+
method_responses=[MethodResponse(status_code="200")
|
|
20347
|
+
]
|
|
20348
|
+
)
|
|
20324
20349
|
'''
|
|
20325
20350
|
|
|
20326
20351
|
def __init__(
|
|
@@ -23175,7 +23200,6 @@ class Version(
|
|
|
23175
23200
|
|
|
23176
23201
|
Example::
|
|
23177
23202
|
|
|
23178
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23179
23203
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
23180
23204
|
func = lambda_.Function(self, "Lambda",
|
|
23181
23205
|
code=lambda_code,
|
|
@@ -23454,7 +23478,6 @@ class Alias(
|
|
|
23454
23478
|
|
|
23455
23479
|
Example::
|
|
23456
23480
|
|
|
23457
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
23458
23481
|
lambda_code = lambda_.Code.from_cfn_parameters()
|
|
23459
23482
|
func = lambda_.Function(self, "Lambda",
|
|
23460
23483
|
code=lambda_code,
|
|
@@ -249,16 +249,12 @@ The following code sets up a self managed Kafka cluster as an event source. User
|
|
|
249
249
|
will need to be set up as described in [Managing access and permissions](https://docs.aws.amazon.com/lambda/latest/dg/smaa-permissions.html#smaa-permissions-add-secret).
|
|
250
250
|
|
|
251
251
|
```python
|
|
252
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
253
252
|
from aws_cdk.aws_secretsmanager import Secret
|
|
254
253
|
from aws_cdk.aws_lambda_event_sources import SelfManagedKafkaEventSource
|
|
255
254
|
|
|
256
255
|
# The secret that allows access to your self hosted Kafka cluster
|
|
257
256
|
# secret: Secret
|
|
258
257
|
|
|
259
|
-
# (Optional) The secret containing the root CA certificate that your Kafka brokers use for TLS encryption
|
|
260
|
-
# encryption: Secret
|
|
261
|
-
|
|
262
258
|
# my_function: lambda.Function
|
|
263
259
|
|
|
264
260
|
|
|
@@ -269,15 +265,14 @@ bootstrap_servers = ["kafka-broker:9092"]
|
|
|
269
265
|
topic = "some-cool-topic"
|
|
270
266
|
|
|
271
267
|
# (Optional) The consumer group id to use when connecting to the Kafka broker. If omitted the UUID of the event source mapping will be used.
|
|
272
|
-
|
|
268
|
+
consumer_group_id = "my-consumer-group-id"
|
|
273
269
|
my_function.add_event_source(SelfManagedKafkaEventSource(
|
|
274
270
|
bootstrap_servers=bootstrap_servers,
|
|
275
271
|
topic=topic,
|
|
276
272
|
consumer_group_id=consumer_group_id,
|
|
277
273
|
secret=secret,
|
|
278
274
|
batch_size=100, # default
|
|
279
|
-
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
280
|
-
encryption=encryption
|
|
275
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
281
276
|
))
|
|
282
277
|
```
|
|
283
278
|
|
|
@@ -1147,16 +1142,12 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1147
1142
|
|
|
1148
1143
|
Example::
|
|
1149
1144
|
|
|
1150
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
1151
1145
|
from aws_cdk.aws_secretsmanager import Secret
|
|
1152
1146
|
from aws_cdk.aws_lambda_event_sources import SelfManagedKafkaEventSource
|
|
1153
1147
|
|
|
1154
1148
|
# The secret that allows access to your self hosted Kafka cluster
|
|
1155
1149
|
# secret: Secret
|
|
1156
1150
|
|
|
1157
|
-
# (Optional) The secret containing the root CA certificate that your Kafka brokers use for TLS encryption
|
|
1158
|
-
# encryption: Secret
|
|
1159
|
-
|
|
1160
1151
|
# my_function: lambda.Function
|
|
1161
1152
|
|
|
1162
1153
|
|
|
@@ -1167,15 +1158,14 @@ class SelfManagedKafkaEventSourceProps(KafkaEventSourceProps):
|
|
|
1167
1158
|
topic = "some-cool-topic"
|
|
1168
1159
|
|
|
1169
1160
|
# (Optional) The consumer group id to use when connecting to the Kafka broker. If omitted the UUID of the event source mapping will be used.
|
|
1170
|
-
|
|
1161
|
+
consumer_group_id = "my-consumer-group-id"
|
|
1171
1162
|
my_function.add_event_source(SelfManagedKafkaEventSource(
|
|
1172
1163
|
bootstrap_servers=bootstrap_servers,
|
|
1173
1164
|
topic=topic,
|
|
1174
1165
|
consumer_group_id=consumer_group_id,
|
|
1175
1166
|
secret=secret,
|
|
1176
1167
|
batch_size=100, # default
|
|
1177
|
-
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
1178
|
-
encryption=encryption
|
|
1168
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
1179
1169
|
))
|
|
1180
1170
|
'''
|
|
1181
1171
|
if isinstance(vpc_subnets, dict):
|
|
@@ -3119,16 +3109,12 @@ class SelfManagedKafkaEventSource(
|
|
|
3119
3109
|
|
|
3120
3110
|
Example::
|
|
3121
3111
|
|
|
3122
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
3123
3112
|
from aws_cdk.aws_secretsmanager import Secret
|
|
3124
3113
|
from aws_cdk.aws_lambda_event_sources import SelfManagedKafkaEventSource
|
|
3125
3114
|
|
|
3126
3115
|
# The secret that allows access to your self hosted Kafka cluster
|
|
3127
3116
|
# secret: Secret
|
|
3128
3117
|
|
|
3129
|
-
# (Optional) The secret containing the root CA certificate that your Kafka brokers use for TLS encryption
|
|
3130
|
-
# encryption: Secret
|
|
3131
|
-
|
|
3132
3118
|
# my_function: lambda.Function
|
|
3133
3119
|
|
|
3134
3120
|
|
|
@@ -3139,15 +3125,14 @@ class SelfManagedKafkaEventSource(
|
|
|
3139
3125
|
topic = "some-cool-topic"
|
|
3140
3126
|
|
|
3141
3127
|
# (Optional) The consumer group id to use when connecting to the Kafka broker. If omitted the UUID of the event source mapping will be used.
|
|
3142
|
-
|
|
3128
|
+
consumer_group_id = "my-consumer-group-id"
|
|
3143
3129
|
my_function.add_event_source(SelfManagedKafkaEventSource(
|
|
3144
3130
|
bootstrap_servers=bootstrap_servers,
|
|
3145
3131
|
topic=topic,
|
|
3146
3132
|
consumer_group_id=consumer_group_id,
|
|
3147
3133
|
secret=secret,
|
|
3148
3134
|
batch_size=100, # default
|
|
3149
|
-
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
3150
|
-
encryption=encryption
|
|
3135
|
+
starting_position=lambda_.StartingPosition.TRIM_HORIZON
|
|
3151
3136
|
))
|
|
3152
3137
|
'''
|
|
3153
3138
|
|
aws_cdk/aws_logs/__init__.py
CHANGED
|
@@ -172,7 +172,6 @@ You can expose a metric on a metric filter by calling the `MetricFilter.metric()
|
|
|
172
172
|
This has a default of `statistic = 'avg'` if the statistic is not set in the `props`.
|
|
173
173
|
|
|
174
174
|
```python
|
|
175
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
176
175
|
# log_group: logs.LogGroup
|
|
177
176
|
|
|
178
177
|
mf = logs.MetricFilter(self, "MetricFilter",
|
|
@@ -184,7 +183,7 @@ mf = logs.MetricFilter(self, "MetricFilter",
|
|
|
184
183
|
dimensions={
|
|
185
184
|
"ErrorCode": "$.errorCode"
|
|
186
185
|
},
|
|
187
|
-
unit=Unit.MILLISECONDS
|
|
186
|
+
unit=cloudwatch.Unit.MILLISECONDS
|
|
188
187
|
)
|
|
189
188
|
|
|
190
189
|
# expose a metric from the metric filter
|
|
@@ -2301,7 +2300,7 @@ class CfnSubscriptionFilter(
|
|
|
2301
2300
|
:param filter_pattern: The filtering expressions that restrict what gets delivered to the destination AWS resource. For more information about the filter pattern syntax, see `Filter and Pattern Syntax <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html>`_ .
|
|
2302
2301
|
:param log_group_name: The log group to associate with the subscription filter. All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.
|
|
2303
2302
|
:param distribution: ``AWS::Logs::SubscriptionFilter.Distribution``.
|
|
2304
|
-
:param filter_name:
|
|
2303
|
+
:param filter_name: ``AWS::Logs::SubscriptionFilter.FilterName``.
|
|
2305
2304
|
:param role_arn: The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
|
|
2306
2305
|
'''
|
|
2307
2306
|
if __debug__:
|
|
@@ -2425,7 +2424,7 @@ class CfnSubscriptionFilter(
|
|
|
2425
2424
|
@builtins.property
|
|
2426
2425
|
@jsii.member(jsii_name="filterName")
|
|
2427
2426
|
def filter_name(self) -> typing.Optional[builtins.str]:
|
|
2428
|
-
'''
|
|
2427
|
+
'''``AWS::Logs::SubscriptionFilter.FilterName``.
|
|
2429
2428
|
|
|
2430
2429
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername
|
|
2431
2430
|
'''
|
|
@@ -2486,7 +2485,7 @@ class CfnSubscriptionFilterProps:
|
|
|
2486
2485
|
:param filter_pattern: The filtering expressions that restrict what gets delivered to the destination AWS resource. For more information about the filter pattern syntax, see `Filter and Pattern Syntax <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html>`_ .
|
|
2487
2486
|
:param log_group_name: The log group to associate with the subscription filter. All log events that are uploaded to this log group are filtered and delivered to the specified AWS resource if the filter pattern matches the log events.
|
|
2488
2487
|
:param distribution: ``AWS::Logs::SubscriptionFilter.Distribution``.
|
|
2489
|
-
:param filter_name:
|
|
2488
|
+
:param filter_name: ``AWS::Logs::SubscriptionFilter.FilterName``.
|
|
2490
2489
|
:param role_arn: The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.
|
|
2491
2490
|
|
|
2492
2491
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
|
|
@@ -2574,7 +2573,7 @@ class CfnSubscriptionFilterProps:
|
|
|
2574
2573
|
|
|
2575
2574
|
@builtins.property
|
|
2576
2575
|
def filter_name(self) -> typing.Optional[builtins.str]:
|
|
2577
|
-
'''
|
|
2576
|
+
'''``AWS::Logs::SubscriptionFilter.FilterName``.
|
|
2578
2577
|
|
|
2579
2578
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html#cfn-logs-subscriptionfilter-filtername
|
|
2580
2579
|
'''
|
|
@@ -3520,7 +3519,6 @@ class LogGroup(
|
|
|
3520
3519
|
|
|
3521
3520
|
Example::
|
|
3522
3521
|
|
|
3523
|
-
# Example automatically generated from non-compiling source. May contain errors.
|
|
3524
3522
|
# vpc: ec2.Vpc
|
|
3525
3523
|
|
|
3526
3524
|
|
aws_cdk/aws_macie/__init__.py
CHANGED
|
@@ -1090,8 +1090,7 @@ class CfnFindingsFilter(
|
|
|
1090
1090
|
@builtins.property
|
|
1091
1091
|
@jsii.member(jsii_name="attrFindingsFilterListItems")
|
|
1092
1092
|
def attr_findings_filter_list_items(self) -> _IResolvable_da3f097b:
|
|
1093
|
-
'''
|
|
1094
|
-
|
|
1093
|
+
'''
|
|
1095
1094
|
:cloudformationAttribute: FindingsFilterListItems
|
|
1096
1095
|
'''
|
|
1097
1096
|
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrFindingsFilterListItems"))
|
|
@@ -1227,13 +1226,16 @@ class CfnFindingsFilter(
|
|
|
1227
1226
|
lte: typing.Optional[jsii.Number] = None,
|
|
1228
1227
|
neq: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
1229
1228
|
) -> None:
|
|
1230
|
-
'''
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
:param
|
|
1235
|
-
:param
|
|
1236
|
-
:param
|
|
1229
|
+
'''Specifies a condition that defines the property, operator, and one or more values to use in a findings filter.
|
|
1230
|
+
|
|
1231
|
+
A *findings filter* , also referred to as a *filter rule* , is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see `Filtering findings <https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html>`_ in the *Amazon Macie User Guide* .
|
|
1232
|
+
|
|
1233
|
+
:param eq: The value for the specified property matches (equals) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values.
|
|
1234
|
+
:param gt: The value for the specified property is greater than the specified value.
|
|
1235
|
+
:param gte: The value for the specified property is greater than or equal to the specified value.
|
|
1236
|
+
:param lt: The value for the specified property is less than the specified value.
|
|
1237
|
+
:param lte: The value for the specified property is less than or equal to the specified value.
|
|
1238
|
+
:param neq: The value for the specified property doesn't match (doesn't equal) the specified value. If you specify multiple values, Amazon Macie uses OR logic to join the values.
|
|
1237
1239
|
|
|
1238
1240
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html
|
|
1239
1241
|
:exampleMetadata: fixture=_generated
|
|
@@ -1277,7 +1279,9 @@ class CfnFindingsFilter(
|
|
|
1277
1279
|
|
|
1278
1280
|
@builtins.property
|
|
1279
1281
|
def eq(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1280
|
-
'''
|
|
1282
|
+
'''The value for the specified property matches (equals) the specified value.
|
|
1283
|
+
|
|
1284
|
+
If you specify multiple values, Amazon Macie uses OR logic to join the values.
|
|
1281
1285
|
|
|
1282
1286
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-eq
|
|
1283
1287
|
'''
|
|
@@ -1286,7 +1290,7 @@ class CfnFindingsFilter(
|
|
|
1286
1290
|
|
|
1287
1291
|
@builtins.property
|
|
1288
1292
|
def gt(self) -> typing.Optional[jsii.Number]:
|
|
1289
|
-
'''
|
|
1293
|
+
'''The value for the specified property is greater than the specified value.
|
|
1290
1294
|
|
|
1291
1295
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-gt
|
|
1292
1296
|
'''
|
|
@@ -1295,7 +1299,7 @@ class CfnFindingsFilter(
|
|
|
1295
1299
|
|
|
1296
1300
|
@builtins.property
|
|
1297
1301
|
def gte(self) -> typing.Optional[jsii.Number]:
|
|
1298
|
-
'''
|
|
1302
|
+
'''The value for the specified property is greater than or equal to the specified value.
|
|
1299
1303
|
|
|
1300
1304
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-gte
|
|
1301
1305
|
'''
|
|
@@ -1304,7 +1308,7 @@ class CfnFindingsFilter(
|
|
|
1304
1308
|
|
|
1305
1309
|
@builtins.property
|
|
1306
1310
|
def lt(self) -> typing.Optional[jsii.Number]:
|
|
1307
|
-
'''
|
|
1311
|
+
'''The value for the specified property is less than the specified value.
|
|
1308
1312
|
|
|
1309
1313
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-lt
|
|
1310
1314
|
'''
|
|
@@ -1313,7 +1317,7 @@ class CfnFindingsFilter(
|
|
|
1313
1317
|
|
|
1314
1318
|
@builtins.property
|
|
1315
1319
|
def lte(self) -> typing.Optional[jsii.Number]:
|
|
1316
|
-
'''
|
|
1320
|
+
'''The value for the specified property is less than or equal to the specified value.
|
|
1317
1321
|
|
|
1318
1322
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-lte
|
|
1319
1323
|
'''
|
|
@@ -1322,7 +1326,9 @@ class CfnFindingsFilter(
|
|
|
1322
1326
|
|
|
1323
1327
|
@builtins.property
|
|
1324
1328
|
def neq(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1325
|
-
'''
|
|
1329
|
+
'''The value for the specified property doesn't match (doesn't equal) the specified value.
|
|
1330
|
+
|
|
1331
|
+
If you specify multiple values, Amazon Macie uses OR logic to join the values.
|
|
1326
1332
|
|
|
1327
1333
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-criterionadditionalproperties.html#cfn-macie-findingsfilter-criterionadditionalproperties-neq
|
|
1328
1334
|
'''
|
|
@@ -1351,9 +1357,9 @@ class CfnFindingsFilter(
|
|
|
1351
1357
|
*,
|
|
1352
1358
|
criterion: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnFindingsFilter.CriterionAdditionalPropertiesProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
1353
1359
|
) -> None:
|
|
1354
|
-
'''Specifies, as a map, one or more property-based conditions
|
|
1360
|
+
'''Specifies, as a map, one or more property-based conditions for a findings filter.
|
|
1355
1361
|
|
|
1356
|
-
For more information, see `Filtering findings <https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html>`_ in the *Amazon Macie User Guide* .
|
|
1362
|
+
A *findings filter* , also referred to as a *filter rule* , is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see `Filtering findings <https://docs.aws.amazon.com/macie/latest/user/findings-filter-overview.html>`_ in the *Amazon Macie User Guide* .
|
|
1357
1363
|
|
|
1358
1364
|
:param criterion: Specifies a condition that defines the property, operator, and one or more values to use to filter the results.
|
|
1359
1365
|
|
|
@@ -1420,10 +1426,9 @@ class CfnFindingsFilter(
|
|
|
1420
1426
|
id: typing.Optional[builtins.str] = None,
|
|
1421
1427
|
name: typing.Optional[builtins.str] = None,
|
|
1422
1428
|
) -> None:
|
|
1423
|
-
'''
|
|
1424
|
-
|
|
1425
|
-
:param
|
|
1426
|
-
:param name: The custom name of the findings filter.
|
|
1429
|
+
'''
|
|
1430
|
+
:param id: ``CfnFindingsFilter.FindingsFilterListItemProperty.Id``.
|
|
1431
|
+
:param name: ``CfnFindingsFilter.FindingsFilterListItemProperty.Name``.
|
|
1427
1432
|
|
|
1428
1433
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingsfilterlistitem.html
|
|
1429
1434
|
:exampleMetadata: fixture=_generated
|
|
@@ -1451,7 +1456,7 @@ class CfnFindingsFilter(
|
|
|
1451
1456
|
|
|
1452
1457
|
@builtins.property
|
|
1453
1458
|
def id(self) -> typing.Optional[builtins.str]:
|
|
1454
|
-
'''
|
|
1459
|
+
'''``CfnFindingsFilter.FindingsFilterListItemProperty.Id``.
|
|
1455
1460
|
|
|
1456
1461
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingsfilterlistitem.html#cfn-macie-findingsfilter-findingsfilterlistitem-id
|
|
1457
1462
|
'''
|
|
@@ -1460,7 +1465,7 @@ class CfnFindingsFilter(
|
|
|
1460
1465
|
|
|
1461
1466
|
@builtins.property
|
|
1462
1467
|
def name(self) -> typing.Optional[builtins.str]:
|
|
1463
|
-
'''
|
|
1468
|
+
'''``CfnFindingsFilter.FindingsFilterListItemProperty.Name``.
|
|
1464
1469
|
|
|
1465
1470
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-macie-findingsfilter-findingsfilterlistitem.html#cfn-macie-findingsfilter-findingsfilterlistitem-name
|
|
1466
1471
|
'''
|
|
@@ -529,7 +529,7 @@ class CfnFlow(
|
|
|
529
529
|
:param failover_mode: The type of failover you choose for this flow. MERGE combines the source streams into a single stream, allowing graceful recovery from any single-source loss. FAILOVER allows switching between different streams.
|
|
530
530
|
:param recovery_window: The size of the buffer (delay) that the service maintains. A larger buffer means a longer delay in transmitting the stream, but more room for error correction. A smaller buffer means a shorter delay, but less room for error correction. You can choose a value from 100-500 ms. If you keep this field blank, the service uses the default value of 200 ms. This setting only applies when Failover Mode is set to MERGE.
|
|
531
531
|
:param source_priority: The priority you want to assign to a source. You can have a primary stream and a backup stream or two equally prioritized streams. This setting only applies when Failover Mode is set to FAILOVER.
|
|
532
|
-
:param state: The state of source failover on the flow. If the state is
|
|
532
|
+
:param state: The state of source failover on the flow. If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
|
|
533
533
|
|
|
534
534
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html
|
|
535
535
|
:exampleMetadata: fixture=_generated
|
|
@@ -604,7 +604,7 @@ class CfnFlow(
|
|
|
604
604
|
def state(self) -> typing.Optional[builtins.str]:
|
|
605
605
|
'''The state of source failover on the flow.
|
|
606
606
|
|
|
607
|
-
If the state is
|
|
607
|
+
If the state is inactive, the flow can have only one source. If the state is active, the flow can have one or two sources.
|
|
608
608
|
|
|
609
609
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-failoverconfig.html#cfn-mediaconnect-flow-failoverconfig-state
|
|
610
610
|
'''
|
|
@@ -629,11 +629,8 @@ class CfnFlow(
|
|
|
629
629
|
)
|
|
630
630
|
class SourcePriorityProperty:
|
|
631
631
|
def __init__(self, *, primary_source: builtins.str) -> None:
|
|
632
|
-
'''
|
|
633
|
-
|
|
634
|
-
You can have a primary stream and a backup stream or two equally prioritized streams. This setting only applies when Failover Mode is set to FAILOVER.
|
|
635
|
-
|
|
636
|
-
:param primary_source: The name of the source you choose as the primary source for this flow.
|
|
632
|
+
'''
|
|
633
|
+
:param primary_source: ``CfnFlow.SourcePriorityProperty.PrimarySource``.
|
|
637
634
|
|
|
638
635
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcepriority.html
|
|
639
636
|
:exampleMetadata: fixture=_generated
|
|
@@ -657,7 +654,7 @@ class CfnFlow(
|
|
|
657
654
|
|
|
658
655
|
@builtins.property
|
|
659
656
|
def primary_source(self) -> builtins.str:
|
|
660
|
-
'''
|
|
657
|
+
'''``CfnFlow.SourcePriorityProperty.PrimarySource``.
|
|
661
658
|
|
|
662
659
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flow-sourcepriority.html#cfn-mediaconnect-flow-sourcepriority-primarysource
|
|
663
660
|
'''
|
|
@@ -493,7 +493,7 @@ class CfnJobTemplate(
|
|
|
493
493
|
|
|
494
494
|
:param priority: Optional. When you set up a job to use queue hopping, you can specify a different relative priority for the job in the destination queue. If you don't specify, the relative priority will remain the same as in the previous queue.
|
|
495
495
|
:param queue: Optional unless the job is submitted on the default queue. When you set up a job to use queue hopping, you can specify a destination queue. This queue cannot be the original queue to which the job is submitted. If the original queue isn't the default queue and you don't specify the destination queue, the job will move to the default queue.
|
|
496
|
-
:param wait_minutes: Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to
|
|
496
|
+
:param wait_minutes: Required for setting up a job to use queue hopping. Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 4320 minutes, inclusive.
|
|
497
497
|
|
|
498
498
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-hopdestination.html
|
|
499
499
|
:exampleMetadata: fixture=_generated
|
|
@@ -549,7 +549,7 @@ class CfnJobTemplate(
|
|
|
549
549
|
def wait_minutes(self) -> typing.Optional[jsii.Number]:
|
|
550
550
|
'''Required for setting up a job to use queue hopping.
|
|
551
551
|
|
|
552
|
-
Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to
|
|
552
|
+
Minimum wait time in minutes until the job can hop to the destination queue. Valid range is 1 to 4320 minutes, inclusive.
|
|
553
553
|
|
|
554
554
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconvert-jobtemplate-hopdestination.html#cfn-mediaconvert-jobtemplate-hopdestination-waitminutes
|
|
555
555
|
'''
|
|
@@ -11439,7 +11439,7 @@ class CfnChannel(
|
|
|
11439
11439
|
:param mode: If "vod," all segments are indexed and kept permanently in the destination and manifest. If "live," only the number segments specified in keepSegments and indexNSegments are kept. Newer segments replace older segments, which might prevent players from rewinding all the way to the beginning of the channel. VOD mode uses HLS EXT-X-PLAYLIST-TYPE of EVENT while the channel is running, converting it to a "VOD" type manifest on completion of the stream.
|
|
11440
11440
|
:param output_selection: MANIFESTSANDSEGMENTS: Generates manifests (the master manifest, if applicable, and media manifests) for this output group. SEGMENTSONLY: Doesn't generate any manifests for this output group.
|
|
11441
11441
|
:param program_date_time: Includes or excludes the EXT-X-PROGRAM-DATE-TIME tag in .m3u8 manifest files. The value is calculated as follows: Either the program date and time are initialized using the input timecode source, or the time is initialized using the input timecode source and the date is initialized using the timestampOffset.
|
|
11442
|
-
:param program_date_time_clock:
|
|
11442
|
+
:param program_date_time_clock: ``CfnChannel.HlsGroupSettingsProperty.ProgramDateTimeClock``.
|
|
11443
11443
|
:param program_date_time_period: The period of insertion of the EXT-X-PROGRAM-DATE-TIME entry, in seconds.
|
|
11444
11444
|
:param redundant_manifest: ENABLED: The master manifest (.m3u8 file) for each pipeline includes information about both pipelines: first its own media files, then the media files of the other pipeline. This feature allows a playout device that supports stale manifest detection to switch from one manifest to the other, when the current manifest seems to be stale. There are still two destinations and two master manifests, but both master manifests reference the media files from both pipelines. DISABLED: The master manifest (.m3u8 file) for each pipeline includes information about its own pipeline only. For an HLS output group with MediaPackage as the destination, the DISABLED behavior is always followed. MediaPackage regenerates the manifests it serves to players, so a redundant manifest from MediaLive is irrelevant.
|
|
11445
11445
|
:param segmentation_mode: useInputSegmentation has been deprecated. The configured segment size is always used.
|
|
@@ -12019,9 +12019,7 @@ class CfnChannel(
|
|
|
12019
12019
|
|
|
12020
12020
|
@builtins.property
|
|
12021
12021
|
def program_date_time_clock(self) -> typing.Optional[builtins.str]:
|
|
12022
|
-
'''
|
|
12023
|
-
|
|
12024
|
-
Options include: INITIALIZE_FROM_OUTPUT_TIMECODE: The PDT clock is initialized as a function of the first output timecode, then incremented by the EXTINF duration of each encoded segment. SYSTEM_CLOCK: The PDT clock is initialized as a function of the UTC wall clock, then incremented by the EXTINF duration of each encoded segment. If the PDT clock diverges from the wall clock by more than 500ms, it is resynchronized to the wall clock.
|
|
12022
|
+
'''``CfnChannel.HlsGroupSettingsProperty.ProgramDateTimeClock``.
|
|
12025
12023
|
|
|
12026
12024
|
:link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-hlsgroupsettings.html#cfn-medialive-channel-hlsgroupsettings-programdatetimeclock
|
|
12027
12025
|
'''
|