aws-solutions-constructs.aws-sqs-pipes-stepfunctions 2.85.1__py3-none-any.whl → 2.85.3__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.
@@ -1,154 +1,5 @@
1
1
  r'''
2
- # aws-sqs-pipes-stepfunctions module
3
-
4
- <!--BEGIN STABILITY BANNER-->---
5
-
6
-
7
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
8
-
9
- ---
10
- <!--END STABILITY BANNER-->
11
-
12
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
13
- |:-------------|:-------------|
14
-
15
- <div style="height:8px"></div>
16
-
17
- | **Language** | **Package** |
18
- |:-------------|-----------------|
19
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_sqs_pipes_stepfunctions`|
20
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-sqs-pipes-stepfunctions`|
21
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.sqspipesstepfunctions`|
22
-
23
- ## Overview
24
-
25
- This AWS Solutions Construct implements an AWS SQS queue whose messages are passed to an AWS Step Functions state machine by an Amazon Eventbridge pipe.
26
-
27
- Here is a minimal deployable pattern definition:
28
-
29
- Typescript
30
-
31
- ```python
32
- import { Construct } from 'constructs';
33
- import { Stack, StackProps } from 'aws-cdk-lib';
34
- import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
35
- import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
36
-
37
- const startState = new sfn.Pass(this, 'StartState');
38
-
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());
85
- ```
86
-
87
- ## Pattern Construct Props
88
-
89
- | **Name** | **Type** | **Description** |
90
- |:-------------|:----------------|-----------------|
91
- |existingQueueObj?|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|An optional, existing SQS queue to be used instead of the default queue. Providing both this and `queueProps` will cause an error.|
92
- |queueProps?|[`sqs.QueueProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.QueueProps.html)|Optional user provided properties to override the default properties for the SQS queue.|
93
- |encryptQueueWithCmk|`boolean`|Whether to encrypt the Queue with a customer managed KMS key (CMK). This is the default behavior, and this property defaults to true - if it is explicitly set to false then the Queue is encrypted with an Amazon managed KMS key. For a completely unencrypted Queue (not recommended), create the Queue separately from the construct and pass it in using the existingQueueObject. Since SNS subscriptions do not currently support SQS queues with AWS managed encryption keys, setting this to false will always result in an error from the underlying CDK - we have still included this property for consistency with topics and to be ready if the services one day support this functionality.|
94
- |queueEncryptionKeyProps?|[`kms.KeyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html#construct-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.|
95
- |existingQueueEncryptionKey?|[`kms.Key`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html)|An optional CMK that will be used by the construct to encrypt the new SQS queue.|
96
- |deployDeadLetterQueue?|`boolean`|Whether to create a secondary queue to be used as a dead letter queue. Defaults to true.|
97
- |deadLetterQueueProps?|[`sqs.QueueProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.QueueProps.html)|Optional user-provided props to override the default props for the dead letter SQS queue.|
98
- |maxReceiveCount?|`number`|The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Defaults to 15.|
99
- |stateMachineProps|[`sfn.StateMachineProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachineProps.html)|User provided props for the sfn.StateMachine.|
100
- |createCloudWatchAlarms?|`boolean`|Whether to create recommended CloudWatch alarms|
101
- | logGroupProps? | [logs.logGroupProps ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)| Optional user provided props to override the default props for for the CloudWatchLogs LogGroup for the state machine. |
102
- |pipeProps?|[ pipes.CfnPipeProps ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipeProps.html)|Optional customer provided settings for the EventBridge pipe. source, target, roleArn and enrichment settings are set by the construct and cannot be overriden here. The construct will generate default sourceParameters, targetParameters and logConfiguration (found [here](link)) 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. If a client wants to set values such as batchSize, that can be done here in the sourceParameters property.|
103
- | enrichmentFunction? | [lambda.Function ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html) | Optional - Lambda function 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 invoking the function (but will not affect the IArole assigned to the function). Specifying both this and enrichmentStateMachine is an error. Default - undefined |
104
- | enrichmentStateMachine? | [sfn.StateMachine ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachine.html) | 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. Default - undefined |
105
- |logLevel?|PipesLogLevel|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. |
106
- |pipeLogProps?|[logs.LogGroupProps]()| Default behavior is for the this construct to create a new CloudWatch Logs log group for the pipe. These props are used to override defaults set by AWS or this construct. If there are concerns about the cost of log storage, this is where a client can specify a shorter retention duration (in days) |
107
-
108
- ## Pattern Properties
109
-
110
- | **Name** | **Type** | **Description** |
111
- |:-------------|:----------------|-----------------|
112
- |stateMachine|[`sfn.StateMachine`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachine.html)|Returns an instance of StateMachine created by the construct.|
113
- |stateMachineLogGroup|[`logs.ILogGroup`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.ILogGroup.html)|Returns an instance of the ILogGroup created by the construct for StateMachine|
114
- |cloudwatchAlarms?|[`cloudwatch.Alarm[]`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html)|Returns a list of alarms created by the construct.|
115
- |sqsQueue|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|Returns an instance of the SQS queue created by the pattern. |
116
- |deadLetterQueue?|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|Returns an instance of the dead letter queue created by the pattern, if one is deployed.|
117
- |encryptionKey?|[kms.IKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html)|Returns an instance of kms.Key used for the SQS queue if key is customer managed.|
118
- |pipe|[ pipes.CfnPipe](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.html)| The L1 pipe construct created by this Solutions Construct. |
119
- | pipeRole | [iam.Role ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.Role.html) | The role created that allows the pipe to access both the source and the target. |
120
-
121
- ## Default settings
122
-
123
- Out of the box implementation of the Construct without any override will set the following defaults:
124
-
125
- ### Amazon SQS Queue
126
-
127
- * Deploy SQS dead-letter queue for the source SQS Queue.
128
- * Enable server-side encryption for source SQS Queue using AWS Managed KMS Key.
129
- * Enforce encryption of data in transit
130
-
131
- ### AWS Step Functions State Machine
132
-
133
- * Deploy Step Functions standard state machine
134
- * Create CloudWatch log group with /vendedlogs/ prefix in name
135
- * Deploy best practices CloudWatch Alarms for the Step Functions
136
-
137
- ### AWS EventBridge Pipe
138
-
139
- * Pipe configured with an SQS queue source and state machine target
140
- * A least privilege IAM role assigned to the pipe to access the queue and state machine
141
- * CloudWatch logs set up at the 'INFO' level
142
- * Encrypted with an AWS managed KMS key
143
-
144
- ## Architecture
145
-
146
- ![Architecture Diagram](architecture.png)
147
-
148
- ---
149
-
150
-
151
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-sqs-pipes-stepfunctions/README.adoc)
152
3
  '''
