@orcabus/platform-cdk-constructs 0.0.28 → 0.0.29
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 +2 -2
- package/api-gateway/api-gateway.js +1 -1
- package/deployment-stack-pipeline/artifact-bucket.js +1 -1
- package/deployment-stack-pipeline/pipeline.js +1 -1
- package/dynamodb/index.js +2 -2
- package/ecs/index.js +1 -1
- package/lambda/index.js +1 -1
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/models.py +50 -9
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/update_helpers.py +5 -3
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/file_helpers.py +4 -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
package/.jsii
CHANGED
|
@@ -6740,6 +6740,6 @@
|
|
|
6740
6740
|
"symbolId": "shared-config/slack:SlackAlerts"
|
|
6741
6741
|
}
|
|
6742
6742
|
},
|
|
6743
|
-
"version": "0.0.
|
|
6744
|
-
"fingerprint": "
|
|
6743
|
+
"version": "0.0.29",
|
|
6744
|
+
"fingerprint": "to2qJ4qhRMxIu8FDi+dQkfjTFHOmV0JnqoO4A+JpGGY="
|
|
6745
6745
|
}
|
|
@@ -15,7 +15,7 @@ const aws_lambda_1 = require("aws-cdk-lib/aws-lambda");
|
|
|
15
15
|
const aws_route53_targets_1 = require("aws-cdk-lib/aws-route53-targets");
|
|
16
16
|
const config_1 = require("./config");
|
|
17
17
|
class OrcaBusApiGateway extends constructs_1.Construct {
|
|
18
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.apigateway.OrcaBusApiGateway", version: "0.0.
|
|
18
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.apigateway.OrcaBusApiGateway", version: "0.0.29" };
|
|
19
19
|
/**
|
|
20
20
|
* The AWS region where the API Gateway is deployed.
|
|
21
21
|
*/
|
|
@@ -13,7 +13,7 @@ exports.CROSS_DEPLOYMENT_ARTIFACT_BUCKET_NAME = "orcabus-cross-deployment-codepi
|
|
|
13
13
|
exports.CROSS_DEPLOYMENT_ARTIFACT_KMS_ALIAS = "orcabus-cross-deployment-codepipeline-artifact";
|
|
14
14
|
exports.CROSS_DEPLOYMENT_ARTIFACT_KMS_ARN_SSM_PARAMETER_NAME = "/orcabus/deployment-stack-pipeline/artifact-bucket/kms-key-arn";
|
|
15
15
|
class CrossDeploymentArtifactBucket extends constructs_1.Construct {
|
|
16
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.CrossDeploymentArtifactBucket", version: "0.0.
|
|
16
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.CrossDeploymentArtifactBucket", version: "0.0.29" };
|
|
17
17
|
/**
|
|
18
18
|
* The S3 bucket used to store artifacts for cross-deployment pipelines.
|
|
19
19
|
*/
|
|
@@ -31,7 +31,7 @@ exports.DEFAULT_SYNTH_STEP_PARTIAL_BUILD_SPEC = {
|
|
|
31
31
|
* before using this construct.
|
|
32
32
|
*/
|
|
33
33
|
class DeploymentStackPipeline extends constructs_1.Construct {
|
|
34
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.DeploymentStackPipeline", version: "0.0.
|
|
34
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.DeploymentStackPipeline", version: "0.0.29" };
|
|
35
35
|
/**
|
|
36
36
|
* The code pipeline construct that is created.
|
|
37
37
|
*/
|
package/dynamodb/index.js
CHANGED
|
@@ -40,7 +40,7 @@ const dynamodb = __importStar(require("aws-cdk-lib/aws-dynamodb"));
|
|
|
40
40
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
41
41
|
const config_1 = require("./config");
|
|
42
42
|
class DynamoDbPartitionedConstruct extends constructs_1.Construct {
|
|
43
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.dynamodb.DynamoDbPartitionedConstruct", version: "0.0.
|
|
43
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.dynamodb.DynamoDbPartitionedConstruct", version: "0.0.29" };
|
|
44
44
|
table;
|
|
45
45
|
constructor(scope, id, props) {
|
|
46
46
|
super(scope, id);
|
|
@@ -75,7 +75,7 @@ class DynamoDbPartitionedConstruct extends constructs_1.Construct {
|
|
|
75
75
|
}
|
|
76
76
|
exports.DynamoDbPartitionedConstruct = DynamoDbPartitionedConstruct;
|
|
77
77
|
class DynamoDbNonPartitionedConstruct extends constructs_1.Construct {
|
|
78
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.dynamodb.DynamoDbNonPartitionedConstruct", version: "0.0.
|
|
78
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.dynamodb.DynamoDbNonPartitionedConstruct", version: "0.0.29" };
|
|
79
79
|
table;
|
|
80
80
|
constructor(scope, id, props) {
|
|
81
81
|
super(scope, id);
|
package/ecs/index.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.LAMBDA_ARCHITECTURE_MAP = {
|
|
|
55
55
|
['ARM64']: lambda.Architecture.ARM_64
|
|
56
56
|
};
|
|
57
57
|
class EcsFargateTaskConstruct extends constructs_1.Construct {
|
|
58
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.ecs.EcsFargateTaskConstruct", version: "0.0.
|
|
58
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.ecs.EcsFargateTaskConstruct", version: "0.0.29" };
|
|
59
59
|
cluster;
|
|
60
60
|
taskDefinition;
|
|
61
61
|
taskExecutionRole;
|
package/lambda/index.js
CHANGED
|
@@ -56,7 +56,7 @@ function getPythonUvDockerImage() {
|
|
|
56
56
|
return aws_cdk_lib_1.DockerImage.fromBuild(path_1.default.join(__dirname, 'build_python'));
|
|
57
57
|
}
|
|
58
58
|
class PythonUvFunction extends aws_lambda_python_alpha_1.PythonFunction {
|
|
59
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.lambda.PythonUvFunction", version: "0.0.
|
|
59
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.lambda.PythonUvFunction", version: "0.0.29" };
|
|
60
60
|
// Class constructs, to be used for caching the layers
|
|
61
61
|
// This means that if there are multiple lambdas throughout the stack
|
|
62
62
|
// They will all use the same layer
|
|
@@ -12,21 +12,62 @@
|
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
14
|
from typing import (
|
|
15
|
-
TypedDict, NotRequired, Literal, List
|
|
15
|
+
TypedDict, NotRequired, Literal, List, Union
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
JobType = Literal['FASTQ_DECOMPRESSION']
|
|
19
19
|
JobStatus = Literal['PENDING', 'RUNNING', 'FAILED', 'ABORTED', 'SUCCEEDED']
|
|
20
20
|
|
|
21
|
+
# Output jobs
|
|
22
|
+
class DecompressionJobOutputObjectItem(TypedDict):
|
|
23
|
+
ingestId: str
|
|
24
|
+
gzipFileUri: str
|
|
21
25
|
|
|
22
|
-
class JobOutput(TypedDict):
|
|
23
|
-
index: str
|
|
24
|
-
lane: str
|
|
25
|
-
libraryId: str
|
|
26
|
-
instrumentRunId: str
|
|
27
|
-
read1FileUriDecompressed: str
|
|
28
|
-
read2FileUriDecompressed: NotRequired[str]
|
|
29
26
|
|
|
27
|
+
class DecompressionJobOutputObjectFastqId(TypedDict):
|
|
28
|
+
fastqId: str
|
|
29
|
+
decompressedFileUriByOraFileIngestIdList: List[DecompressionJobOutputObjectItem]
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class GzipFileSizeCalculationOutputObjectItem(TypedDict):
|
|
33
|
+
ingestId: str
|
|
34
|
+
gzipFileSize: int
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class GzipFileSizeCalculationOutputsFastqId(TypedDict):
|
|
38
|
+
fastqId: str
|
|
39
|
+
gzipFileSizeByOraFileIngestIdList: List[GzipFileSizeCalculationOutputObjectItem]
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class RawMd5sumCalculationOutputsObjectItem(TypedDict):
|
|
43
|
+
ingestId: str
|
|
44
|
+
rawMd5sum: str
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class RawMd5sumCalculationOutputsFastqId(TypedDict):
|
|
48
|
+
fastqId: str
|
|
49
|
+
rawMd5sumByOraFileIngestIdList: List[RawMd5sumCalculationOutputsObjectItem]
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class DecompressionJobOutputObject(TypedDict):
|
|
53
|
+
# Decompressed file URI by ORA file ingest ID list
|
|
54
|
+
decompressedFileList: List[DecompressionJobOutputObjectFastqId]
|
|
55
|
+
|
|
56
|
+
class GzipFileSizeCalculationOutputObject(TypedDict):
|
|
57
|
+
# Gzip file size by ORA file ingest ID list
|
|
58
|
+
gzipFileSizeList: List[GzipFileSizeCalculationOutputsFastqId]
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class RawMd5sumCalculationOutputObject(TypedDict):
|
|
62
|
+
# Raw md5sum by ORA file ingest ID list
|
|
63
|
+
rawMd5sumList: List[RawMd5sumCalculationOutputsFastqId]
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
JobOutputType = Union[
|
|
67
|
+
DecompressionJobOutputObject |
|
|
68
|
+
GzipFileSizeCalculationOutputObject |
|
|
69
|
+
RawMd5sumCalculationOutputObject
|
|
70
|
+
]
|
|
30
71
|
|
|
31
72
|
class Job(TypedDict):
|
|
32
73
|
id: str
|
|
@@ -36,7 +77,7 @@ class Job(TypedDict):
|
|
|
36
77
|
startTime: str
|
|
37
78
|
endTime: str
|
|
38
79
|
errorMessages: NotRequired[str]
|
|
39
|
-
outputs: NotRequired[
|
|
80
|
+
outputs: NotRequired[JobOutputType]
|
|
40
81
|
|
|
41
82
|
|
|
42
83
|
class JobQueryParameters(TypedDict):
|
package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/update_helpers.py
CHANGED
|
@@ -5,12 +5,12 @@ Update helpers for the update script.
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
# Standard imports
|
|
8
|
-
from typing import Optional, Dict
|
|
8
|
+
from typing import Optional, Dict, Any
|
|
9
9
|
|
|
10
10
|
# Local imports
|
|
11
11
|
from . import fastq_decompression_patch_request
|
|
12
12
|
from .globals import JOB_ENDPOINT
|
|
13
|
-
from .models import Job, JobStatus
|
|
13
|
+
from .models import Job, JobStatus, JobOutputType
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def update_status(
|
|
@@ -18,13 +18,15 @@ def update_status(
|
|
|
18
18
|
job_status: JobStatus,
|
|
19
19
|
steps_execution_arn: Optional[str] = None,
|
|
20
20
|
error_message: Optional[str] = None,
|
|
21
|
-
output: Optional[Dict[str,
|
|
21
|
+
output: Optional[Dict[str, JobOutputType]] = None
|
|
22
22
|
) -> Job:
|
|
23
23
|
"""
|
|
24
24
|
Add QC stats to a fastq_id.
|
|
25
25
|
|
|
26
26
|
:param job_id: The job id
|
|
27
27
|
:param job_status: Dictionary of QC stats
|
|
28
|
+
:param steps_execution_arn:
|
|
29
|
+
:param output:
|
|
28
30
|
:param error_message: Optional error message
|
|
29
31
|
"""
|
|
30
32
|
return fastq_decompression_patch_request(
|
|
@@ -337,5 +337,8 @@ def update_ingest_id(s3_object_id: str, new_ingest_id: str) -> Dict:
|
|
|
337
337
|
}
|
|
338
338
|
return file_manager_patch_request(
|
|
339
339
|
endpoint=f"{S3_LIST_ENDPOINT}/{s3_object_id}",
|
|
340
|
-
|
|
340
|
+
json_data=json_data,
|
|
341
|
+
params = {
|
|
342
|
+
"updateTag": json.dumps(True)
|
|
343
|
+
}
|
|
341
344
|
)
|
package/monitored-queue/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const aws_cloudwatch_actions_1 = require("aws-cdk-lib/aws-cloudwatch-actions");
|
|
|
12
12
|
* SNS topic.
|
|
13
13
|
*/
|
|
14
14
|
class MonitoredQueue extends constructs_1.Construct {
|
|
15
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.monitoredQueue.MonitoredQueue", version: "0.0.
|
|
15
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.monitoredQueue.MonitoredQueue", version: "0.0.29" };
|
|
16
16
|
queue;
|
|
17
17
|
deadLetterQueue;
|
|
18
18
|
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: "0.0.29" };
|
|
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: "0.0.29" };
|
|
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: "0.0.29" };
|
|
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: "0.0.29" };
|
|
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: "0.0.29" };
|
|
15
15
|
/**
|
|
16
16
|
* Format the ARN for the slack alerts SNS topic for the current stack.
|
|
17
17
|
* @param stack
|