aws-solutions-constructs.aws-apigateway-lambda 2.79.1__tar.gz → 2.80.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.
Files changed (17) hide show
  1. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1/src/aws_solutions_constructs.aws_apigateway_lambda.egg-info → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/PKG-INFO +4 -3
  2. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/README.md +1 -0
  3. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/setup.py +4 -4
  4. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs/aws_apigateway_lambda/__init__.py +24 -0
  5. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/__init__.py +2 -2
  6. aws_solutions_constructs_aws_apigateway_lambda-2.80.0/src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/aws-apigateway-lambda@2.80.0.jsii.tgz +0 -0
  7. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0/src/aws_solutions_constructs.aws_apigateway_lambda.egg-info}/PKG-INFO +4 -3
  8. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs.aws_apigateway_lambda.egg-info/SOURCES.txt +1 -1
  9. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs.aws_apigateway_lambda.egg-info/requires.txt +2 -2
  10. aws_solutions_constructs_aws_apigateway_lambda-2.79.1/src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/aws-apigateway-lambda@2.79.1.jsii.tgz +0 -0
  11. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/LICENSE +0 -0
  12. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/MANIFEST.in +0 -0
  13. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/pyproject.toml +0 -0
  14. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/setup.cfg +0 -0
  15. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs/aws_apigateway_lambda/py.typed +0 -0
  16. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs.aws_apigateway_lambda.egg-info/dependency_links.txt +0 -0
  17. {aws_solutions_constructs_aws_apigateway_lambda-2.79.1 → aws_solutions_constructs_aws_apigateway_lambda-2.80.0}/src/aws_solutions_constructs.aws_apigateway_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-apigateway-lambda
3
- Version: 2.79.1
3
+ Version: 2.80.0
4
4
  Summary: CDK constructs for defining an interaction between an API Gateway and a Lambda function.
5
5
  Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
6
  Author: Amazon Web Services
@@ -18,8 +18,8 @@ Classifier: License :: OSI Approved
18
18
  Requires-Python: ~=3.9
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.177.0
22
- Requires-Dist: aws-solutions-constructs.core==2.79.1
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.179.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.80.0
23
23
  Requires-Dist: constructs<11.0.0,>=10.0.0
24
24
  Requires-Dist: jsii<2.0.0,>=1.110.0
25
25
  Requires-Dist: publication>=0.0.3
@@ -116,6 +116,7 @@ new ApiGatewayToLambda(this, "ApiGatewayToLambdaPattern", new ApiGatewayToLambda
116
116
  |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
117
117
  |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
118
118
  |apiGatewayProps?|[`api.LambdaRestApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.LambdaRestApi.html)|Optional user-provided props to override the default props for the API.|
119
+ |createUsagePlan?|boolean|Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true. @default - true (to match legacy behavior)|
119
120
  |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.|
120
121
 
121
122
  ## Pattern Properties
@@ -89,6 +89,7 @@ new ApiGatewayToLambda(this, "ApiGatewayToLambdaPattern", new ApiGatewayToLambda
89
89
  |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
90
90
  |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
91
91
  |apiGatewayProps?|[`api.LambdaRestApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.LambdaRestApi.html)|Optional user-provided props to override the default props for the API.|
92
+ |createUsagePlan?|boolean|Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true. @default - true (to match legacy behavior)|
92
93
  |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.|
93
94
 
94
95
  ## Pattern Properties
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "aws-solutions-constructs.aws-apigateway-lambda",
8
- "version": "2.79.1",
8
+ "version": "2.80.0",
9
9
  "description": "CDK constructs for defining an interaction between an API Gateway and a Lambda function.",
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_apigateway_lambda._jsii": [
29
- "aws-apigateway-lambda@2.79.1.jsii.tgz"
29
+ "aws-apigateway-lambda@2.80.0.jsii.tgz"
30
30
  ],
