aws-cdk-lib 2.95.1__py3-none-any.whl → 2.96.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 +38 -5
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.95.1.jsii.tgz → aws-cdk-lib@2.96.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +4 -4
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_batch/__init__.py +15057 -385
- aws_cdk/aws_budgets/__init__.py +9 -4
- aws_cdk/aws_cloudformation/__init__.py +38 -5
- aws_cdk/aws_cloudtrail/__init__.py +25 -3
- aws_cdk/aws_codepipeline/__init__.py +2 -2
- aws_cdk/aws_codepipeline_actions/__init__.py +3 -3
- aws_cdk/aws_config/__init__.py +54 -13
- aws_cdk/aws_datasync/__init__.py +104 -45
- aws_cdk/aws_dms/__init__.py +3 -3
- aws_cdk/aws_dynamodb/__init__.py +2 -2
- aws_cdk/aws_ec2/__init__.py +12 -7
- aws_cdk/aws_ecs/__init__.py +55 -19
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +3 -2
- aws_cdk/aws_events_targets/__init__.py +3 -3
- aws_cdk/aws_iam/__init__.py +8 -6
- aws_cdk/aws_internetmonitor/__init__.py +69 -30
- aws_cdk/aws_iotwireless/__init__.py +2 -4
- aws_cdk/aws_lambda/__init__.py +8 -8
- aws_cdk/aws_lambda_nodejs/__init__.py +1 -1
- aws_cdk/aws_managedblockchain/__init__.py +2 -3
- aws_cdk/aws_quicksight/__init__.py +185 -103
- aws_cdk/aws_rds/__init__.py +7 -7
- aws_cdk/aws_rolesanywhere/__init__.py +58 -74
- aws_cdk/aws_s3/__init__.py +1 -1
- aws_cdk/aws_securityhub/__init__.py +108 -42
- aws_cdk/aws_sns/__init__.py +5 -5
- aws_cdk/aws_stepfunctions/__init__.py +36 -25
- aws_cdk/aws_stepfunctions_tasks/__init__.py +13 -12
- aws_cdk/aws_transfer/__init__.py +9 -2
- aws_cdk/aws_wafv2/__init__.py +6 -6
- aws_cdk/pipelines/__init__.py +1 -1
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/RECORD +42 -42
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.95.1.dist-info → aws_cdk_lib-2.96.0.dist-info}/top_level.txt +0 -0
|
@@ -51,7 +51,7 @@ final_status = tasks.LambdaInvoke(self, "Get Final Job Status",
|
|
|
51
51
|
definition = submit_job.next(wait_x).next(get_status).next(sfn.Choice(self, "Job Complete?").when(sfn.Condition.string_equals("$.status", "FAILED"), job_failed).when(sfn.Condition.string_equals("$.status", "SUCCEEDED"), final_status).otherwise(wait_x))
|
|
52
52
|
|
|
53
53
|
sfn.StateMachine(self, "StateMachine",
|
|
54
|
-
|
|
54
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition),
|
|
55
55
|
timeout=Duration.minutes(5),
|
|
56
56
|
comment="a super cool state machine"
|
|
57
57
|
)
|
|
@@ -70,7 +70,7 @@ all states reachable from the start state:
|
|
|
70
70
|
start_state = sfn.Pass(self, "StartState")
|
|
71
71
|
|
|
72
72
|
sfn.StateMachine(self, "StateMachine",
|
|
73
|
-
|
|
73
|
+
definition_body=sfn.DefinitionBody.from_chainable(start_state)
|
|
74
74
|
)
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -551,7 +551,7 @@ custom = sfn.CustomState(self, "my custom task",
|
|
|
551
551
|
chain = sfn.Chain.start(custom).next(final_status)
|
|
552
552
|
|
|
553
553
|
sm = sfn.StateMachine(self, "StateMachine",
|
|
554
|
-
|
|
554
|
+
definition_body=sfn.DefinitionBody.from_chainable(chain),
|
|
555
555
|
timeout=Duration.seconds(30),
|
|
556
556
|
comment="a super cool state machine"
|
|
557
557
|
)
|
|
@@ -587,7 +587,7 @@ finish = sfn.Pass(self, "Finish")
|
|
|
587
587
|
definition = step1.next(step2).next(choice.when(condition1, step3.next(step4).next(step5)).otherwise(step6).afterwards()).next(parallel.branch(step7.next(step8)).branch(step9.next(step10))).next(finish)
|
|
588
588
|
|
|
589
589
|
sfn.StateMachine(self, "StateMachine",
|
|
590
|
-
|
|
590
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
591
591
|
)
|
|
592
592
|
```
|
|
593
593
|
|
|
@@ -673,7 +673,7 @@ class MyStack(Stack):
|
|
|
673
673
|
parallel = sfn.Parallel(self, "All jobs").branch(MyJob(self, "Quick", job_flavor="quick").prefix_states()).branch(MyJob(self, "Medium", job_flavor="medium").prefix_states()).branch(MyJob(self, "Slow", job_flavor="slow").prefix_states())
|
|
674
674
|
|
|
675
675
|
sfn.StateMachine(self, "MyStateMachine",
|
|
676
|
-
|
|
676
|
+
definition_body=sfn.DefinitionBody.from_chainable(parallel)
|
|
677
677
|
)
|
|
678
678
|
```
|
|
679
679
|
|
|
@@ -781,8 +781,10 @@ import aws_cdk.aws_logs as logs
|
|
|
781
781
|
|
|
782
782
|
log_group = logs.LogGroup(self, "MyLogGroup")
|
|
783
783
|
|
|
784
|
+
definition = sfn.Chain.start(sfn.Pass(self, "Pass"))
|
|
785
|
+
|
|
784
786
|
sfn.StateMachine(self, "MyStateMachine",
|
|
785
|
-
|
|
787
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition),
|
|
786
788
|
logs=sfn.LogOptions(
|
|
787
789
|
destination=log_group,
|
|
788
790
|
level=sfn.LogLevel.ALL
|
|
@@ -795,8 +797,10 @@ sfn.StateMachine(self, "MyStateMachine",
|
|
|
795
797
|
Enable X-Ray tracing for StateMachine:
|
|
796
798
|
|
|
797
799
|
```python
|
|
800
|
+
definition = sfn.Chain.start(sfn.Pass(self, "Pass"))
|
|
801
|
+
|
|
798
802
|
sfn.StateMachine(self, "MyStateMachine",
|
|
799
|
-
|
|
803
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition),
|
|
800
804
|
tracing_enabled=True
|
|
801
805
|
)
|
|
802
806
|
```
|
|
@@ -826,7 +830,7 @@ role = iam.Role(self, "Role",
|
|
|
826
830
|
assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
|
|
827
831
|
)
|
|
828
832
|
state_machine = sfn.StateMachine(self, "StateMachine",
|
|
829
|
-
|
|
833
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
830
834
|
)
|
|
831
835
|
|
|
832
836
|
# Give role permission to start execution of state machine
|
|
@@ -847,7 +851,7 @@ role = iam.Role(self, "Role",
|
|
|
847
851
|
assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
|
|
848
852
|
)
|
|
849
853
|
state_machine = sfn.StateMachine(self, "StateMachine",
|
|
850
|
-
|
|
854
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
851
855
|
)
|
|
852
856
|
|
|
853
857
|
# Give role read access to state machine
|
|
@@ -875,7 +879,7 @@ role = iam.Role(self, "Role",
|
|
|
875
879
|
assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
|
|
876
880
|
)
|
|
877
881
|
state_machine = sfn.StateMachine(self, "StateMachine",
|
|
878
|
-
|
|
882
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
879
883
|
)
|
|
880
884
|
|
|
881
885
|
# Give role task response permissions to the state machine
|
|
@@ -898,7 +902,7 @@ role = iam.Role(self, "Role",
|
|
|
898
902
|
assumed_by=iam.ServicePrincipal("lambda.amazonaws.com")
|
|
899
903
|
)
|
|
900
904
|
state_machine = sfn.StateMachine(self, "StateMachine",
|
|
901
|
-
|
|
905
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
902
906
|
)
|
|
903
907
|
|
|
904
908
|
# Give role permission to get execution history of ALL executions for the state machine
|
|
@@ -913,7 +917,7 @@ You can add any set of permissions to a state machine by calling the `grant()` A
|
|
|
913
917
|
# definition: sfn.IChainable
|
|
914
918
|
user = iam.User(self, "MyUser")
|
|
915
919
|
state_machine = sfn.StateMachine(self, "StateMachine",
|
|
916
|
-
|
|
920
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition)
|
|
917
921
|
)
|
|
918
922
|
|
|
919
923
|
# give user permission to send task success to the state machine
|
|
@@ -4391,7 +4395,7 @@ class CustomStateProps:
|
|
|
4391
4395
|
chain = sfn.Chain.start(custom).next(final_status)
|
|
4392
4396
|
|
|
4393
4397
|
sm = sfn.StateMachine(self, "StateMachine",
|
|
4394
|
-
|
|
4398
|
+
definition_body=sfn.DefinitionBody.from_chainable(chain),
|
|
4395
4399
|
timeout=Duration.seconds(30),
|
|
4396
4400
|
comment="a super cool state machine"
|
|
4397
4401
|
)
|
|
@@ -4437,12 +4441,15 @@ class DefinitionBody(
|
|
|
4437
4441
|
|
|
4438
4442
|
Example::
|
|
4439
4443
|
|
|
4440
|
-
|
|
4441
|
-
definition_body=
|
|
4444
|
+
state_machine = stepfunctions.StateMachine(self, "SM",
|
|
4445
|
+
definition_body=stepfunctions.DefinitionBody.from_chainable(stepfunctions.Wait(self, "Hello", time=stepfunctions.WaitTime.duration(Duration.seconds(10))))
|
|
4442
4446
|
)
|
|
4443
4447
|
|
|
4444
|
-
|
|
4445
|
-
|
|
4448
|
+
iot.TopicRule(self, "TopicRule",
|
|
4449
|
+
sql=iot.IotSql.from_string_as_ver20160323("SELECT * FROM 'device/+/data'"),
|
|
4450
|
+
actions=[
|
|
4451
|
+
actions.StepFunctionsStateMachineAction(state_machine)
|
|
4452
|
+
]
|
|
4446
4453
|
)
|
|
4447
4454
|
'''
|
|
4448
4455
|
|
|
@@ -6634,8 +6641,10 @@ class LogLevel(enum.Enum):
|
|
|
6634
6641
|
|
|
6635
6642
|
log_group = logs.LogGroup(self, "MyLogGroup")
|
|
6636
6643
|
|
|
6644
|
+
definition = sfn.Chain.start(sfn.Pass(self, "Pass"))
|
|
6645
|
+
|
|
6637
6646
|
sfn.StateMachine(self, "MyStateMachine",
|
|
6638
|
-
|
|
6647
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition),
|
|
6639
6648
|
logs=sfn.LogOptions(
|
|
6640
6649
|
destination=log_group,
|
|
6641
6650
|
level=sfn.LogLevel.ALL
|
|
@@ -6685,8 +6694,10 @@ class LogOptions:
|
|
|
6685
6694
|
|
|
6686
6695
|
log_group = logs.LogGroup(self, "MyLogGroup")
|
|
6687
6696
|
|
|
6697
|
+
definition = sfn.Chain.start(sfn.Pass(self, "Pass"))
|
|
6698
|
+
|
|
6688
6699
|
sfn.StateMachine(self, "MyStateMachine",
|
|
6689
|
-
|
|
6700
|
+
definition_body=sfn.DefinitionBody.from_chainable(definition),
|
|
6690
6701
|
logs=sfn.LogOptions(
|
|
6691
6702
|
destination=log_group,
|
|
6692
6703
|
level=sfn.LogLevel.ALL
|
|
@@ -8775,7 +8786,7 @@ class StateMachineFragment(
|
|
|
8775
8786
|
parallel = sfn.Parallel(self, "All jobs").branch(MyJob(self, "Quick", job_flavor="quick").prefix_states()).branch(MyJob(self, "Medium", job_flavor="medium").prefix_states()).branch(MyJob(self, "Slow", job_flavor="slow").prefix_states())
|
|
8776
8787
|
|
|
8777
8788
|
sfn.StateMachine(self, "MyStateMachine",
|
|
8778
|
-
|
|
8789
|
+
definition_body=sfn.DefinitionBody.from_chainable(parallel)
|
|
8779
8790
|
)
|
|
8780
8791
|
'''
|
|
8781
8792
|
|
|
@@ -11006,7 +11017,7 @@ class Wait(
|
|
|
11006
11017
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
11007
11018
|
# Note: this is a string inside a string.
|
|
11008
11019
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
11009
|
-
runtime=lambda_.Runtime.
|
|
11020
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
11010
11021
|
result_path="$.message"
|
|
11011
11022
|
)
|
|
11012
11023
|
|
|
@@ -11099,7 +11110,7 @@ class WaitProps:
|
|
|
11099
11110
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
11100
11111
|
# Note: this is a string inside a string.
|
|
11101
11112
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
11102
|
-
runtime=lambda_.Runtime.
|
|
11113
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
11103
11114
|
result_path="$.message"
|
|
11104
11115
|
)
|
|
11105
11116
|
|
|
@@ -11174,7 +11185,7 @@ class WaitTime(
|
|
|
11174
11185
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
11175
11186
|
# Note: this is a string inside a string.
|
|
11176
11187
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
11177
|
-
runtime=lambda_.Runtime.
|
|
11188
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
11178
11189
|
result_path="$.message"
|
|
11179
11190
|
)
|
|
11180
11191
|
|
|
@@ -12170,7 +12181,7 @@ class CustomState(
|
|
|
12170
12181
|
chain = sfn.Chain.start(custom).next(final_status)
|
|
12171
12182
|
|
|
12172
12183
|
sm = sfn.StateMachine(self, "StateMachine",
|
|
12173
|
-
|
|
12184
|
+
definition_body=sfn.DefinitionBody.from_chainable(chain),
|
|
12174
12185
|
timeout=Duration.seconds(30),
|
|
12175
12186
|
comment="a super cool state machine"
|
|
12176
12187
|
)
|
|
@@ -12508,7 +12519,7 @@ class Parallel(
|
|
|
12508
12519
|
parallel = sfn.Parallel(self, "All jobs").branch(MyJob(self, "Quick", job_flavor="quick").prefix_states()).branch(MyJob(self, "Medium", job_flavor="medium").prefix_states()).branch(MyJob(self, "Slow", job_flavor="slow").prefix_states())
|
|
12509
12520
|
|
|
12510
12521
|
sfn.StateMachine(self, "MyStateMachine",
|
|
12511
|
-
|
|
12522
|
+
definition_body=sfn.DefinitionBody.from_chainable(parallel)
|
|
12512
12523
|
)
|
|
12513
12524
|
'''
|
|
12514
12525
|
|
|
@@ -19,12 +19,13 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw
|
|
|
19
19
|
* [Tasks for AWS Step Functions](#tasks-for-aws-step-functions)
|
|
20
20
|
|
|
21
21
|
* [Table Of Contents](#table-of-contents)
|
|
22
|
+
* [Paths](#paths)
|
|
22
23
|
* [Evaluate Expression](#evaluate-expression)
|
|
23
24
|
* [API Gateway](#api-gateway)
|
|
24
25
|
|
|
25
26
|
* [Call REST API Endpoint](#call-rest-api-endpoint)
|
|
26
27
|
* [Call HTTP API Endpoint](#call-http-api-endpoint)
|
|
27
|
-
|
|
28
|
+
* [AWS SDK](#aws-sdk)
|
|
28
29
|
* [Athena](#athena)
|
|
29
30
|
|
|
30
31
|
* [StartQueryExecution](#startqueryexecution)
|
|
@@ -108,7 +109,7 @@ convert_to_seconds = tasks.EvaluateExpression(self, "Convert to seconds",
|
|
|
108
109
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
109
110
|
# Note: this is a string inside a string.
|
|
110
111
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
111
|
-
runtime=lambda_.Runtime.
|
|
112
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
112
113
|
result_path="$.message"
|
|
113
114
|
)
|
|
114
115
|
|
|
@@ -313,7 +314,7 @@ Step Functions supports [Batch](https://docs.aws.amazon.com/step-functions/lates
|
|
|
313
314
|
The [SubmitJob](https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html) API submits an AWS Batch job from a job definition.
|
|
314
315
|
|
|
315
316
|
```python
|
|
316
|
-
import aws_cdk.
|
|
317
|
+
import aws_cdk.aws_batch as batch
|
|
317
318
|
# batch_job_definition: batch.EcsJobDefinition
|
|
318
319
|
# batch_queue: batch.JobQueue
|
|
319
320
|
|
|
@@ -3589,7 +3590,7 @@ class BatchSubmitJob(
|
|
|
3589
3590
|
|
|
3590
3591
|
Example::
|
|
3591
3592
|
|
|
3592
|
-
import aws_cdk.
|
|
3593
|
+
import aws_cdk.aws_batch as batch
|
|
3593
3594
|
# batch_job_definition: batch.EcsJobDefinition
|
|
3594
3595
|
# batch_queue: batch.JobQueue
|
|
3595
3596
|
|
|
@@ -3769,7 +3770,7 @@ class BatchSubmitJobProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
3769
3770
|
|
|
3770
3771
|
Example::
|
|
3771
3772
|
|
|
3772
|
-
import aws_cdk.
|
|
3773
|
+
import aws_cdk.aws_batch as batch
|
|
3773
3774
|
# batch_job_definition: batch.EcsJobDefinition
|
|
3774
3775
|
# batch_queue: batch.JobQueue
|
|
3775
3776
|
|
|
@@ -19072,7 +19073,7 @@ class EvaluateExpression(
|
|
|
19072
19073
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
19073
19074
|
# Note: this is a string inside a string.
|
|
19074
19075
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
19075
|
-
runtime=lambda_.Runtime.
|
|
19076
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
19076
19077
|
result_path="$.message"
|
|
19077
19078
|
)
|
|
19078
19079
|
|
|
@@ -19114,7 +19115,7 @@ class EvaluateExpression(
|
|
|
19114
19115
|
:param scope: -
|
|
19115
19116
|
:param id: Descriptive identifier for this chainable.
|
|
19116
19117
|
:param expression: The expression to evaluate. The expression may contain state paths. Example value: ``'$.a + $.b'``
|
|
19117
|
-
:param runtime: The runtime language to use to evaluate the expression. Default: lambda.Runtime.
|
|
19118
|
+
:param runtime: The runtime language to use to evaluate the expression. Default: lambda.Runtime.NODEJS_18_X
|
|
19118
19119
|
:param comment: An optional description for this state. Default: - No comment
|
|
19119
19120
|
:param credentials: Credentials for an IAM Role that the State Machine assumes for executing the task. This enables cross-account resource invocations. Default: - None (Task is executed using the State Machine's execution role)
|
|
19120
19121
|
:param heartbeat: (deprecated) Timeout for the heartbeat. Default: - None
|
|
@@ -19211,7 +19212,7 @@ class EvaluateExpressionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
19211
19212
|
:param task_timeout: Timeout for the task. [disable-awslint:duration-prop-type] is needed because all props interface in aws-stepfunctions-tasks extend this interface Default: - None
|
|
19212
19213
|
:param timeout: (deprecated) Timeout for the task. Default: - None
|
|
19213
19214
|
:param expression: The expression to evaluate. The expression may contain state paths. Example value: ``'$.a + $.b'``
|
|
19214
|
-
:param runtime: The runtime language to use to evaluate the expression. Default: lambda.Runtime.
|
|
19215
|
+
:param runtime: The runtime language to use to evaluate the expression. Default: lambda.Runtime.NODEJS_18_X
|
|
19215
19216
|
|
|
19216
19217
|
:exampleMetadata: infused
|
|
19217
19218
|
|
|
@@ -19225,7 +19226,7 @@ class EvaluateExpressionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
19225
19226
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
19226
19227
|
# Note: this is a string inside a string.
|
|
19227
19228
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
19228
|
-
runtime=lambda_.Runtime.
|
|
19229
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
19229
19230
|
result_path="$.message"
|
|
19230
19231
|
)
|
|
19231
19232
|
|
|
@@ -19446,7 +19447,7 @@ class EvaluateExpressionProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
19446
19447
|
def runtime(self) -> typing.Optional[_Runtime_b4eaa844]:
|
|
19447
19448
|
'''The runtime language to use to evaluate the expression.
|
|
19448
19449
|
|
|
19449
|
-
:default: lambda.Runtime.
|
|
19450
|
+
:default: lambda.Runtime.NODEJS_18_X
|
|
19450
19451
|
'''
|
|
19451
19452
|
result = self._values.get("runtime")
|
|
19452
19453
|
return typing.cast(typing.Optional[_Runtime_b4eaa844], result)
|
|
@@ -26163,7 +26164,7 @@ class SnsPublish(
|
|
|
26163
26164
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
26164
26165
|
# Note: this is a string inside a string.
|
|
26165
26166
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
26166
|
-
runtime=lambda_.Runtime.
|
|
26167
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
26167
26168
|
result_path="$.message"
|
|
26168
26169
|
)
|
|
26169
26170
|
|
|
@@ -26334,7 +26335,7 @@ class SnsPublishProps(_TaskStateBaseProps_3a62b6d0):
|
|
|
26334
26335
|
create_message = tasks.EvaluateExpression(self, "Create message",
|
|
26335
26336
|
# Note: this is a string inside a string.
|
|
26336
26337
|
expression="`Now waiting ${$.waitSeconds} seconds...`",
|
|
26337
|
-
runtime=lambda_.Runtime.
|
|
26338
|
+
runtime=lambda_.Runtime.NODEJS_LATEST,
|
|
26338
26339
|
result_path="$.message"
|
|
26339
26340
|
)
|
|
26340
26341
|
|
aws_cdk/aws_transfer/__init__.py
CHANGED
|
@@ -2028,7 +2028,7 @@ class CfnServer(
|
|
|
2028
2028
|
:param certificate: The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. Required when ``Protocols`` is set to ``FTPS`` . To request a new public certificate, see `Request a public certificate <https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html>`_ in the *AWS Certificate Manager User Guide* . To import an existing certificate into ACM, see `Importing certificates into ACM <https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html>`_ in the *AWS Certificate Manager User Guide* . To request a private certificate to use FTPS through private IP addresses, see `Request a private certificate <https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-private.html>`_ in the *AWS Certificate Manager User Guide* . Certificates with the following cryptographic algorithms and key sizes are supported: - 2048-bit RSA (RSA_2048) - 4096-bit RSA (RSA_4096) - Elliptic Prime Curve 256 bit (EC_prime256v1) - Elliptic Prime Curve 384 bit (EC_secp384r1) - Elliptic Prime Curve 521 bit (EC_secp521r1) .. epigraph:: The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.
|
|
2029
2029
|
:param domain: Specifies the domain of the storage system that is used for file transfers.
|
|
2030
2030
|
:param endpoint_details: The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.
|
|
2031
|
-
:param endpoint_type: The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.
|
|
2031
|
+
:param endpoint_type: The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it. .. epigraph:: After May 19, 2021, you won't be able to create a server using ``EndpointType=VPC_ENDPOINT`` in your AWS account if your account hasn't already done so before May 19, 2021. If you have already created servers with ``EndpointType=VPC_ENDPOINT`` in your AWS account on or before May 19, 2021, you will not be affected. After this date, use ``EndpointType`` = ``VPC`` . For more information, see `Discontinuing the use of VPC_ENDPOINT <https://docs.aws.amazon.com//transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint>`_ . It is recommended that you use ``VPC`` as the ``EndpointType`` . With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with ``EndpointType`` set to ``VPC_ENDPOINT`` .
|
|
2032
2032
|
:param identity_provider_details: Required when ``IdentityProviderType`` is set to ``AWS_DIRECTORY_SERVICE`` , ``AWS _LAMBDA`` or ``API_GATEWAY`` . Accepts an array containing all of the information required to use a directory in ``AWS_DIRECTORY_SERVICE`` or invoke a customer-supplied authentication API, including the API Gateway URL. Not required when ``IdentityProviderType`` is set to ``SERVICE_MANAGED`` .
|
|
2033
2033
|
:param identity_provider_type: The mode of authentication for a server. The default value is ``SERVICE_MANAGED`` , which allows you to store and access user credentials within the AWS Transfer Family service. Use ``AWS_DIRECTORY_SERVICE`` to provide access to Active Directory groups in AWS Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in AWS using AD Connector. This option also requires you to provide a Directory ID by using the ``IdentityProviderDetails`` parameter. Use the ``API_GATEWAY`` value to integrate with an identity provider of your choosing. The ``API_GATEWAY`` setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the ``IdentityProviderDetails`` parameter. Use the ``AWS_LAMBDA`` value to directly use an AWS Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the ``Function`` parameter for the ``IdentityProviderDetails`` data type.
|
|
2034
2034
|
:param logging_role: The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.
|
|
@@ -3066,7 +3066,7 @@ class CfnServerProps:
|
|
|
3066
3066
|
:param certificate: The Amazon Resource Name (ARN) of the AWS Certificate Manager (ACM) certificate. Required when ``Protocols`` is set to ``FTPS`` . To request a new public certificate, see `Request a public certificate <https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-public.html>`_ in the *AWS Certificate Manager User Guide* . To import an existing certificate into ACM, see `Importing certificates into ACM <https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html>`_ in the *AWS Certificate Manager User Guide* . To request a private certificate to use FTPS through private IP addresses, see `Request a private certificate <https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-request-private.html>`_ in the *AWS Certificate Manager User Guide* . Certificates with the following cryptographic algorithms and key sizes are supported: - 2048-bit RSA (RSA_2048) - 4096-bit RSA (RSA_4096) - Elliptic Prime Curve 256 bit (EC_prime256v1) - Elliptic Prime Curve 384 bit (EC_secp384r1) - Elliptic Prime Curve 521 bit (EC_secp521r1) .. epigraph:: The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.
|
|
3067
3067
|
:param domain: Specifies the domain of the storage system that is used for file transfers.
|
|
3068
3068
|
:param endpoint_details: The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC's default security groups are automatically assigned to your endpoint.
|
|
3069
|
-
:param endpoint_type: The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.
|
|
3069
|
+
:param endpoint_type: The type of endpoint that you want your server to use. You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it. .. epigraph:: After May 19, 2021, you won't be able to create a server using ``EndpointType=VPC_ENDPOINT`` in your AWS account if your account hasn't already done so before May 19, 2021. If you have already created servers with ``EndpointType=VPC_ENDPOINT`` in your AWS account on or before May 19, 2021, you will not be affected. After this date, use ``EndpointType`` = ``VPC`` . For more information, see `Discontinuing the use of VPC_ENDPOINT <https://docs.aws.amazon.com//transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint>`_ . It is recommended that you use ``VPC`` as the ``EndpointType`` . With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with ``EndpointType`` set to ``VPC_ENDPOINT`` .
|
|
3070
3070
|
:param identity_provider_details: Required when ``IdentityProviderType`` is set to ``AWS_DIRECTORY_SERVICE`` , ``AWS _LAMBDA`` or ``API_GATEWAY`` . Accepts an array containing all of the information required to use a directory in ``AWS_DIRECTORY_SERVICE`` or invoke a customer-supplied authentication API, including the API Gateway URL. Not required when ``IdentityProviderType`` is set to ``SERVICE_MANAGED`` .
|
|
3071
3071
|
:param identity_provider_type: The mode of authentication for a server. The default value is ``SERVICE_MANAGED`` , which allows you to store and access user credentials within the AWS Transfer Family service. Use ``AWS_DIRECTORY_SERVICE`` to provide access to Active Directory groups in AWS Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in AWS using AD Connector. This option also requires you to provide a Directory ID by using the ``IdentityProviderDetails`` parameter. Use the ``API_GATEWAY`` value to integrate with an identity provider of your choosing. The ``API_GATEWAY`` setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using the ``IdentityProviderDetails`` parameter. Use the ``AWS_LAMBDA`` value to directly use an AWS Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in the ``Function`` parameter for the ``IdentityProviderDetails`` data type.
|
|
3072
3072
|
:param logging_role: The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.
|
|
@@ -3240,6 +3240,13 @@ class CfnServerProps:
|
|
|
3240
3240
|
'''The type of endpoint that you want your server to use.
|
|
3241
3241
|
|
|
3242
3242
|
You can choose to make your server's endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.
|
|
3243
|
+
.. epigraph::
|
|
3244
|
+
|
|
3245
|
+
After May 19, 2021, you won't be able to create a server using ``EndpointType=VPC_ENDPOINT`` in your AWS account if your account hasn't already done so before May 19, 2021. If you have already created servers with ``EndpointType=VPC_ENDPOINT`` in your AWS account on or before May 19, 2021, you will not be affected. After this date, use ``EndpointType`` = ``VPC`` .
|
|
3246
|
+
|
|
3247
|
+
For more information, see `Discontinuing the use of VPC_ENDPOINT <https://docs.aws.amazon.com//transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint>`_ .
|
|
3248
|
+
|
|
3249
|
+
It is recommended that you use ``VPC`` as the ``EndpointType`` . With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server's endpoint and use VPC security groups to restrict traffic by the client's public IP address. This is not possible with ``EndpointType`` set to ``VPC_ENDPOINT`` .
|
|
3243
3250
|
|
|
3244
3251
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-server.html#cfn-transfer-server-endpointtype
|
|
3245
3252
|
'''
|
aws_cdk/aws_wafv2/__init__.py
CHANGED
|
@@ -11511,8 +11511,8 @@ class CfnWebACL(
|
|
|
11511
11511
|
|
|
11512
11512
|
This configuration is used in ``ManagedRuleGroupConfig`` .
|
|
11513
11513
|
|
|
11514
|
-
:param creation_path: The path of the account creation endpoint for your application. This is the page on your website that accepts the completed registration form for a new user. This page must accept ``POST`` requests. For example, for the URL ``https://example.com/web/
|
|
11515
|
-
:param registration_page_path: The path of the account registration endpoint for your application. This is the page on your website that presents the registration form to new users. .. epigraph:: This page must accept ``GET`` text/html requests. For example, for the URL ``https://example.com/web/
|
|
11514
|
+
:param creation_path: The path of the account creation endpoint for your application. This is the page on your website that accepts the completed registration form for a new user. This page must accept ``POST`` requests. For example, for the URL ``https://example.com/web/newaccount`` , you would provide the path ``/web/newaccount`` . Account creation page paths that start with the path that you provide are considered a match. For example ``/web/newaccount`` matches the account creation paths ``/web/newaccount`` , ``/web/newaccount/`` , ``/web/newaccountPage`` , and ``/web/newaccount/thisPage`` , but doesn't match the path ``/home/web/newaccount`` or ``/website/newaccount`` .
|
|
11515
|
+
:param registration_page_path: The path of the account registration endpoint for your application. This is the page on your website that presents the registration form to new users. .. epigraph:: This page must accept ``GET`` text/html requests. For example, for the URL ``https://example.com/web/registration`` , you would provide the path ``/web/registration`` . Registration page paths that start with the path that you provide are considered a match. For example ``/web/registration`` matches the registration paths ``/web/registration`` , ``/web/registration/`` , ``/web/registrationPage`` , and ``/web/registration/thisPage`` , but doesn't match the path ``/home/web/registration`` or ``/website/registration`` .
|
|
11516
11516
|
:param request_inspection: The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
|
|
11517
11517
|
:param enable_regex_in_path: Allow the use of regular expressions in the registration page path and the account creation path.
|
|
11518
11518
|
:param response_inspection: The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates. .. epigraph:: Response inspection is available only in web ACLs that protect Amazon CloudFront distributions. The ACFP rule group evaluates the responses that your protected resources send back to client account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses that have had too many successful account creation attempts in a short amount of time.
|
|
@@ -11597,7 +11597,7 @@ class CfnWebACL(
|
|
|
11597
11597
|
|
|
11598
11598
|
This is the page on your website that accepts the completed registration form for a new user. This page must accept ``POST`` requests.
|
|
11599
11599
|
|
|
11600
|
-
For example, for the URL ``https://example.com/web/
|
|
11600
|
+
For example, for the URL ``https://example.com/web/newaccount`` , you would provide the path ``/web/newaccount`` . Account creation page paths that start with the path that you provide are considered a match. For example ``/web/newaccount`` matches the account creation paths ``/web/newaccount`` , ``/web/newaccount/`` , ``/web/newaccountPage`` , and ``/web/newaccount/thisPage`` , but doesn't match the path ``/home/web/newaccount`` or ``/website/newaccount`` .
|
|
11601
11601
|
|
|
11602
11602
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-creationpath
|
|
11603
11603
|
'''
|
|
@@ -11614,7 +11614,7 @@ class CfnWebACL(
|
|
|
11614
11614
|
|
|
11615
11615
|
This page must accept ``GET`` text/html requests.
|
|
11616
11616
|
|
|
11617
|
-
For example, for the URL ``https://example.com/web/
|
|
11617
|
+
For example, for the URL ``https://example.com/web/registration`` , you would provide the path ``/web/registration`` . Registration page paths that start with the path that you provide are considered a match. For example ``/web/registration`` matches the registration paths ``/web/registration`` , ``/web/registration/`` , ``/web/registrationPage`` , and ``/web/registration/thisPage`` , but doesn't match the path ``/home/web/registration`` or ``/website/registration`` .
|
|
11618
11618
|
|
|
11619
11619
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-registrationpagepath
|
|
11620
11620
|
'''
|
|
@@ -11696,7 +11696,7 @@ class CfnWebACL(
|
|
|
11696
11696
|
|
|
11697
11697
|
This configuration is used in ``ManagedRuleGroupConfig`` .
|
|
11698
11698
|
|
|
11699
|
-
:param login_path: The path of the login endpoint for your application. For example, for the URL ``https://example.com/web/login`` , you would provide the path ``/web/login`` . The rule group inspects only HTTP ``POST`` requests to your specified login endpoint.
|
|
11699
|
+
:param login_path: The path of the login endpoint for your application. For example, for the URL ``https://example.com/web/login`` , you would provide the path ``/web/login`` . Login paths that start with the path that you provide are considered a match. For example ``/web/login`` matches the login paths ``/web/login`` , ``/web/login/`` , ``/web/loginPage`` , and ``/web/login/thisPage`` , but doesn't match the login path ``/home/web/login`` or ``/website/login`` . The rule group inspects only HTTP ``POST`` requests to your specified login endpoint.
|
|
11700
11700
|
:param enable_regex_in_path: Allow the use of regular expressions in the login page path.
|
|
11701
11701
|
:param request_inspection: The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
|
|
11702
11702
|
:param response_inspection: The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates. .. epigraph:: Response inspection is available only in web ACLs that protect Amazon CloudFront distributions. The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses that have had too many failed login attempts in a short amount of time.
|
|
@@ -11766,7 +11766,7 @@ class CfnWebACL(
|
|
|
11766
11766
|
def login_path(self) -> builtins.str:
|
|
11767
11767
|
'''The path of the login endpoint for your application.
|
|
11768
11768
|
|
|
11769
|
-
For example, for the URL ``https://example.com/web/login`` , you would provide the path ``/web/login`` .
|
|
11769
|
+
For example, for the URL ``https://example.com/web/login`` , you would provide the path ``/web/login`` . Login paths that start with the path that you provide are considered a match. For example ``/web/login`` matches the login paths ``/web/login`` , ``/web/login/`` , ``/web/loginPage`` , and ``/web/login/thisPage`` , but doesn't match the login path ``/home/web/login`` or ``/website/login`` .
|
|
11770
11770
|
|
|
11771
11771
|
The rule group inspects only HTTP ``POST`` requests to your specified login endpoint.
|
|
11772
11772
|
|
aws_cdk/pipelines/__init__.py
CHANGED
|
@@ -6691,7 +6691,7 @@ class CodePipelineSource(
|
|
|
6691
6691
|
If you need access to symlinks or the repository history, be sure to set
|
|
6692
6692
|
``codeBuildCloneOutput``.
|
|
6693
6693
|
|
|
6694
|
-
:param repo_string: A string that encodes owner and repository separated by a slash (e.g. 'owner/repo').
|
|
6694
|
+
:param repo_string: A string that encodes owner and repository separated by a slash (e.g. 'owner/repo'). The provided string must be resolvable at runtime.
|
|
6695
6695
|
:param branch: The branch to use.
|
|
6696
6696
|
:param connection_arn: The ARN of the CodeStar Connection created in the AWS console that has permissions to access this GitHub or BitBucket repository.
|
|
6697
6697
|
:param action_name: The action name used for this source in the CodePipeline. Default: - The repository string
|