must-cdk 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl
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/__init__.py +28 -19
- must_cdk/_jsii/__init__.py +1 -1
- must_cdk/_jsii/must-cdk@0.0.4.jsii.tgz +0 -0
- {must_cdk-0.0.2.dist-info → must_cdk-0.0.4.dist-info}/METADATA +2 -2
- must_cdk-0.0.4.dist-info/RECORD +9 -0
- must_cdk/_jsii/must-cdk@0.0.2.jsii.tgz +0 -0
- must_cdk-0.0.2.dist-info/RECORD +0 -9
- {must_cdk-0.0.2.dist-info → must_cdk-0.0.4.dist-info}/LICENSE +0 -0
- {must_cdk-0.0.2.dist-info → must_cdk-0.0.4.dist-info}/WHEEL +0 -0
- {must_cdk-0.0.2.dist-info → must_cdk-0.0.4.dist-info}/top_level.txt +0 -0
must_cdk/__init__.py
CHANGED
@@ -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__)
|
@@ -34,6 +34,7 @@ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing
|
|
34
34
|
from ._jsii import *
|
35
35
|
|
36
36
|
import aws_cdk.aws_apigateway as _aws_cdk_aws_apigateway_ceddda9d
|
37
|
+
import aws_cdk.aws_certificatemanager as _aws_cdk_aws_certificatemanager_ceddda9d
|
37
38
|
import aws_cdk.aws_iam as _aws_cdk_aws_iam_ceddda9d
|
38
39
|
import aws_cdk.aws_lambda as _aws_cdk_aws_lambda_ceddda9d
|
39
40
|
import aws_cdk.aws_logs as _aws_cdk_aws_logs_ceddda9d
|
@@ -57,7 +58,7 @@ class ApiGatewayToLambda(
|
|
57
58
|
*,
|
58
59
|
api_gateway_props: typing.Any = None,
|
59
60
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
60
|
-
|
61
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
61
62
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
62
63
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
63
64
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -68,7 +69,7 @@ class ApiGatewayToLambda(
|
|
68
69
|
:param id: - this is a a scope-unique id.
|
69
70
|
:param api_gateway_props: Optional user-provided props to override the default props for the API.
|
70
71
|
: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
|
72
|
+
:param custom_domain_name: Optional custom domain configuration for API Gateway. Default: - no custom domain
|
72
73
|
:param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
|
73
74
|
:param hosted_zone: Optional Route53 hosted zone to create alias record for the custom domain. Default: - no Route53 alias record created
|
74
75
|
:param lambda_function_props: User provided props to override the default props for the Lambda function.
|
@@ -81,7 +82,7 @@ class ApiGatewayToLambda(
|
|
81
82
|
props = ApiGatewayToLambdaProps(
|
82
83
|
api_gateway_props=api_gateway_props,
|
83
84
|
create_usage_plan=create_usage_plan,
|
84
|
-
|
85
|
+
custom_domain_name=custom_domain_name,
|
85
86
|
existing_lambda_obj=existing_lambda_obj,
|
86
87
|
hosted_zone=hosted_zone,
|
87
88
|
lambda_function_props=lambda_function_props,
|
@@ -117,6 +118,18 @@ class ApiGatewayToLambda(
|
|
117
118
|
def a_record(self) -> typing.Optional[_aws_cdk_aws_route53_ceddda9d.ARecord]:
|
118
119
|
return typing.cast(typing.Optional[_aws_cdk_aws_route53_ceddda9d.ARecord], jsii.get(self, "aRecord"))
|
119
120
|
|
121
|
+
@builtins.property
|
122
|
+
@jsii.member(jsii_name="certificate")
|
123
|
+
def certificate(
|
124
|
+
self,
|
125
|
+
) -> typing.Optional[_aws_cdk_aws_certificatemanager_ceddda9d.Certificate]:
|
126
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_certificatemanager_ceddda9d.Certificate], jsii.get(self, "certificate"))
|
127
|
+
|
128
|
+
@builtins.property
|
129
|
+
@jsii.member(jsii_name="domain")
|
130
|
+
def domain(self) -> typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.DomainName]:
|
131
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.DomainName], jsii.get(self, "domain"))
|
132
|
+
|
120
133
|
|
121
134
|
@jsii.data_type(
|
122
135
|
jsii_type="must-cdk.ApiGatewayToLambdaProps",
|
@@ -124,7 +137,7 @@ class ApiGatewayToLambda(
|
|
124
137
|
name_mapping={
|
125
138
|
"api_gateway_props": "apiGatewayProps",
|
126
139
|
"create_usage_plan": "createUsagePlan",
|
127
|
-
"
|
140
|
+
"custom_domain_name": "customDomainName",
|
128
141
|
"existing_lambda_obj": "existingLambdaObj",
|
129
142
|
"hosted_zone": "hostedZone",
|
130
143
|
"lambda_function_props": "lambdaFunctionProps",
|
@@ -137,7 +150,7 @@ class ApiGatewayToLambdaProps:
|
|
137
150
|
*,
|
138
151
|
api_gateway_props: typing.Any = None,
|
139
152
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
140
|
-
|
153
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
141
154
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
142
155
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
143
156
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -146,14 +159,12 @@ class ApiGatewayToLambdaProps:
|
|
146
159
|
'''
|
147
160
|
:param api_gateway_props: Optional user-provided props to override the default props for the API.
|
148
161
|
: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
|
162
|
+
:param custom_domain_name: Optional custom domain configuration for API Gateway. Default: - no custom domain
|
150
163
|
:param existing_lambda_obj: Existing instance of Lambda Function object, providing both this and ``lambdaFunctionProps`` will cause an error. Default: - None
|
151
164
|
:param hosted_zone: Optional Route53 hosted zone to create alias record for the custom domain. Default: - no Route53 alias record created
|
152
165
|
:param lambda_function_props: User provided props to override the default props for the Lambda function.
|
153
166
|
:param log_group_props:
|
154
167
|
'''
|
155
|
-
if isinstance(domain_name_props, dict):
|
156
|
-
domain_name_props = _aws_cdk_aws_apigateway_ceddda9d.DomainNameProps(**domain_name_props)
|
157
168
|
if isinstance(lambda_function_props, dict):
|
158
169
|
lambda_function_props = _aws_cdk_aws_lambda_ceddda9d.FunctionProps(**lambda_function_props)
|
159
170
|
if isinstance(log_group_props, dict):
|
@@ -162,7 +173,7 @@ class ApiGatewayToLambdaProps:
|
|
162
173
|
type_hints = typing.get_type_hints(_typecheckingstub__7c51143b7da8fc50ffd3240aae88642c332f9ccc1136e275abf9d1065df7ea17)
|
163
174
|
check_type(argname="argument api_gateway_props", value=api_gateway_props, expected_type=type_hints["api_gateway_props"])
|
164
175
|
check_type(argname="argument create_usage_plan", value=create_usage_plan, expected_type=type_hints["create_usage_plan"])
|
165
|
-
check_type(argname="argument
|
176
|
+
check_type(argname="argument custom_domain_name", value=custom_domain_name, expected_type=type_hints["custom_domain_name"])
|
166
177
|
check_type(argname="argument existing_lambda_obj", value=existing_lambda_obj, expected_type=type_hints["existing_lambda_obj"])
|
167
178
|
check_type(argname="argument hosted_zone", value=hosted_zone, expected_type=type_hints["hosted_zone"])
|
168
179
|
check_type(argname="argument lambda_function_props", value=lambda_function_props, expected_type=type_hints["lambda_function_props"])
|
@@ -172,8 +183,8 @@ class ApiGatewayToLambdaProps:
|
|
172
183
|
self._values["api_gateway_props"] = api_gateway_props
|
173
184
|
if create_usage_plan is not None:
|
174
185
|
self._values["create_usage_plan"] = create_usage_plan
|
175
|
-
if
|
176
|
-
self._values["
|
186
|
+
if custom_domain_name is not None:
|
187
|
+
self._values["custom_domain_name"] = custom_domain_name
|
177
188
|
if existing_lambda_obj is not None:
|
178
189
|
self._values["existing_lambda_obj"] = existing_lambda_obj
|
179
190
|
if hosted_zone is not None:
|
@@ -200,15 +211,13 @@ class ApiGatewayToLambdaProps:
|
|
200
211
|
return typing.cast(typing.Optional[builtins.bool], result)
|
201
212
|
|
202
213
|
@builtins.property
|
203
|
-
def
|
204
|
-
self,
|
205
|
-
) -> typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps]:
|
214
|
+
def custom_domain_name(self) -> typing.Optional[builtins.str]:
|
206
215
|
'''Optional custom domain configuration for API Gateway.
|
207
216
|
|
208
217
|
:default: - no custom domain
|
209
218
|
'''
|
210
|
-
result = self._values.get("
|
211
|
-
return typing.cast(typing.Optional[
|
219
|
+
result = self._values.get("custom_domain_name")
|
220
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
212
221
|
|
213
222
|
@builtins.property
|
214
223
|
def existing_lambda_obj(
|
@@ -270,7 +279,7 @@ def _typecheckingstub__88385340a9ac0a3d345bb5f8b9e0334655a117a97d92f90c383b720f4
|
|
270
279
|
*,
|
271
280
|
api_gateway_props: typing.Any = None,
|
272
281
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
273
|
-
|
282
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
274
283
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
275
284
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
276
285
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
@@ -283,7 +292,7 @@ def _typecheckingstub__7c51143b7da8fc50ffd3240aae88642c332f9ccc1136e275abf9d1065
|
|
283
292
|
*,
|
284
293
|
api_gateway_props: typing.Any = None,
|
285
294
|
create_usage_plan: typing.Optional[builtins.bool] = None,
|
286
|
-
|
295
|
+
custom_domain_name: typing.Optional[builtins.str] = None,
|
287
296
|
existing_lambda_obj: typing.Optional[_aws_cdk_aws_lambda_ceddda9d.Function] = None,
|
288
297
|
hosted_zone: typing.Optional[_aws_cdk_aws_route53_ceddda9d.IHostedZone] = None,
|
289
298
|
lambda_function_props: typing.Optional[typing.Union[_aws_cdk_aws_lambda_ceddda9d.FunctionProps, typing.Dict[builtins.str, typing.Any]]] = None,
|
must_cdk/_jsii/__init__.py
CHANGED
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.4
|
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
|
@@ -0,0 +1,9 @@
|
|
1
|
+
must_cdk/__init__.py,sha256=-gy_pdOUo9tFW7Bzp-hRUQSFms5SWPqCJ8FUbKAsnmk,15144
|
2
|
+
must_cdk/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
must_cdk/_jsii/__init__.py,sha256=tcLmqzta7XKv8Gp79gkmRT2nFUv1R7mcLY5s819ITSY,1427
|
4
|
+
must_cdk/_jsii/must-cdk@0.0.4.jsii.tgz,sha256=BCB3FF8anSRSy618nPkhWKrXMLsCpprWz3heM1LAthk,467003
|
5
|
+
must_cdk-0.0.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
+
must_cdk-0.0.4.dist-info/METADATA,sha256=NAYCE4GzNTChoR0R4sByxYOHegPdLDZnT7WHNuR6Qy8,1040
|
7
|
+
must_cdk-0.0.4.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
+
must_cdk-0.0.4.dist-info/top_level.txt,sha256=xm4unKYFXnjqQyemg16SUHfrXIb5XMbfUC_3xNsFyjc,9
|
9
|
+
must_cdk-0.0.4.dist-info/RECORD,,
|
Binary file
|
must_cdk-0.0.2.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
must_cdk/__init__.py,sha256=tC6ggKkpONIHKiaL3cJYGzZtYNv0Z9OPVYfn7tYKobk,15050
|
2
|
-
must_cdk/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
must_cdk/_jsii/__init__.py,sha256=Oaqr-Q5jTJLQLEi8R6x2J_616hISRfNts5x78GHCS2U,1427
|
4
|
-
must_cdk/_jsii/must-cdk@0.0.2.jsii.tgz,sha256=bmL8ggXrtsVV1zKsVm-GESH4ip6g7uzg8TXG9NeTU7I,466643
|
5
|
-
must_cdk-0.0.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
-
must_cdk-0.0.2.dist-info/METADATA,sha256=Ote64eX1LhfclXVDPfJF33wy3NTv5pXxAqvOFIaAhzY,1025
|
7
|
-
must_cdk-0.0.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
8
|
-
must_cdk-0.0.2.dist-info/top_level.txt,sha256=xm4unKYFXnjqQyemg16SUHfrXIb5XMbfUC_3xNsFyjc,9
|
9
|
-
must_cdk-0.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|