aws-cdk-lib 2.189.1__py3-none-any.whl → 2.191.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/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.189.1.jsii.tgz → aws-cdk-lib@2.191.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +6 -6
- aws_cdk/aws_apigateway/__init__.py +18 -1
- aws_cdk/aws_apigatewayv2/__init__.py +374 -6
- aws_cdk/aws_applicationautoscaling/__init__.py +16 -10
- aws_cdk/aws_applicationsignals/__init__.py +204 -31
- aws_cdk/aws_aps/__init__.py +383 -2
- aws_cdk/aws_backup/__init__.py +0 -41
- aws_cdk/aws_batch/__init__.py +242 -5
- aws_cdk/aws_bedrock/__init__.py +963 -41
- aws_cdk/aws_cleanrooms/__init__.py +1392 -78
- aws_cdk/aws_cloudfront/__init__.py +1 -0
- aws_cdk/aws_cloudtrail/__init__.py +24 -26
- aws_cdk/aws_codebuild/__init__.py +107 -7
- aws_cdk/aws_datazone/__init__.py +23 -1
- aws_cdk/aws_dms/__init__.py +43 -0
- aws_cdk/aws_ec2/__init__.py +364 -30
- aws_cdk/aws_ecs/__init__.py +36 -5
- aws_cdk/aws_eks/__init__.py +2 -100
- aws_cdk/aws_elasticache/__init__.py +6 -11
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +341 -0
- aws_cdk/aws_events/__init__.py +106 -13
- aws_cdk/aws_fsx/__init__.py +9 -21
- aws_cdk/aws_iam/__init__.py +1 -1
- aws_cdk/aws_iot/__init__.py +6 -6
- aws_cdk/aws_kafkaconnect/__init__.py +2 -2
- aws_cdk/aws_kinesis/__init__.py +44 -0
- aws_cdk/aws_launchwizard/__init__.py +49 -49
- aws_cdk/aws_lex/__init__.py +615 -39
- aws_cdk/aws_location/__init__.py +4 -4
- aws_cdk/aws_macie/__init__.py +14 -3
- aws_cdk/aws_memorydb/__init__.py +87 -0
- aws_cdk/aws_msk/__init__.py +226 -127
- aws_cdk/aws_neptune/__init__.py +0 -24
- aws_cdk/aws_opensearchservice/__init__.py +64 -56
- aws_cdk/aws_paymentcryptography/__init__.py +41 -0
- aws_cdk/aws_qbusiness/__init__.py +175 -3
- aws_cdk/aws_quicksight/__init__.py +393 -0
- aws_cdk/aws_rds/__init__.py +149 -120
- aws_cdk/aws_redshiftserverless/__init__.py +4 -14
- aws_cdk/aws_route53resolver/__init__.py +60 -9
- aws_cdk/aws_s3/__init__.py +34 -1
- aws_cdk/aws_s3_deployment/__init__.py +202 -5
- aws_cdk/aws_s3tables/__init__.py +142 -1
- aws_cdk/aws_sagemaker/__init__.py +40 -40
- aws_cdk/aws_ses/__init__.py +643 -18
- aws_cdk/aws_ssmquicksetup/__init__.py +3 -3
- aws_cdk/aws_stepfunctions/__init__.py +720 -45
- aws_cdk/aws_transfer/__init__.py +55 -2
- aws_cdk/pipelines/__init__.py +1 -2
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/RECORD +57 -57
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.189.1.dist-info → aws_cdk_lib-2.191.0.dist-info}/top_level.txt +0 -0
|
@@ -975,11 +975,14 @@ distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
|
975
975
|
* CSV file stored in S3
|
|
976
976
|
* S3 inventory manifest stored in S3
|
|
977
977
|
|
|
978
|
-
Map states in Distributed mode also support writing results of the iterator to an S3 bucket and optional prefix. Use a `
|
|
978
|
+
Map states in Distributed mode also support writing results of the iterator to an S3 bucket and optional prefix. Use a `ResultWriterV2` object provided via the optional `resultWriter` property to configure which S3 location iterator results will be written. The default behavior id `resultWriter` is omitted is to use the state output payload. However, if the iterator results are larger than the 256 kb limit for Step Functions payloads then the State Machine will fail.
|
|
979
979
|
|
|
980
|
-
|
|
980
|
+
ResultWriterV2 object will default to use the Distributed map's query language. If the Distributed map's does not specify a query language, then it
|
|
981
981
|
will fall back to the State machine's query langauge.
|
|
982
982
|
|
|
983
|
+
Note: `ResultWriter` has been deprecated, use `ResultWriterV2` instead. To enable `ResultWriterV2`,
|
|
984
|
+
you will have to set the value for `'@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2'` to true in the CDK context
|
|
985
|
+
|
|
983
986
|
```python
|
|
984
987
|
import aws_cdk.aws_s3 as s3
|
|
985
988
|
|
|
@@ -987,10 +990,16 @@ import aws_cdk.aws_s3 as s3
|
|
|
987
990
|
# create a bucket
|
|
988
991
|
bucket = s3.Bucket(self, "Bucket")
|
|
989
992
|
|
|
993
|
+
# create a WriterConfig
|
|
994
|
+
|
|
990
995
|
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
991
|
-
|
|
996
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
992
997
|
bucket=bucket,
|
|
993
|
-
prefix="my-prefix"
|
|
998
|
+
prefix="my-prefix",
|
|
999
|
+
writer_config={
|
|
1000
|
+
"output_type": sfn.OutputType.JSONL,
|
|
1001
|
+
"transformation": sfn.Transformation.NONE
|
|
1002
|
+
}
|
|
994
1003
|
)
|
|
995
1004
|
)
|
|
996
1005
|
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
@@ -2083,7 +2092,7 @@ class CfnActivity(
|
|
|
2083
2092
|
'''
|
|
2084
2093
|
:param scope: Scope in which this resource is defined.
|
|
2085
2094
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
2086
|
-
:param name: The name of the activity. A name must *not* contain: - white space - brackets ``< > { } [ ]`` - wildcard characters ``? *`` - special characters ``" # % \\ ^ | ~ `` $ & , ; : /` - control characters ( ``U+0000-001F`` , ``U+007F-009F`` ) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
|
|
2095
|
+
:param name: The name of the activity. A name must *not* contain: - white space - brackets ``< > { } [ ]`` - wildcard characters ``? *`` - special characters ``" # % \\ ^ | ~ `` $ & , ; : /` - control characters ( ``U+0000-001F`` , ``U+007F-009F`` , ``U+FFFE-FFFF`` ) - surrogates ( ``U+D800-DFFF`` ) - invalid characters ( ``U+10FFFF`` ) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
|
|
2087
2096
|
:param encryption_configuration: Encryption configuration for the activity. Activity configuration is immutable, and resource names must be unique. To set customer managed keys for encryption, you must create a *new Activity* . If you attempt to change the configuration in your CFN template for an existing activity, you will receive an ``ActivityAlreadyExists`` exception. To update your activity to include customer managed keys, set a new activity name within your AWS CloudFormation template.
|
|
2088
2097
|
:param tags: The list of tags to add to a resource. Tags may only contain Unicode letters, digits, white space, or these symbols: `_ . : / = + -
|
|
2089
2098
|
'''
|
|
@@ -2395,7 +2404,7 @@ class CfnActivityProps:
|
|
|
2395
2404
|
) -> None:
|
|
2396
2405
|
'''Properties for defining a ``CfnActivity``.
|
|
2397
2406
|
|
|
2398
|
-
:param name: The name of the activity. A name must *not* contain: - white space - brackets ``< > { } [ ]`` - wildcard characters ``? *`` - special characters ``" # % \\ ^ | ~ `` $ & , ; : /` - control characters ( ``U+0000-001F`` , ``U+007F-009F`` ) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
|
|
2407
|
+
:param name: The name of the activity. A name must *not* contain: - white space - brackets ``< > { } [ ]`` - wildcard characters ``? *`` - special characters ``" # % \\ ^ | ~ `` $ & , ; : /` - control characters ( ``U+0000-001F`` , ``U+007F-009F`` , ``U+FFFE-FFFF`` ) - surrogates ( ``U+D800-DFFF`` ) - invalid characters ( ``U+10FFFF`` ) To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
|
|
2399
2408
|
:param encryption_configuration: Encryption configuration for the activity. Activity configuration is immutable, and resource names must be unique. To set customer managed keys for encryption, you must create a *new Activity* . If you attempt to change the configuration in your CFN template for an existing activity, you will receive an ``ActivityAlreadyExists`` exception. To update your activity to include customer managed keys, set a new activity name within your AWS CloudFormation template.
|
|
2400
2409
|
:param tags: The list of tags to add to a resource. Tags may only contain Unicode letters, digits, white space, or these symbols: `_ . : / = + -
|
|
2401
2410
|
|
|
@@ -2448,7 +2457,9 @@ class CfnActivityProps:
|
|
|
2448
2457
|
- brackets ``< > { } [ ]``
|
|
2449
2458
|
- wildcard characters ``? *``
|
|
2450
2459
|
- special characters ``" # % \\ ^ | ~ `` $ & , ; : /`
|
|
2451
|
-
- control characters ( ``U+0000-001F`` , ``U+007F-009F`` )
|
|
2460
|
+
- control characters ( ``U+0000-001F`` , ``U+007F-009F`` , ``U+FFFE-FFFF`` )
|
|
2461
|
+
- surrogates ( ``U+D800-DFFF`` )
|
|
2462
|
+
- invalid characters ( ``U+10FFFF`` )
|
|
2452
2463
|
|
|
2453
2464
|
To enable logging with CloudWatch Logs, the name should only contain 0-9, A-Z, a-z, - and _.
|
|
2454
2465
|
|
|
@@ -9037,6 +9048,41 @@ class MapBaseOptions(AssignableStateOptions):
|
|
|
9037
9048
|
)
|
|
9038
9049
|
|
|
9039
9050
|
|
|
9051
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_stepfunctions.OutputType")
|
|
9052
|
+
class OutputType(enum.Enum):
|
|
9053
|
+
'''The format of the Output of the child workflow executions.
|
|
9054
|
+
|
|
9055
|
+
:exampleMetadata: infused
|
|
9056
|
+
|
|
9057
|
+
Example::
|
|
9058
|
+
|
|
9059
|
+
import aws_cdk.aws_s3 as s3
|
|
9060
|
+
|
|
9061
|
+
|
|
9062
|
+
# create a bucket
|
|
9063
|
+
bucket = s3.Bucket(self, "Bucket")
|
|
9064
|
+
|
|
9065
|
+
# create a WriterConfig
|
|
9066
|
+
|
|
9067
|
+
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
9068
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
9069
|
+
bucket=bucket,
|
|
9070
|
+
prefix="my-prefix",
|
|
9071
|
+
writer_config={
|
|
9072
|
+
"output_type": sfn.OutputType.JSONL,
|
|
9073
|
+
"transformation": sfn.Transformation.NONE
|
|
9074
|
+
}
|
|
9075
|
+
)
|
|
9076
|
+
)
|
|
9077
|
+
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
9078
|
+
'''
|
|
9079
|
+
|
|
9080
|
+
JSON = "JSON"
|
|
9081
|
+
'''Formats the results as a JSON array.'''
|
|
9082
|
+
JSONL = "JSONL"
|
|
9083
|
+
'''Formats the results as JSON Lines.'''
|
|
9084
|
+
|
|
9085
|
+
|
|
9040
9086
|
@jsii.data_type(
|
|
9041
9087
|
jsii_type="aws-cdk-lib.aws_stepfunctions.ProcessorConfig",
|
|
9042
9088
|
jsii_struct_bases=[],
|
|
@@ -9375,7 +9421,182 @@ class ResultWriter(
|
|
|
9375
9421
|
metaclass=jsii.JSIIMeta,
|
|
9376
9422
|
jsii_type="aws-cdk-lib.aws_stepfunctions.ResultWriter",
|
|
9377
9423
|
):
|
|
9378
|
-
'''Configuration for writing Distributed Map state results to S3.
|
|
9424
|
+
'''(deprecated) Configuration for writing Distributed Map state results to S3.
|
|
9425
|
+
|
|
9426
|
+
:deprecated: use {@link ResultWriterV2 } instead
|
|
9427
|
+
|
|
9428
|
+
:stability: deprecated
|
|
9429
|
+
:exampleMetadata: fixture=_generated
|
|
9430
|
+
|
|
9431
|
+
Example::
|
|
9432
|
+
|
|
9433
|
+
# The code below shows an example of how to instantiate this type.
|
|
9434
|
+
# The values are placeholders you should change.
|
|
9435
|
+
from aws_cdk import aws_s3 as s3
|
|
9436
|
+
from aws_cdk import aws_stepfunctions as stepfunctions
|
|
9437
|
+
|
|
9438
|
+
# bucket: s3.Bucket
|
|
9439
|
+
|
|
9440
|
+
result_writer = stepfunctions.ResultWriter(
|
|
9441
|
+
bucket=bucket,
|
|
9442
|
+
|
|
9443
|
+
# the properties below are optional
|
|
9444
|
+
prefix="prefix"
|
|
9445
|
+
)
|
|
9446
|
+
'''
|
|
9447
|
+
|
|
9448
|
+
def __init__(
|
|
9449
|
+
self,
|
|
9450
|
+
*,
|
|
9451
|
+
bucket: _IBucket_42e086fd,
|
|
9452
|
+
prefix: typing.Optional[builtins.str] = None,
|
|
9453
|
+
) -> None:
|
|
9454
|
+
'''
|
|
9455
|
+
:param bucket: (deprecated) S3 Bucket in which to save Map Run results.
|
|
9456
|
+
:param prefix: (deprecated) S3 prefix in which to save Map Run results. Default: - No prefix
|
|
9457
|
+
|
|
9458
|
+
:stability: deprecated
|
|
9459
|
+
'''
|
|
9460
|
+
props = ResultWriterProps(bucket=bucket, prefix=prefix)
|
|
9461
|
+
|
|
9462
|
+
jsii.create(self.__class__, self, [props])
|
|
9463
|
+
|
|
9464
|
+
@jsii.member(jsii_name="providePolicyStatements")
|
|
9465
|
+
def provide_policy_statements(self) -> typing.List[_PolicyStatement_0fe33853]:
|
|
9466
|
+
'''(deprecated) Compile policy statements to provide relevent permissions to the state machine.
|
|
9467
|
+
|
|
9468
|
+
:stability: deprecated
|
|
9469
|
+
'''
|
|
9470
|
+
return typing.cast(typing.List[_PolicyStatement_0fe33853], jsii.invoke(self, "providePolicyStatements", []))
|
|
9471
|
+
|
|
9472
|
+
@jsii.member(jsii_name="render")
|
|
9473
|
+
def render(
|
|
9474
|
+
self,
|
|
9475
|
+
query_language: typing.Optional[QueryLanguage] = None,
|
|
9476
|
+
) -> typing.Any:
|
|
9477
|
+
'''(deprecated) Render ResultWriter in ASL JSON format.
|
|
9478
|
+
|
|
9479
|
+
:param query_language: -
|
|
9480
|
+
|
|
9481
|
+
:stability: deprecated
|
|
9482
|
+
'''
|
|
9483
|
+
if __debug__:
|
|
9484
|
+
type_hints = typing.get_type_hints(_typecheckingstub__690debfadbf5210fcb1a54639e938d5096d2b5eefb9fa6790552d733cf404d6d)
|
|
9485
|
+
check_type(argname="argument query_language", value=query_language, expected_type=type_hints["query_language"])
|
|
9486
|
+
return typing.cast(typing.Any, jsii.invoke(self, "render", [query_language]))
|
|
9487
|
+
|
|
9488
|
+
@builtins.property
|
|
9489
|
+
@jsii.member(jsii_name="bucket")
|
|
9490
|
+
def bucket(self) -> _IBucket_42e086fd:
|
|
9491
|
+
'''(deprecated) S3 Bucket in which to save Map Run results.
|
|
9492
|
+
|
|
9493
|
+
:stability: deprecated
|
|
9494
|
+
'''
|
|
9495
|
+
return typing.cast(_IBucket_42e086fd, jsii.get(self, "bucket"))
|
|
9496
|
+
|
|
9497
|
+
@builtins.property
|
|
9498
|
+
@jsii.member(jsii_name="prefix")
|
|
9499
|
+
def prefix(self) -> typing.Optional[builtins.str]:
|
|
9500
|
+
'''(deprecated) S3 prefix in which to save Map Run results.
|
|
9501
|
+
|
|
9502
|
+
:default: - No prefix
|
|
9503
|
+
|
|
9504
|
+
:stability: deprecated
|
|
9505
|
+
'''
|
|
9506
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "prefix"))
|
|
9507
|
+
|
|
9508
|
+
|
|
9509
|
+
@jsii.data_type(
|
|
9510
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.ResultWriterProps",
|
|
9511
|
+
jsii_struct_bases=[],
|
|
9512
|
+
name_mapping={"bucket": "bucket", "prefix": "prefix"},
|
|
9513
|
+
)
|
|
9514
|
+
class ResultWriterProps:
|
|
9515
|
+
def __init__(
|
|
9516
|
+
self,
|
|
9517
|
+
*,
|
|
9518
|
+
bucket: _IBucket_42e086fd,
|
|
9519
|
+
prefix: typing.Optional[builtins.str] = None,
|
|
9520
|
+
) -> None:
|
|
9521
|
+
'''(deprecated) Interface for Result Writer configuration props.
|
|
9522
|
+
|
|
9523
|
+
:param bucket: (deprecated) S3 Bucket in which to save Map Run results.
|
|
9524
|
+
:param prefix: (deprecated) S3 prefix in which to save Map Run results. Default: - No prefix
|
|
9525
|
+
|
|
9526
|
+
:deprecated: use {@link ResultWriterV2Props } instead
|
|
9527
|
+
|
|
9528
|
+
:stability: deprecated
|
|
9529
|
+
:exampleMetadata: fixture=_generated
|
|
9530
|
+
|
|
9531
|
+
Example::
|
|
9532
|
+
|
|
9533
|
+
# The code below shows an example of how to instantiate this type.
|
|
9534
|
+
# The values are placeholders you should change.
|
|
9535
|
+
from aws_cdk import aws_s3 as s3
|
|
9536
|
+
from aws_cdk import aws_stepfunctions as stepfunctions
|
|
9537
|
+
|
|
9538
|
+
# bucket: s3.Bucket
|
|
9539
|
+
|
|
9540
|
+
result_writer_props = stepfunctions.ResultWriterProps(
|
|
9541
|
+
bucket=bucket,
|
|
9542
|
+
|
|
9543
|
+
# the properties below are optional
|
|
9544
|
+
prefix="prefix"
|
|
9545
|
+
)
|
|
9546
|
+
'''
|
|
9547
|
+
if __debug__:
|
|
9548
|
+
type_hints = typing.get_type_hints(_typecheckingstub__60e7633dd729e9dd58a8e472e766fe10b0748d68a61f3d07bfec9cc5b8b4721f)
|
|
9549
|
+
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
9550
|
+
check_type(argname="argument prefix", value=prefix, expected_type=type_hints["prefix"])
|
|
9551
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9552
|
+
"bucket": bucket,
|
|
9553
|
+
}
|
|
9554
|
+
if prefix is not None:
|
|
9555
|
+
self._values["prefix"] = prefix
|
|
9556
|
+
|
|
9557
|
+
@builtins.property
|
|
9558
|
+
def bucket(self) -> _IBucket_42e086fd:
|
|
9559
|
+
'''(deprecated) S3 Bucket in which to save Map Run results.
|
|
9560
|
+
|
|
9561
|
+
:stability: deprecated
|
|
9562
|
+
'''
|
|
9563
|
+
result = self._values.get("bucket")
|
|
9564
|
+
assert result is not None, "Required property 'bucket' is missing"
|
|
9565
|
+
return typing.cast(_IBucket_42e086fd, result)
|
|
9566
|
+
|
|
9567
|
+
@builtins.property
|
|
9568
|
+
def prefix(self) -> typing.Optional[builtins.str]:
|
|
9569
|
+
'''(deprecated) S3 prefix in which to save Map Run results.
|
|
9570
|
+
|
|
9571
|
+
:default: - No prefix
|
|
9572
|
+
|
|
9573
|
+
:stability: deprecated
|
|
9574
|
+
'''
|
|
9575
|
+
result = self._values.get("prefix")
|
|
9576
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
9577
|
+
|
|
9578
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9579
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9580
|
+
|
|
9581
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9582
|
+
return not (rhs == self)
|
|
9583
|
+
|
|
9584
|
+
def __repr__(self) -> str:
|
|
9585
|
+
return "ResultWriterProps(%s)" % ", ".join(
|
|
9586
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9587
|
+
)
|
|
9588
|
+
|
|
9589
|
+
|
|
9590
|
+
class ResultWriterV2(
|
|
9591
|
+
metaclass=jsii.JSIIMeta,
|
|
9592
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.ResultWriterV2",
|
|
9593
|
+
):
|
|
9594
|
+
'''Configuration for writing Distributed Map state results to S3 The ResultWriter field cannot be empty.
|
|
9595
|
+
|
|
9596
|
+
You must specify one of these sets of sub-fields.
|
|
9597
|
+
writerConfig - to preview the formatted output, without saving the results to Amazon S3.
|
|
9598
|
+
bucket and prefix - to save the results to Amazon S3 without additional formatting.
|
|
9599
|
+
All three fields: writerConfig, bucket and prefix - to format the output and save it to Amazon S3.
|
|
9379
9600
|
|
|
9380
9601
|
:exampleMetadata: infused
|
|
9381
9602
|
|
|
@@ -9387,10 +9608,16 @@ class ResultWriter(
|
|
|
9387
9608
|
# create a bucket
|
|
9388
9609
|
bucket = s3.Bucket(self, "Bucket")
|
|
9389
9610
|
|
|
9611
|
+
# create a WriterConfig
|
|
9612
|
+
|
|
9390
9613
|
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
9391
|
-
|
|
9614
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
9392
9615
|
bucket=bucket,
|
|
9393
|
-
prefix="my-prefix"
|
|
9616
|
+
prefix="my-prefix",
|
|
9617
|
+
writer_config={
|
|
9618
|
+
"output_type": sfn.OutputType.JSONL,
|
|
9619
|
+
"transformation": sfn.Transformation.NONE
|
|
9620
|
+
}
|
|
9394
9621
|
)
|
|
9395
9622
|
)
|
|
9396
9623
|
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
@@ -9399,14 +9626,18 @@ class ResultWriter(
|
|
|
9399
9626
|
def __init__(
|
|
9400
9627
|
self,
|
|
9401
9628
|
*,
|
|
9402
|
-
bucket: _IBucket_42e086fd,
|
|
9629
|
+
bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
9403
9630
|
prefix: typing.Optional[builtins.str] = None,
|
|
9631
|
+
writer_config: typing.Optional["WriterConfig"] = None,
|
|
9404
9632
|
) -> None:
|
|
9405
9633
|
'''
|
|
9406
|
-
:param bucket: S3 Bucket in which to save Map Run results.
|
|
9634
|
+
:param bucket: S3 Bucket in which to save Map Run results. Default: - specify a bucket
|
|
9407
9635
|
:param prefix: S3 prefix in which to save Map Run results. Default: - No prefix
|
|
9636
|
+
:param writer_config: Configuration to format the output of the Child Workflow executions. Default: - Specify both Transformation and OutputType
|
|
9408
9637
|
'''
|
|
9409
|
-
props =
|
|
9638
|
+
props = ResultWriterV2Props(
|
|
9639
|
+
bucket=bucket, prefix=prefix, writer_config=writer_config
|
|
9640
|
+
)
|
|
9410
9641
|
|
|
9411
9642
|
jsii.create(self.__class__, self, [props])
|
|
9412
9643
|
|
|
@@ -9425,15 +9656,15 @@ class ResultWriter(
|
|
|
9425
9656
|
:param query_language: -
|
|
9426
9657
|
'''
|
|
9427
9658
|
if __debug__:
|
|
9428
|
-
type_hints = typing.get_type_hints(
|
|
9659
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4d76b7d45bf1ab379f1533a844554757a1b805fb94f1a5b1c5d2573bb12e550f)
|
|
9429
9660
|
check_type(argname="argument query_language", value=query_language, expected_type=type_hints["query_language"])
|
|
9430
9661
|
return typing.cast(typing.Any, jsii.invoke(self, "render", [query_language]))
|
|
9431
9662
|
|
|
9432
9663
|
@builtins.property
|
|
9433
9664
|
@jsii.member(jsii_name="bucket")
|
|
9434
|
-
def bucket(self) -> _IBucket_42e086fd:
|
|
9665
|
+
def bucket(self) -> typing.Optional[_IBucket_42e086fd]:
|
|
9435
9666
|
'''S3 Bucket in which to save Map Run results.'''
|
|
9436
|
-
return typing.cast(_IBucket_42e086fd, jsii.get(self, "bucket"))
|
|
9667
|
+
return typing.cast(typing.Optional[_IBucket_42e086fd], jsii.get(self, "bucket"))
|
|
9437
9668
|
|
|
9438
9669
|
@builtins.property
|
|
9439
9670
|
@jsii.member(jsii_name="prefix")
|
|
@@ -9444,23 +9675,35 @@ class ResultWriter(
|
|
|
9444
9675
|
'''
|
|
9445
9676
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "prefix"))
|
|
9446
9677
|
|
|
9678
|
+
@builtins.property
|
|
9679
|
+
@jsii.member(jsii_name="writerConfig")
|
|
9680
|
+
def writer_config(self) -> typing.Optional["WriterConfig"]:
|
|
9681
|
+
'''Configuration to format the output of the Child Workflow executions.'''
|
|
9682
|
+
return typing.cast(typing.Optional["WriterConfig"], jsii.get(self, "writerConfig"))
|
|
9683
|
+
|
|
9447
9684
|
|
|
9448
9685
|
@jsii.data_type(
|
|
9449
|
-
jsii_type="aws-cdk-lib.aws_stepfunctions.
|
|
9686
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.ResultWriterV2Props",
|
|
9450
9687
|
jsii_struct_bases=[],
|
|
9451
|
-
name_mapping={
|
|
9688
|
+
name_mapping={
|
|
9689
|
+
"bucket": "bucket",
|
|
9690
|
+
"prefix": "prefix",
|
|
9691
|
+
"writer_config": "writerConfig",
|
|
9692
|
+
},
|
|
9452
9693
|
)
|
|
9453
|
-
class
|
|
9694
|
+
class ResultWriterV2Props:
|
|
9454
9695
|
def __init__(
|
|
9455
9696
|
self,
|
|
9456
9697
|
*,
|
|
9457
|
-
bucket: _IBucket_42e086fd,
|
|
9698
|
+
bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
9458
9699
|
prefix: typing.Optional[builtins.str] = None,
|
|
9700
|
+
writer_config: typing.Optional["WriterConfig"] = None,
|
|
9459
9701
|
) -> None:
|
|
9460
9702
|
'''Interface for Result Writer configuration props.
|
|
9461
9703
|
|
|
9462
|
-
:param bucket: S3 Bucket in which to save Map Run results.
|
|
9704
|
+
:param bucket: S3 Bucket in which to save Map Run results. Default: - specify a bucket
|
|
9463
9705
|
:param prefix: S3 prefix in which to save Map Run results. Default: - No prefix
|
|
9706
|
+
:param writer_config: Configuration to format the output of the Child Workflow executions. Default: - Specify both Transformation and OutputType
|
|
9464
9707
|
|
|
9465
9708
|
:exampleMetadata: infused
|
|
9466
9709
|
|
|
@@ -9472,30 +9715,41 @@ class ResultWriterProps:
|
|
|
9472
9715
|
# create a bucket
|
|
9473
9716
|
bucket = s3.Bucket(self, "Bucket")
|
|
9474
9717
|
|
|
9718
|
+
# create a WriterConfig
|
|
9719
|
+
|
|
9475
9720
|
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
9476
|
-
|
|
9721
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
9477
9722
|
bucket=bucket,
|
|
9478
|
-
prefix="my-prefix"
|
|
9723
|
+
prefix="my-prefix",
|
|
9724
|
+
writer_config={
|
|
9725
|
+
"output_type": sfn.OutputType.JSONL,
|
|
9726
|
+
"transformation": sfn.Transformation.NONE
|
|
9727
|
+
}
|
|
9479
9728
|
)
|
|
9480
9729
|
)
|
|
9481
9730
|
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
9482
9731
|
'''
|
|
9483
9732
|
if __debug__:
|
|
9484
|
-
type_hints = typing.get_type_hints(
|
|
9733
|
+
type_hints = typing.get_type_hints(_typecheckingstub__18a2140bb5a78d8150eb6ee1111271032f9faccf277b97a882d6bded4d0905a1)
|
|
9485
9734
|
check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
|
|
9486
9735
|
check_type(argname="argument prefix", value=prefix, expected_type=type_hints["prefix"])
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9736
|
+
check_type(argname="argument writer_config", value=writer_config, expected_type=type_hints["writer_config"])
|
|
9737
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9738
|
+
if bucket is not None:
|
|
9739
|
+
self._values["bucket"] = bucket
|
|
9490
9740
|
if prefix is not None:
|
|
9491
9741
|
self._values["prefix"] = prefix
|
|
9742
|
+
if writer_config is not None:
|
|
9743
|
+
self._values["writer_config"] = writer_config
|
|
9492
9744
|
|
|
9493
9745
|
@builtins.property
|
|
9494
|
-
def bucket(self) -> _IBucket_42e086fd:
|
|
9495
|
-
'''S3 Bucket in which to save Map Run results.
|
|
9746
|
+
def bucket(self) -> typing.Optional[_IBucket_42e086fd]:
|
|
9747
|
+
'''S3 Bucket in which to save Map Run results.
|
|
9748
|
+
|
|
9749
|
+
:default: - specify a bucket
|
|
9750
|
+
'''
|
|
9496
9751
|
result = self._values.get("bucket")
|
|
9497
|
-
|
|
9498
|
-
return typing.cast(_IBucket_42e086fd, result)
|
|
9752
|
+
return typing.cast(typing.Optional[_IBucket_42e086fd], result)
|
|
9499
9753
|
|
|
9500
9754
|
@builtins.property
|
|
9501
9755
|
def prefix(self) -> typing.Optional[builtins.str]:
|
|
@@ -9506,6 +9760,15 @@ class ResultWriterProps:
|
|
|
9506
9760
|
result = self._values.get("prefix")
|
|
9507
9761
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
9508
9762
|
|
|
9763
|
+
@builtins.property
|
|
9764
|
+
def writer_config(self) -> typing.Optional["WriterConfig"]:
|
|
9765
|
+
'''Configuration to format the output of the Child Workflow executions.
|
|
9766
|
+
|
|
9767
|
+
:default: - Specify both Transformation and OutputType
|
|
9768
|
+
'''
|
|
9769
|
+
result = self._values.get("writer_config")
|
|
9770
|
+
return typing.cast(typing.Optional["WriterConfig"], result)
|
|
9771
|
+
|
|
9509
9772
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9510
9773
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9511
9774
|
|
|
@@ -9513,7 +9776,7 @@ class ResultWriterProps:
|
|
|
9513
9776
|
return not (rhs == self)
|
|
9514
9777
|
|
|
9515
9778
|
def __repr__(self) -> str:
|
|
9516
|
-
return "
|
|
9779
|
+
return "ResultWriterV2Props(%s)" % ", ".join(
|
|
9517
9780
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
9518
9781
|
)
|
|
9519
9782
|
|
|
@@ -10068,6 +10331,125 @@ class S3JsonItemReader(
|
|
|
10068
10331
|
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maxItems"))
|
|
10069
10332
|
|
|
10070
10333
|
|
|
10334
|
+
@jsii.implements(IItemReader)
|
|
10335
|
+
class S3JsonLItemReader(
|
|
10336
|
+
metaclass=jsii.JSIIMeta,
|
|
10337
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.S3JsonLItemReader",
|
|
10338
|
+
):
|
|
10339
|
+
'''Item Reader configuration for iterating over the rows of the JSONL file stored in S3.
|
|
10340
|
+
|
|
10341
|
+
:exampleMetadata: fixture=_generated
|
|
10342
|
+
|
|
10343
|
+
Example::
|
|
10344
|
+
|
|
10345
|
+
# The code below shows an example of how to instantiate this type.
|
|
10346
|
+
# The values are placeholders you should change.
|
|
10347
|
+
from aws_cdk import aws_s3 as s3
|
|
10348
|
+
from aws_cdk import aws_stepfunctions as stepfunctions
|
|
10349
|
+
|
|
10350
|
+
# bucket: s3.Bucket
|
|
10351
|
+
|
|
10352
|
+
s3_json_lItem_reader = stepfunctions.S3JsonLItemReader(
|
|
10353
|
+
key="key",
|
|
10354
|
+
|
|
10355
|
+
# the properties below are optional
|
|
10356
|
+
bucket=bucket,
|
|
10357
|
+
bucket_name_path="bucketNamePath",
|
|
10358
|
+
max_items=123
|
|
10359
|
+
)
|
|
10360
|
+
'''
|
|
10361
|
+
|
|
10362
|
+
def __init__(
|
|
10363
|
+
self,
|
|
10364
|
+
*,
|
|
10365
|
+
key: builtins.str,
|
|
10366
|
+
bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
10367
|
+
bucket_name_path: typing.Optional[builtins.str] = None,
|
|
10368
|
+
max_items: typing.Optional[jsii.Number] = None,
|
|
10369
|
+
) -> None:
|
|
10370
|
+
'''
|
|
10371
|
+
:param key: Key of file stored in S3 bucket containing an array to iterate over.
|
|
10372
|
+
:param bucket: S3 Bucket containing objects to iterate over or a file with a list to iterate over. Default: - S3 bucket will be determined from
|
|
10373
|
+
:param bucket_name_path: S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath. Default: - S3 bucket will be determined from
|
|
10374
|
+
:param max_items: Limits the number of items passed to the Distributed Map state. Default: - Distributed Map state will iterate over all items provided by the ItemReader
|
|
10375
|
+
'''
|
|
10376
|
+
props = S3FileItemReaderProps(
|
|
10377
|
+
key=key,
|
|
10378
|
+
bucket=bucket,
|
|
10379
|
+
bucket_name_path=bucket_name_path,
|
|
10380
|
+
max_items=max_items,
|
|
10381
|
+
)
|
|
10382
|
+
|
|
10383
|
+
jsii.create(self.__class__, self, [props])
|
|
10384
|
+
|
|
10385
|
+
@jsii.member(jsii_name="providePolicyStatements")
|
|
10386
|
+
def provide_policy_statements(self) -> typing.List[_PolicyStatement_0fe33853]:
|
|
10387
|
+
'''Compile policy statements to provide relevent permissions to the state machine.'''
|
|
10388
|
+
return typing.cast(typing.List[_PolicyStatement_0fe33853], jsii.invoke(self, "providePolicyStatements", []))
|
|
10389
|
+
|
|
10390
|
+
@jsii.member(jsii_name="render")
|
|
10391
|
+
def render(
|
|
10392
|
+
self,
|
|
10393
|
+
query_language: typing.Optional[QueryLanguage] = None,
|
|
10394
|
+
) -> typing.Any:
|
|
10395
|
+
'''Renders the ItemReader configuration as JSON object.
|
|
10396
|
+
|
|
10397
|
+
:param query_language: -
|
|
10398
|
+
|
|
10399
|
+
:return: - JSON object
|
|
10400
|
+
'''
|
|
10401
|
+
if __debug__:
|
|
10402
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8e8cebbd9ef196d59ec6413bebd01b2d7c60f20ed3dd42b2c68bb29590c06899)
|
|
10403
|
+
check_type(argname="argument query_language", value=query_language, expected_type=type_hints["query_language"])
|
|
10404
|
+
return typing.cast(typing.Any, jsii.invoke(self, "render", [query_language]))
|
|
10405
|
+
|
|
10406
|
+
@jsii.member(jsii_name="validateItemReader")
|
|
10407
|
+
def validate_item_reader(self) -> typing.List[builtins.str]:
|
|
10408
|
+
'''Validate that ItemReader contains exactly either.
|
|
10409
|
+
|
|
10410
|
+
:see: bucketNamePath
|
|
10411
|
+
'''
|
|
10412
|
+
return typing.cast(typing.List[builtins.str], jsii.invoke(self, "validateItemReader", []))
|
|
10413
|
+
|
|
10414
|
+
@builtins.property
|
|
10415
|
+
@jsii.member(jsii_name="bucket")
|
|
10416
|
+
def bucket(self) -> _IBucket_42e086fd:
|
|
10417
|
+
'''S3 Bucket containing a file with a list to iterate over.'''
|
|
10418
|
+
return typing.cast(_IBucket_42e086fd, jsii.get(self, "bucket"))
|
|
10419
|
+
|
|
10420
|
+
@builtins.property
|
|
10421
|
+
@jsii.member(jsii_name="inputType")
|
|
10422
|
+
def _input_type(self) -> builtins.str:
|
|
10423
|
+
return typing.cast(builtins.str, jsii.get(self, "inputType"))
|
|
10424
|
+
|
|
10425
|
+
@builtins.property
|
|
10426
|
+
@jsii.member(jsii_name="key")
|
|
10427
|
+
def key(self) -> builtins.str:
|
|
10428
|
+
'''S3 key of a file with a list to iterate over.'''
|
|
10429
|
+
return typing.cast(builtins.str, jsii.get(self, "key"))
|
|
10430
|
+
|
|
10431
|
+
@builtins.property
|
|
10432
|
+
@jsii.member(jsii_name="resource")
|
|
10433
|
+
def resource(self) -> builtins.str:
|
|
10434
|
+
'''ARN for the ``getObject`` method of the S3 API This API method is used to iterate all objects in the S3 bucket/prefix.'''
|
|
10435
|
+
return typing.cast(builtins.str, jsii.get(self, "resource"))
|
|
10436
|
+
|
|
10437
|
+
@builtins.property
|
|
10438
|
+
@jsii.member(jsii_name="bucketNamePath")
|
|
10439
|
+
def bucket_name_path(self) -> typing.Optional[builtins.str]:
|
|
10440
|
+
'''S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.'''
|
|
10441
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "bucketNamePath"))
|
|
10442
|
+
|
|
10443
|
+
@builtins.property
|
|
10444
|
+
@jsii.member(jsii_name="maxItems")
|
|
10445
|
+
def max_items(self) -> typing.Optional[jsii.Number]:
|
|
10446
|
+
'''Limits the number of items passed to the Distributed Map state.
|
|
10447
|
+
|
|
10448
|
+
:default: - No maxItems
|
|
10449
|
+
'''
|
|
10450
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "maxItems"))
|
|
10451
|
+
|
|
10452
|
+
|
|
10071
10453
|
@jsii.implements(IItemReader)
|
|
10072
10454
|
class S3ManifestItemReader(
|
|
10073
10455
|
metaclass=jsii.JSIIMeta,
|
|
@@ -15695,6 +16077,53 @@ class _TimeoutProxy(Timeout):
|
|
|
15695
16077
|
typing.cast(typing.Any, Timeout).__jsii_proxy_class__ = lambda : _TimeoutProxy
|
|
15696
16078
|
|
|
15697
16079
|
|
|
16080
|
+
@jsii.enum(jsii_type="aws-cdk-lib.aws_stepfunctions.Transformation")
|
|
16081
|
+
class Transformation(enum.Enum):
|
|
16082
|
+
'''The transformation to be applied to the Output of the Child Workflow executions.
|
|
16083
|
+
|
|
16084
|
+
:exampleMetadata: infused
|
|
16085
|
+
|
|
16086
|
+
Example::
|
|
16087
|
+
|
|
16088
|
+
import aws_cdk.aws_s3 as s3
|
|
16089
|
+
|
|
16090
|
+
|
|
16091
|
+
# create a bucket
|
|
16092
|
+
bucket = s3.Bucket(self, "Bucket")
|
|
16093
|
+
|
|
16094
|
+
# create a WriterConfig
|
|
16095
|
+
|
|
16096
|
+
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
16097
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
16098
|
+
bucket=bucket,
|
|
16099
|
+
prefix="my-prefix",
|
|
16100
|
+
writer_config={
|
|
16101
|
+
"output_type": sfn.OutputType.JSONL,
|
|
16102
|
+
"transformation": sfn.Transformation.NONE
|
|
16103
|
+
}
|
|
16104
|
+
)
|
|
16105
|
+
)
|
|
16106
|
+
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
16107
|
+
'''
|
|
16108
|
+
|
|
16109
|
+
NONE = "NONE"
|
|
16110
|
+
'''Returns the output of the child workflow executions unchanged, in addition to the workflow metadata.
|
|
16111
|
+
|
|
16112
|
+
Default when exporting the child workflow execution results to Amazon S3 and WriterConfig is not specified.
|
|
16113
|
+
'''
|
|
16114
|
+
COMPACT = "COMPACT"
|
|
16115
|
+
'''Returns the output of the child workflow executions.
|
|
16116
|
+
|
|
16117
|
+
Default when ResultWriter is not specified.
|
|
16118
|
+
'''
|
|
16119
|
+
FLATTEN = "FLATTEN"
|
|
16120
|
+
'''Returns the output of the child workflow executions.
|
|
16121
|
+
|
|
16122
|
+
If a child workflow execution returns an array,this option flattens the array,
|
|
16123
|
+
prior to returning the result to a state output or writing the result to an Amazon S3 object.
|
|
16124
|
+
'''
|
|
16125
|
+
|
|
16126
|
+
|
|
15698
16127
|
@jsii.implements(INextable)
|
|
15699
16128
|
class Wait(
|
|
15700
16129
|
State,
|
|
@@ -16457,6 +16886,131 @@ class WaitTime(
|
|
|
16457
16886
|
return typing.cast("WaitTime", jsii.sinvoke(cls, "timestampPath", [path]))
|
|
16458
16887
|
|
|
16459
16888
|
|
|
16889
|
+
class WriterConfig(
|
|
16890
|
+
metaclass=jsii.JSIIMeta,
|
|
16891
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.WriterConfig",
|
|
16892
|
+
):
|
|
16893
|
+
'''Configuration to format the output.
|
|
16894
|
+
|
|
16895
|
+
:exampleMetadata: infused
|
|
16896
|
+
|
|
16897
|
+
Example::
|
|
16898
|
+
|
|
16899
|
+
import aws_cdk.aws_s3 as s3
|
|
16900
|
+
|
|
16901
|
+
|
|
16902
|
+
# create a bucket
|
|
16903
|
+
bucket = s3.Bucket(self, "Bucket")
|
|
16904
|
+
|
|
16905
|
+
# create a WriterConfig
|
|
16906
|
+
|
|
16907
|
+
distributed_map = sfn.DistributedMap(self, "Distributed Map State",
|
|
16908
|
+
result_writer_v2=sfn.ResultWriterV2(
|
|
16909
|
+
bucket=bucket,
|
|
16910
|
+
prefix="my-prefix",
|
|
16911
|
+
writer_config={
|
|
16912
|
+
"output_type": sfn.OutputType.JSONL,
|
|
16913
|
+
"transformation": sfn.Transformation.NONE
|
|
16914
|
+
}
|
|
16915
|
+
)
|
|
16916
|
+
)
|
|
16917
|
+
distributed_map.item_processor(sfn.Pass(self, "Pass State"))
|
|
16918
|
+
'''
|
|
16919
|
+
|
|
16920
|
+
def __init__(
|
|
16921
|
+
self,
|
|
16922
|
+
*,
|
|
16923
|
+
output_type: OutputType,
|
|
16924
|
+
transformation: Transformation,
|
|
16925
|
+
) -> None:
|
|
16926
|
+
'''
|
|
16927
|
+
:param output_type: The format of the Output of the child workflow executions.
|
|
16928
|
+
:param transformation: The transformation to be applied to the Output of the Child Workflow executions.
|
|
16929
|
+
'''
|
|
16930
|
+
props = WriterConfigProps(
|
|
16931
|
+
output_type=output_type, transformation=transformation
|
|
16932
|
+
)
|
|
16933
|
+
|
|
16934
|
+
jsii.create(self.__class__, self, [props])
|
|
16935
|
+
|
|
16936
|
+
@builtins.property
|
|
16937
|
+
@jsii.member(jsii_name="outputType")
|
|
16938
|
+
def output_type(self) -> OutputType:
|
|
16939
|
+
'''The format of the Output of the child workflow executions.'''
|
|
16940
|
+
return typing.cast(OutputType, jsii.get(self, "outputType"))
|
|
16941
|
+
|
|
16942
|
+
@builtins.property
|
|
16943
|
+
@jsii.member(jsii_name="transformation")
|
|
16944
|
+
def transformation(self) -> Transformation:
|
|
16945
|
+
'''The transformation to be applied to the Output of the Child Workflow executions.'''
|
|
16946
|
+
return typing.cast(Transformation, jsii.get(self, "transformation"))
|
|
16947
|
+
|
|
16948
|
+
|
|
16949
|
+
@jsii.data_type(
|
|
16950
|
+
jsii_type="aws-cdk-lib.aws_stepfunctions.WriterConfigProps",
|
|
16951
|
+
jsii_struct_bases=[],
|
|
16952
|
+
name_mapping={"output_type": "outputType", "transformation": "transformation"},
|
|
16953
|
+
)
|
|
16954
|
+
class WriterConfigProps:
|
|
16955
|
+
def __init__(
|
|
16956
|
+
self,
|
|
16957
|
+
*,
|
|
16958
|
+
output_type: OutputType,
|
|
16959
|
+
transformation: Transformation,
|
|
16960
|
+
) -> None:
|
|
16961
|
+
'''Interface for Writer Config props.
|
|
16962
|
+
|
|
16963
|
+
:param output_type: The format of the Output of the child workflow executions.
|
|
16964
|
+
:param transformation: The transformation to be applied to the Output of the Child Workflow executions.
|
|
16965
|
+
|
|
16966
|
+
:exampleMetadata: fixture=_generated
|
|
16967
|
+
|
|
16968
|
+
Example::
|
|
16969
|
+
|
|
16970
|
+
# The code below shows an example of how to instantiate this type.
|
|
16971
|
+
# The values are placeholders you should change.
|
|
16972
|
+
from aws_cdk import aws_stepfunctions as stepfunctions
|
|
16973
|
+
|
|
16974
|
+
writer_config_props = stepfunctions.WriterConfigProps(
|
|
16975
|
+
output_type=stepfunctions.OutputType.JSON,
|
|
16976
|
+
transformation=stepfunctions.Transformation.NONE
|
|
16977
|
+
)
|
|
16978
|
+
'''
|
|
16979
|
+
if __debug__:
|
|
16980
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e6d1ebacd064a6c64b36e76d7d5ef2fc5eecd3ffda0ca7b57d0c76b957a9c449)
|
|
16981
|
+
check_type(argname="argument output_type", value=output_type, expected_type=type_hints["output_type"])
|
|
16982
|
+
check_type(argname="argument transformation", value=transformation, expected_type=type_hints["transformation"])
|
|
16983
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
16984
|
+
"output_type": output_type,
|
|
16985
|
+
"transformation": transformation,
|
|
16986
|
+
}
|
|
16987
|
+
|
|
16988
|
+
@builtins.property
|
|
16989
|
+
def output_type(self) -> OutputType:
|
|
16990
|
+
'''The format of the Output of the child workflow executions.'''
|
|
16991
|
+
result = self._values.get("output_type")
|
|
16992
|
+
assert result is not None, "Required property 'output_type' is missing"
|
|
16993
|
+
return typing.cast(OutputType, result)
|
|
16994
|
+
|
|
16995
|
+
@builtins.property
|
|
16996
|
+
def transformation(self) -> Transformation:
|
|
16997
|
+
'''The transformation to be applied to the Output of the Child Workflow executions.'''
|
|
16998
|
+
result = self._values.get("transformation")
|
|
16999
|
+
assert result is not None, "Required property 'transformation' is missing"
|
|
17000
|
+
return typing.cast(Transformation, result)
|
|
17001
|
+
|
|
17002
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
17003
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
17004
|
+
|
|
17005
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
17006
|
+
return not (rhs == self)
|
|
17007
|
+
|
|
17008
|
+
def __repr__(self) -> str:
|
|
17009
|
+
return "WriterConfigProps(%s)" % ", ".join(
|
|
17010
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
17011
|
+
)
|
|
17012
|
+
|
|
17013
|
+
|
|
16460
17014
|
@jsii.implements(IActivity)
|
|
16461
17015
|
class Activity(
|
|
16462
17016
|
_Resource_45bc6135,
|
|
@@ -18279,6 +18833,7 @@ class CustomerManagedEncryptionConfiguration(
|
|
|
18279
18833
|
"label": "label",
|
|
18280
18834
|
"map_execution_type": "mapExecutionType",
|
|
18281
18835
|
"result_writer": "resultWriter",
|
|
18836
|
+
"result_writer_v2": "resultWriterV2",
|
|
18282
18837
|
"tolerated_failure_count": "toleratedFailureCount",
|
|
18283
18838
|
"tolerated_failure_count_path": "toleratedFailureCountPath",
|
|
18284
18839
|
"tolerated_failure_percentage": "toleratedFailurePercentage",
|
|
@@ -18310,6 +18865,7 @@ class DistributedMapJsonPathProps(
|
|
|
18310
18865
|
label: typing.Optional[builtins.str] = None,
|
|
18311
18866
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
18312
18867
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
18868
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
18313
18869
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
18314
18870
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
18315
18871
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -18333,7 +18889,8 @@ class DistributedMapJsonPathProps(
|
|
|
18333
18889
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
18334
18890
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
18335
18891
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
18336
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
18892
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
18893
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
18337
18894
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
18338
18895
|
:param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
|
|
18339
18896
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
@@ -18353,6 +18910,7 @@ class DistributedMapJsonPathProps(
|
|
|
18353
18910
|
# item_selector: Any
|
|
18354
18911
|
# result_selector: Any
|
|
18355
18912
|
# result_writer: stepfunctions.ResultWriter
|
|
18913
|
+
# result_writer_v2: stepfunctions.ResultWriterV2
|
|
18356
18914
|
|
|
18357
18915
|
distributed_map_json_path_props = stepfunctions.DistributedMapJsonPathProps(
|
|
18358
18916
|
assign={
|
|
@@ -18377,6 +18935,7 @@ class DistributedMapJsonPathProps(
|
|
|
18377
18935
|
"result_selector_key": result_selector
|
|
18378
18936
|
},
|
|
18379
18937
|
result_writer=result_writer,
|
|
18938
|
+
result_writer_v2=result_writer_v2,
|
|
18380
18939
|
state_name="stateName",
|
|
18381
18940
|
tolerated_failure_count=123,
|
|
18382
18941
|
tolerated_failure_count_path="toleratedFailureCountPath",
|
|
@@ -18403,6 +18962,7 @@ class DistributedMapJsonPathProps(
|
|
|
18403
18962
|
check_type(argname="argument label", value=label, expected_type=type_hints["label"])
|
|
18404
18963
|
check_type(argname="argument map_execution_type", value=map_execution_type, expected_type=type_hints["map_execution_type"])
|
|
18405
18964
|
check_type(argname="argument result_writer", value=result_writer, expected_type=type_hints["result_writer"])
|
|
18965
|
+
check_type(argname="argument result_writer_v2", value=result_writer_v2, expected_type=type_hints["result_writer_v2"])
|
|
18406
18966
|
check_type(argname="argument tolerated_failure_count", value=tolerated_failure_count, expected_type=type_hints["tolerated_failure_count"])
|
|
18407
18967
|
check_type(argname="argument tolerated_failure_count_path", value=tolerated_failure_count_path, expected_type=type_hints["tolerated_failure_count_path"])
|
|
18408
18968
|
check_type(argname="argument tolerated_failure_percentage", value=tolerated_failure_percentage, expected_type=type_hints["tolerated_failure_percentage"])
|
|
@@ -18442,6 +19002,8 @@ class DistributedMapJsonPathProps(
|
|
|
18442
19002
|
self._values["map_execution_type"] = map_execution_type
|
|
18443
19003
|
if result_writer is not None:
|
|
18444
19004
|
self._values["result_writer"] = result_writer
|
|
19005
|
+
if result_writer_v2 is not None:
|
|
19006
|
+
self._values["result_writer_v2"] = result_writer_v2
|
|
18445
19007
|
if tolerated_failure_count is not None:
|
|
18446
19008
|
self._values["tolerated_failure_count"] = tolerated_failure_count
|
|
18447
19009
|
if tolerated_failure_count_path is not None:
|
|
@@ -18640,13 +19202,26 @@ class DistributedMapJsonPathProps(
|
|
|
18640
19202
|
|
|
18641
19203
|
@builtins.property
|
|
18642
19204
|
def result_writer(self) -> typing.Optional[ResultWriter]:
|
|
18643
|
-
'''Configuration for S3 location in which to save Map Run results.
|
|
19205
|
+
'''(deprecated) Configuration for S3 location in which to save Map Run results.
|
|
18644
19206
|
|
|
18645
19207
|
:default: - No resultWriter
|
|
19208
|
+
|
|
19209
|
+
:deprecated: Use {@link resultWriterV2 }
|
|
19210
|
+
|
|
19211
|
+
:stability: deprecated
|
|
18646
19212
|
'''
|
|
18647
19213
|
result = self._values.get("result_writer")
|
|
18648
19214
|
return typing.cast(typing.Optional[ResultWriter], result)
|
|
18649
19215
|
|
|
19216
|
+
@builtins.property
|
|
19217
|
+
def result_writer_v2(self) -> typing.Optional[ResultWriterV2]:
|
|
19218
|
+
'''Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true);
|
|
19219
|
+
|
|
19220
|
+
:default: - No resultWriterV2
|
|
19221
|
+
'''
|
|
19222
|
+
result = self._values.get("result_writer_v2")
|
|
19223
|
+
return typing.cast(typing.Optional[ResultWriterV2], result)
|
|
19224
|
+
|
|
18650
19225
|
@builtins.property
|
|
18651
19226
|
def tolerated_failure_count(self) -> typing.Optional[jsii.Number]:
|
|
18652
19227
|
'''ToleratedFailureCount.
|
|
@@ -18720,6 +19295,7 @@ class DistributedMapJsonPathProps(
|
|
|
18720
19295
|
"label": "label",
|
|
18721
19296
|
"map_execution_type": "mapExecutionType",
|
|
18722
19297
|
"result_writer": "resultWriter",
|
|
19298
|
+
"result_writer_v2": "resultWriterV2",
|
|
18723
19299
|
"tolerated_failure_count": "toleratedFailureCount",
|
|
18724
19300
|
"tolerated_failure_percentage": "toleratedFailurePercentage",
|
|
18725
19301
|
},
|
|
@@ -18741,6 +19317,7 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18741
19317
|
label: typing.Optional[builtins.str] = None,
|
|
18742
19318
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
18743
19319
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
19320
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
18744
19321
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
18745
19322
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
18746
19323
|
) -> None:
|
|
@@ -18758,7 +19335,8 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18758
19335
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
18759
19336
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
18760
19337
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
18761
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
19338
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
19339
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
18762
19340
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
18763
19341
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
18764
19342
|
|
|
@@ -18777,6 +19355,7 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18777
19355
|
# outputs: Any
|
|
18778
19356
|
# provide_items: stepfunctions.ProvideItems
|
|
18779
19357
|
# result_writer: stepfunctions.ResultWriter
|
|
19358
|
+
# result_writer_v2: stepfunctions.ResultWriterV2
|
|
18780
19359
|
|
|
18781
19360
|
distributed_map_jsonata_props = stepfunctions.DistributedMapJsonataProps(
|
|
18782
19361
|
assign={
|
|
@@ -18795,6 +19374,7 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18795
19374
|
outputs=outputs,
|
|
18796
19375
|
query_language=stepfunctions.QueryLanguage.JSON_PATH,
|
|
18797
19376
|
result_writer=result_writer,
|
|
19377
|
+
result_writer_v2=result_writer_v2,
|
|
18798
19378
|
state_name="stateName",
|
|
18799
19379
|
tolerated_failure_count=123,
|
|
18800
19380
|
tolerated_failure_percentage=123
|
|
@@ -18815,6 +19395,7 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18815
19395
|
check_type(argname="argument label", value=label, expected_type=type_hints["label"])
|
|
18816
19396
|
check_type(argname="argument map_execution_type", value=map_execution_type, expected_type=type_hints["map_execution_type"])
|
|
18817
19397
|
check_type(argname="argument result_writer", value=result_writer, expected_type=type_hints["result_writer"])
|
|
19398
|
+
check_type(argname="argument result_writer_v2", value=result_writer_v2, expected_type=type_hints["result_writer_v2"])
|
|
18818
19399
|
check_type(argname="argument tolerated_failure_count", value=tolerated_failure_count, expected_type=type_hints["tolerated_failure_count"])
|
|
18819
19400
|
check_type(argname="argument tolerated_failure_percentage", value=tolerated_failure_percentage, expected_type=type_hints["tolerated_failure_percentage"])
|
|
18820
19401
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
@@ -18844,6 +19425,8 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18844
19425
|
self._values["map_execution_type"] = map_execution_type
|
|
18845
19426
|
if result_writer is not None:
|
|
18846
19427
|
self._values["result_writer"] = result_writer
|
|
19428
|
+
if result_writer_v2 is not None:
|
|
19429
|
+
self._values["result_writer_v2"] = result_writer_v2
|
|
18847
19430
|
if tolerated_failure_count is not None:
|
|
18848
19431
|
self._values["tolerated_failure_count"] = tolerated_failure_count
|
|
18849
19432
|
if tolerated_failure_percentage is not None:
|
|
@@ -18990,13 +19573,26 @@ class DistributedMapJsonataProps(StateBaseProps, MapBaseOptions, MapBaseJsonataO
|
|
|
18990
19573
|
|
|
18991
19574
|
@builtins.property
|
|
18992
19575
|
def result_writer(self) -> typing.Optional[ResultWriter]:
|
|
18993
|
-
'''Configuration for S3 location in which to save Map Run results.
|
|
19576
|
+
'''(deprecated) Configuration for S3 location in which to save Map Run results.
|
|
18994
19577
|
|
|
18995
19578
|
:default: - No resultWriter
|
|
19579
|
+
|
|
19580
|
+
:deprecated: Use {@link resultWriterV2 }
|
|
19581
|
+
|
|
19582
|
+
:stability: deprecated
|
|
18996
19583
|
'''
|
|
18997
19584
|
result = self._values.get("result_writer")
|
|
18998
19585
|
return typing.cast(typing.Optional[ResultWriter], result)
|
|
18999
19586
|
|
|
19587
|
+
@builtins.property
|
|
19588
|
+
def result_writer_v2(self) -> typing.Optional[ResultWriterV2]:
|
|
19589
|
+
'''Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true);
|
|
19590
|
+
|
|
19591
|
+
:default: - No resultWriterV2
|
|
19592
|
+
'''
|
|
19593
|
+
result = self._values.get("result_writer_v2")
|
|
19594
|
+
return typing.cast(typing.Optional[ResultWriterV2], result)
|
|
19595
|
+
|
|
19000
19596
|
@builtins.property
|
|
19001
19597
|
def tolerated_failure_count(self) -> typing.Optional[jsii.Number]:
|
|
19002
19598
|
'''ToleratedFailureCount.
|
|
@@ -23526,11 +24122,20 @@ class DistributedMap(
|
|
|
23526
24122
|
|
|
23527
24123
|
Example::
|
|
23528
24124
|
|
|
23529
|
-
|
|
23530
|
-
|
|
23531
|
-
|
|
24125
|
+
#
|
|
24126
|
+
# JSON state input:
|
|
24127
|
+
# {
|
|
24128
|
+
# "bucketName": "my-bucket",
|
|
24129
|
+
# "prefix": "item"
|
|
24130
|
+
# }
|
|
24131
|
+
#
|
|
24132
|
+
distributed_map = sfn.DistributedMap(self, "DistributedMap",
|
|
24133
|
+
item_reader=sfn.S3ObjectsItemReader(
|
|
24134
|
+
bucket_name_path=sfn.JsonPath.string_at("$.bucketName"),
|
|
24135
|
+
prefix=sfn.JsonPath.string_at("$.prefix")
|
|
24136
|
+
)
|
|
23532
24137
|
)
|
|
23533
|
-
distributed_map.item_processor(sfn.Pass(self, "Pass
|
|
24138
|
+
distributed_map.item_processor(sfn.Pass(self, "Pass"))
|
|
23534
24139
|
'''
|
|
23535
24140
|
|
|
23536
24141
|
def __init__(
|
|
@@ -23543,6 +24148,7 @@ class DistributedMap(
|
|
|
23543
24148
|
label: typing.Optional[builtins.str] = None,
|
|
23544
24149
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
23545
24150
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
24151
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
23546
24152
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
23547
24153
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
23548
24154
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -23569,7 +24175,8 @@ class DistributedMap(
|
|
|
23569
24175
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
23570
24176
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
23571
24177
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
23572
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24178
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24179
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
23573
24180
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
23574
24181
|
:param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
|
|
23575
24182
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
@@ -23599,6 +24206,7 @@ class DistributedMap(
|
|
|
23599
24206
|
label=label,
|
|
23600
24207
|
map_execution_type=map_execution_type,
|
|
23601
24208
|
result_writer=result_writer,
|
|
24209
|
+
result_writer_v2=result_writer_v2,
|
|
23602
24210
|
tolerated_failure_count=tolerated_failure_count,
|
|
23603
24211
|
tolerated_failure_count_path=tolerated_failure_count_path,
|
|
23604
24212
|
tolerated_failure_percentage=tolerated_failure_percentage,
|
|
@@ -23645,6 +24253,7 @@ class DistributedMap(
|
|
|
23645
24253
|
label: typing.Optional[builtins.str] = None,
|
|
23646
24254
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
23647
24255
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
24256
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
23648
24257
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
23649
24258
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
23650
24259
|
comment: typing.Optional[builtins.str] = None,
|
|
@@ -23673,7 +24282,8 @@ class DistributedMap(
|
|
|
23673
24282
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
23674
24283
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
23675
24284
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
23676
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24285
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24286
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
23677
24287
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
23678
24288
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
23679
24289
|
:param comment: A comment describing this state. Default: No comment
|
|
@@ -23697,6 +24307,7 @@ class DistributedMap(
|
|
|
23697
24307
|
label=label,
|
|
23698
24308
|
map_execution_type=map_execution_type,
|
|
23699
24309
|
result_writer=result_writer,
|
|
24310
|
+
result_writer_v2=result_writer_v2,
|
|
23700
24311
|
tolerated_failure_count=tolerated_failure_count,
|
|
23701
24312
|
tolerated_failure_percentage=tolerated_failure_percentage,
|
|
23702
24313
|
comment=comment,
|
|
@@ -23723,6 +24334,7 @@ class DistributedMap(
|
|
|
23723
24334
|
label: typing.Optional[builtins.str] = None,
|
|
23724
24335
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
23725
24336
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
24337
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
23726
24338
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
23727
24339
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
23728
24340
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -23757,7 +24369,8 @@ class DistributedMap(
|
|
|
23757
24369
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
23758
24370
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
23759
24371
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
23760
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24372
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24373
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
23761
24374
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
23762
24375
|
:param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
|
|
23763
24376
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
@@ -23787,6 +24400,7 @@ class DistributedMap(
|
|
|
23787
24400
|
label=label,
|
|
23788
24401
|
map_execution_type=map_execution_type,
|
|
23789
24402
|
result_writer=result_writer,
|
|
24403
|
+
result_writer_v2=result_writer_v2,
|
|
23790
24404
|
tolerated_failure_count=tolerated_failure_count,
|
|
23791
24405
|
tolerated_failure_count_path=tolerated_failure_count_path,
|
|
23792
24406
|
tolerated_failure_percentage=tolerated_failure_percentage,
|
|
@@ -23952,6 +24566,7 @@ class DistributedMap(
|
|
|
23952
24566
|
"label": "label",
|
|
23953
24567
|
"map_execution_type": "mapExecutionType",
|
|
23954
24568
|
"result_writer": "resultWriter",
|
|
24569
|
+
"result_writer_v2": "resultWriterV2",
|
|
23955
24570
|
"tolerated_failure_count": "toleratedFailureCount",
|
|
23956
24571
|
"tolerated_failure_count_path": "toleratedFailureCountPath",
|
|
23957
24572
|
"tolerated_failure_percentage": "toleratedFailurePercentage",
|
|
@@ -23986,6 +24601,7 @@ class DistributedMapProps(
|
|
|
23986
24601
|
label: typing.Optional[builtins.str] = None,
|
|
23987
24602
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
23988
24603
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
24604
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
23989
24605
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
23990
24606
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
23991
24607
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -24011,7 +24627,8 @@ class DistributedMapProps(
|
|
|
24011
24627
|
:param item_reader: ItemReader. Configuration for where to read items dataset in S3 to iterate Default: - No itemReader
|
|
24012
24628
|
:param label: Label. Unique name for the Distributed Map state added to each Map Run Default: - No label
|
|
24013
24629
|
:param map_execution_type: MapExecutionType. The execution type of the distributed map state This property overwrites ProcessorConfig.executionType Default: StateMachineType.STANDARD
|
|
24014
|
-
:param result_writer: Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24630
|
+
:param result_writer: (deprecated) Configuration for S3 location in which to save Map Run results. Default: - No resultWriter
|
|
24631
|
+
:param result_writer_v2: Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true); Default: - No resultWriterV2
|
|
24015
24632
|
:param tolerated_failure_count: ToleratedFailureCount. Number of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailureCount
|
|
24016
24633
|
:param tolerated_failure_count_path: ToleratedFailureCountPath. Number of failed items to tolerate in a Map Run, as JsonPath Default: - No toleratedFailureCountPath
|
|
24017
24634
|
:param tolerated_failure_percentage: ToleratedFailurePercentage. Percentage of failed items to tolerate in a Map Run, as static number Default: - No toleratedFailurePercentage
|
|
@@ -24057,6 +24674,7 @@ class DistributedMapProps(
|
|
|
24057
24674
|
check_type(argname="argument label", value=label, expected_type=type_hints["label"])
|
|
24058
24675
|
check_type(argname="argument map_execution_type", value=map_execution_type, expected_type=type_hints["map_execution_type"])
|
|
24059
24676
|
check_type(argname="argument result_writer", value=result_writer, expected_type=type_hints["result_writer"])
|
|
24677
|
+
check_type(argname="argument result_writer_v2", value=result_writer_v2, expected_type=type_hints["result_writer_v2"])
|
|
24060
24678
|
check_type(argname="argument tolerated_failure_count", value=tolerated_failure_count, expected_type=type_hints["tolerated_failure_count"])
|
|
24061
24679
|
check_type(argname="argument tolerated_failure_count_path", value=tolerated_failure_count_path, expected_type=type_hints["tolerated_failure_count_path"])
|
|
24062
24680
|
check_type(argname="argument tolerated_failure_percentage", value=tolerated_failure_percentage, expected_type=type_hints["tolerated_failure_percentage"])
|
|
@@ -24100,6 +24718,8 @@ class DistributedMapProps(
|
|
|
24100
24718
|
self._values["map_execution_type"] = map_execution_type
|
|
24101
24719
|
if result_writer is not None:
|
|
24102
24720
|
self._values["result_writer"] = result_writer
|
|
24721
|
+
if result_writer_v2 is not None:
|
|
24722
|
+
self._values["result_writer_v2"] = result_writer_v2
|
|
24103
24723
|
if tolerated_failure_count is not None:
|
|
24104
24724
|
self._values["tolerated_failure_count"] = tolerated_failure_count
|
|
24105
24725
|
if tolerated_failure_count_path is not None:
|
|
@@ -24324,13 +24944,26 @@ class DistributedMapProps(
|
|
|
24324
24944
|
|
|
24325
24945
|
@builtins.property
|
|
24326
24946
|
def result_writer(self) -> typing.Optional[ResultWriter]:
|
|
24327
|
-
'''Configuration for S3 location in which to save Map Run results.
|
|
24947
|
+
'''(deprecated) Configuration for S3 location in which to save Map Run results.
|
|
24328
24948
|
|
|
24329
24949
|
:default: - No resultWriter
|
|
24950
|
+
|
|
24951
|
+
:deprecated: Use {@link resultWriterV2 }
|
|
24952
|
+
|
|
24953
|
+
:stability: deprecated
|
|
24330
24954
|
'''
|
|
24331
24955
|
result = self._values.get("result_writer")
|
|
24332
24956
|
return typing.cast(typing.Optional[ResultWriter], result)
|
|
24333
24957
|
|
|
24958
|
+
@builtins.property
|
|
24959
|
+
def result_writer_v2(self) -> typing.Optional[ResultWriterV2]:
|
|
24960
|
+
'''Configuration for S3 location in which to save Map Run results Enable "@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2" feature in the context to use resultWriterV2 Example: stack.node.setContext("@aws-cdk/aws-stepfunctions:useDistributedMapResultWriterV2", true);
|
|
24961
|
+
|
|
24962
|
+
:default: - No resultWriterV2
|
|
24963
|
+
'''
|
|
24964
|
+
result = self._values.get("result_writer_v2")
|
|
24965
|
+
return typing.cast(typing.Optional[ResultWriterV2], result)
|
|
24966
|
+
|
|
24334
24967
|
@builtins.property
|
|
24335
24968
|
def tolerated_failure_count(self) -> typing.Optional[jsii.Number]:
|
|
24336
24969
|
'''ToleratedFailureCount.
|
|
@@ -24815,6 +25448,7 @@ __all__ = [
|
|
|
24815
25448
|
"MapJsonPathProps",
|
|
24816
25449
|
"MapJsonataProps",
|
|
24817
25450
|
"MapProps",
|
|
25451
|
+
"OutputType",
|
|
24818
25452
|
"Parallel",
|
|
24819
25453
|
"ParallelJsonPathProps",
|
|
24820
25454
|
"ParallelJsonataProps",
|
|
@@ -24831,11 +25465,14 @@ __all__ = [
|
|
|
24831
25465
|
"Result",
|
|
24832
25466
|
"ResultWriter",
|
|
24833
25467
|
"ResultWriterProps",
|
|
25468
|
+
"ResultWriterV2",
|
|
25469
|
+
"ResultWriterV2Props",
|
|
24834
25470
|
"RetryProps",
|
|
24835
25471
|
"S3CsvItemReader",
|
|
24836
25472
|
"S3CsvItemReaderProps",
|
|
24837
25473
|
"S3FileItemReaderProps",
|
|
24838
25474
|
"S3JsonItemReader",
|
|
25475
|
+
"S3JsonLItemReader",
|
|
24839
25476
|
"S3ManifestItemReader",
|
|
24840
25477
|
"S3ObjectsItemReader",
|
|
24841
25478
|
"S3ObjectsItemReaderProps",
|
|
@@ -24864,11 +25501,14 @@ __all__ = [
|
|
|
24864
25501
|
"TaskStateJsonPathBaseProps",
|
|
24865
25502
|
"TaskStateJsonataBaseProps",
|
|
24866
25503
|
"Timeout",
|
|
25504
|
+
"Transformation",
|
|
24867
25505
|
"Wait",
|
|
24868
25506
|
"WaitJsonPathProps",
|
|
24869
25507
|
"WaitJsonataProps",
|
|
24870
25508
|
"WaitProps",
|
|
24871
25509
|
"WaitTime",
|
|
25510
|
+
"WriterConfig",
|
|
25511
|
+
"WriterConfigProps",
|
|
24872
25512
|
]
|
|
24873
25513
|
|
|
24874
25514
|
publication.publish()
|
|
@@ -26097,6 +26737,21 @@ def _typecheckingstub__60e7633dd729e9dd58a8e472e766fe10b0748d68a61f3d07bfec9cc5b
|
|
|
26097
26737
|
"""Type checking stubs"""
|
|
26098
26738
|
pass
|
|
26099
26739
|
|
|
26740
|
+
def _typecheckingstub__4d76b7d45bf1ab379f1533a844554757a1b805fb94f1a5b1c5d2573bb12e550f(
|
|
26741
|
+
query_language: typing.Optional[QueryLanguage] = None,
|
|
26742
|
+
) -> None:
|
|
26743
|
+
"""Type checking stubs"""
|
|
26744
|
+
pass
|
|
26745
|
+
|
|
26746
|
+
def _typecheckingstub__18a2140bb5a78d8150eb6ee1111271032f9faccf277b97a882d6bded4d0905a1(
|
|
26747
|
+
*,
|
|
26748
|
+
bucket: typing.Optional[_IBucket_42e086fd] = None,
|
|
26749
|
+
prefix: typing.Optional[builtins.str] = None,
|
|
26750
|
+
writer_config: typing.Optional[WriterConfig] = None,
|
|
26751
|
+
) -> None:
|
|
26752
|
+
"""Type checking stubs"""
|
|
26753
|
+
pass
|
|
26754
|
+
|
|
26100
26755
|
def _typecheckingstub__984afa5a2055f0c35fc8c3cf6882093d3a32a8b56c725bd4e3c643f693f59d40(
|
|
26101
26756
|
*,
|
|
26102
26757
|
backoff_rate: typing.Optional[jsii.Number] = None,
|
|
@@ -26131,6 +26786,12 @@ def _typecheckingstub__f7ba747569314ea29170c03870323ea1ddbbec560569d037195395530
|
|
|
26131
26786
|
"""Type checking stubs"""
|
|
26132
26787
|
pass
|
|
26133
26788
|
|
|
26789
|
+
def _typecheckingstub__8e8cebbd9ef196d59ec6413bebd01b2d7c60f20ed3dd42b2c68bb29590c06899(
|
|
26790
|
+
query_language: typing.Optional[QueryLanguage] = None,
|
|
26791
|
+
) -> None:
|
|
26792
|
+
"""Type checking stubs"""
|
|
26793
|
+
pass
|
|
26794
|
+
|
|
26134
26795
|
def _typecheckingstub__19056f84ae53892b20d050acc2be09f4ae779dad92d64cefcd50b3ad874b480f(
|
|
26135
26796
|
query_language: typing.Optional[QueryLanguage] = None,
|
|
26136
26797
|
) -> None:
|
|
@@ -26954,6 +27615,14 @@ def _typecheckingstub__d88e6966e5553a37e050d3139be3d625237f07f7a3a9c23fa5bb2232f
|
|
|
26954
27615
|
"""Type checking stubs"""
|
|
26955
27616
|
pass
|
|
26956
27617
|
|
|
27618
|
+
def _typecheckingstub__e6d1ebacd064a6c64b36e76d7d5ef2fc5eecd3ffda0ca7b57d0c76b957a9c449(
|
|
27619
|
+
*,
|
|
27620
|
+
output_type: OutputType,
|
|
27621
|
+
transformation: Transformation,
|
|
27622
|
+
) -> None:
|
|
27623
|
+
"""Type checking stubs"""
|
|
27624
|
+
pass
|
|
27625
|
+
|
|
26957
27626
|
def _typecheckingstub__a9e3c9e855deb3c2b532345b0d2587dc14ad685d296794311bbf280ab9f6b10d(
|
|
26958
27627
|
scope: _constructs_77d1e7e8.Construct,
|
|
26959
27628
|
id: builtins.str,
|
|
@@ -27222,6 +27891,7 @@ def _typecheckingstub__ec64abf9bcf7fc88fbbd0e8dea491d0fe3b15022e0a3a15ff395d55b0
|
|
|
27222
27891
|
label: typing.Optional[builtins.str] = None,
|
|
27223
27892
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27224
27893
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
27894
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27225
27895
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27226
27896
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
27227
27897
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -27245,6 +27915,7 @@ def _typecheckingstub__81ff0c38557baaa35eb92b4d57e31ecde27db396059124470432c8292
|
|
|
27245
27915
|
label: typing.Optional[builtins.str] = None,
|
|
27246
27916
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27247
27917
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
27918
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27248
27919
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27249
27920
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
27250
27921
|
) -> None:
|
|
@@ -27739,6 +28410,7 @@ def _typecheckingstub__64f7d4222fc9728237ee261157ec268cfd8f396c371bc6402ec7a1a4e
|
|
|
27739
28410
|
label: typing.Optional[builtins.str] = None,
|
|
27740
28411
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27741
28412
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
28413
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27742
28414
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27743
28415
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
27744
28416
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -27776,6 +28448,7 @@ def _typecheckingstub__571881b9fd1e6c545891d3d8e303faaf2af3b7abf8dedfe7af5b088c9
|
|
|
27776
28448
|
label: typing.Optional[builtins.str] = None,
|
|
27777
28449
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27778
28450
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
28451
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27779
28452
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27780
28453
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
27781
28454
|
comment: typing.Optional[builtins.str] = None,
|
|
@@ -27799,6 +28472,7 @@ def _typecheckingstub__9a2f34bdddff2f64215983e3f128e7644b5b5bf72fc9af9b5b0c0e3b3
|
|
|
27799
28472
|
label: typing.Optional[builtins.str] = None,
|
|
27800
28473
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27801
28474
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
28475
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27802
28476
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27803
28477
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
27804
28478
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|
|
@@ -27872,6 +28546,7 @@ def _typecheckingstub__e484af477b46c0e70f635ed9610c7183f70c2184fd7a48f091a5477df
|
|
|
27872
28546
|
label: typing.Optional[builtins.str] = None,
|
|
27873
28547
|
map_execution_type: typing.Optional[StateMachineType] = None,
|
|
27874
28548
|
result_writer: typing.Optional[ResultWriter] = None,
|
|
28549
|
+
result_writer_v2: typing.Optional[ResultWriterV2] = None,
|
|
27875
28550
|
tolerated_failure_count: typing.Optional[jsii.Number] = None,
|
|
27876
28551
|
tolerated_failure_count_path: typing.Optional[builtins.str] = None,
|
|
27877
28552
|
tolerated_failure_percentage: typing.Optional[jsii.Number] = None,
|