aws-solutions-constructs.aws-sqs-pipes-stepfunctions 2.73.0__tar.gz → 2.75.0__tar.gz
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.
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/PKG-INFO +53 -13
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/README.md +48 -7
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/setup.py +6 -7
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/__init__.py +96 -35
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/__init__.py +2 -3
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0/src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.75.0.jsii.tgz +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info}/PKG-INFO +53 -13
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/SOURCES.txt +1 -1
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/requires.txt +7 -0
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0/src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.73.0.jsii.tgz +0 -0
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/requires.txt +0 -8
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/LICENSE +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/MANIFEST.in +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/pyproject.toml +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/setup.cfg +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/py.typed +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/dependency_links.txt +0 -0
- {aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.73.0 → aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.75.0}/src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: aws-solutions-constructs.aws-sqs-pipes-stepfunctions
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.75.0
|
4
4
|
Summary: CDK Constructs for Amazon SQS to AWS Step Functions via Amazon EventBridge Pipes integration.
|
5
5
|
Home-page: https://github.com/awslabs/aws-solutions-constructs.git
|
6
6
|
Author: Amazon Web Services
|
@@ -19,12 +19,11 @@ Classifier: License :: OSI Approved
|
|
19
19
|
Requires-Python: ~=3.8
|
20
20
|
Description-Content-Type: text/markdown
|
21
21
|
License-File: LICENSE
|
22
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
23
|
-
Requires-Dist: aws-
|
24
|
-
Requires-Dist: aws-solutions-constructs.
|
25
|
-
Requires-Dist: aws-solutions-constructs.resources==2.73.0
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.163.1
|
23
|
+
Requires-Dist: aws-solutions-constructs.core==2.75.0
|
24
|
+
Requires-Dist: aws-solutions-constructs.resources==2.75.0
|
26
25
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
26
|
+
Requires-Dist: jsii<2.0.0,>=1.106.0
|
28
27
|
Requires-Dist: publication>=0.0.3
|
29
28
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
30
29
|
|
@@ -60,16 +59,57 @@ Typescript
|
|
60
59
|
```python
|
61
60
|
import { Construct } from 'constructs';
|
62
61
|
import { Stack, StackProps } from 'aws-cdk-lib';
|
63
|
-
import * as
|
62
|
+
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
64
63
|
import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
|
65
64
|
|
66
|
-
const startState = new
|
65
|
+
const startState = new sfn.Pass(this, 'StartState');
|
67
66
|
|
68
|
-
new SqsToPipesToStepfunctions(this, '
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
});
|
67
|
+
new SqsToPipesToStepfunctions(this, 'SqsToPipesToStepfunctionsPattern', {
|
68
|
+
stateMachineProps: {
|
69
|
+
definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
|
70
|
+
}
|
71
|
+
});
|
72
|
+
```
|
73
|
+
|
74
|
+
Python
|
75
|
+
|
76
|
+
```python
|
77
|
+
from constructs import Construct
|
78
|
+
from aws_cdk import (
|
79
|
+
aws_stepfunctions as _sfn,
|
80
|
+
Stack
|
81
|
+
)
|
82
|
+
from aws_solutions_constructs import (
|
83
|
+
aws_sqs_pipes_stepfunctions as sqs_pipes_stepfunctions
|
84
|
+
)
|
85
|
+
|
86
|
+
sqs_pipes_stepfunctions.SqsToPipesToStepfunctions(
|
87
|
+
self, 'SqsToPipesToStepfunctions',
|
88
|
+
state_machine_props=_sfn.StateMachineProps(
|
89
|
+
definition_body=_sfn.DefinitionBody.from_chainable(_sfn.Chain.start(_sfn.Pass(self, "pass")))
|
90
|
+
)
|
91
|
+
)
|
92
|
+
```
|
93
|
+
|
94
|
+
Java
|
95
|
+
|
96
|
+
```java
|
97
|
+
package com.myorg;
|
98
|
+
|
99
|
+
import software.constructs.Construct;
|
100
|
+
import software.amazon.awscdk.Stack;
|
101
|
+
import software.amazon.awscdk.StackProps;
|
102
|
+
|
103
|
+
import software.amazon.awscdk.services.stepfunctions.*;
|
104
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctions;
|
105
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctionsProps;
|
106
|
+
|
107
|
+
new SqsToPipesToStepfunctions(this, "SqsToLambdaToStepfunctionsPattern",
|
108
|
+
SqsToPipesToStepfunctionsProps.builder()
|
109
|
+
.stateMachineProps(StateMachineProps.builder()
|
110
|
+
.definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(scope, "Pass"))))
|
111
|
+
.build())
|
112
|
+
.build());
|
73
113
|
```
|
74
114
|
|
75
115
|
## Pattern Construct Props
|
@@ -30,16 +30,57 @@ Typescript
|
|
30
30
|
```python
|
31
31
|
import { Construct } from 'constructs';
|
32
32
|
import { Stack, StackProps } from 'aws-cdk-lib';
|
33
|
-
import * as
|
33
|
+
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
34
34
|
import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
|
35
35
|
|
36
|
-
const startState = new
|
36
|
+
const startState = new sfn.Pass(this, 'StartState');
|
37
37
|
|
38
|
-
new SqsToPipesToStepfunctions(this, '
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
});
|
38
|
+
new SqsToPipesToStepfunctions(this, 'SqsToPipesToStepfunctionsPattern', {
|
39
|
+
stateMachineProps: {
|
40
|
+
definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
|
41
|
+
}
|
42
|
+
});
|
43
|
+
```
|
44
|
+
|
45
|
+
Python
|
46
|
+
|
47
|
+
```python
|
48
|
+
from constructs import Construct
|
49
|
+
from aws_cdk import (
|
50
|
+
aws_stepfunctions as _sfn,
|
51
|
+
Stack
|
52
|
+
)
|
53
|
+
from aws_solutions_constructs import (
|
54
|
+
aws_sqs_pipes_stepfunctions as sqs_pipes_stepfunctions
|
55
|
+
)
|
56
|
+
|
57
|
+
sqs_pipes_stepfunctions.SqsToPipesToStepfunctions(
|
58
|
+
self, 'SqsToPipesToStepfunctions',
|
59
|
+
state_machine_props=_sfn.StateMachineProps(
|
60
|
+
definition_body=_sfn.DefinitionBody.from_chainable(_sfn.Chain.start(_sfn.Pass(self, "pass")))
|
61
|
+
)
|
62
|
+
)
|
63
|
+
```
|
64
|
+
|
65
|
+
Java
|
66
|
+
|
67
|
+
```java
|
68
|
+
package com.myorg;
|
69
|
+
|
70
|
+
import software.constructs.Construct;
|
71
|
+
import software.amazon.awscdk.Stack;
|
72
|
+
import software.amazon.awscdk.StackProps;
|
73
|
+
|
74
|
+
import software.amazon.awscdk.services.stepfunctions.*;
|
75
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctions;
|
76
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctionsProps;
|
77
|
+
|
78
|
+
new SqsToPipesToStepfunctions(this, "SqsToLambdaToStepfunctionsPattern",
|
79
|
+
SqsToPipesToStepfunctionsProps.builder()
|
80
|
+
.stateMachineProps(StateMachineProps.builder()
|
81
|
+
.definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(scope, "Pass"))))
|
82
|
+
.build())
|
83
|
+
.build());
|
43
84
|
```
|
44
85
|
|
45
86
|
## Pattern Construct Props
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
5
5
|
"""
|
6
6
|
{
|
7
7
|
"name": "aws-solutions-constructs.aws-sqs-pipes-stepfunctions",
|
8
|
-
"version": "2.
|
8
|
+
"version": "2.75.0",
|
9
9
|
"description": "CDK Constructs for Amazon SQS to AWS Step Functions via Amazon EventBridge Pipes integration.",
|
10
10
|
"license": "Apache-2.0",
|
11
11
|
"url": "https://github.com/awslabs/aws-solutions-constructs.git",
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
26
26
|
],
|
27
27
|
"package_data": {
|
28
28
|
"aws_solutions_constructs.aws_sqs_pipes_stepfunctions._jsii": [
|
29
|
-
"aws-sqs-pipes-stepfunctions@2.
|
29
|
+
"aws-sqs-pipes-stepfunctions@2.75.0.jsii.tgz"
|
30
30
|
],
|
31
31
|
"aws_solutions_constructs.aws_sqs_pipes_stepfunctions": [
|
32
32
|
"py.typed"
|
@@ -34,12 +34,11 @@ kwargs = json.loads(
|
|
34
34
|
},
|
35
35
|
"python_requires": "~=3.8",
|
36
36
|
"install_requires": [
|
37
|
-
"aws-cdk-lib>=2.
|
38
|
-
"aws-
|
39
|
-
"aws-solutions-constructs.
|
40
|
-
"aws-solutions-constructs.resources==2.73.0",
|
37
|
+
"aws-cdk-lib>=2.163.1, <3.0.0",
|
38
|
+
"aws-solutions-constructs.core==2.75.0",
|
39
|
+
"aws-solutions-constructs.resources==2.75.0",
|
41
40
|
"constructs>=10.0.0, <11.0.0",
|
42
|
-
"jsii>=1.
|
41
|
+
"jsii>=1.106.0, <2.0.0",
|
43
42
|
"publication>=0.0.3",
|
44
43
|
"typeguard>=2.13.3,<4.3.0"
|
45
44
|
],
|
@@ -31,16 +31,57 @@ Typescript
|
|
31
31
|
```python
|
32
32
|
import { Construct } from 'constructs';
|
33
33
|
import { Stack, StackProps } from 'aws-cdk-lib';
|
34
|
-
import * as
|
34
|
+
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
35
35
|
import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
|
36
36
|
|
37
|
-
const startState = new
|
37
|
+
const startState = new sfn.Pass(this, 'StartState');
|
38
38
|
|
39
|
-
new SqsToPipesToStepfunctions(this, '
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
});
|
39
|
+
new SqsToPipesToStepfunctions(this, 'SqsToPipesToStepfunctionsPattern', {
|
40
|
+
stateMachineProps: {
|
41
|
+
definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
|
42
|
+
}
|
43
|
+
});
|
44
|
+
```
|
45
|
+
|
46
|
+
Python
|
47
|
+
|
48
|
+
```python
|
49
|
+
from constructs import Construct
|
50
|
+
from aws_cdk import (
|
51
|
+
aws_stepfunctions as _sfn,
|
52
|
+
Stack
|
53
|
+
)
|
54
|
+
from aws_solutions_constructs import (
|
55
|
+
aws_sqs_pipes_stepfunctions as sqs_pipes_stepfunctions
|
56
|
+
)
|
57
|
+
|
58
|
+
sqs_pipes_stepfunctions.SqsToPipesToStepfunctions(
|
59
|
+
self, 'SqsToPipesToStepfunctions',
|
60
|
+
state_machine_props=_sfn.StateMachineProps(
|
61
|
+
definition_body=_sfn.DefinitionBody.from_chainable(_sfn.Chain.start(_sfn.Pass(self, "pass")))
|
62
|
+
)
|
63
|
+
)
|
64
|
+
```
|
65
|
+
|
66
|
+
Java
|
67
|
+
|
68
|
+
```java
|
69
|
+
package com.myorg;
|
70
|
+
|
71
|
+
import software.constructs.Construct;
|
72
|
+
import software.amazon.awscdk.Stack;
|
73
|
+
import software.amazon.awscdk.StackProps;
|
74
|
+
|
75
|
+
import software.amazon.awscdk.services.stepfunctions.*;
|
76
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctions;
|
77
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctionsProps;
|
78
|
+
|
79
|
+
new SqsToPipesToStepfunctions(this, "SqsToLambdaToStepfunctionsPattern",
|
80
|
+
SqsToPipesToStepfunctionsProps.builder()
|
81
|
+
.stateMachineProps(StateMachineProps.builder()
|
82
|
+
.definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(scope, "Pass"))))
|
83
|
+
.build())
|
84
|
+
.build());
|
44
85
|
```
|
45
86
|
|
46
87
|
## Pattern Construct Props
|
@@ -173,7 +214,6 @@ class SqsToPipesToStepfunctions(
|
|
173
214
|
scope: _constructs_77d1e7e8.Construct,
|
174
215
|
id: builtins.str,
|
175
216
|
*,
|
176
|
-
state_machine_props: typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]],
|
177
217
|
create_cloud_watch_alarms: typing.Optional[builtins.bool] = None,
|
178
218
|
dead_letter_queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
179
219
|
deploy_dead_letter_queue: typing.Optional[builtins.bool] = None,
|
@@ -182,6 +222,7 @@ class SqsToPipesToStepfunctions(
|
|
182
222
|
enrichment_state_machine: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
183
223
|
existing_queue_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
|
184
224
|
existing_queue_obj: typing.Optional[_aws_cdk_aws_sqs_ceddda9d.Queue] = None,
|
225
|
+
existing_state_machine_obj: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
185
226
|
log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
186
227
|
log_level: typing.Optional[_aws_solutions_constructs_core_ac4f6ab9.PipesLogLevel] = None,
|
187
228
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
@@ -189,11 +230,11 @@ class SqsToPipesToStepfunctions(
|
|
189
230
|
pipe_props: typing.Any = None,
|
190
231
|
queue_encryption_key_props: typing.Optional[typing.Union[_aws_cdk_aws_kms_ceddda9d.KeyProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
191
232
|
queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
233
|
+
state_machine_props: typing.Optional[typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
192
234
|
) -> None:
|
193
235
|
'''
|
194
236
|
:param scope: - represents the scope for all the resources.
|
195
237
|
:param id: - this is a a scope-unique id.
|
196
|
-
:param state_machine_props: User provided props for the sfn.StateMachine.
|
197
238
|
:param create_cloud_watch_alarms: Whether to create recommended CloudWatch alarms. default = true
|
198
239
|
:param dead_letter_queue_props: Optional user-provided props to override the default props for the dead letter SQS queue.
|
199
240
|
:param deploy_dead_letter_queue: Whether to create a secondary queue to be used as a dead letter queue. default = true.
|
@@ -202,6 +243,7 @@ class SqsToPipesToStepfunctions(
|
|
202
243
|
:param enrichment_state_machine: Optional - Step Functions state machine that the construct will configure to be called to enrich the message between source and target. The construct will configure the pipe IAM role to allow executing the state machine (but will not affect the IAM role assigned to the state machine). Specifying both this and enrichmentStateMachine is an error. Enrichment is invoked synchronously, so this must be an EXPRESS state machin. Default - undefined
|
203
244
|
:param existing_queue_encryption_key: An optional CMK that will be used by the construct to encrypt the new SQS queue.
|
204
245
|
:param existing_queue_obj: An optional, existing SQS queue to be used instead of the default queue. Providing both this and queueProps will cause an error.
|
246
|
+
:param existing_state_machine_obj: Optional existing state machine to incorporate into the construct.
|
205
247
|
:param log_group_props: Optional user provided props to override the default props for for the CloudWatchLogs LogGroup.
|
206
248
|
:param log_level: Threshold for what messages the new pipe sends to the log, PipesLogLevel.OFF, PipesLogLevel.ERROR, PipesLogLevel.INFO, PipesLogLevel.TRACE. The default is INFO. Setting the level to OFF will prevent any log group from being created. Providing pipeProps.logConfiguration will controls all aspects of logging and any construct provided log configuration is disabled. If pipeProps.logConfiguration is provided then specifying this or pipeLogProps is an error.
|
207
249
|
:param max_receive_count: The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Defaults to 15.
|
@@ -209,6 +251,7 @@ class SqsToPipesToStepfunctions(
|
|
209
251
|
:param pipe_props: Optional customer provided settings for the EventBridge pipe. source, target and roleArn are set by the construct and cannot be overriden. The construct will generate default sourceParameters, targetParameters and logConfiguration that can be overriden by populating those values in these props. If the client wants to implement enrichment or a filter, this is where that information can be provided. Any other props can be freely overridden.
|
210
252
|
:param queue_encryption_key_props: An optional subset of key properties to override the default properties used by constructs (enableKeyRotation: true). These properties will be used in constructing the CMK used to encrypt the SQS queue.
|
211
253
|
:param queue_props: Optional user provided properties to override the default properties for the SQS queue.
|
254
|
+
:param state_machine_props: User provided props for the sfn.StateMachine. This or existingStateMachine is required.
|
212
255
|
|
213
256
|
:access: public
|
214
257
|
:summary: Constructs a new instance of the SqsToPipesToStepfunctions class.
|
@@ -218,7 +261,6 @@ class SqsToPipesToStepfunctions(
|
|
218
261
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
219
262
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
220
263
|
props = SqsToPipesToStepfunctionsProps(
|
221
|
-
state_machine_props=state_machine_props,
|
222
264
|
create_cloud_watch_alarms=create_cloud_watch_alarms,
|
223
265
|
dead_letter_queue_props=dead_letter_queue_props,
|
224
266
|
deploy_dead_letter_queue=deploy_dead_letter_queue,
|
@@ -227,6 +269,7 @@ class SqsToPipesToStepfunctions(
|
|
227
269
|
enrichment_state_machine=enrichment_state_machine,
|
228
270
|
existing_queue_encryption_key=existing_queue_encryption_key,
|
229
271
|
existing_queue_obj=existing_queue_obj,
|
272
|
+
existing_state_machine_obj=existing_state_machine_obj,
|
230
273
|
log_group_props=log_group_props,
|
231
274
|
log_level=log_level,
|
232
275
|
max_receive_count=max_receive_count,
|
@@ -234,6 +277,7 @@ class SqsToPipesToStepfunctions(
|
|
234
277
|
pipe_props=pipe_props,
|
235
278
|
queue_encryption_key_props=queue_encryption_key_props,
|
236
279
|
queue_props=queue_props,
|
280
|
+
state_machine_props=state_machine_props,
|
237
281
|
)
|
238
282
|
|
239
283
|
jsii.create(self.__class__, self, [scope, id, props])
|
@@ -258,11 +302,6 @@ class SqsToPipesToStepfunctions(
|
|
258
302
|
def state_machine(self) -> _aws_cdk_aws_stepfunctions_ceddda9d.StateMachine:
|
259
303
|
return typing.cast(_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine, jsii.get(self, "stateMachine"))
|
260
304
|
|
261
|
-
@builtins.property
|
262
|
-
@jsii.member(jsii_name="stateMachineLogGroup")
|
263
|
-
def state_machine_log_group(self) -> _aws_cdk_aws_logs_ceddda9d.ILogGroup:
|
264
|
-
return typing.cast(_aws_cdk_aws_logs_ceddda9d.ILogGroup, jsii.get(self, "stateMachineLogGroup"))
|
265
|
-
|
266
305
|
@builtins.property
|
267
306
|
@jsii.member(jsii_name="cloudwatchAlarms")
|
268
307
|
def cloudwatch_alarms(
|
@@ -282,12 +321,18 @@ class SqsToPipesToStepfunctions(
|
|
282
321
|
def encryption_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
283
322
|
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], jsii.get(self, "encryptionKey"))
|
284
323
|
|
324
|
+
@builtins.property
|
325
|
+
@jsii.member(jsii_name="stateMachineLogGroup")
|
326
|
+
def state_machine_log_group(
|
327
|
+
self,
|
328
|
+
) -> typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup]:
|
329
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup], jsii.get(self, "stateMachineLogGroup"))
|
330
|
+
|
285
331
|
|
286
332
|
@jsii.data_type(
|
287
333
|
jsii_type="@aws-solutions-constructs/aws-sqs-pipes-stepfunctions.SqsToPipesToStepfunctionsProps",
|
288
334
|
jsii_struct_bases=[],
|
289
335
|
name_mapping={
|
290
|
-
"state_machine_props": "stateMachineProps",
|
291
336
|
"create_cloud_watch_alarms": "createCloudWatchAlarms",
|
292
337
|
"dead_letter_queue_props": "deadLetterQueueProps",
|
293
338
|
"deploy_dead_letter_queue": "deployDeadLetterQueue",
|
@@ -296,6 +341,7 @@ class SqsToPipesToStepfunctions(
|
|
296
341
|
"enrichment_state_machine": "enrichmentStateMachine",
|
297
342
|
"existing_queue_encryption_key": "existingQueueEncryptionKey",
|
298
343
|
"existing_queue_obj": "existingQueueObj",
|
344
|
+
"existing_state_machine_obj": "existingStateMachineObj",
|
299
345
|
"log_group_props": "logGroupProps",
|
300
346
|
"log_level": "logLevel",
|
301
347
|
"max_receive_count": "maxReceiveCount",
|
@@ -303,13 +349,13 @@ class SqsToPipesToStepfunctions(
|
|
303
349
|
"pipe_props": "pipeProps",
|
304
350
|
"queue_encryption_key_props": "queueEncryptionKeyProps",
|
305
351
|
"queue_props": "queueProps",
|
352
|
+
"state_machine_props": "stateMachineProps",
|
306
353
|
},
|
307
354
|
)
|
308
355
|
class SqsToPipesToStepfunctionsProps:
|
309
356
|
def __init__(
|
310
357
|
self,
|
311
358
|
*,
|
312
|
-
state_machine_props: typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]],
|
313
359
|
create_cloud_watch_alarms: typing.Optional[builtins.bool] = None,
|
314
360
|
dead_letter_queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
315
361
|
deploy_dead_letter_queue: typing.Optional[builtins.bool] = None,
|
@@ -318,6 +364,7 @@ class SqsToPipesToStepfunctionsProps:
|
|
318
364
|
enrichment_state_machine: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
319
365
|
existing_queue_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
|
320
366
|
existing_queue_obj: typing.Optional[_aws_cdk_aws_sqs_ceddda9d.Queue] = None,
|
367
|
+
existing_state_machine_obj: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
321
368
|
log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
322
369
|
log_level: typing.Optional[_aws_solutions_constructs_core_ac4f6ab9.PipesLogLevel] = None,
|
323
370
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
@@ -325,9 +372,9 @@ class SqsToPipesToStepfunctionsProps:
|
|
325
372
|
pipe_props: typing.Any = None,
|
326
373
|
queue_encryption_key_props: typing.Optional[typing.Union[_aws_cdk_aws_kms_ceddda9d.KeyProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
327
374
|
queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
375
|
+
state_machine_props: typing.Optional[typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
328
376
|
) -> None:
|
329
377
|
'''
|
330
|
-
:param state_machine_props: User provided props for the sfn.StateMachine.
|
331
378
|
:param create_cloud_watch_alarms: Whether to create recommended CloudWatch alarms. default = true
|
332
379
|
:param dead_letter_queue_props: Optional user-provided props to override the default props for the dead letter SQS queue.
|
333
380
|
:param deploy_dead_letter_queue: Whether to create a secondary queue to be used as a dead letter queue. default = true.
|
@@ -336,6 +383,7 @@ class SqsToPipesToStepfunctionsProps:
|
|
336
383
|
:param enrichment_state_machine: Optional - Step Functions state machine that the construct will configure to be called to enrich the message between source and target. The construct will configure the pipe IAM role to allow executing the state machine (but will not affect the IAM role assigned to the state machine). Specifying both this and enrichmentStateMachine is an error. Enrichment is invoked synchronously, so this must be an EXPRESS state machin. Default - undefined
|
337
384
|
:param existing_queue_encryption_key: An optional CMK that will be used by the construct to encrypt the new SQS queue.
|
338
385
|
:param existing_queue_obj: An optional, existing SQS queue to be used instead of the default queue. Providing both this and queueProps will cause an error.
|
386
|
+
:param existing_state_machine_obj: Optional existing state machine to incorporate into the construct.
|
339
387
|
:param log_group_props: Optional user provided props to override the default props for for the CloudWatchLogs LogGroup.
|
340
388
|
:param log_level: Threshold for what messages the new pipe sends to the log, PipesLogLevel.OFF, PipesLogLevel.ERROR, PipesLogLevel.INFO, PipesLogLevel.TRACE. The default is INFO. Setting the level to OFF will prevent any log group from being created. Providing pipeProps.logConfiguration will controls all aspects of logging and any construct provided log configuration is disabled. If pipeProps.logConfiguration is provided then specifying this or pipeLogProps is an error.
|
341
389
|
:param max_receive_count: The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Defaults to 15.
|
@@ -343,11 +391,10 @@ class SqsToPipesToStepfunctionsProps:
|
|
343
391
|
:param pipe_props: Optional customer provided settings for the EventBridge pipe. source, target and roleArn are set by the construct and cannot be overriden. The construct will generate default sourceParameters, targetParameters and logConfiguration that can be overriden by populating those values in these props. If the client wants to implement enrichment or a filter, this is where that information can be provided. Any other props can be freely overridden.
|
344
392
|
:param queue_encryption_key_props: An optional subset of key properties to override the default properties used by constructs (enableKeyRotation: true). These properties will be used in constructing the CMK used to encrypt the SQS queue.
|
345
393
|
:param queue_props: Optional user provided properties to override the default properties for the SQS queue.
|
394
|
+
:param state_machine_props: User provided props for the sfn.StateMachine. This or existingStateMachine is required.
|
346
395
|
|
347
396
|
:summary: The properties for the SnsToSqs class.
|
348
397
|
'''
|
349
|
-
if isinstance(state_machine_props, dict):
|
350
|
-
state_machine_props = _aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps(**state_machine_props)
|
351
398
|
if isinstance(dead_letter_queue_props, dict):
|
352
399
|
dead_letter_queue_props = _aws_cdk_aws_sqs_ceddda9d.QueueProps(**dead_letter_queue_props)
|
353
400
|
if isinstance(log_group_props, dict):
|
@@ -358,9 +405,10 @@ class SqsToPipesToStepfunctionsProps:
|
|
358
405
|
queue_encryption_key_props = _aws_cdk_aws_kms_ceddda9d.KeyProps(**queue_encryption_key_props)
|
359
406
|
if isinstance(queue_props, dict):
|
360
407
|
queue_props = _aws_cdk_aws_sqs_ceddda9d.QueueProps(**queue_props)
|
408
|
+
if isinstance(state_machine_props, dict):
|
409
|
+
state_machine_props = _aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps(**state_machine_props)
|
361
410
|
if __debug__:
|
362
411
|
type_hints = typing.get_type_hints(_typecheckingstub__194e6c5b4126faff541334ee4c6e09b0eb05d31358b8eba12e563e86b30c14c1)
|
363
|
-
check_type(argname="argument state_machine_props", value=state_machine_props, expected_type=type_hints["state_machine_props"])
|
364
412
|
check_type(argname="argument create_cloud_watch_alarms", value=create_cloud_watch_alarms, expected_type=type_hints["create_cloud_watch_alarms"])
|
365
413
|
check_type(argname="argument dead_letter_queue_props", value=dead_letter_queue_props, expected_type=type_hints["dead_letter_queue_props"])
|
366
414
|
check_type(argname="argument deploy_dead_letter_queue", value=deploy_dead_letter_queue, expected_type=type_hints["deploy_dead_letter_queue"])
|
@@ -369,6 +417,7 @@ class SqsToPipesToStepfunctionsProps:
|
|
369
417
|
check_type(argname="argument enrichment_state_machine", value=enrichment_state_machine, expected_type=type_hints["enrichment_state_machine"])
|
370
418
|
check_type(argname="argument existing_queue_encryption_key", value=existing_queue_encryption_key, expected_type=type_hints["existing_queue_encryption_key"])
|
371
419
|
check_type(argname="argument existing_queue_obj", value=existing_queue_obj, expected_type=type_hints["existing_queue_obj"])
|
420
|
+
check_type(argname="argument existing_state_machine_obj", value=existing_state_machine_obj, expected_type=type_hints["existing_state_machine_obj"])
|
372
421
|
check_type(argname="argument log_group_props", value=log_group_props, expected_type=type_hints["log_group_props"])
|
373
422
|
check_type(argname="argument log_level", value=log_level, expected_type=type_hints["log_level"])
|
374
423
|
check_type(argname="argument max_receive_count", value=max_receive_count, expected_type=type_hints["max_receive_count"])
|
@@ -376,9 +425,8 @@ class SqsToPipesToStepfunctionsProps:
|
|
376
425
|
check_type(argname="argument pipe_props", value=pipe_props, expected_type=type_hints["pipe_props"])
|
377
426
|
check_type(argname="argument queue_encryption_key_props", value=queue_encryption_key_props, expected_type=type_hints["queue_encryption_key_props"])
|
378
427
|
check_type(argname="argument queue_props", value=queue_props, expected_type=type_hints["queue_props"])
|
379
|
-
|
380
|
-
|
381
|
-
}
|
428
|
+
check_type(argname="argument state_machine_props", value=state_machine_props, expected_type=type_hints["state_machine_props"])
|
429
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
382
430
|
if create_cloud_watch_alarms is not None:
|
383
431
|
self._values["create_cloud_watch_alarms"] = create_cloud_watch_alarms
|
384
432
|
if dead_letter_queue_props is not None:
|
@@ -395,6 +443,8 @@ class SqsToPipesToStepfunctionsProps:
|
|
395
443
|
self._values["existing_queue_encryption_key"] = existing_queue_encryption_key
|
396
444
|
if existing_queue_obj is not None:
|
397
445
|
self._values["existing_queue_obj"] = existing_queue_obj
|
446
|
+
if existing_state_machine_obj is not None:
|
447
|
+
self._values["existing_state_machine_obj"] = existing_state_machine_obj
|
398
448
|
if log_group_props is not None:
|
399
449
|
self._values["log_group_props"] = log_group_props
|
400
450
|
if log_level is not None:
|
@@ -409,15 +459,8 @@ class SqsToPipesToStepfunctionsProps:
|
|
409
459
|
self._values["queue_encryption_key_props"] = queue_encryption_key_props
|
410
460
|
if queue_props is not None:
|
411
461
|
self._values["queue_props"] = queue_props
|
412
|
-
|
413
|
-
|
414
|
-
def state_machine_props(
|
415
|
-
self,
|
416
|
-
) -> _aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps:
|
417
|
-
'''User provided props for the sfn.StateMachine.'''
|
418
|
-
result = self._values.get("state_machine_props")
|
419
|
-
assert result is not None, "Required property 'state_machine_props' is missing"
|
420
|
-
return typing.cast(_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, result)
|
462
|
+
if state_machine_props is not None:
|
463
|
+
self._values["state_machine_props"] = state_machine_props
|
421
464
|
|
422
465
|
@builtins.property
|
423
466
|
def create_cloud_watch_alarms(self) -> typing.Optional[builtins.bool]:
|
@@ -504,6 +547,14 @@ class SqsToPipesToStepfunctionsProps:
|
|
504
547
|
result = self._values.get("existing_queue_obj")
|
505
548
|
return typing.cast(typing.Optional[_aws_cdk_aws_sqs_ceddda9d.Queue], result)
|
506
549
|
|
550
|
+
@builtins.property
|
551
|
+
def existing_state_machine_obj(
|
552
|
+
self,
|
553
|
+
) -> typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine]:
|
554
|
+
'''Optional existing state machine to incorporate into the construct.'''
|
555
|
+
result = self._values.get("existing_state_machine_obj")
|
556
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine], result)
|
557
|
+
|
507
558
|
@builtins.property
|
508
559
|
def log_group_props(
|
509
560
|
self,
|
@@ -572,6 +623,14 @@ class SqsToPipesToStepfunctionsProps:
|
|
572
623
|
result = self._values.get("queue_props")
|
573
624
|
return typing.cast(typing.Optional[_aws_cdk_aws_sqs_ceddda9d.QueueProps], result)
|
574
625
|
|
626
|
+
@builtins.property
|
627
|
+
def state_machine_props(
|
628
|
+
self,
|
629
|
+
) -> typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps]:
|
630
|
+
'''User provided props for the sfn.StateMachine. This or existingStateMachine is required.'''
|
631
|
+
result = self._values.get("state_machine_props")
|
632
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps], result)
|
633
|
+
|
575
634
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
576
635
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
577
636
|
|
@@ -596,7 +655,6 @@ def _typecheckingstub__ceb1c3c4d051238d574ab5b99dbf3c5e745042f472b80f152d0f11b3d
|
|
596
655
|
scope: _constructs_77d1e7e8.Construct,
|
597
656
|
id: builtins.str,
|
598
657
|
*,
|
599
|
-
state_machine_props: typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]],
|
600
658
|
create_cloud_watch_alarms: typing.Optional[builtins.bool] = None,
|
601
659
|
dead_letter_queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
602
660
|
deploy_dead_letter_queue: typing.Optional[builtins.bool] = None,
|
@@ -605,6 +663,7 @@ def _typecheckingstub__ceb1c3c4d051238d574ab5b99dbf3c5e745042f472b80f152d0f11b3d
|
|
605
663
|
enrichment_state_machine: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
606
664
|
existing_queue_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
|
607
665
|
existing_queue_obj: typing.Optional[_aws_cdk_aws_sqs_ceddda9d.Queue] = None,
|
666
|
+
existing_state_machine_obj: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
608
667
|
log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
609
668
|
log_level: typing.Optional[_aws_solutions_constructs_core_ac4f6ab9.PipesLogLevel] = None,
|
610
669
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
@@ -612,13 +671,13 @@ def _typecheckingstub__ceb1c3c4d051238d574ab5b99dbf3c5e745042f472b80f152d0f11b3d
|
|
612
671
|
pipe_props: typing.Any = None,
|
613
672
|
queue_encryption_key_props: typing.Optional[typing.Union[_aws_cdk_aws_kms_ceddda9d.KeyProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
614
673
|
queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
674
|
+
state_machine_props: typing.Optional[typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
615
675
|
) -> None:
|
616
676
|
"""Type checking stubs"""
|
617
677
|
pass
|
618
678
|
|
619
679
|
def _typecheckingstub__194e6c5b4126faff541334ee4c6e09b0eb05d31358b8eba12e563e86b30c14c1(
|
620
680
|
*,
|
621
|
-
state_machine_props: typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]],
|
622
681
|
create_cloud_watch_alarms: typing.Optional[builtins.bool] = None,
|
623
682
|
dead_letter_queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
624
683
|
deploy_dead_letter_queue: typing.Optional[builtins.bool] = None,
|
@@ -627,6 +686,7 @@ def _typecheckingstub__194e6c5b4126faff541334ee4c6e09b0eb05d31358b8eba12e563e86b
|
|
627
686
|
enrichment_state_machine: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
628
687
|
existing_queue_encryption_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.Key] = None,
|
629
688
|
existing_queue_obj: typing.Optional[_aws_cdk_aws_sqs_ceddda9d.Queue] = None,
|
689
|
+
existing_state_machine_obj: typing.Optional[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachine] = None,
|
630
690
|
log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
631
691
|
log_level: typing.Optional[_aws_solutions_constructs_core_ac4f6ab9.PipesLogLevel] = None,
|
632
692
|
max_receive_count: typing.Optional[jsii.Number] = None,
|
@@ -634,6 +694,7 @@ def _typecheckingstub__194e6c5b4126faff541334ee4c6e09b0eb05d31358b8eba12e563e86b
|
|
634
694
|
pipe_props: typing.Any = None,
|
635
695
|
queue_encryption_key_props: typing.Optional[typing.Union[_aws_cdk_aws_kms_ceddda9d.KeyProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
636
696
|
queue_props: typing.Optional[typing.Union[_aws_cdk_aws_sqs_ceddda9d.QueueProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
697
|
+
state_machine_props: typing.Optional[typing.Union[_aws_cdk_aws_stepfunctions_ceddda9d.StateMachineProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
637
698
|
) -> None:
|
638
699
|
"""Type checking stubs"""
|
639
700
|
pass
|
@@ -29,16 +29,15 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
|
|
29
29
|
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
30
30
|
|
31
31
|
import aws_cdk._jsii
|
32
|
-
import aws_cdk.integ_tests_alpha._jsii
|
33
32
|
import aws_solutions_constructs.core._jsii
|
34
33
|
import aws_solutions_constructs.resources._jsii
|
35
34
|
import constructs._jsii
|
36
35
|
|
37
36
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
38
37
|
"@aws-solutions-constructs/aws-sqs-pipes-stepfunctions",
|
39
|
-
"2.
|
38
|
+
"2.75.0",
|
40
39
|
__name__[0:-6],
|
41
|
-
"aws-sqs-pipes-stepfunctions@2.
|
40
|
+
"aws-sqs-pipes-stepfunctions@2.75.0.jsii.tgz",
|
42
41
|
)
|
43
42
|
|
44
43
|
__all__ = [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: aws-solutions-constructs.aws-sqs-pipes-stepfunctions
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.75.0
|
4
4
|
Summary: CDK Constructs for Amazon SQS to AWS Step Functions via Amazon EventBridge Pipes integration.
|
5
5
|
Home-page: https://github.com/awslabs/aws-solutions-constructs.git
|
6
6
|
Author: Amazon Web Services
|
@@ -19,12 +19,11 @@ Classifier: License :: OSI Approved
|
|
19
19
|
Requires-Python: ~=3.8
|
20
20
|
Description-Content-Type: text/markdown
|
21
21
|
License-File: LICENSE
|
22
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
23
|
-
Requires-Dist: aws-
|
24
|
-
Requires-Dist: aws-solutions-constructs.
|
25
|
-
Requires-Dist: aws-solutions-constructs.resources==2.73.0
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.163.1
|
23
|
+
Requires-Dist: aws-solutions-constructs.core==2.75.0
|
24
|
+
Requires-Dist: aws-solutions-constructs.resources==2.75.0
|
26
25
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
26
|
+
Requires-Dist: jsii<2.0.0,>=1.106.0
|
28
27
|
Requires-Dist: publication>=0.0.3
|
29
28
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
30
29
|
|
@@ -60,16 +59,57 @@ Typescript
|
|
60
59
|
```python
|
61
60
|
import { Construct } from 'constructs';
|
62
61
|
import { Stack, StackProps } from 'aws-cdk-lib';
|
63
|
-
import * as
|
62
|
+
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
|
64
63
|
import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
|
65
64
|
|
66
|
-
const startState = new
|
65
|
+
const startState = new sfn.Pass(this, 'StartState');
|
67
66
|
|
68
|
-
new SqsToPipesToStepfunctions(this, '
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
});
|
67
|
+
new SqsToPipesToStepfunctions(this, 'SqsToPipesToStepfunctionsPattern', {
|
68
|
+
stateMachineProps: {
|
69
|
+
definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
|
70
|
+
}
|
71
|
+
});
|
72
|
+
```
|
73
|
+
|
74
|
+
Python
|
75
|
+
|
76
|
+
```python
|
77
|
+
from constructs import Construct
|
78
|
+
from aws_cdk import (
|
79
|
+
aws_stepfunctions as _sfn,
|
80
|
+
Stack
|
81
|
+
)
|
82
|
+
from aws_solutions_constructs import (
|
83
|
+
aws_sqs_pipes_stepfunctions as sqs_pipes_stepfunctions
|
84
|
+
)
|
85
|
+
|
86
|
+
sqs_pipes_stepfunctions.SqsToPipesToStepfunctions(
|
87
|
+
self, 'SqsToPipesToStepfunctions',
|
88
|
+
state_machine_props=_sfn.StateMachineProps(
|
89
|
+
definition_body=_sfn.DefinitionBody.from_chainable(_sfn.Chain.start(_sfn.Pass(self, "pass")))
|
90
|
+
)
|
91
|
+
)
|
92
|
+
```
|
93
|
+
|
94
|
+
Java
|
95
|
+
|
96
|
+
```java
|
97
|
+
package com.myorg;
|
98
|
+
|
99
|
+
import software.constructs.Construct;
|
100
|
+
import software.amazon.awscdk.Stack;
|
101
|
+
import software.amazon.awscdk.StackProps;
|
102
|
+
|
103
|
+
import software.amazon.awscdk.services.stepfunctions.*;
|
104
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctions;
|
105
|
+
import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctionsProps;
|
106
|
+
|
107
|
+
new SqsToPipesToStepfunctions(this, "SqsToLambdaToStepfunctionsPattern",
|
108
|
+
SqsToPipesToStepfunctionsProps.builder()
|
109
|
+
.stateMachineProps(StateMachineProps.builder()
|
110
|
+
.definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(scope, "Pass"))))
|
111
|
+
.build())
|
112
|
+
.build());
|
73
113
|
```
|
74
114
|
|
75
115
|
## Pattern Construct Props
|
@@ -11,4 +11,4 @@ src/aws_solutions_constructs.aws_sqs_pipes_stepfunctions.egg-info/top_level.txt
|
|
11
11
|
src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/__init__.py
|
12
12
|
src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/py.typed
|
13
13
|
src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/__init__.py
|
14
|
-
src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.
|
14
|
+
src/aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.75.0.jsii.tgz
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|