aws-solutions-constructs.aws-openapigateway-lambda 2.67.1__tar.gz → 2.69.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_openapigateway_lambda-2.67.1/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/PKG-INFO +8 -7
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/README.md +1 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/setup.py +8 -8
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/src/aws_solutions_constructs/aws_openapigateway_lambda/__init__.py +39 -1
- aws_solutions_constructs_aws_openapigateway_lambda-2.69.0/src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/__init__.py +48 -0
- aws_solutions_constructs_aws_openapigateway_lambda-2.69.0/src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/aws-openapigateway-lambda@2.69.0.jsii.tgz +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info}/PKG-INFO +8 -7
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/SOURCES.txt +1 -1
- aws_solutions_constructs_aws_openapigateway_lambda-2.69.0/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/requires.txt +8 -0
- aws_solutions_constructs_aws_openapigateway_lambda-2.67.1/src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/__init__.py +0 -33
- aws_solutions_constructs_aws_openapigateway_lambda-2.67.1/src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/aws-openapigateway-lambda@2.67.1.jsii.tgz +0 -0
- aws_solutions_constructs_aws_openapigateway_lambda-2.67.1/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/requires.txt +0 -8
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/LICENSE +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/MANIFEST.in +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/pyproject.toml +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/setup.cfg +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/src/aws_solutions_constructs/aws_openapigateway_lambda/py.typed +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/dependency_links.txt +0 -0
- {aws_solutions_constructs_aws_openapigateway_lambda-2.67.1 → aws_solutions_constructs_aws_openapigateway_lambda-2.69.0}/src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-solutions-constructs.aws-openapigateway-lambda
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.69.0
|
|
4
4
|
Summary: CDK constructs for defining an interaction between an OpenAPI-defined API Gateway and one or more Lambda functions.
|
|
5
5
|
Home-page: https://github.com/awslabs/aws-solutions-constructs.git
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -19,14 +19,14 @@ 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
|
|
23
|
-
Requires-Dist: aws-cdk.integ-tests-alpha==2.
|
|
24
|
-
Requires-Dist: aws-solutions-constructs.core==2.
|
|
25
|
-
Requires-Dist: aws-solutions-constructs.resources==2.
|
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.154.1
|
|
23
|
+
Requires-Dist: aws-cdk.integ-tests-alpha==2.154.1.a0
|
|
24
|
+
Requires-Dist: aws-solutions-constructs.core==2.69.0
|
|
25
|
+
Requires-Dist: aws-solutions-constructs.resources==2.69.0
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
27
|
+
Requires-Dist: jsii<2.0.0,>=1.103.1
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|
|
29
|
-
Requires-Dist: typeguard
|
|
29
|
+
Requires-Dist: typeguard<5.0.0,>=2.13.3
|
|
30
30
|
|
|
31
31
|
# aws-openapigateway-lambda module
|
|
32
32
|
|
|
@@ -160,6 +160,7 @@ new OpenApiGatewayToLambda(this, "OpenApiGatewayToLambda", OpenApiGatewayToLambd
|
|
|
160
160
|
|apiDefinitionBucket?|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|S3 Bucket where the OpenAPI spec file is located. When specifying this property, `apiDefinitionKey` must also be specified.|
|
|
161
161
|
|apiDefinitionKey?|`string`|S3 Object name of the OpenAPI spec file. When specifying this property, `apiDefinitionBucket` must also be specified.|
|
|
162
162
|
|apiDefinitionAsset?|[`aws_s3_assets.Asset`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)|Local file asset of the OpenAPI spec file.|
|
|
163
|
+
|apiDefinitionJson?|any|OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.|
|
|
163
164
|
|apiIntegrations|`ApiIntegration[]`|One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Please see the `Overview of how the OpenAPI file transformation works` section below for more usage details.|
|
|
164
165
|
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)|User provided props to override the default props for for the CloudWatchLogs LogGroup.|
|
|
165
166
|
|
|
@@ -130,6 +130,7 @@ new OpenApiGatewayToLambda(this, "OpenApiGatewayToLambda", OpenApiGatewayToLambd
|
|
|
130
130
|
|apiDefinitionBucket?|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|S3 Bucket where the OpenAPI spec file is located. When specifying this property, `apiDefinitionKey` must also be specified.|
|
|
131
131
|
|apiDefinitionKey?|`string`|S3 Object name of the OpenAPI spec file. When specifying this property, `apiDefinitionBucket` must also be specified.|
|
|
132
132
|
|apiDefinitionAsset?|[`aws_s3_assets.Asset`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)|Local file asset of the OpenAPI spec file.|
|
|
133
|
+
|apiDefinitionJson?|any|OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.|
|
|
133
134
|
|apiIntegrations|`ApiIntegration[]`|One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Please see the `Overview of how the OpenAPI file transformation works` section below for more usage details.|
|
|
134
135
|
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)|User provided props to override the default props for for the CloudWatchLogs LogGroup.|
|
|
135
136
|
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "aws-solutions-constructs.aws-openapigateway-lambda",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.69.0",
|
|
9
9
|
"description": "CDK constructs for defining an interaction between an OpenAPI-defined API Gateway and one or more Lambda functions.",
|
|
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_openapigateway_lambda._jsii": [
|
|
29
|
-
"aws-openapigateway-lambda@2.
|
|
29
|
+
"aws-openapigateway-lambda@2.69.0.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"aws_solutions_constructs.aws_openapigateway_lambda": [
|
|
32
32
|
"py.typed"
|
|
@@ -34,14 +34,14 @@ kwargs = json.loads(
|
|
|
34
34
|
},
|
|
35
35
|
"python_requires": "~=3.8",
|
|
36
36
|
"install_requires": [
|
|
37
|
-
"aws-cdk-lib
|
|
38
|
-
"aws-cdk.integ-tests-alpha==2.
|
|
39
|
-
"aws-solutions-constructs.core==2.
|
|
40
|
-
"aws-solutions-constructs.resources==2.
|
|
37
|
+
"aws-cdk-lib>=2.154.1, <3.0.0",
|
|
38
|
+
"aws-cdk.integ-tests-alpha==2.154.1.a0",
|
|
39
|
+
"aws-solutions-constructs.core==2.69.0",
|
|
40
|
+
"aws-solutions-constructs.resources==2.69.0",
|
|
41
41
|
"constructs>=10.0.0, <11.0.0",
|
|
42
|
-
"jsii>=1.
|
|
42
|
+
"jsii>=1.103.1, <2.0.0",
|
|
43
43
|
"publication>=0.0.3",
|
|
44
|
-
"typeguard
|
|
44
|
+
"typeguard>=2.13.3,<5.0.0"
|
|
45
45
|
],
|
|
46
46
|
"classifiers": [
|
|
47
47
|
"Intended Audience :: Developers",
|
|
@@ -131,6 +131,7 @@ new OpenApiGatewayToLambda(this, "OpenApiGatewayToLambda", OpenApiGatewayToLambd
|
|
|
131
131
|
|apiDefinitionBucket?|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|S3 Bucket where the OpenAPI spec file is located. When specifying this property, `apiDefinitionKey` must also be specified.|
|
|
132
132
|
|apiDefinitionKey?|`string`|S3 Object name of the OpenAPI spec file. When specifying this property, `apiDefinitionBucket` must also be specified.|
|
|
133
133
|
|apiDefinitionAsset?|[`aws_s3_assets.Asset`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)|Local file asset of the OpenAPI spec file.|
|
|
134
|
+
|apiDefinitionJson?|any|OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.|
|
|
134
135
|
|apiIntegrations|`ApiIntegration[]`|One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Please see the `Overview of how the OpenAPI file transformation works` section below for more usage details.|
|
|
135
136
|
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)|User provided props to override the default props for for the CloudWatchLogs LogGroup.|
|
|
136
137
|
|
|
@@ -250,7 +251,22 @@ import jsii
|
|
|
250
251
|
import publication
|
|
251
252
|
import typing_extensions
|
|
252
253
|
|
|
253
|
-
|
|
254
|
+
import typeguard
|
|
255
|
+
from importlib.metadata import version as _metadata_package_version
|
|
256
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
257
|
+
|
|
258
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
259
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
260
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
261
|
+
else:
|
|
262
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
263
|
+
pass
|
|
264
|
+
else:
|
|
265
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
266
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
267
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
268
|
+
else:
|
|
269
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
254
270
|
|
|
255
271
|
from ._jsii import *
|
|
256
272
|
|
|
@@ -413,6 +429,7 @@ class OpenApiGatewayToLambda(
|
|
|
413
429
|
api_integrations: typing.Sequence[typing.Union[ApiIntegration, typing.Dict[builtins.str, typing.Any]]],
|
|
414
430
|
api_definition_asset: typing.Optional[_aws_cdk_aws_s3_assets_ceddda9d.Asset] = None,
|
|
415
431
|
api_definition_bucket: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
|
|
432
|
+
api_definition_json: typing.Any = None,
|
|
416
433
|
api_definition_key: typing.Optional[builtins.str] = None,
|
|
417
434
|
api_gateway_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.RestApiBaseProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
418
435
|
internal_transform_memory_size: typing.Optional[jsii.Number] = None,
|
|
@@ -425,6 +442,7 @@ class OpenApiGatewayToLambda(
|
|
|
425
442
|
:param api_integrations: One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Example: const apiIntegrations: ApiIntegration[] = [ { id: 'MessagesHandler', lambdaFunctionProps: { runtime: defaults.COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME, handler: 'index.handler', code: lambda.Code.fromAsset(``${__dirname}/messages-lambda``), } }, { id: 'PhotosHandler', existingLambdaObj: new lambda.Function(this, 'PhotosLambda', { runtime: defaults.COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME, handler: 'index.handler', code: lambda.Code.fromAsset(``${__dirname}/photos-lambda``), }) } ]
|
|
426
443
|
:param api_definition_asset: Local file asset of the OpenAPI spec file.
|
|
427
444
|
:param api_definition_bucket: S3 Bucket where the OpenAPI spec file is located. When specifying this property, apiDefinitionKey must also be specified.
|
|
445
|
+
:param api_definition_json: OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.
|
|
428
446
|
:param api_definition_key: S3 Object name of the OpenAPI spec file. When specifying this property, apiDefinitionBucket must also be specified.
|
|
429
447
|
:param api_gateway_props: Optional user-provided props to override the default props for the API. Default: - Default props are used.
|
|
430
448
|
:param internal_transform_memory_size: Optional user-defined memory size for the Lambda function custom resource installed to do the OpenAPI definition transformation. This setting does not affect the deployed architecture - only the ability for the Construct to complete its work. Defaults to 1024 MiB, but for larger files (hundreds of megabytes or gigabytes in size) this value may need to be increased. Default: 1024
|
|
@@ -439,6 +457,7 @@ class OpenApiGatewayToLambda(
|
|
|
439
457
|
api_integrations=api_integrations,
|
|
440
458
|
api_definition_asset=api_definition_asset,
|
|
441
459
|
api_definition_bucket=api_definition_bucket,
|
|
460
|
+
api_definition_json=api_definition_json,
|
|
442
461
|
api_definition_key=api_definition_key,
|
|
443
462
|
api_gateway_props=api_gateway_props,
|
|
444
463
|
internal_transform_memory_size=internal_transform_memory_size,
|
|
@@ -478,6 +497,7 @@ class OpenApiGatewayToLambda(
|
|
|
478
497
|
"api_integrations": "apiIntegrations",
|
|
479
498
|
"api_definition_asset": "apiDefinitionAsset",
|
|
480
499
|
"api_definition_bucket": "apiDefinitionBucket",
|
|
500
|
+
"api_definition_json": "apiDefinitionJson",
|
|
481
501
|
"api_definition_key": "apiDefinitionKey",
|
|
482
502
|
"api_gateway_props": "apiGatewayProps",
|
|
483
503
|
"internal_transform_memory_size": "internalTransformMemorySize",
|
|
@@ -492,6 +512,7 @@ class OpenApiGatewayToLambdaProps:
|
|
|
492
512
|
api_integrations: typing.Sequence[typing.Union[ApiIntegration, typing.Dict[builtins.str, typing.Any]]],
|
|
493
513
|
api_definition_asset: typing.Optional[_aws_cdk_aws_s3_assets_ceddda9d.Asset] = None,
|
|
494
514
|
api_definition_bucket: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
|
|
515
|
+
api_definition_json: typing.Any = None,
|
|
495
516
|
api_definition_key: typing.Optional[builtins.str] = None,
|
|
496
517
|
api_gateway_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.RestApiBaseProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
497
518
|
internal_transform_memory_size: typing.Optional[jsii.Number] = None,
|
|
@@ -502,6 +523,7 @@ class OpenApiGatewayToLambdaProps:
|
|
|
502
523
|
:param api_integrations: One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Example: const apiIntegrations: ApiIntegration[] = [ { id: 'MessagesHandler', lambdaFunctionProps: { runtime: defaults.COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME, handler: 'index.handler', code: lambda.Code.fromAsset(``${__dirname}/messages-lambda``), } }, { id: 'PhotosHandler', existingLambdaObj: new lambda.Function(this, 'PhotosLambda', { runtime: defaults.COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME, handler: 'index.handler', code: lambda.Code.fromAsset(``${__dirname}/photos-lambda``), }) } ]
|
|
503
524
|
:param api_definition_asset: Local file asset of the OpenAPI spec file.
|
|
504
525
|
:param api_definition_bucket: S3 Bucket where the OpenAPI spec file is located. When specifying this property, apiDefinitionKey must also be specified.
|
|
526
|
+
:param api_definition_json: OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.
|
|
505
527
|
:param api_definition_key: S3 Object name of the OpenAPI spec file. When specifying this property, apiDefinitionBucket must also be specified.
|
|
506
528
|
:param api_gateway_props: Optional user-provided props to override the default props for the API. Default: - Default props are used.
|
|
507
529
|
:param internal_transform_memory_size: Optional user-defined memory size for the Lambda function custom resource installed to do the OpenAPI definition transformation. This setting does not affect the deployed architecture - only the ability for the Construct to complete its work. Defaults to 1024 MiB, but for larger files (hundreds of megabytes or gigabytes in size) this value may need to be increased. Default: 1024
|
|
@@ -517,6 +539,7 @@ class OpenApiGatewayToLambdaProps:
|
|
|
517
539
|
check_type(argname="argument api_integrations", value=api_integrations, expected_type=type_hints["api_integrations"])
|
|
518
540
|
check_type(argname="argument api_definition_asset", value=api_definition_asset, expected_type=type_hints["api_definition_asset"])
|
|
519
541
|
check_type(argname="argument api_definition_bucket", value=api_definition_bucket, expected_type=type_hints["api_definition_bucket"])
|
|
542
|
+
check_type(argname="argument api_definition_json", value=api_definition_json, expected_type=type_hints["api_definition_json"])
|
|
520
543
|
check_type(argname="argument api_definition_key", value=api_definition_key, expected_type=type_hints["api_definition_key"])
|
|
521
544
|
check_type(argname="argument api_gateway_props", value=api_gateway_props, expected_type=type_hints["api_gateway_props"])
|
|
522
545
|
check_type(argname="argument internal_transform_memory_size", value=internal_transform_memory_size, expected_type=type_hints["internal_transform_memory_size"])
|
|
@@ -529,6 +552,8 @@ class OpenApiGatewayToLambdaProps:
|
|
|
529
552
|
self._values["api_definition_asset"] = api_definition_asset
|
|
530
553
|
if api_definition_bucket is not None:
|
|
531
554
|
self._values["api_definition_bucket"] = api_definition_bucket
|
|
555
|
+
if api_definition_json is not None:
|
|
556
|
+
self._values["api_definition_json"] = api_definition_json
|
|
532
557
|
if api_definition_key is not None:
|
|
533
558
|
self._values["api_definition_key"] = api_definition_key
|
|
534
559
|
if api_gateway_props is not None:
|
|
@@ -587,6 +612,17 @@ class OpenApiGatewayToLambdaProps:
|
|
|
587
612
|
result = self._values.get("api_definition_bucket")
|
|
588
613
|
return typing.cast(typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket], result)
|
|
589
614
|
|
|
615
|
+
@builtins.property
|
|
616
|
+
def api_definition_json(self) -> typing.Any:
|
|
617
|
+
'''OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template.
|
|
618
|
+
|
|
619
|
+
IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but
|
|
620
|
+
there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec
|
|
621
|
+
you should pass your spec as an S3 asset.
|
|
622
|
+
'''
|
|
623
|
+
result = self._values.get("api_definition_json")
|
|
624
|
+
return typing.cast(typing.Any, result)
|
|
625
|
+
|
|
590
626
|
@builtins.property
|
|
591
627
|
def api_definition_key(self) -> typing.Optional[builtins.str]:
|
|
592
628
|
'''S3 Object name of the OpenAPI spec file.
|
|
@@ -689,6 +725,7 @@ def _typecheckingstub__f72b11c0dbf5d67e28186e991bb77d43c6063fb3d69758a2d112ff6a5
|
|
|
689
725
|
api_integrations: typing.Sequence[typing.Union[ApiIntegration, typing.Dict[builtins.str, typing.Any]]],
|
|
690
726
|
api_definition_asset: typing.Optional[_aws_cdk_aws_s3_assets_ceddda9d.Asset] = None,
|
|
691
727
|
api_definition_bucket: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
|
|
728
|
+
api_definition_json: typing.Any = None,
|
|
692
729
|
api_definition_key: typing.Optional[builtins.str] = None,
|
|
693
730
|
api_gateway_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.RestApiBaseProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
694
731
|
internal_transform_memory_size: typing.Optional[jsii.Number] = None,
|
|
@@ -703,6 +740,7 @@ def _typecheckingstub__2cf1c5fb01583839f606ad44a970067741d586951b8ec3e6b0a23aa04
|
|
|
703
740
|
api_integrations: typing.Sequence[typing.Union[ApiIntegration, typing.Dict[builtins.str, typing.Any]]],
|
|
704
741
|
api_definition_asset: typing.Optional[_aws_cdk_aws_s3_assets_ceddda9d.Asset] = None,
|
|
705
742
|
api_definition_bucket: typing.Optional[_aws_cdk_aws_s3_ceddda9d.IBucket] = None,
|
|
743
|
+
api_definition_json: typing.Any = None,
|
|
706
744
|
api_definition_key: typing.Optional[builtins.str] = None,
|
|
707
745
|
api_gateway_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.RestApiBaseProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
708
746
|
internal_transform_memory_size: typing.Optional[jsii.Number] = None,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
from pkgutil import extend_path
|
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
|
3
|
+
|
|
4
|
+
import abc
|
|
5
|
+
import builtins
|
|
6
|
+
import datetime
|
|
7
|
+
import enum
|
|
8
|
+
import typing
|
|
9
|
+
|
|
10
|
+
import jsii
|
|
11
|
+
import publication
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
import typeguard
|
|
15
|
+
from importlib.metadata import version as _metadata_package_version
|
|
16
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
17
|
+
|
|
18
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
19
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
20
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
21
|
+
else:
|
|
22
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
23
|
+
pass
|
|
24
|
+
else:
|
|
25
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
26
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
27
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
28
|
+
else:
|
|
29
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
30
|
+
|
|
31
|
+
import aws_cdk._jsii
|
|
32
|
+
import aws_cdk.integ_tests_alpha._jsii
|
|
33
|
+
import aws_solutions_constructs.core._jsii
|
|
34
|
+
import aws_solutions_constructs.resources._jsii
|
|
35
|
+
import constructs._jsii
|
|
36
|
+
|
|
37
|
+
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
38
|
+
"@aws-solutions-constructs/aws-openapigateway-lambda",
|
|
39
|
+
"2.69.0",
|
|
40
|
+
__name__[0:-6],
|
|
41
|
+
"aws-openapigateway-lambda@2.69.0.jsii.tgz",
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
__all__ = [
|
|
45
|
+
"__jsii_assembly__",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
publication.publish()
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-solutions-constructs.aws-openapigateway-lambda
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.69.0
|
|
4
4
|
Summary: CDK constructs for defining an interaction between an OpenAPI-defined API Gateway and one or more Lambda functions.
|
|
5
5
|
Home-page: https://github.com/awslabs/aws-solutions-constructs.git
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -19,14 +19,14 @@ 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
|
|
23
|
-
Requires-Dist: aws-cdk.integ-tests-alpha==2.
|
|
24
|
-
Requires-Dist: aws-solutions-constructs.core==2.
|
|
25
|
-
Requires-Dist: aws-solutions-constructs.resources==2.
|
|
22
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.154.1
|
|
23
|
+
Requires-Dist: aws-cdk.integ-tests-alpha==2.154.1.a0
|
|
24
|
+
Requires-Dist: aws-solutions-constructs.core==2.69.0
|
|
25
|
+
Requires-Dist: aws-solutions-constructs.resources==2.69.0
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
27
|
+
Requires-Dist: jsii<2.0.0,>=1.103.1
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|
|
29
|
-
Requires-Dist: typeguard
|
|
29
|
+
Requires-Dist: typeguard<5.0.0,>=2.13.3
|
|
30
30
|
|
|
31
31
|
# aws-openapigateway-lambda module
|
|
32
32
|
|
|
@@ -160,6 +160,7 @@ new OpenApiGatewayToLambda(this, "OpenApiGatewayToLambda", OpenApiGatewayToLambd
|
|
|
160
160
|
|apiDefinitionBucket?|[`s3.IBucket`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html)|S3 Bucket where the OpenAPI spec file is located. When specifying this property, `apiDefinitionKey` must also be specified.|
|
|
161
161
|
|apiDefinitionKey?|`string`|S3 Object name of the OpenAPI spec file. When specifying this property, `apiDefinitionBucket` must also be specified.|
|
|
162
162
|
|apiDefinitionAsset?|[`aws_s3_assets.Asset`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_s3_assets.Asset.html)|Local file asset of the OpenAPI spec file.|
|
|
163
|
+
|apiDefinitionJson?|any|OpenAPI specification represented in a JSON object to be embedded in the CloudFormation template. IMPORTANT - Including the spec in the template introduces a risk of the template growing too big, but there are some use cases that require an embedded spec. Unless your use case explicitly requires an embedded spec you should pass your spec as an S3 asset.|
|
|
163
164
|
|apiIntegrations|`ApiIntegration[]`|One or more key-value pairs that contain an id for the api integration and either an existing lambda function or an instance of the LambdaProps. Please see the `Overview of how the OpenAPI file transformation works` section below for more usage details.|
|
|
164
165
|
|logGroupProps?|[`logs.LogGroupProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogGroupProps.html)|User provided props to override the default props for for the CloudWatchLogs LogGroup.|
|
|
165
166
|
|
|
@@ -11,4 +11,4 @@ src/aws_solutions_constructs.aws_openapigateway_lambda.egg-info/top_level.txt
|
|
|
11
11
|
src/aws_solutions_constructs/aws_openapigateway_lambda/__init__.py
|
|
12
12
|
src/aws_solutions_constructs/aws_openapigateway_lambda/py.typed
|
|
13
13
|
src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/__init__.py
|
|
14
|
-
src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/aws-openapigateway-lambda@2.
|
|
14
|
+
src/aws_solutions_constructs/aws_openapigateway_lambda/_jsii/aws-openapigateway-lambda@2.69.0.jsii.tgz
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
from pkgutil import extend_path
|
|
2
|
-
__path__ = extend_path(__path__, __name__)
|
|
3
|
-
|
|
4
|
-
import abc
|
|
5
|
-
import builtins
|
|
6
|
-
import datetime
|
|
7
|
-
import enum
|
|
8
|
-
import typing
|
|
9
|
-
|
|
10
|
-
import jsii
|
|
11
|
-
import publication
|
|
12
|
-
import typing_extensions
|
|
13
|
-
|
|
14
|
-
from typeguard import check_type
|
|
15
|
-
|
|
16
|
-
import aws_cdk._jsii
|
|
17
|
-
import aws_cdk.integ_tests_alpha._jsii
|
|
18
|
-
import aws_solutions_constructs.core._jsii
|
|
19
|
-
import aws_solutions_constructs.resources._jsii
|
|
20
|
-
import constructs._jsii
|
|
21
|
-
|
|
22
|
-
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
23
|
-
"@aws-solutions-constructs/aws-openapigateway-lambda",
|
|
24
|
-
"2.67.1",
|
|
25
|
-
__name__[0:-6],
|
|
26
|
-
"aws-openapigateway-lambda@2.67.1.jsii.tgz",
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
__all__ = [
|
|
30
|
-
"__jsii_assembly__",
|
|
31
|
-
]
|
|
32
|
-
|
|
33
|
-
publication.publish()
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|