@orcabus/platform-cdk-constructs 0.0.35 → 0.0.37
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/models.py +2 -7
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/__init__.py +6 -6
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/create_helpers.py +14 -14
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/models.py +17 -3
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/query_helpers.py +10 -7
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/update_helpers.py +13 -19
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/__init__.py +6 -6
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_unarchiving/update_helpers.py +1 -1
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/filemanager/models.py +6 -1
- package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/utils/requests_helpers.py +18 -14
- 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
|
@@ -6756,6 +6756,6 @@
|
|
|
6756
6756
|
"symbolId": "shared-config/slack:SlackAlerts"
|
|
6757
6757
|
}
|
|
6758
6758
|
},
|
|
6759
|
-
"version": "0.0.
|
|
6760
|
-
"fingerprint": "
|
|
6759
|
+
"version": "0.0.37",
|
|
6760
|
+
"fingerprint": "WJnxu31JCGx88czmTm4wEcOiYLDLTbs658r/FyyoErY="
|
|
6761
6761
|
}
|
|
@@ -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.37" };
|
|
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.37" };
|
|
17
17
|
/**
|
|
18
18
|
* The S3 bucket used to store artifacts for cross-deployment pipelines.
|
|
19
19
|
*/
|
|
@@ -32,7 +32,7 @@ exports.DEFAULT_SYNTH_STEP_PARTIAL_BUILD_SPEC = {
|
|
|
32
32
|
* before using this construct.
|
|
33
33
|
*/
|
|
34
34
|
class DeploymentStackPipeline extends constructs_1.Construct {
|
|
35
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.DeploymentStackPipeline", version: "0.0.
|
|
35
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@orcabus/platform-cdk-constructs.deploymentPipeline.DeploymentStackPipeline", version: "0.0.37" };
|
|
36
36
|
/**
|
|
37
37
|
* The code pipeline construct that is created.
|
|
38
38
|
*/
|
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.37" };
|
|
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.37" };
|
|
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.37" };
|
|
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.37" };
|
|
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
|
|
@@ -180,6 +180,7 @@ class QcStats(TypedDict):
|
|
|
180
180
|
r2Q20Fraction: float
|
|
181
181
|
r1GcFraction: float
|
|
182
182
|
r2GcFraction: float
|
|
183
|
+
duplicationFractionEstimate: float
|
|
183
184
|
|
|
184
185
|
|
|
185
186
|
class ReadCount(TypedDict):
|
|
@@ -218,12 +219,6 @@ class Job(TypedDict):
|
|
|
218
219
|
startTime: datetime
|
|
219
220
|
endTime: Optional[datetime]
|
|
220
221
|
|
|
221
|
-
# Deprecated: Use BoolLiteral instead
|
|
222
|
-
class BoolAllEnum(Enum):
|
|
223
|
-
ALL = "ALL"
|
|
224
|
-
true = True
|
|
225
|
-
false = False
|
|
226
|
-
|
|
227
222
|
BoolLiteral = Literal[
|
|
228
223
|
'ALL',
|
|
229
224
|
True,
|
|
@@ -232,7 +227,7 @@ BoolLiteral = Literal[
|
|
|
232
227
|
|
|
233
228
|
|
|
234
229
|
class FastqGetResponseParameters(TypedDict):
|
|
235
|
-
includeS3Details: NotRequired[
|
|
230
|
+
includeS3Details: NotRequired[bool]
|
|
236
231
|
|
|
237
232
|
|
|
238
233
|
class StandardQueryParameters(TypedDict):
|
package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Dict, Optional
|
|
|
6
6
|
# Local imports
|
|
7
7
|
from .globals import FASTQ_DECOMPRESSION_SUBDOMAIN_NAME
|
|
8
8
|
from ..utils.requests_helpers import (
|
|
9
|
-
get_request_response_results, get_url, patch_request, get_request
|
|
9
|
+
get_request_response_results, get_url, patch_request, get_request, post_request
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
|
|
@@ -46,21 +46,21 @@ def get_fastq_decompression_request_response_results(
|
|
|
46
46
|
|
|
47
47
|
def fastq_decompression_patch_request(
|
|
48
48
|
endpoint: str,
|
|
49
|
-
|
|
49
|
+
json_data: Optional[Dict] = None,
|
|
50
50
|
):
|
|
51
51
|
return patch_request(
|
|
52
52
|
url=get_fastq_decompression_url(endpoint),
|
|
53
|
-
|
|
53
|
+
json_data=json_data
|
|
54
54
|
)
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def fastq_decompression_post_request(
|
|
58
58
|
endpoint: str,
|
|
59
|
-
|
|
59
|
+
json_data: Optional[Dict] = None,
|
|
60
60
|
):
|
|
61
|
-
return
|
|
61
|
+
return post_request(
|
|
62
62
|
url=get_fastq_decompression_url(endpoint),
|
|
63
|
-
|
|
63
|
+
json_data=json_data
|
|
64
64
|
)
|
|
65
65
|
|
|
66
66
|
# Create imports
|
package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/create_helpers.py
CHANGED
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
Create the job
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from typing import
|
|
7
|
+
from typing import Unpack
|
|
8
8
|
|
|
9
9
|
from . import fastq_decompression_post_request
|
|
10
10
|
from .globals import JOB_ENDPOINT
|
|
11
|
-
from .models import Job,
|
|
11
|
+
from .models import Job, JobCreateParameters
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def create_job(
|
|
15
|
-
|
|
16
|
-
output_uri_prefix: str = None,
|
|
17
|
-
job_type: Optional[JobType] = None,
|
|
15
|
+
**kwargs: Unpack[JobCreateParameters]
|
|
18
16
|
) -> Job:
|
|
19
17
|
"""
|
|
20
18
|
Create the job
|
|
21
19
|
"""
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
# Raise error if any of the kwargs are not in the FastqListRowQueryParameters
|
|
22
|
+
for key in kwargs.keys():
|
|
23
|
+
if key not in JobCreateParameters.__annotations__:
|
|
24
|
+
raise ValueError(f"Invalid parameter: {key}")
|
|
25
|
+
|
|
26
|
+
non_null_kwargs = dict(filter(
|
|
27
|
+
lambda kv_iter_: kv_iter_[1] is not None,
|
|
28
|
+
kwargs.items()
|
|
29
|
+
))
|
|
24
30
|
|
|
25
31
|
return fastq_decompression_post_request(
|
|
26
32
|
JOB_ENDPOINT,
|
|
27
|
-
|
|
28
|
-
"fastqIdList": fastq_id_list,
|
|
29
|
-
"jobType": job_type,
|
|
30
|
-
"outputUriPrefix": output_uri_prefix,
|
|
31
|
-
}
|
|
33
|
+
json_data=non_null_kwargs
|
|
32
34
|
)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -16,7 +16,7 @@ from typing import (
|
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
JobType = Literal['FASTQ_DECOMPRESSION']
|
|
19
|
-
|
|
19
|
+
JobStatusType = Literal['PENDING', 'RUNNING', 'FAILED', 'ABORTED', 'SUCCEEDED']
|
|
20
20
|
|
|
21
21
|
# Output jobs
|
|
22
22
|
class DecompressionJobOutputObjectItem(TypedDict):
|
|
@@ -73,20 +73,34 @@ class Job(TypedDict):
|
|
|
73
73
|
id: str
|
|
74
74
|
jobType: JobType
|
|
75
75
|
stepsExecutionArn: str
|
|
76
|
-
status:
|
|
76
|
+
status: JobStatusType
|
|
77
77
|
startTime: str
|
|
78
78
|
endTime: str
|
|
79
79
|
errorMessages: NotRequired[str]
|
|
80
80
|
outputs: NotRequired[JobOutputType]
|
|
81
81
|
|
|
82
82
|
|
|
83
|
+
class JobCreateParameters(TypedDict):
|
|
84
|
+
fastqIdList: List[str]
|
|
85
|
+
jobType: JobType
|
|
86
|
+
maxReads: NotRequired[int]
|
|
87
|
+
outputUriPrefix: NotRequired[str]
|
|
88
|
+
|
|
89
|
+
|
|
83
90
|
class JobQueryParameters(TypedDict):
|
|
84
91
|
fastqId: NotRequired[str]
|
|
85
92
|
fastqSetId: NotRequired[str]
|
|
86
|
-
status: NotRequired[
|
|
93
|
+
status: NotRequired[JobStatusType]
|
|
87
94
|
createdAfter: NotRequired[str]
|
|
88
95
|
createdBefore: NotRequired[str]
|
|
89
96
|
completedAfter: NotRequired[str]
|
|
90
97
|
completedBefore: NotRequired[str]
|
|
91
98
|
page: NotRequired[int]
|
|
92
99
|
rowsPerPage: NotRequired[int]
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class JobUpdateParameters(TypedDict):
|
|
103
|
+
status: JobStatusType
|
|
104
|
+
errorMessage: NotRequired[str]
|
|
105
|
+
stepsExecutionArn: NotRequired[str]
|
|
106
|
+
output: NotRequired[JobOutputType]
|
package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/query_helpers.py
CHANGED
|
@@ -10,11 +10,11 @@ get_unarchiving_job_list
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
12
12
|
# Type hints
|
|
13
|
-
from typing import List, Unpack
|
|
13
|
+
from typing import List, Unpack, Optional
|
|
14
14
|
|
|
15
15
|
# Local imports
|
|
16
16
|
from . import get_fastq_decompression_request_response_results
|
|
17
|
-
from .models import Job,
|
|
17
|
+
from .models import Job, JobStatusType, JobQueryParameters
|
|
18
18
|
from .globals import JOB_ENDPOINT
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,13 +39,16 @@ def get_decompression_job_list(**kwargs: Unpack[JobQueryParameters]) -> List[Job
|
|
|
39
39
|
|
|
40
40
|
def get_job_list_for_fastq(
|
|
41
41
|
fastq_id: str,
|
|
42
|
-
|
|
42
|
+
status: Optional[JobStatusType] = None
|
|
43
43
|
) -> List[Job]:
|
|
44
44
|
"""
|
|
45
45
|
Check if fastq in job list
|
|
46
46
|
:return:
|
|
47
47
|
"""
|
|
48
|
-
return get_decompression_job_list(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
return get_decompression_job_list(**dict(filter(
|
|
49
|
+
lambda kv_iter_: kv_iter_[1] is not None,
|
|
50
|
+
{
|
|
51
|
+
"fastqId": fastq_id,
|
|
52
|
+
"status": status
|
|
53
|
+
}.items()
|
|
54
|
+
)))
|
package/lambda/layers/orcabus_api_tools/src/orcabus_api_tools/fastq_decompression/update_helpers.py
CHANGED
|
@@ -5,39 +5,33 @@ Update helpers for the update script.
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
# Standard imports
|
|
8
|
-
from typing import Optional, Dict, Any
|
|
8
|
+
from typing import Optional, Dict, Any, Unpack
|
|
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,
|
|
13
|
+
from .models import Job, JobUpdateParameters
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def update_status(
|
|
17
17
|
job_id: str,
|
|
18
|
-
|
|
19
|
-
steps_execution_arn: Optional[str] = None,
|
|
20
|
-
error_message: Optional[str] = None,
|
|
21
|
-
output: Optional[Dict[str, JobOutputType]] = None
|
|
18
|
+
**kwargs: Unpack[JobUpdateParameters]
|
|
22
19
|
) -> Job:
|
|
23
20
|
"""
|
|
24
21
|
Add QC stats to a fastq_id.
|
|
25
22
|
|
|
26
|
-
:param job_id:
|
|
27
|
-
:param
|
|
28
|
-
:param steps_execution_arn:
|
|
29
|
-
:param output:
|
|
30
|
-
:param error_message: Optional error message
|
|
23
|
+
:param job_id:
|
|
24
|
+
:param kwargs: JobUpdateStatusParameters
|
|
31
25
|
"""
|
|
26
|
+
# Raise error if any of the kwargs are not in the JobUpdateParameters
|
|
27
|
+
for key in kwargs.keys():
|
|
28
|
+
if key not in JobUpdateParameters.__annotations__:
|
|
29
|
+
raise ValueError(f"Invalid parameter: {key}")
|
|
30
|
+
|
|
32
31
|
return fastq_decompression_patch_request(
|
|
33
32
|
f"{JOB_ENDPOINT}/{job_id}",
|
|
34
|
-
|
|
35
|
-
lambda
|
|
36
|
-
|
|
37
|
-
"status": job_status,
|
|
38
|
-
"errorMessage": error_message,
|
|
39
|
-
"stepsExecutionArn": steps_execution_arn,
|
|
40
|
-
"output": output
|
|
41
|
-
}.items()
|
|
33
|
+
json_data=dict(filter(
|
|
34
|
+
lambda kv_iter_: kv_iter_[1] is not None,
|
|
35
|
+
kwargs.items()
|
|
42
36
|
))
|
|
43
37
|
)
|
|
@@ -9,7 +9,7 @@ from ..utils.requests_helpers import (
|
|
|
9
9
|
get_request_response_results,
|
|
10
10
|
get_url,
|
|
11
11
|
patch_request,
|
|
12
|
-
get_request
|
|
12
|
+
get_request, post_request
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
|
|
@@ -49,21 +49,21 @@ def get_fastq_unarchiving_request_response_results(
|
|
|
49
49
|
|
|
50
50
|
def fastq_unarchiving_patch_request(
|
|
51
51
|
endpoint: str,
|
|
52
|
-
|
|
52
|
+
json_data: Optional[Dict] = None,
|
|
53
53
|
):
|
|
54
54
|
return patch_request(
|
|
55
55
|
url=get_fastq_unarchiving_url(endpoint),
|
|
56
|
-
|
|
56
|
+
json_data=json_data
|
|
57
57
|
)
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
def fastq_unarchiving_post_request(
|
|
61
61
|
endpoint: str,
|
|
62
|
-
|
|
62
|
+
json_data: Optional[Dict] = None,
|
|
63
63
|
):
|
|
64
|
-
return
|
|
64
|
+
return post_request(
|
|
65
65
|
url=get_fastq_unarchiving_url(endpoint),
|
|
66
|
-
|
|
66
|
+
json_data=json_data
|
|
67
67
|
)
|
|
68
68
|
|
|
69
69
|
# Create imports
|
|
@@ -115,17 +115,16 @@ def patch_request(
|
|
|
115
115
|
"Authorization": f"Bearer {get_orcabus_token()}"
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
)
|
|
118
|
+
if json_data is not None:
|
|
119
|
+
headers.update({
|
|
120
|
+
"Content-Type": "application/json"
|
|
121
|
+
})
|
|
123
122
|
|
|
124
123
|
# Make the request
|
|
125
124
|
response = requests.patch(
|
|
126
125
|
url,
|
|
127
126
|
headers=headers,
|
|
128
|
-
params=
|
|
127
|
+
params=params,
|
|
129
128
|
json=json_data
|
|
130
129
|
)
|
|
131
130
|
|
|
@@ -137,29 +136,34 @@ def patch_request(
|
|
|
137
136
|
return response.json()
|
|
138
137
|
|
|
139
138
|
|
|
140
|
-
def post_request(
|
|
139
|
+
def post_request(
|
|
140
|
+
url: str,
|
|
141
|
+
json_data: Optional[Dict] = None,
|
|
142
|
+
params: Optional[Dict] = None
|
|
143
|
+
) -> Dict:
|
|
141
144
|
"""
|
|
142
145
|
Run post request against the fastq endpoint
|
|
146
|
+
:param json_data:
|
|
143
147
|
:param url:
|
|
144
148
|
:param params:
|
|
145
149
|
:return:
|
|
146
150
|
"""
|
|
147
151
|
# Get authorization header
|
|
148
152
|
headers = {
|
|
149
|
-
"Authorization": f"Bearer {get_orcabus_token()}"
|
|
153
|
+
"Authorization": f"Bearer {get_orcabus_token()}",
|
|
150
154
|
}
|
|
151
155
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
)
|
|
156
|
+
if json_data is not None:
|
|
157
|
+
headers.update({
|
|
158
|
+
"Content-Type": "application/json"
|
|
159
|
+
})
|
|
157
160
|
|
|
158
161
|
# Make the request
|
|
159
162
|
response = requests.post(
|
|
160
163
|
url,
|
|
161
164
|
headers=headers,
|
|
162
|
-
json=
|
|
165
|
+
json=json_data,
|
|
166
|
+
params=params
|
|
163
167
|
)
|
|
164
168
|
|
|
165
169
|
try:
|
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: "0.0.37" };
|
|
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: "0.0.37" };
|
|
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.37" };
|
|
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.37" };
|
|
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.37" };
|
|
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.37" };
|
|
15
15
|
/**
|
|
16
16
|
* Format the ARN for the slack alerts SNS topic for the current stack.
|
|
17
17
|
* @param stack
|