153
4
  from pkgutil import extend_path
154
5
  __path__ = extend_path(__path__, __name__)
@@ -35,9 +35,9 @@ import constructs._jsii
35
35
 
36
36
  __jsii_assembly__ = jsii.JSIIAssembly.load(
37
37
  "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions",
38
- "2.85.1",
38
+ "2.85.3",
39
39
  __name__[0:-6],
40
- "aws-sqs-pipes-stepfunctions@2.85.1.jsii.tgz",
40
+ "aws-sqs-pipes-stepfunctions@2.85.3.jsii.tgz",
41
41
  )
42
42
 
43
43
  __all__ = [
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-sqs-pipes-stepfunctions
3
+ Version: 2.85.3
4
+ Summary: CDK Constructs for Amazon SQS to AWS Step Functions via Amazon EventBridge Pipes integration.
5
+ Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
+ Author: Amazon Web Services
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: License :: OSI Approved
18
+ Requires-Python: ~=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.85.3
23
+ Requires-Dist: aws-solutions-constructs.resources==2.85.3
24
+ Requires-Dist: constructs<11.0.0,>=10.0.0
25
+ Requires-Dist: jsii<2.0.0,>=1.111.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
28
+
29
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-sqs-pipes-stepfunctions/README.adoc)
@@ -0,0 +1,9 @@
1
+ aws_solutions_constructs/aws_sqs_pipes_stepfunctions/__init__.py,sha256=WFrpPWNDEYGzelG_ZRLmTkdjCABJyudO7GdGUoj0JRs,38454
2
+ aws_solutions_constructs/aws_sqs_pipes_stepfunctions/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/__init__.py,sha256=cNqg0_aqDbk4emkrxOH_9Ud2ThX1xjhMWsB8xrEyqy8,1597
4
+ aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.85.3.jsii.tgz,sha256=jxp6HYQ_lOEAmklW3diqJBAZ7kj5cRNbVd1kRglXbiw,131463
5
+ aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.3.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
6
+ aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.3.dist-info/METADATA,sha256=2CA7qWxbeerRkylunt1GajMDPQwYREpxucdTb6vxD_s,1392
7
+ aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
8
+ aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.3.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
9
+ aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.3.dist-info/RECORD,,
@@ -1,178 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: aws-solutions-constructs.aws-sqs-pipes-stepfunctions
3
- Version: 2.85.1
4
- Summary: CDK Constructs for Amazon SQS to AWS Step Functions via Amazon EventBridge Pipes integration.
5
- Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
- Author: Amazon Web Services
7
- License: Apache-2.0
8
- Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: JavaScript
12
- Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Typing :: Typed
17
- Classifier: License :: OSI Approved
18
- Requires-Python: ~=3.9
19
- Description-Content-Type: text/markdown
20
- License-File: LICENSE
21
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.193.0
22
- Requires-Dist: aws-solutions-constructs.core==2.85.1
23
- Requires-Dist: aws-solutions-constructs.resources==2.85.1
24
- Requires-Dist: constructs<11.0.0,>=10.0.0
25
- Requires-Dist: jsii<2.0.0,>=1.111.0
26
- Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard<4.3.0,>=2.13.3
28
-
29
- # aws-sqs-pipes-stepfunctions module
30
-
31
- <!--BEGIN STABILITY BANNER-->---
32
-
33
-
34
- ![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)
35
-
36
- ---
37
- <!--END STABILITY BANNER-->
38
-
39
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
40
- |:-------------|:-------------|
41
-
42
- <div style="height:8px"></div>
43
-
44
- | **Language** | **Package** |
45
- |:-------------|-----------------|
46
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_sqs_pipes_stepfunctions`|
47
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-sqs-pipes-stepfunctions`|
48
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.sqspipesstepfunctions`|
49
-
50
- ## Overview
51
-
52
- This AWS Solutions Construct implements an AWS SQS queue whose messages are passed to an AWS Step Functions state machine by an Amazon Eventbridge pipe.
53
-
54
- Here is a minimal deployable pattern definition:
55
-
56
- Typescript
57
-
58
- ```python
59
- import { Construct } from 'constructs';
60
- import { Stack, StackProps } from 'aws-cdk-lib';
61
- import * as sfn from 'aws-cdk-lib/aws-stepfunctions';
62
- import { SqsToPipesToStepfunctions, SqsToPipesToStepfunctionsProps } from "@aws-solutions-constructs/aws-sqs-pipes-stepfunctions";
63
-
64
- const startState = new sfn.Pass(this, 'StartState');
65
-
66
- new SqsToPipesToStepfunctions(this, 'SqsToPipesToStepfunctionsPattern', {
67
- stateMachineProps: {
68
- definitionBody: sfn.DefinitionBody.fromChainable(sfn.Chain.start(new sfn.Pass(this, 'Pass'))),
69
- }
70
- });
71
- ```
72
-
73
- Python
74
-
75
- ```python
76
- from constructs import Construct
77
- from aws_cdk import (
78
- aws_stepfunctions as _sfn,
79
- Stack
80
- )
81
- from aws_solutions_constructs import (
82
- aws_sqs_pipes_stepfunctions as sqs_pipes_stepfunctions
83
- )
84
-
85
- sqs_pipes_stepfunctions.SqsToPipesToStepfunctions(
86
- self, 'SqsToPipesToStepfunctions',
87
- state_machine_props=_sfn.StateMachineProps(
88
- definition_body=_sfn.DefinitionBody.from_chainable(_sfn.Chain.start(_sfn.Pass(self, "pass")))
89
- )
90
- )
91
- ```
92
-
93
- Java
94
-
95
- ```java
96
- package com.myorg;
97
-
98
- import software.constructs.Construct;
99
- import software.amazon.awscdk.Stack;
100
- import software.amazon.awscdk.StackProps;
101
-
102
- import software.amazon.awscdk.services.stepfunctions.*;
103
- import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctions;
104
- import software.amazon.awsconstructs.services.sqspipesstepfunctions.SqsToPipesToStepfunctionsProps;
105
-
106
- new SqsToPipesToStepfunctions(this, "SqsToLambdaToStepfunctionsPattern",
107
- SqsToPipesToStepfunctionsProps.builder()
108
- .stateMachineProps(StateMachineProps.builder()
109
- .definitionBody(DefinitionBody.fromChainable(Chain.start(new Pass(scope, "Pass"))))
110
- .build())
111
- .build());
112
- ```
113
-
114
- ## Pattern Construct Props
115
-
116
- | **Name** | **Type** | **Description** |
117
- |:-------------|:----------------|-----------------|
118
- |existingQueueObj?|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|An optional, existing SQS queue to be used instead of the default queue. Providing both this and `queueProps` will cause an error.|
119
- |queueProps?|[`sqs.QueueProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.QueueProps.html)|Optional user provided properties to override the default properties for the SQS queue.|
120
- |encryptQueueWithCmk|`boolean`|Whether to encrypt the Queue with a customer managed KMS key (CMK). This is the default behavior, and this property defaults to true - if it is explicitly set to false then the Queue is encrypted with an Amazon managed KMS key. For a completely unencrypted Queue (not recommended), create the Queue separately from the construct and pass it in using the existingQueueObject. Since SNS subscriptions do not currently support SQS queues with AWS managed encryption keys, setting this to false will always result in an error from the underlying CDK - we have still included this property for consistency with topics and to be ready if the services one day support this functionality.|
121
- |queueEncryptionKeyProps?|[`kms.KeyProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html#construct-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.|
122
- |existingQueueEncryptionKey?|[`kms.Key`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.Key.html)|An optional CMK that will be used by the construct to encrypt the new SQS queue.|
123
- |deployDeadLetterQueue?|`boolean`|Whether to create a secondary queue to be used as a dead letter queue. Defaults to true.|
124
- |deadLetterQueueProps?|[`sqs.QueueProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.QueueProps.html)|Optional user-provided props to override the default props for the dead letter SQS queue.|
125
- |maxReceiveCount?|`number`|The number of times a message can be unsuccessfully dequeued before being moved to the dead letter queue. Defaults to 15.|
126
- |stateMachineProps|[`sfn.StateMachineProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachineProps.html)|User provided props for the sfn.StateMachine.|
127
- |createCloudWatchAlarms?|`boolean`|Whether to create recommended CloudWatch alarms|
128
- | logGroupProps? | [logs.logGroupProps ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)| Optional user provided props to override the default props for for the CloudWatchLogs LogGroup for the state machine. |
129
- |pipeProps?|[ pipes.CfnPipeProps ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipeProps.html)|Optional customer provided settings for the EventBridge pipe. source, target, roleArn and enrichment settings are set by the construct and cannot be overriden here. The construct will generate default sourceParameters, targetParameters and logConfiguration (found [here](link)) 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. If a client wants to set values such as batchSize, that can be done here in the sourceParameters property.|
130
- | enrichmentFunction? | [lambda.Function ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html) | Optional - Lambda function 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 invoking the function (but will not affect the IArole assigned to the function). Specifying both this and enrichmentStateMachine is an error. Default - undefined |
131
- | enrichmentStateMachine? | [sfn.StateMachine ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachine.html) | 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. Default - undefined |
132
- |logLevel?|PipesLogLevel|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. |
133
- |pipeLogProps?|[logs.LogGroupProps]()| Default behavior is for the this construct to create a new CloudWatch Logs log group for the pipe. These props are used to override defaults set by AWS or this construct. If there are concerns about the cost of log storage, this is where a client can specify a shorter retention duration (in days) |
134
-
135
- ## Pattern Properties
136
-
137
- | **Name** | **Type** | **Description** |
138
- |:-------------|:----------------|-----------------|
139
- |stateMachine|[`sfn.StateMachine`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.StateMachine.html)|Returns an instance of StateMachine created by the construct.|
140
- |stateMachineLogGroup|[`logs.ILogGroup`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.ILogGroup.html)|Returns an instance of the ILogGroup created by the construct for StateMachine|
141
- |cloudwatchAlarms?|[`cloudwatch.Alarm[]`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.Alarm.html)|Returns a list of alarms created by the construct.|
142
- |sqsQueue|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|Returns an instance of the SQS queue created by the pattern. |
143
- |deadLetterQueue?|[`sqs.Queue`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sqs.Queue.html)|Returns an instance of the dead letter queue created by the pattern, if one is deployed.|
144
- |encryptionKey?|[kms.IKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kms.IKey.html)|Returns an instance of kms.Key used for the SQS queue if key is customer managed.|
145
- |pipe|[ pipes.CfnPipe](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_pipes.CfnPipe.html)| The L1 pipe construct created by this Solutions Construct. |
146
- | pipeRole | [iam.Role ](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.Role.html) | The role created that allows the pipe to access both the source and the target. |
147
-
148
- ## Default settings
149
-
150
- Out of the box implementation of the Construct without any override will set the following defaults:
151
-
152
- ### Amazon SQS Queue
153
-
154
- * Deploy SQS dead-letter queue for the source SQS Queue.
155
- * Enable server-side encryption for source SQS Queue using AWS Managed KMS Key.
156
- * Enforce encryption of data in transit
157
-
158
- ### AWS Step Functions State Machine
159
-
160
- * Deploy Step Functions standard state machine
161
- * Create CloudWatch log group with /vendedlogs/ prefix in name
162
- * Deploy best practices CloudWatch Alarms for the Step Functions
163
-
164
- ### AWS EventBridge Pipe
165
-
166
- * Pipe configured with an SQS queue source and state machine target
167
- * A least privilege IAM role assigned to the pipe to access the queue and state machine
168
- * CloudWatch logs set up at the 'INFO' level
169
- * Encrypted with an AWS managed KMS key
170
-
171
- ## Architecture
172
-
173
- ![Architecture Diagram](architecture.png)
174
-
175
- ---
176
-
177
-
178
- © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
@@ -1,9 +0,0 @@
1
- aws_solutions_constructs/aws_sqs_pipes_stepfunctions/__init__.py,sha256=OANEpN3dws9TNkb1xhfwJbAnPn7U47QrG8XeOQadXZ8,49071
2
- aws_solutions_constructs/aws_sqs_pipes_stepfunctions/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/__init__.py,sha256=Y_2F4HxxY_Pvyo9MP4FCvMIdoohzW_zv5zjoM_G6FPM,1597
4
- aws_solutions_constructs/aws_sqs_pipes_stepfunctions/_jsii/aws-sqs-pipes-stepfunctions@2.85.1.jsii.tgz,sha256=IOY7qwnJyF64npLX1Mj_wbAAb4Bcr7eX7OAM9Mx0yjg,134778
5
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.1.dist-info/LICENSE,sha256=wnT4A3LZDAEpNzcPDh8VCH0i4wjvmLJ86l3A0tCINmw,10279
6
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.1.dist-info/METADATA,sha256=sx6mEVmPnfH5evlj3Xw9Gun22TjueVp0WqI4ZW0GJL8,12009
7
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
8
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.1.dist-info/top_level.txt,sha256=hi3us_KW7V1ocfOqVsNq1o3w552jCEgu_KsCckqYWsg,25
9
- aws_solutions_constructs_aws_sqs_pipes_stepfunctions-2.85.1.dist-info/RECORD,,