must-cdk 0.0.2__tar.gz → 0.0.3__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.
- {must_cdk-0.0.2/src/must_cdk.egg-info → must_cdk-0.0.3}/PKG-INFO +2 -2
- must_cdk-0.0.3/README.md +1 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/setup.py +2 -2
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk/__init__.py +15 -19
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk/_jsii/__init__.py +1 -1
- must_cdk-0.0.3/src/must_cdk/_jsii/must-cdk@0.0.3.jsii.tgz +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3/src/must_cdk.egg-info}/PKG-INFO +2 -2
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk.egg-info/SOURCES.txt +1 -1
- must_cdk-0.0.2/README.md +0 -1
- must_cdk-0.0.2/src/must_cdk/_jsii/must-cdk@0.0.2.jsii.tgz +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/LICENSE +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/MANIFEST.in +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/pyproject.toml +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/setup.cfg +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk/py.typed +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk.egg-info/dependency_links.txt +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk.egg-info/requires.txt +0 -0
- {must_cdk-0.0.2 → must_cdk-0.0.3}/src/must_cdk.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: must-cdk
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.3
|
4
4
|
Summary: must-cdk
|
5
5
|
Home-page: https://github.com/globalmsq/must-cdk.git
|
6
6
|
Author: Must Admin<admin-mufin@users.noreply.github.com>
|
@@ -25,4 +25,4 @@ Requires-Dist: jsii<2.0.0,>=1.112.0
|
|
25
25
|
Requires-Dist: publication>=0.0.3
|
26
26
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
27
27
|
|
28
|
-
#
|
28
|
+
# Must CDK for common pattern
|
must_cdk-0.0.3/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Must CDK for common pattern
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
5
5
|
"""
|
6
6
|
{
|
7
7
|
"name": "must-cdk",
|
8
|
-
"version": "0.0.
|
8
|
+
"version": "0.0.3",
|
9
9
|
"description": "must-cdk",
|
10
10
|
"license": "Apache-2.0",
|
11
11
|
"url": "https://github.com/globalmsq/must-cdk.git",
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
26
26
|
],
|
27
27
|
"package_data": {
|
28
28
|
"must_cdk._jsii": [
|
29
|
-
"must-cdk@0.0.
|
29
|
+
"must-cdk@0.0.3.jsii.tgz"
|
30
30
|
],
|
31
31
|
"must_cdk": [
|
32
32
|
"py.typed"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
r'''
|
2
|
-
#
|
2
|
+
# Must CDK for common pattern
|
3
3
|
'''
|
4
4
|
from pkgutil import extend_path
|
5
5
|
__path__ = extend_path(__path__, __name__)
|
@@ -57,7 +57,7 @@ class ApiGatewayToLambda(
|
|
57
57
|
*,
|
58
58
|
api_gateway_props: typing.Any = None,
|
59
59
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
60
|
-
|
60
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
61
61
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
62
62
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
63
63
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -68,7 +68,7 @@ class ApiGatewayToLambda(
|
|
68
68
|
:param id: - this is a a scope-unique id.
|
69
69
|
:param api_gateway_props: Optional user-provided props to override the default props for the API.
|
70
70
|
:param create_usage_plan: Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true
|
71
|
-
:param
|
71
|
+
:param custom_domain_name: Optional custom domain configuration for API Gateway. Default: - no custom domain
|
72
72
|
:param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
|
73
73
|
:param hosted_zone: Optional Route53 hosted zone to create alias record for the custom domain. Default: - no Route53 alias record created
|
74
74
|
:param lambda_function_props: User provided props to override the default props for the Lambda function.
|
@@ -81,7 +81,7 @@ class ApiGatewayToLambda(
|
|
81
81
|
props = ApiGatewayToLambdaProps(
|
82
82
|
api_gateway_props=api_gateway_props,
|
83
83
|
create_usage_plan=create_usage_plan,
|
84
|
-
|
84
|
+
custom_domain_name=custom_domain_name,
|
85
85
|
existing_lambda_obj=existing_lambda_obj,
|
86
86
|
hosted_zone=hosted_zone,
|
87
87
|
lambda_function_props=lambda_function_props,
|
@@ -124,7 +124,7 @@ class ApiGatewayToLambda(
|
|
124
124
|
name_mapping={
|
125
125
|
"api_gateway_props": "apiGatewayProps",
|
126
126
|
"create_usage_plan": "createUsagePlan",
|
127
|
-
"
|
127
|
+
"custom_domain_name": "customDomainName",
|
128
128
|
"existing_lambda_obj": "existingLambdaObj",
|
129
129
|
"hosted_zone": "hostedZone",
|
130
130
|
"lambda_function_props": "lambdaFunctionProps",
|
@@ -137,7 +137,7 @@ class ApiGatewayToLambdaProps:
|
|
137
137
|
*,
|
138
138
|
api_gateway_props: typing.Any = None,
|
139
139
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
140
|
-
|
140
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
141
141
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
142
142
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
143
143
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -146,14 +146,12 @@ class ApiGatewayToLambdaProps:
|
|
146
146
|
'''
|
147
147
|
:param api_gateway_props: Optional user-provided props to override the default props for the API.
|
148
148
|
:param create_usage_plan: Whether to create a Usage Plan attached to the API. Must be true if apiGatewayProps.defaultMethodOptions.apiKeyRequired is true
|
149
|
-
:param
|
149
|
+
:param custom_domain_name: Optional custom domain configuration for API Gateway. Default: - no custom domain
|
150
150
|
:param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
|
151
151
|
:param hosted_zone: Optional Route53 hosted zone to create alias record for the custom domain. Default: - no Route53 alias record created
|
152
152
|
:param lambda_function_props: User provided props to override the default props for the Lambda function.
|
153
153
|
:param log_group_props:
|
154
154
|
'''
|
155
|
-
if isinstance(domain_name_props, dict):
|
156
|
-
domain_name_props = _aws_cdk_aws_apigateway_ceddda9d.DomainNameProps(**domain_name_props)
|
157
155
|
if isinstance(lambda_function_props, dict):
|
158
156
|
lambda_function_props = _aws_cdk_aws_lambda_ceddda9d.FunctionProps(**lambda_function_props)
|
159
157
|
if isinstance(log_group_props, dict):
|
@@ -162,7 +160,7 @@ class ApiGatewayToLambdaProps:
|
|
162
160
|
type_hints = typing.get_type_hints(_typecheckingstub__7c51143b7da8fc50ffd3240aae88642c332f9ccc1136e275abf9d1065df7ea17)
|
163
161
|
check_type(argname="argument api_gateway_props", value=api_gateway_props, expected_type=type_hints["api_gateway_props"])
|
164
162
|
check_type(argname="argument create_usage_plan", value=create_usage_plan, expected_type=type_hints["create_usage_plan"])
|
165
|
-
check_type(argname="argument
|
163
|
+
check_type(argname="argument custom_domain_name", value=custom_domain_name, expected_type=type_hints["custom_domain_name"])
|
166
164
|
check_type(argname="argument existing_lambda_obj", value=existing_lambda_obj, expected_type=type_hints["existing_lambda_obj"])
|
167
165
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
168
166
|
check_type(argname="argument lambda_function_props", value=lambda_function_props, expected_type=type_hints["lambda_function_props"])
|
@@ -172,8 +170,8 @@ class ApiGatewayToLambdaProps:
|
|
172
170
|
self._values["api_gateway_props"] = api_gateway_props
|
173
171
|
if create_usage_plan is not None:
|
174
172
|
self._values["create_usage_plan"] = create_usage_plan
|
175
|
-
if
|
176
|
-
self._values["
|
173
|
+
if custom_domain_name is not None:
|
174
|
+
self._values["custom_domain_name"] = custom_domain_name
|
177
175
|
if existing_lambda_obj is not None:
|
178
176
|
self._values["existing_lambda_obj"] = existing_lambda_obj
|
179
177
|
if hosted_zone is not None:
|
@@ -200,15 +198,13 @@ class ApiGatewayToLambdaProps:
|
|
200
198
|
return typing.cast(typing.Optional[builtins.bool], result)
|
201
199
|
|
202
200
|
@builtins.property
|
203
|
-
def
|
204
|
-
self,
|
205
|
-
) -> typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps]:
|
201
|
+
def custom_domain_name(self) -> typing.Optional[builtins.str]:
|
206
202
|
'''Optional custom domain configuration for API Gateway.
|
207
203
|
|
208
204
|
:default: - no custom domain
|
209
205
|
'''
|
210
|
-
result = self._values.get("
|
211
|
-
return typing.cast(typing.Optional[
|
206
|
+
result = self._values.get("custom_domain_name")
|
207
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
212
208
|
|
213
209
|
@builtins.property
|
214
210
|
def existing_lambda_obj(
|
@@ -270,7 +266,7 @@ def _typecheckingstub__88385340a9ac0a3d345bb5f8b9e0334655a117a97d92f90c383b720f4
|
|
270
266
|
*,
|
271
267
|
api_gateway_props: typing.Any = None,
|
272
268
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
273
|
-
|
269
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
274
270
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
275
271
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
276
272
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -283,7 +279,7 @@ def _typecheckingstub__7c51143b7da8fc50ffd3240aae88642c332f9ccc1136e275abf9d1065
|
|
283
279
|
*,
|
284
280
|
api_gateway_props: typing.Any = None,
|
285
281
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
286
|
-
|
282
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
287
283
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
288
284
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
289
285
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: must-cdk
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.3
|
4
4
|
Summary: must-cdk
|
5
5
|
Home-page: https://github.com/globalmsq/must-cdk.git
|
6
6
|
Author: Must Admin<admin-mufin@users.noreply.github.com>
|
@@ -25,4 +25,4 @@ Requires-Dist: jsii<2.0.0,>=1.112.0
|
|
25
25
|
Requires-Dist: publication>=0.0.3
|
26
26
|
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
27
27
|
|
28
|
-
#
|
28
|
+
# Must CDK for common pattern
|
must_cdk-0.0.2/README.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# replace this
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|