aws-cdk-lib 2.171.1__py3-none-any.whl → 2.172.0__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.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +471 -161
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.171.1.jsii.tgz → aws-cdk-lib@2.172.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigateway/__init__.py +1314 -124
- aws_cdk/aws_appsync/__init__.py +159 -136
- aws_cdk/aws_autoscaling/__init__.py +81 -24
- aws_cdk/aws_bedrock/__init__.py +48 -0
- aws_cdk/aws_chatbot/__init__.py +775 -0
- aws_cdk/aws_cloudformation/__init__.py +240 -159
- aws_cdk/aws_cloudfront/__init__.py +11 -5
- aws_cdk/aws_cloudtrail/__init__.py +753 -0
- aws_cdk/aws_cognito/__init__.py +825 -4
- aws_cdk/aws_connect/__init__.py +429 -0
- aws_cdk/aws_customerprofiles/__init__.py +3148 -0
- aws_cdk/aws_ec2/__init__.py +872 -5
- aws_cdk/aws_ecs/__init__.py +12 -7
- aws_cdk/aws_eks/__init__.py +709 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +309 -55
- aws_cdk/aws_events/__init__.py +515 -8
- aws_cdk/aws_iot/__init__.py +42 -4
- aws_cdk/aws_iotfleetwise/__init__.py +510 -0
- aws_cdk/aws_iotsitewise/__init__.py +156 -0
- aws_cdk/aws_lambda/__init__.py +14 -8
- aws_cdk/aws_lambda_event_sources/__init__.py +2 -1
- aws_cdk/aws_lambda_nodejs/__init__.py +11 -11
- aws_cdk/aws_m2/__init__.py +289 -0
- aws_cdk/aws_mwaa/__init__.py +6 -6
- aws_cdk/aws_opensearchserverless/__init__.py +249 -1
- aws_cdk/aws_pipes/__init__.py +14 -30
- aws_cdk/aws_qbusiness/__init__.py +3 -1
- aws_cdk/aws_quicksight/__init__.py +8270 -10
- aws_cdk/aws_rbin/__init__.py +53 -34
- aws_cdk/aws_rds/__init__.py +140 -8
- aws_cdk/aws_resourcegroups/__init__.py +349 -0
- aws_cdk/aws_route53_targets/__init__.py +82 -0
- aws_cdk/aws_route53resolver/__init__.py +15 -6
- aws_cdk/aws_s3express/__init__.py +403 -2
- aws_cdk/aws_sagemaker/__init__.py +124 -112
- aws_cdk/aws_ses/__init__.py +79 -41
- aws_cdk/aws_wisdom/__init__.py +4713 -172
- aws_cdk/aws_workspacesweb/__init__.py +1024 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/RECORD +47 -47
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.171.1.dist-info → aws_cdk_lib-2.172.0.dist-info}/top_level.txt +0 -0
|
@@ -4862,6 +4862,12 @@ class CfnPortal(
|
|
|
4862
4862
|
notification_sender_email="notificationSenderEmail",
|
|
4863
4863
|
portal_auth_mode="portalAuthMode",
|
|
4864
4864
|
portal_description="portalDescription",
|
|
4865
|
+
portal_type="portalType",
|
|
4866
|
+
portal_type_configuration={
|
|
4867
|
+
"portal_type_configuration_key": iotsitewise.CfnPortal.PortalTypeEntryProperty(
|
|
4868
|
+
portal_tools=["portalTools"]
|
|
4869
|
+
)
|
|
4870
|
+
},
|
|
4865
4871
|
tags=[CfnTag(
|
|
4866
4872
|
key="key",
|
|
4867
4873
|
value="value"
|
|
@@ -4881,6 +4887,8 @@ class CfnPortal(
|
|
|
4881
4887
|
notification_sender_email: typing.Optional[builtins.str] = None,
|
|
4882
4888
|
portal_auth_mode: typing.Optional[builtins.str] = None,
|
|
4883
4889
|
portal_description: typing.Optional[builtins.str] = None,
|
|
4890
|
+
portal_type: typing.Optional[builtins.str] = None,
|
|
4891
|
+
portal_type_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union["CfnPortal.PortalTypeEntryProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
4884
4892
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
4885
4893
|
) -> None:
|
|
4886
4894
|
'''
|
|
@@ -4893,6 +4901,8 @@ class CfnPortal(
|
|
|
4893
4901
|
:param notification_sender_email: The email address that sends alarm notifications. .. epigraph:: If you use the `AWS IoT Events managed Lambda function <https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html>`_ to manage your emails, you must `verify the sender email address in Amazon SES <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html>`_ .
|
|
4894
4902
|
:param portal_auth_mode: The service to use to authenticate users to the portal. Choose from the following options:. - ``SSO`` – The portal uses AWS IAM Identity Center to authenticate users and manage user permissions. Before you can create a portal that uses IAM Identity Center, you must enable IAM Identity Center. For more information, see `Enabling IAM Identity Center <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/monitor-get-started.html#mon-gs-sso>`_ in the *AWS IoT SiteWise User Guide* . This option is only available in AWS Regions other than the China Regions. - ``IAM`` – The portal uses AWS Identity and Access Management to authenticate users and manage user permissions. You can't change this value after you create a portal. Default: ``SSO``
|
|
4895
4903
|
:param portal_description: A description for the portal.
|
|
4904
|
+
:param portal_type: The type of portal.
|
|
4905
|
+
:param portal_type_configuration: Map to associate detail of configuration related with a PortalType.
|
|
4896
4906
|
:param tags: A list of key-value pairs that contain metadata for the portal. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
|
|
4897
4907
|
'''
|
|
4898
4908
|
if __debug__:
|
|
@@ -4907,6 +4917,8 @@ class CfnPortal(
|
|
|
4907
4917
|
notification_sender_email=notification_sender_email,
|
|
4908
4918
|
portal_auth_mode=portal_auth_mode,
|
|
4909
4919
|
portal_description=portal_description,
|
|
4920
|
+
portal_type=portal_type,
|
|
4921
|
+
portal_type_configuration=portal_type_configuration,
|
|
4910
4922
|
tags=tags,
|
|
4911
4923
|
)
|
|
4912
4924
|
|
|
@@ -5085,6 +5097,37 @@ class CfnPortal(
|
|
|
5085
5097
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5086
5098
|
jsii.set(self, "portalDescription", value) # pyright: ignore[reportArgumentType]
|
|
5087
5099
|
|
|
5100
|
+
@builtins.property
|
|
5101
|
+
@jsii.member(jsii_name="portalType")
|
|
5102
|
+
def portal_type(self) -> typing.Optional[builtins.str]:
|
|
5103
|
+
'''The type of portal.'''
|
|
5104
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "portalType"))
|
|
5105
|
+
|
|
5106
|
+
@portal_type.setter
|
|
5107
|
+
def portal_type(self, value: typing.Optional[builtins.str]) -> None:
|
|
5108
|
+
if __debug__:
|
|
5109
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e30e6480af8bf6c9156f76afcfbc51187c15ffe199e8b2a284dae86baaccb878)
|
|
5110
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5111
|
+
jsii.set(self, "portalType", value) # pyright: ignore[reportArgumentType]
|
|
5112
|
+
|
|
5113
|
+
@builtins.property
|
|
5114
|
+
@jsii.member(jsii_name="portalTypeConfiguration")
|
|
5115
|
+
def portal_type_configuration(
|
|
5116
|
+
self,
|
|
5117
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnPortal.PortalTypeEntryProperty"]]]]:
|
|
5118
|
+
'''Map to associate detail of configuration related with a PortalType.'''
|
|
5119
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnPortal.PortalTypeEntryProperty"]]]], jsii.get(self, "portalTypeConfiguration"))
|
|
5120
|
+
|
|
5121
|
+
@portal_type_configuration.setter
|
|
5122
|
+
def portal_type_configuration(
|
|
5123
|
+
self,
|
|
5124
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, "CfnPortal.PortalTypeEntryProperty"]]]],
|
|
5125
|
+
) -> None:
|
|
5126
|
+
if __debug__:
|
|
5127
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7d9d6a7fc128e24a5796b5247e692bea000e44c1afd3fed96b4e4cb15f279f74)
|
|
5128
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
5129
|
+
jsii.set(self, "portalTypeConfiguration", value) # pyright: ignore[reportArgumentType]
|
|
5130
|
+
|
|
5088
5131
|
@builtins.property
|
|
5089
5132
|
@jsii.member(jsii_name="tagsRaw")
|
|
5090
5133
|
def tags_raw(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
@@ -5173,6 +5216,58 @@ class CfnPortal(
|
|
|
5173
5216
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
5174
5217
|
)
|
|
5175
5218
|
|
|
5219
|
+
@jsii.data_type(
|
|
5220
|
+
jsii_type="aws-cdk-lib.aws_iotsitewise.CfnPortal.PortalTypeEntryProperty",
|
|
5221
|
+
jsii_struct_bases=[],
|
|
5222
|
+
name_mapping={"portal_tools": "portalTools"},
|
|
5223
|
+
)
|
|
5224
|
+
class PortalTypeEntryProperty:
|
|
5225
|
+
def __init__(self, *, portal_tools: typing.Sequence[builtins.str]) -> None:
|
|
5226
|
+
'''Container associated a certain PortalType.
|
|
5227
|
+
|
|
5228
|
+
:param portal_tools: List of enabled Tools for a certain portal.
|
|
5229
|
+
|
|
5230
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-portal-portaltypeentry.html
|
|
5231
|
+
:exampleMetadata: fixture=_generated
|
|
5232
|
+
|
|
5233
|
+
Example::
|
|
5234
|
+
|
|
5235
|
+
# The code below shows an example of how to instantiate this type.
|
|
5236
|
+
# The values are placeholders you should change.
|
|
5237
|
+
from aws_cdk import aws_iotsitewise as iotsitewise
|
|
5238
|
+
|
|
5239
|
+
portal_type_entry_property = iotsitewise.CfnPortal.PortalTypeEntryProperty(
|
|
5240
|
+
portal_tools=["portalTools"]
|
|
5241
|
+
)
|
|
5242
|
+
'''
|
|
5243
|
+
if __debug__:
|
|
5244
|
+
type_hints = typing.get_type_hints(_typecheckingstub__159de1986a281fe75049e969ee02d9509ce935b8bef35eb415647d6e66e0feab)
|
|
5245
|
+
check_type(argname="argument portal_tools", value=portal_tools, expected_type=type_hints["portal_tools"])
|
|
5246
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5247
|
+
"portal_tools": portal_tools,
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5250
|
+
@builtins.property
|
|
5251
|
+
def portal_tools(self) -> typing.List[builtins.str]:
|
|
5252
|
+
'''List of enabled Tools for a certain portal.
|
|
5253
|
+
|
|
5254
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotsitewise-portal-portaltypeentry.html#cfn-iotsitewise-portal-portaltypeentry-portaltools
|
|
5255
|
+
'''
|
|
5256
|
+
result = self._values.get("portal_tools")
|
|
5257
|
+
assert result is not None, "Required property 'portal_tools' is missing"
|
|
5258
|
+
return typing.cast(typing.List[builtins.str], result)
|
|
5259
|
+
|
|
5260
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
5261
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
5262
|
+
|
|
5263
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
5264
|
+
return not (rhs == self)
|
|
5265
|
+
|
|
5266
|
+
def __repr__(self) -> str:
|
|
5267
|
+
return "PortalTypeEntryProperty(%s)" % ", ".join(
|
|
5268
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
5269
|
+
)
|
|
5270
|
+
|
|
5176
5271
|
|
|
5177
5272
|
@jsii.data_type(
|
|
5178
5273
|
jsii_type="aws-cdk-lib.aws_iotsitewise.CfnPortalProps",
|
|
@@ -5185,6 +5280,8 @@ class CfnPortal(
|
|
|
5185
5280
|
"notification_sender_email": "notificationSenderEmail",
|
|
5186
5281
|
"portal_auth_mode": "portalAuthMode",
|
|
5187
5282
|
"portal_description": "portalDescription",
|
|
5283
|
+
"portal_type": "portalType",
|
|
5284
|
+
"portal_type_configuration": "portalTypeConfiguration",
|
|
5188
5285
|
"tags": "tags",
|
|
5189
5286
|
},
|
|
5190
5287
|
)
|
|
@@ -5199,6 +5296,8 @@ class CfnPortalProps:
|
|
|
5199
5296
|
notification_sender_email: typing.Optional[builtins.str] = None,
|
|
5200
5297
|
portal_auth_mode: typing.Optional[builtins.str] = None,
|
|
5201
5298
|
portal_description: typing.Optional[builtins.str] = None,
|
|
5299
|
+
portal_type: typing.Optional[builtins.str] = None,
|
|
5300
|
+
portal_type_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnPortal.PortalTypeEntryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
5202
5301
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
5203
5302
|
) -> None:
|
|
5204
5303
|
'''Properties for defining a ``CfnPortal``.
|
|
@@ -5210,6 +5309,8 @@ class CfnPortalProps:
|
|
|
5210
5309
|
:param notification_sender_email: The email address that sends alarm notifications. .. epigraph:: If you use the `AWS IoT Events managed Lambda function <https://docs.aws.amazon.com/iotevents/latest/developerguide/lambda-support.html>`_ to manage your emails, you must `verify the sender email address in Amazon SES <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html>`_ .
|
|
5211
5310
|
:param portal_auth_mode: The service to use to authenticate users to the portal. Choose from the following options:. - ``SSO`` – The portal uses AWS IAM Identity Center to authenticate users and manage user permissions. Before you can create a portal that uses IAM Identity Center, you must enable IAM Identity Center. For more information, see `Enabling IAM Identity Center <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/monitor-get-started.html#mon-gs-sso>`_ in the *AWS IoT SiteWise User Guide* . This option is only available in AWS Regions other than the China Regions. - ``IAM`` – The portal uses AWS Identity and Access Management to authenticate users and manage user permissions. You can't change this value after you create a portal. Default: ``SSO``
|
|
5212
5311
|
:param portal_description: A description for the portal.
|
|
5312
|
+
:param portal_type: The type of portal.
|
|
5313
|
+
:param portal_type_configuration: Map to associate detail of configuration related with a PortalType.
|
|
5213
5314
|
:param tags: A list of key-value pairs that contain metadata for the portal. For more information, see `Tagging your AWS IoT SiteWise resources <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/tag-resources.html>`_ in the *AWS IoT SiteWise User Guide* .
|
|
5214
5315
|
|
|
5215
5316
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-portal.html
|
|
@@ -5233,6 +5334,12 @@ class CfnPortalProps:
|
|
|
5233
5334
|
notification_sender_email="notificationSenderEmail",
|
|
5234
5335
|
portal_auth_mode="portalAuthMode",
|
|
5235
5336
|
portal_description="portalDescription",
|
|
5337
|
+
portal_type="portalType",
|
|
5338
|
+
portal_type_configuration={
|
|
5339
|
+
"portal_type_configuration_key": iotsitewise.CfnPortal.PortalTypeEntryProperty(
|
|
5340
|
+
portal_tools=["portalTools"]
|
|
5341
|
+
)
|
|
5342
|
+
},
|
|
5236
5343
|
tags=[CfnTag(
|
|
5237
5344
|
key="key",
|
|
5238
5345
|
value="value"
|
|
@@ -5248,6 +5355,8 @@ class CfnPortalProps:
|
|
|
5248
5355
|
check_type(argname="argument notification_sender_email", value=notification_sender_email, expected_type=type_hints["notification_sender_email"])
|
|
5249
5356
|
check_type(argname="argument portal_auth_mode", value=portal_auth_mode, expected_type=type_hints["portal_auth_mode"])
|
|
5250
5357
|
check_type(argname="argument portal_description", value=portal_description, expected_type=type_hints["portal_description"])
|
|
5358
|
+
check_type(argname="argument portal_type", value=portal_type, expected_type=type_hints["portal_type"])
|
|
5359
|
+
check_type(argname="argument portal_type_configuration", value=portal_type_configuration, expected_type=type_hints["portal_type_configuration"])
|
|
5251
5360
|
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
5252
5361
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
5253
5362
|
"portal_contact_email": portal_contact_email,
|
|
@@ -5262,6 +5371,10 @@ class CfnPortalProps:
|
|
|
5262
5371
|
self._values["portal_auth_mode"] = portal_auth_mode
|
|
5263
5372
|
if portal_description is not None:
|
|
5264
5373
|
self._values["portal_description"] = portal_description
|
|
5374
|
+
if portal_type is not None:
|
|
5375
|
+
self._values["portal_type"] = portal_type
|
|
5376
|
+
if portal_type_configuration is not None:
|
|
5377
|
+
self._values["portal_type_configuration"] = portal_type_configuration
|
|
5265
5378
|
if tags is not None:
|
|
5266
5379
|
self._values["tags"] = tags
|
|
5267
5380
|
|
|
@@ -5344,6 +5457,26 @@ class CfnPortalProps:
|
|
|
5344
5457
|
result = self._values.get("portal_description")
|
|
5345
5458
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
5346
5459
|
|
|
5460
|
+
@builtins.property
|
|
5461
|
+
def portal_type(self) -> typing.Optional[builtins.str]:
|
|
5462
|
+
'''The type of portal.
|
|
5463
|
+
|
|
5464
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-portal.html#cfn-iotsitewise-portal-portaltype
|
|
5465
|
+
'''
|
|
5466
|
+
result = self._values.get("portal_type")
|
|
5467
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
5468
|
+
|
|
5469
|
+
@builtins.property
|
|
5470
|
+
def portal_type_configuration(
|
|
5471
|
+
self,
|
|
5472
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, CfnPortal.PortalTypeEntryProperty]]]]:
|
|
5473
|
+
'''Map to associate detail of configuration related with a PortalType.
|
|
5474
|
+
|
|
5475
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotsitewise-portal.html#cfn-iotsitewise-portal-portaltypeconfiguration
|
|
5476
|
+
'''
|
|
5477
|
+
result = self._values.get("portal_type_configuration")
|
|
5478
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, CfnPortal.PortalTypeEntryProperty]]]], result)
|
|
5479
|
+
|
|
5347
5480
|
@builtins.property
|
|
5348
5481
|
def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
|
|
5349
5482
|
'''A list of key-value pairs that contain metadata for the portal.
|
|
@@ -6299,6 +6432,8 @@ def _typecheckingstub__cbc23e7f8ea9f23ecedfbb8e22cd39fad67b5932c9e8eb1d5d50975c1
|
|
|
6299
6432
|
notification_sender_email: typing.Optional[builtins.str] = None,
|
|
6300
6433
|
portal_auth_mode: typing.Optional[builtins.str] = None,
|
|
6301
6434
|
portal_description: typing.Optional[builtins.str] = None,
|
|
6435
|
+
portal_type: typing.Optional[builtins.str] = None,
|
|
6436
|
+
portal_type_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnPortal.PortalTypeEntryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6302
6437
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6303
6438
|
) -> None:
|
|
6304
6439
|
"""Type checking stubs"""
|
|
@@ -6358,6 +6493,18 @@ def _typecheckingstub__aef69531546e69c52fb621d608894b8a13ea5ce64a0e713b24aacd2b9
|
|
|
6358
6493
|
"""Type checking stubs"""
|
|
6359
6494
|
pass
|
|
6360
6495
|
|
|
6496
|
+
def _typecheckingstub__e30e6480af8bf6c9156f76afcfbc51187c15ffe199e8b2a284dae86baaccb878(
|
|
6497
|
+
value: typing.Optional[builtins.str],
|
|
6498
|
+
) -> None:
|
|
6499
|
+
"""Type checking stubs"""
|
|
6500
|
+
pass
|
|
6501
|
+
|
|
6502
|
+
def _typecheckingstub__7d9d6a7fc128e24a5796b5247e692bea000e44c1afd3fed96b4e4cb15f279f74(
|
|
6503
|
+
value: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, CfnPortal.PortalTypeEntryProperty]]]],
|
|
6504
|
+
) -> None:
|
|
6505
|
+
"""Type checking stubs"""
|
|
6506
|
+
pass
|
|
6507
|
+
|
|
6361
6508
|
def _typecheckingstub__094008154aa9c2ed7f23db7b3bd3bbad9f03aa4bbdaba95af7958b252ddd4bc2(
|
|
6362
6509
|
value: typing.Optional[typing.List[_CfnTag_f6864754]],
|
|
6363
6510
|
) -> None:
|
|
@@ -6372,6 +6519,13 @@ def _typecheckingstub__3a766409f9773f0cd5cb3dd5c49ce92586c7cc4f8233f8f908d042bfd
|
|
|
6372
6519
|
"""Type checking stubs"""
|
|
6373
6520
|
pass
|
|
6374
6521
|
|
|
6522
|
+
def _typecheckingstub__159de1986a281fe75049e969ee02d9509ce935b8bef35eb415647d6e66e0feab(
|
|
6523
|
+
*,
|
|
6524
|
+
portal_tools: typing.Sequence[builtins.str],
|
|
6525
|
+
) -> None:
|
|
6526
|
+
"""Type checking stubs"""
|
|
6527
|
+
pass
|
|
6528
|
+
|
|
6375
6529
|
def _typecheckingstub__db927eff8866e7afa967752c7f48d5d8ab1bd58489a78569b13cac34c81ba650(
|
|
6376
6530
|
*,
|
|
6377
6531
|
portal_contact_email: builtins.str,
|
|
@@ -6381,6 +6535,8 @@ def _typecheckingstub__db927eff8866e7afa967752c7f48d5d8ab1bd58489a78569b13cac34c
|
|
|
6381
6535
|
notification_sender_email: typing.Optional[builtins.str] = None,
|
|
6382
6536
|
portal_auth_mode: typing.Optional[builtins.str] = None,
|
|
6383
6537
|
portal_description: typing.Optional[builtins.str] = None,
|
|
6538
|
+
portal_type: typing.Optional[builtins.str] = None,
|
|
6539
|
+
portal_type_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Mapping[builtins.str, typing.Union[_IResolvable_da3f097b, typing.Union[CfnPortal.PortalTypeEntryProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
|
|
6384
6540
|
tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
6385
6541
|
) -> None:
|
|
6386
6542
|
"""Type checking stubs"""
|
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -4135,7 +4135,7 @@ class CfnEventInvokeConfig(
|
|
|
4135
4135
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
4136
4136
|
:param function_name: The name of the Lambda function. *Minimum* : ``1`` *Maximum* : ``64`` *Pattern* : ``([a-zA-Z0-9-_]+)``
|
|
4137
4137
|
:param qualifier: The identifier of a version or alias. - *Version* - A version number. - *Alias* - An alias name. - *Latest* - To specify the unpublished version, use ``$LATEST`` .
|
|
4138
|
-
:param destination_config: A destination for events after they have been sent to a function for processing. **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function. - *Queue* - The ARN of a standard SQS queue. - *Topic* - The ARN of a standard SNS topic. - *Event Bus* - The ARN of an Amazon EventBridge event bus.
|
|
4138
|
+
:param destination_config: A destination for events after they have been sent to a function for processing. **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function. - *Queue* - The ARN of a standard SQS queue. - *Bucket* - The ARN of an Amazon S3 bucket. - *Topic* - The ARN of a standard SNS topic. - *Event Bus* - The ARN of an Amazon EventBridge event bus. .. epigraph:: S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.
|
|
4139
4139
|
:param maximum_event_age_in_seconds: The maximum age of a request that Lambda sends to a function for processing.
|
|
4140
4140
|
:param maximum_retry_attempts: The maximum number of times to retry when the function returns an error.
|
|
4141
4141
|
'''
|
|
@@ -4345,7 +4345,7 @@ class CfnEventInvokeConfig(
|
|
|
4345
4345
|
def __init__(self, *, destination: builtins.str) -> None:
|
|
4346
4346
|
'''A destination for events that failed processing.
|
|
4347
4347
|
|
|
4348
|
-
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis
|
|
4348
|
+
:param destination: The Amazon Resource Name (ARN) of the destination resource. To retain records of unsuccessful `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination. To retain records of failed invocations from `Kinesis <https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html>`_ , `DynamoDB <https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html>`_ , `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
4349
4349
|
|
|
4350
4350
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onfailure.html
|
|
4351
4351
|
:exampleMetadata: fixture=_generated
|
|
@@ -4371,11 +4371,9 @@ class CfnEventInvokeConfig(
|
|
|
4371
4371
|
def destination(self) -> builtins.str:
|
|
4372
4372
|
'''The Amazon Resource Name (ARN) of the destination resource.
|
|
4373
4373
|
|
|
4374
|
-
To retain records of `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination.
|
|
4374
|
+
To retain records of unsuccessful `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Amazon S3 bucket, Lambda function, or Amazon EventBridge event bus as the destination.
|
|
4375
4375
|
|
|
4376
|
-
To retain records of failed invocations from `Kinesis
|
|
4377
|
-
|
|
4378
|
-
To retain records of failed invocations from `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
4376
|
+
To retain records of failed invocations from `Kinesis <https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html>`_ , `DynamoDB <https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html>`_ , `self-managed Kafka <https://docs.aws.amazon.com/lambda/latest/dg/with-kafka.html#services-smaa-onfailure-destination>`_ or `Amazon MSK <https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html#services-msk-onfailure-destination>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, or Amazon S3 bucket as the destination.
|
|
4379
4377
|
|
|
4380
4378
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onfailure.html#cfn-lambda-eventinvokeconfig-onfailure-destination
|
|
4381
4379
|
'''
|
|
@@ -4403,6 +4401,8 @@ class CfnEventInvokeConfig(
|
|
|
4403
4401
|
def __init__(self, *, destination: builtins.str) -> None:
|
|
4404
4402
|
'''A destination for events that were processed successfully.
|
|
4405
4403
|
|
|
4404
|
+
To retain records of successful `asynchronous invocations <https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations>`_ , you can configure an Amazon SNS topic, Amazon SQS queue, Lambda function, or Amazon EventBridge event bus as the destination.
|
|
4405
|
+
|
|
4406
4406
|
:param destination: The Amazon Resource Name (ARN) of the destination resource.
|
|
4407
4407
|
|
|
4408
4408
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-eventinvokeconfig-onsuccess.html
|
|
@@ -4472,7 +4472,7 @@ class CfnEventInvokeConfigProps:
|
|
|
4472
4472
|
|
|
4473
4473
|
:param function_name: The name of the Lambda function. *Minimum* : ``1`` *Maximum* : ``64`` *Pattern* : ``([a-zA-Z0-9-_]+)``
|
|
4474
4474
|
:param qualifier: The identifier of a version or alias. - *Version* - A version number. - *Alias* - An alias name. - *Latest* - To specify the unpublished version, use ``$LATEST`` .
|
|
4475
|
-
:param destination_config: A destination for events after they have been sent to a function for processing. **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function. - *Queue* - The ARN of a standard SQS queue. - *Topic* - The ARN of a standard SNS topic. - *Event Bus* - The ARN of an Amazon EventBridge event bus.
|
|
4475
|
+
:param destination_config: A destination for events after they have been sent to a function for processing. **Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function. - *Queue* - The ARN of a standard SQS queue. - *Bucket* - The ARN of an Amazon S3 bucket. - *Topic* - The ARN of a standard SNS topic. - *Event Bus* - The ARN of an Amazon EventBridge event bus. .. epigraph:: S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.
|
|
4476
4476
|
:param maximum_event_age_in_seconds: The maximum age of a request that Lambda sends to a function for processing.
|
|
4477
4477
|
:param maximum_retry_attempts: The maximum number of times to retry when the function returns an error.
|
|
4478
4478
|
|
|
@@ -4559,9 +4559,14 @@ class CfnEventInvokeConfigProps:
|
|
|
4559
4559
|
**Destinations** - *Function* - The Amazon Resource Name (ARN) of a Lambda function.
|
|
4560
4560
|
|
|
4561
4561
|
- *Queue* - The ARN of a standard SQS queue.
|
|
4562
|
+
- *Bucket* - The ARN of an Amazon S3 bucket.
|
|
4562
4563
|
- *Topic* - The ARN of a standard SNS topic.
|
|
4563
4564
|
- *Event Bus* - The ARN of an Amazon EventBridge event bus.
|
|
4564
4565
|
|
|
4566
|
+
.. epigraph::
|
|
4567
|
+
|
|
4568
|
+
S3 buckets are supported only for on-failure destinations. To retain records of successful invocations, use another destination type.
|
|
4569
|
+
|
|
4565
4570
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventinvokeconfig.html#cfn-lambda-eventinvokeconfig-destinationconfig
|
|
4566
4571
|
'''
|
|
4567
4572
|
result = self._values.get("destination_config")
|
|
@@ -20784,7 +20789,8 @@ class ProvisionedPollerConfig:
|
|
|
20784
20789
|
maximum_pollers: typing.Optional[jsii.Number] = None,
|
|
20785
20790
|
minimum_pollers: typing.Optional[jsii.Number] = None,
|
|
20786
20791
|
) -> None:
|
|
20787
|
-
'''
|
|
20792
|
+
'''(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.
|
|
20793
|
+
|
|
20788
20794
|
:param maximum_pollers: The maximum number of pollers that can be provisioned. Default: - 200
|
|
20789
20795
|
:param minimum_pollers: The minimum number of pollers that should be provisioned. Default: - 1
|
|
20790
20796
|
|
|
@@ -1326,7 +1326,8 @@ class ProvisionedPollerConfig:
|
|
|
1326
1326
|
maximum_pollers: jsii.Number,
|
|
1327
1327
|
minimum_pollers: jsii.Number,
|
|
1328
1328
|
) -> None:
|
|
1329
|
-
'''
|
|
1329
|
+
'''(Amazon MSK and self-managed Apache Kafka only) The provisioned mode configuration for the event source.
|
|
1330
|
+
|
|
1330
1331
|
:param maximum_pollers: The maximum number of pollers that can be provisioned. Default: 200
|
|
1331
1332
|
:param minimum_pollers: The minimum number of pollers that should be provisioned. Default: 1
|
|
1332
1333
|
|
|
@@ -109,7 +109,7 @@ With the `@aws-cdk/aws-lambda-nodejs:useLatestRuntimeVersion` disabled, the runt
|
|
|
109
109
|
|
|
110
110
|
## Lock file
|
|
111
111
|
|
|
112
|
-
The `NodejsFunction` requires a dependencies lock file (`yarn.lock`, `pnpm-lock.yaml` or
|
|
112
|
+
The `NodejsFunction` requires a dependencies lock file (`yarn.lock`, `pnpm-lock.yaml`, `bun.lockb` or
|
|
113
113
|
`package-lock.json`). When bundling in a Docker container, the path containing this lock file is
|
|
114
114
|
used as the source (`/asset-input`) for the volume mounted in the container.
|
|
115
115
|
|
|
@@ -200,8 +200,8 @@ nodejs.NodejsFunction(self, "my-handler",
|
|
|
200
200
|
|
|
201
201
|
The modules listed in `nodeModules` must be present in the `package.json`'s dependencies or
|
|
202
202
|
installed. The same version will be used for installation. The lock file (`yarn.lock`,
|
|
203
|
-
`pnpm-lock.yaml` or `package-lock.json`) will be used along with the right installer (`yarn`,
|
|
204
|
-
`pnpm` or `npm`).
|
|
203
|
+
`pnpm-lock.yaml`, `bun.lockb` or `package-lock.json`) will be used along with the right installer (`yarn`,
|
|
204
|
+
`pnpm`, `bun` or `npm`).
|
|
205
205
|
|
|
206
206
|
When working with `nodeModules` using native dependencies, you might want to force bundling in a
|
|
207
207
|
Docker container even if `esbuild` is available in your environment. This can be done by setting
|
|
@@ -338,7 +338,7 @@ nodejs.NodejsFunction(self, "my-handler",
|
|
|
338
338
|
```
|
|
339
339
|
|
|
340
340
|
This image should have `esbuild` installed **globally**. If you plan to use `nodeModules` it
|
|
341
|
-
should also have `npm`, `yarn` or `pnpm` depending on the lock file you're using.
|
|
341
|
+
should also have `npm`, `yarn`, `bun` or `pnpm` depending on the lock file you're using.
|
|
342
342
|
|
|
343
343
|
Use the [default image provided by `aws-cdk-lib/aws-lambda-nodejs`](https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-lambda-nodejs/lib/Dockerfile)
|
|
344
344
|
as a source of inspiration.
|
|
@@ -640,7 +640,7 @@ class BundlingOptions(_DockerRunOptions_81583d32):
|
|
|
640
640
|
:param charset: The charset to use for esbuild's output. By default esbuild's output is ASCII-only. Any non-ASCII characters are escaped using backslash escape sequences. Using escape sequences makes the generated output slightly bigger, and also makes it harder to read. If you would like for esbuild to print the original characters without using escape sequences, use ``Charset.UTF8``. Default: Charset.ASCII
|
|
641
641
|
:param command_hooks: Command hooks. Default: - do not run additional commands
|
|
642
642
|
:param define: Replace global identifiers with constant expressions. For example, ``{ 'process.env.DEBUG': 'true' }``. Another example, ``{ 'process.env.API_KEY': JSON.stringify('xxx-xxxx-xxx') }``. Default: - no replacements are made
|
|
643
|
-
:param docker_image: A custom bundling Docker image. This image should have esbuild installed globally. If you plan to use ``nodeModules`` it should also have ``npm``, ``yarn`` or ``pnpm`` depending on the lock file you're using. See https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-lambda-nodejs/lib/Dockerfile for the default image provided by aws-cdk-lib/aws-lambda-nodejs. Default: - use the Docker image provided by aws-cdk-lib/aws-lambda-nodejs
|
|
643
|
+
:param docker_image: A custom bundling Docker image. This image should have esbuild installed globally. If you plan to use ``nodeModules`` it should also have ``npm``, ``yarn``, ``bun`` or ``pnpm`` depending on the lock file you're using. See https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-lambda-nodejs/lib/Dockerfile for the default image provided by aws-cdk-lib/aws-lambda-nodejs. Default: - use the Docker image provided by aws-cdk-lib/aws-lambda-nodejs
|
|
644
644
|
:param esbuild_args: Build arguments to pass into esbuild. For example, to add the `--log-limit <https://esbuild.github.io/api/#log-limit>`_ flag:: new NodejsFunction(scope, id, { ... bundling: { esbuildArgs: { "--log-limit": "0", } } }); Default: - no additional esbuild arguments are passed
|
|
645
645
|
:param esbuild_version: The version of esbuild to use when running in a Docker container. Default: - latest v0
|
|
646
646
|
:param external_modules: A list of modules that should be considered as externals (already available in the runtime). Default: - no replacements are made
|
|
@@ -995,7 +995,7 @@ class BundlingOptions(_DockerRunOptions_81583d32):
|
|
|
995
995
|
'''A custom bundling Docker image.
|
|
996
996
|
|
|
997
997
|
This image should have esbuild installed globally. If you plan to use ``nodeModules``
|
|
998
|
-
it should also have ``npm``, ``yarn`` or ``pnpm`` depending on the lock file you're using.
|
|
998
|
+
it should also have ``npm``, ``yarn``, ``bun`` or ``pnpm`` depending on the lock file you're using.
|
|
999
999
|
|
|
1000
1000
|
See https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-lambda-nodejs/lib/Dockerfile
|
|
1001
1001
|
for the default image provided by aws-cdk-lib/aws-lambda-nodejs.
|
|
@@ -1625,7 +1625,7 @@ class NodejsFunction(
|
|
|
1625
1625
|
:param aws_sdk_connection_reuse: The ``AWS_NODEJS_CONNECTION_REUSE_ENABLED`` environment variable does not exist in the AWS SDK for JavaScript v3. This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy Info for Node 16 runtimes / SDK v2 users: Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript v2. This sets the ``AWS_NODEJS_CONNECTION_REUSE_ENABLED`` environment variable to ``1``. Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16.
|
|
1626
1626
|
:param bundling: Bundling options. Default: - use default bundling options: no minify, no sourcemap, all modules are bundled.
|
|
1627
1627
|
:param code: The code that will be deployed to the Lambda Handler. If included, then properties related to bundling of the code are ignored. - If the ``code`` field is specified, then you must include the ``handler`` property. Default: - the code is bundled by esbuild
|
|
1628
|
-
:param deps_lock_file_path: The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json``). This will be used as the source for the volume mounted in the Docker container. Modules specified in ``nodeModules`` will be installed using the right installer (``yarn``, ``pnpm`` or ``npm``) along with this lock file. Default: - the path is found by walking up parent directories searching for a ``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json`` file
|
|
1628
|
+
:param deps_lock_file_path: The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json``). This will be used as the source for the volume mounted in the Docker container. Modules specified in ``nodeModules`` will be installed using the right installer (``yarn``, ``pnpm``, ``bun`` or ``npm``) along with this lock file. Default: - the path is found by walking up parent directories searching for a ``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json`` file
|
|
1629
1629
|
:param entry: Path to the entry file (JavaScript or TypeScript). Default: - Derived from the name of the defining file and the construct's id. If the ``NodejsFunction`` is defined in ``stack.ts`` with ``my-handler`` as id (``new NodejsFunction(this, 'my-handler')``), the construct will look at ``stack.my-handler.ts`` and ``stack.my-handler.js``.
|
|
1630
1630
|
:param handler: The name of the exported handler in the entry file. - If the ``code`` property is supplied, then you must include the ``handler`` property. The handler should be the name of the file that contains the exported handler and the function that should be called when the AWS Lambda is invoked. For example, if you had a file called ``myLambda.js`` and the function to be invoked was ``myHandler``, then you should input ``handler`` property as ``myLambda.myHandler``. - If the ``code`` property is not supplied and the handler input does not contain a ``.``, then the handler is prefixed with ``index.`` (index period). Otherwise, the handler property is not modified. Default: handler
|
|
1631
1631
|
:param project_root: The path to the directory containing project config files (``package.json`` or ``tsconfig.json``). Default: - the directory containing the ``depsLockFilePath``
|
|
@@ -1926,7 +1926,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1926
1926
|
:param aws_sdk_connection_reuse: The ``AWS_NODEJS_CONNECTION_REUSE_ENABLED`` environment variable does not exist in the AWS SDK for JavaScript v3. This prop will be deprecated when the Lambda Node16 runtime is deprecated on June 12, 2024. See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy Info for Node 16 runtimes / SDK v2 users: Whether to automatically reuse TCP connections when working with the AWS SDK for JavaScript v2. This sets the ``AWS_NODEJS_CONNECTION_REUSE_ENABLED`` environment variable to ``1``. Default: - false (obsolete) for runtimes >= Node 18, true for runtimes <= Node 16.
|
|
1927
1927
|
:param bundling: Bundling options. Default: - use default bundling options: no minify, no sourcemap, all modules are bundled.
|
|
1928
1928
|
:param code: The code that will be deployed to the Lambda Handler. If included, then properties related to bundling of the code are ignored. - If the ``code`` field is specified, then you must include the ``handler`` property. Default: - the code is bundled by esbuild
|
|
1929
|
-
:param deps_lock_file_path: The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json``). This will be used as the source for the volume mounted in the Docker container. Modules specified in ``nodeModules`` will be installed using the right installer (``yarn``, ``pnpm`` or ``npm``) along with this lock file. Default: - the path is found by walking up parent directories searching for a ``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json`` file
|
|
1929
|
+
:param deps_lock_file_path: The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json``). This will be used as the source for the volume mounted in the Docker container. Modules specified in ``nodeModules`` will be installed using the right installer (``yarn``, ``pnpm``, ``bun`` or ``npm``) along with this lock file. Default: - the path is found by walking up parent directories searching for a ``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json`` file
|
|
1930
1930
|
:param entry: Path to the entry file (JavaScript or TypeScript). Default: - Derived from the name of the defining file and the construct's id. If the ``NodejsFunction`` is defined in ``stack.ts`` with ``my-handler`` as id (``new NodejsFunction(this, 'my-handler')``), the construct will look at ``stack.my-handler.ts`` and ``stack.my-handler.js``.
|
|
1931
1931
|
:param handler: The name of the exported handler in the entry file. - If the ``code`` property is supplied, then you must include the ``handler`` property. The handler should be the name of the file that contains the exported handler and the function that should be called when the AWS Lambda is invoked. For example, if you had a file called ``myLambda.js`` and the function to be invoked was ``myHandler``, then you should input ``handler`` property as ``myLambda.myHandler``. - If the ``code`` property is not supplied and the handler input does not contain a ``.``, then the handler is prefixed with ``index.`` (index period). Otherwise, the handler property is not modified. Default: handler
|
|
1932
1932
|
:param project_root: The path to the directory containing project config files (``package.json`` or ``tsconfig.json``). Default: - the directory containing the ``depsLockFilePath``
|
|
@@ -2779,18 +2779,18 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
2779
2779
|
|
|
2780
2780
|
@builtins.property
|
|
2781
2781
|
def deps_lock_file_path(self) -> typing.Optional[builtins.str]:
|
|
2782
|
-
'''The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json``).
|
|
2782
|
+
'''The path to the dependencies lock file (``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json``).
|
|
2783
2783
|
|
|
2784
2784
|
This will be used as the source for the volume mounted in the Docker
|
|
2785
2785
|
container.
|
|
2786
2786
|
|
|
2787
2787
|
Modules specified in ``nodeModules`` will be installed using the right
|
|
2788
|
-
installer (``yarn``, ``pnpm`` or ``npm``) along with this lock file.
|
|
2788
|
+
installer (``yarn``, ``pnpm``, ``bun`` or ``npm``) along with this lock file.
|
|
2789
2789
|
|
|
2790
2790
|
:default:
|
|
2791
2791
|
|
|
2792
2792
|
- the path is found by walking up parent directories searching for
|
|
2793
|
-
a ``yarn.lock``, ``pnpm-lock.yaml`` or ``package-lock.json`` file
|
|
2793
|
+
a ``yarn.lock``, ``pnpm-lock.yaml``, ``bun.lockb`` or ``package-lock.json`` file
|
|
2794
2794
|
'''
|
|
2795
2795
|
result = self._values.get("deps_lock_file_path")
|
|
2796
2796
|
return typing.cast(typing.Optional[builtins.str], result)
|