must-cdk 0.0.2__py3-none-any.whl → 0.0.3__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 CHANGED
@@ -1,5 +1,5 @@
1
1
  r'''
2
- # replace this
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
- domain_name_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps, typing.Dict[builtins.str, typing.Any]]] = None,
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 domain_name_props: Optional custom domain configuration for API Gateway. Default: - no custom domain
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
- domain_name_props=domain_name_props,
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
- "domain_name_props": "domainNameProps",
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
- domain_name_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps, typing.Dict[builtins.str, typing.Any]]] = None,
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 domain_name_props: Optional custom domain configuration for API Gateway. Default: - no custom domain
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 domain_name_props", value=domain_name_props, expected_type=type_hints["domain_name_props"])
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 domain_name_props is not None:
176
- self._values["domain_name_props"] = domain_name_props
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 domain_name_props(
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("domain_name_props")
211
- return typing.cast(typing.Optional[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps], result)
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
- domain_name_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps, typing.Dict[builtins.str, typing.Any]]] = None,
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
- domain_name_props: typing.Optional[typing.Union[_aws_cdk_aws_apigateway_ceddda9d.DomainNameProps, typing.Dict[builtins.str, typing.Any]]] = None,
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,
@@ -32,7 +32,7 @@ import aws_cdk._jsii
32
32
  import constructs._jsii
33
33
 
34
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
35
- "must-cdk", "0.0.2", __name__[0:-6], "must-cdk@0.0.2.jsii.tgz"
35
+ "must-cdk", "0.0.3", __name__[0:-6], "must-cdk@0.0.3.jsii.tgz"
36
36
  )
37
37
 
38
38
  __all__ = [
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: must-cdk
3
- Version: 0.0.2
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
- # replace this
28
+ # Must CDK for common pattern
@@ -0,0 +1,9 @@
1
+ must_cdk/__init__.py,sha256=7TcvZgKechzQXqDLYMDcxCtSIHIBxrSXZnggPeFtUV8,14490
2
+ must_cdk/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ must_cdk/_jsii/__init__.py,sha256=NlAlvm8qOZPXl5Ii1xvAYgn6H7Tp4Nv99HjUpZR6L68,1427
4
+ must_cdk/_jsii/must-cdk@0.0.3.jsii.tgz,sha256=MWQLVkkcmCHq_8UHtK_Gnh8Ao40JPi7_TNcRA-fLpgU,467345
5
+ must_cdk-0.0.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ must_cdk-0.0.3.dist-info/METADATA,sha256=UGZ6W9rLbsMjoZaVtU4OvRvMYJ2GziBkuI2Fl3ZeIlw,1040
7
+ must_cdk-0.0.3.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
8
+ must_cdk-0.0.3.dist-info/top_level.txt,sha256=xm4unKYFXnjqQyemg16SUHfrXIb5XMbfUC_3xNsFyjc,9
9
+ must_cdk-0.0.3.dist-info/RECORD,,
Binary file
@@ -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,,