@orcabus/platform-cdk-constructs 0.0.103 → 1.0.0
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.
- package/.jsii +285 -30
- package/api-gateway/api-gateway.js +1 -1
- package/api-gateway/config.js +8 -4
- package/deployment-stack-pipeline/artifact-bucket.js +1 -1
- package/deployment-stack-pipeline/pipeline.d.ts +79 -0
- package/deployment-stack-pipeline/pipeline.js +141 -18
- package/dynamodb/index.js +2 -2
- package/ecs/index.js +1 -1
- package/eventbridge-rules/sfn-slack-notification.js +1 -1
- package/lambda/index.js +1 -1
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq/workflow_helpers.py +28 -5
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/file_helpers.py +21 -5
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/models.py +51 -1
- package/monitored-queue/index.js +1 -1
- package/named-lambda-role/index.js +1 -1
- package/package.json +1 -1
- package/provider-function/index.js +1 -1
- package/shared-config/networking.js +2 -2
- package/shared-config/slack.js +1 -1
|
@@ -2,7 +2,9 @@ from typing import (
|
|
|
2
2
|
Optional,
|
|
3
3
|
TypedDict,
|
|
4
4
|
Dict,
|
|
5
|
-
Literal
|
|
5
|
+
Literal,
|
|
6
|
+
NotRequired,
|
|
7
|
+
Any
|
|
6
8
|
)
|
|
7
9
|
|
|
8
10
|
"""
|
|
@@ -49,6 +51,54 @@ StorageClassPriority: Dict[StorageClassType, int] = {
|
|
|
49
51
|
"DeepArchive": 6,
|
|
50
52
|
}
|
|
51
53
|
|
|
54
|
+
EventType = Literal[
|
|
55
|
+
"Created",
|
|
56
|
+
"Deleted",
|
|
57
|
+
"Other"
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
ReasonType = Literal[
|
|
61
|
+
"CreatedPut",
|
|
62
|
+
"CreatedPost",
|
|
63
|
+
"CreatedCopy",
|
|
64
|
+
"CreatedCompleteMultipartUpload",
|
|
65
|
+
"Deleted",
|
|
66
|
+
"DeletedLifecycle",
|
|
67
|
+
"Restored",
|
|
68
|
+
"RestoreExpired",
|
|
69
|
+
"StorageClassChanged",
|
|
70
|
+
"Crawl",
|
|
71
|
+
"Unknown",
|
|
72
|
+
"CrawlRestored"
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
ArchiveStatusType = Literal[
|
|
76
|
+
"ArchiveAccess",
|
|
77
|
+
"DeepArchiveAccess"
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class FileQueryParameters(TypedDict):
|
|
82
|
+
caseSensitive: NotRequired[bool]
|
|
83
|
+
currentState: NotRequired[bool]
|
|
84
|
+
eventType: NotRequired[EventType]
|
|
85
|
+
bucket: NotRequired[str]
|
|
86
|
+
key: NotRequired[str]
|
|
87
|
+
versionId: NotRequired[str]
|
|
88
|
+
eventTime: NotRequired[str]
|
|
89
|
+
size: NotRequired[int]
|
|
90
|
+
sha256: NotRequired[str]
|
|
91
|
+
lastModifiedDate: NotRequired[str]
|
|
92
|
+
eTag: NotRequired[str]
|
|
93
|
+
storageClass: NotRequired[StorageClassType]
|
|
94
|
+
isDeleteMarker: NotRequired[bool]
|
|
95
|
+
reason: NotRequired[ReasonType]
|
|
96
|
+
archiveStatus: NotRequired[ArchiveStatusType]
|
|
97
|
+
isAccessible: NotRequired[bool]
|
|
98
|
+
ingestId: NotRequired[str]
|
|
99
|
+
attributes: NotRequired[Dict[str, Any]]
|
|
100
|
+
|
|
101
|
+
|
|
52
102
|
class FileObject(TypedDict):
|
|
53
103
|
# Identifier
|
|
54
104
|
s3ObjectId: str
|
package/monitored-queue/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const aws_cloudwatch_actions_1 = require("aws-cdk-lib/aws-cloudwatch-actions");
|
|
|
13
13
|
* SNS topic.
|
|
14
14
|
*/
|
|
15
15
|
class MonitoredQueue extends constructs_1.Construct {
|
|
16
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.monitoredQueue.MonitoredQueue", version: "0.0
|
|
16
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.monitoredQueue.MonitoredQueue", version: "1.0.0" };
|
|
17
17
|
queue;
|
|
18
18
|
deadLetterQueue;
|
|
19
19
|
alarm;
|
|
@@ -7,7 +7,7 @@ const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
|
7
7
|
* A construct which represents a named role that a Lambda function can assume.
|
|
8
8
|
*/
|
|
9
9
|
class NamedLambdaRole extends aws_iam_1.Role {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.namedLambdaRole.NamedLambdaRole", version: "0.0
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.namedLambdaRole.NamedLambdaRole", version: "1.0.0" };
|
|
11
11
|
constructor(scope, id, props) {
|
|
12
12
|
super(scope, id, {
|
|
13
13
|
assumedBy: new aws_iam_1.ServicePrincipal("lambda.amazonaws.com"),
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
|
15
15
|
* to the provider framework.
|
|
16
16
|
*/
|
|
17
17
|
class ProviderFunction extends constructs_1.Construct {
|
|
18
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.provider.ProviderFunction", version: "0.0
|
|
18
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.provider.ProviderFunction", version: "1.0.0" };
|
|
19
19
|
_function;
|
|
20
20
|
_response;
|
|
21
21
|
constructor(scope, id, props) {
|
|
@@ -23,7 +23,7 @@ exports.VPC_LOOKUP_PROPS = {
|
|
|
23
23
|
* Helper for looking up the shared OrcaBus VPC.
|
|
24
24
|
*/
|
|
25
25
|
class OrcaBusVpc {
|
|
26
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.networking.OrcaBusVpc", version: "0.0
|
|
26
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.networking.OrcaBusVpc", version: "1.0.0" };
|
|
27
27
|
/**
|
|
28
28
|
* The shared VPC that is used by OrcaBus.
|
|
29
29
|
* @param scope
|
|
@@ -42,7 +42,7 @@ exports.SHARED_SECURITY_GROUP_NAME = "OrcaBusSharedComputeSecurityGroup";
|
|
|
42
42
|
* Helper for looking up the shared compute security group by name.
|
|
43
43
|
*/
|
|
44
44
|
class OrcaBusSharedComputeSecurityGroup {
|
|
45
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.networking.OrcaBusSharedComputeSecurityGroup", version: "0.0
|
|
45
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.networking.OrcaBusSharedComputeSecurityGroup", version: "1.0.0" };
|
|
46
46
|
/**
|
|
47
47
|
* The shared security group that is used by compute resources to access the database.
|
|
48
48
|
* @param scope
|
package/shared-config/slack.js
CHANGED
|
@@ -11,7 +11,7 @@ exports.SLACK_ALERTS_SNS_TOPIC = "AwsChatBotTopic-alerts";
|
|
|
11
11
|
* A helper class to construct the arn for the slack SNS topic.
|
|
12
12
|
*/
|
|
13
13
|
class SlackAlerts {
|
|
14
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.slack.SlackAlerts", version: "0.0
|
|
14
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.sharedConfig.slack.SlackAlerts", version: "1.0.0" };
|
|
15
15
|
/**
|
|
16
16
|
* Format the ARN for the slack alerts SNS topic for the current stack.
|
|
17
17
|
* @param stack
|