31
31
  "aws_solutions_constructs.aws_apigateway_lambda": [
32
32
  "py.typed"
@@ -34,8 +34,8 @@ kwargs = json.loads(
34
34
  },
35
35
  "python_requires": "~=3.9",
36
36
  "install_requires": [
37
- "aws-cdk-lib>=2.177.0, <3.0.0",
38
- "aws-solutions-constructs.core==2.79.1",
37
+ "aws-cdk-lib>=2.179.0, <3.0.0",
38
+ "aws-solutions-constructs.core==2.80.0",
39
39
  "constructs>=10.0.0, <11.0.0",
40
40
  "jsii>=1.110.0, <2.0.0",
41
41
  "publication>=0.0.3",
@@ -90,6 +90,7 @@ new ApiGatewayToLambda(this, "ApiGatewayToLambdaPattern", new ApiGatewayToLambda
90
90
  |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
91
91
  |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
92
92
  |apiGatewayProps?|[`api.LambdaRestApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.LambdaRestApi.html)|Optional user-provided props to override the default props for the API.|
93
+ |createUsagePlan?|boolean|Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true. @default - true (to match legacy behavior)|
93
94
  |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.|
94
95
 
95
96
  ## Pattern Properties
@@ -185,6 +186,7 @@ class ApiGatewayToLambda(
185
186
  id: builtins.str,
186
187
  *,
187
188
  api_gateway_props: typing.Any = None,
189
+ create_usage_plan: typing.Optional[builtins.bool] = None,
188
190
  existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
189
191
  lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
190
192
  log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -193,6 +195,7 @@ class ApiGatewayToLambda(
193
195
  :param scope: - represents the scope for all the resources.
194
196
  :param id: - this is a a scope-unique id.
195
197
  :param api_gateway_props: Optional user-provided props to override the default props for the API. Default: - Default props are used.
198
+ :param create_usage_plan: Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true Default: - true (to match legacy behavior)
196
199
  :param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
197
200
  :param lambda_function_props: User provided props to override the default props for the Lambda function. Default: - Default props are used.
198
201
  :param log_group_props: User provided props to override the default props for the CloudWatchLogs LogGroup. Default: - Default props are used
@@ -207,6 +210,7 @@ class ApiGatewayToLambda(
207
210
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
208
211
  props = ApiGatewayToLambdaProps(
209
212
  api_gateway_props=api_gateway_props,
213
+ create_usage_plan=create_usage_plan,
210
214
  existing_lambda_obj=existing_lambda_obj,
211
215
  lambda_function_props=lambda_function_props,
212
216
  log_group_props=log_group_props,
@@ -242,6 +246,7 @@ class ApiGatewayToLambda(
242
246
  jsii_struct_bases=[],
243
247
  name_mapping={
244
248
  "api_gateway_props": "apiGatewayProps",
249
+ "create_usage_plan": "createUsagePlan",
245
250
  "existing_lambda_obj": "existingLambdaObj",
246
251
  "lambda_function_props": "lambdaFunctionProps",
247
252
  "log_group_props": "logGroupProps",
@@ -252,6 +257,7 @@ class ApiGatewayToLambdaProps:
252
257
  self,
253
258
  *,
254
259
  api_gateway_props: typing.Any = None,
260
+ create_usage_plan: typing.Optional[builtins.bool] = None,
255
261
  existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
256
262
  lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
257
263
  log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -259,6 +265,7 @@ class ApiGatewayToLambdaProps:
259
265
  '''The properties for the ApiGatewayToLambda class.
260
266
 
261
267
  :param api_gateway_props: Optional user-provided props to override the default props for the API. Default: - Default props are used.
268
+ :param create_usage_plan: Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true Default: - true (to match legacy behavior)
262
269
  :param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
263
270
  :param lambda_function_props: User provided props to override the default props for the Lambda function. Default: - Default props are used.
264
271
  :param log_group_props: User provided props to override the default props for the CloudWatchLogs LogGroup. Default: - Default props are used
@@ -270,12 +277,15 @@ class ApiGatewayToLambdaProps:
270
277
  if __debug__:
271
278
  type_hints = typing.get_type_hints(_typecheckingstub__9be9eacf3e580c106bf97e65962dc01354d2e8ce46fb5733931b1f0ec7f5a9ef)
272
279
  check_type(argname="argument api_gateway_props", value=api_gateway_props, expected_type=type_hints["api_gateway_props"])
280
+ check_type(argname="argument create_usage_plan", value=create_usage_plan, expected_type=type_hints["create_usage_plan"])
273
281
  check_type(argname="argument existing_lambda_obj", value=existing_lambda_obj, expected_type=type_hints["existing_lambda_obj"])
274
282
  check_type(argname="argument lambda_function_props", value=lambda_function_props, expected_type=type_hints["lambda_function_props"])
275
283
  check_type(argname="argument log_group_props", value=log_group_props, expected_type=type_hints["log_group_props"])
276
284
  self._values: typing.Dict[builtins.str, typing.Any] = {}
277
285
  if api_gateway_props is not None:
278
286
  self._values["api_gateway_props"] = api_gateway_props
287
+ if create_usage_plan is not None:
288
+ self._values["create_usage_plan"] = create_usage_plan
279
289
  if existing_lambda_obj is not None:
280
290
  self._values["existing_lambda_obj"] = existing_lambda_obj
281
291
  if lambda_function_props is not None:
@@ -292,6 +302,18 @@ class ApiGatewayToLambdaProps:
292
302
  result = self._values.get("api_gateway_props")
293
303
  return typing.cast(typing.Any, result)
294
304
 
305
+ @builtins.property
306
+ def create_usage_plan(self) -> typing.Optional[builtins.bool]:
307
+ '''Whether to create a Usage Plan attached to the API.
308
+
309
+ Must be true if
310
+ apiGatewayProps.defaultMethodOptions.apiKeyRequired is true
311
+
312
+ :default: - true (to match legacy behavior)
313
+ '''
314
+ result = self._values.get("create_usage_plan")
315
+ return typing.cast(typing.Optional[builtins.bool], result)
316
+
295
317
  @builtins.property
296
318
  def existing_lambda_obj(
297
319
  self,
@@ -349,6 +371,7 @@ def _typecheckingstub__8cee3d89f313102b389deed0cd200d7ab2323cfe0ad8769e94f7167b7
349
371
  id: builtins.str,
350
372
  *,
351
373
  api_gateway_props: typing.Any = None,
374
+ create_usage_plan: typing.Optional[builtins.bool] = None,
352
375
  existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
353
376
  lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
354
377
  log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -359,6 +382,7 @@ def _typecheckingstub__8cee3d89f313102b389deed0cd200d7ab2323cfe0ad8769e94f7167b7
359
382
  def _typecheckingstub__9be9eacf3e580c106bf97e65962dc01354d2e8ce46fb5733931b1f0ec7f5a9ef(
360
383
  *,
361
384
  api_gateway_props: typing.Any = None,
385
+ create_usage_plan: typing.Optional[builtins.bool] = None,
362
386
  existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
363
387
  lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
364
388
  log_group_props: typing.Optional[typing.Union[_aws_cdk_aws_logs_ceddda9d.LogGroupProps, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -34,9 +34,9 @@ import constructs._jsii
34
34
 
35
35
  __jsii_assembly__ = jsii.JSIIAssembly.load(
36
36
  "@aws-solutions-constructs/aws-apigateway-lambda",
37
- "2.79.1",
37
+ "2.80.0",
38
38
  __name__[0:-6],
39
- "aws-apigateway-lambda@2.79.1.jsii.tgz",
39
+ "aws-apigateway-lambda@2.80.0.jsii.tgz",
40
40
  )
41
41
 
42
42
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aws-solutions-constructs.aws-apigateway-lambda
3
- Version: 2.79.1
3
+ Version: 2.80.0
4
4
  Summary: CDK constructs for defining an interaction between an API Gateway and a Lambda function.
5
5
  Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
6
  Author: Amazon Web Services
@@ -18,8 +18,8 @@ Classifier: License :: OSI Approved
18
18
  Requires-Python: ~=3.9
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.177.0
22
- Requires-Dist: aws-solutions-constructs.core==2.79.1
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.179.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.80.0
23
23
  Requires-Dist: constructs<11.0.0,>=10.0.0
24
24
  Requires-Dist: jsii<2.0.0,>=1.110.0
25
25
  Requires-Dist: publication>=0.0.3
@@ -116,6 +116,7 @@ new ApiGatewayToLambda(this, "ApiGatewayToLambdaPattern", new ApiGatewayToLambda
116
116
  |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
117
117
  |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
118
118
  |apiGatewayProps?|[`api.LambdaRestApiProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.LambdaRestApi.html)|Optional user-provided props to override the default props for the API.|
119
+ |createUsagePlan?|boolean|Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true. @default - true (to match legacy behavior)|
119
120
  |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.|
120
121
 
121
122
  ## Pattern Properties
@@ -11,4 +11,4 @@ src/aws_solutions_constructs.aws_apigateway_lambda.egg-info/top_level.txt
11
11
  src/aws_solutions_constructs/aws_apigateway_lambda/__init__.py
12
12
  src/aws_solutions_constructs/aws_apigateway_lambda/py.typed
13
13
  src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/__init__.py
14
- src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/aws-apigateway-lambda@2.79.1.jsii.tgz
14
+ src/aws_solutions_constructs/aws_apigateway_lambda/_jsii/aws-apigateway-lambda@2.80.0.jsii.tgz
@@ -1,5 +1,5 @@
1
- aws-cdk-lib<3.0.0,>=2.177.0
2
- aws-solutions-constructs.core==2.79.1
1
+ aws-cdk-lib<3.0.0,>=2.179.0
2
+ aws-solutions-constructs.core==2.80.0
3
3
  constructs<11.0.0,>=10.0.0
4
4
  jsii<2.0.0,>=1.110.0
5
5
  publication>=0.0.3