aws-cdk-lib 2.128.0__py3-none-any.whl → 2.129.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 +2 -10
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.128.0.jsii.tgz → aws-cdk-lib@2.129.0.jsii.tgz} +0 -0
- aws_cdk/aws_amazonmq/__init__.py +6 -24
- aws_cdk/aws_amplify/__init__.py +1 -2
- aws_cdk/aws_appconfig/__init__.py +0 -16
- aws_cdk/aws_applicationautoscaling/__init__.py +55 -22
- aws_cdk/aws_appstream/__init__.py +14 -14
- aws_cdk/aws_appsync/__init__.py +334 -3
- aws_cdk/aws_autoscaling/__init__.py +11 -7
- aws_cdk/aws_batch/__init__.py +137 -16
- aws_cdk/aws_cleanrooms/__init__.py +1 -2
- aws_cdk/aws_cloudformation/__init__.py +2 -10
- aws_cdk/aws_cloudfront/__init__.py +15 -8
- aws_cdk/aws_cloudfront/experimental/__init__.py +22 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +332 -0
- aws_cdk/aws_cloudtrail/__init__.py +12 -2
- aws_cdk/aws_cloudwatch/__init__.py +4 -0
- aws_cdk/aws_codepipeline/__init__.py +463 -11
- aws_cdk/aws_cognito/__init__.py +0 -9
- aws_cdk/aws_config/__init__.py +2 -2
- aws_cdk/aws_connect/__init__.py +6 -1
- aws_cdk/aws_controltower/__init__.py +527 -7
- aws_cdk/aws_datasync/__init__.py +2 -2
- aws_cdk/aws_directoryservice/__init__.py +2 -3
- aws_cdk/aws_dynamodb/__init__.py +7 -0
- aws_cdk/aws_ec2/__init__.py +117 -210
- aws_cdk/aws_ecs/__init__.py +537 -3
- aws_cdk/aws_eks/__init__.py +1 -1
- aws_cdk/aws_elasticache/__init__.py +27 -20
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +3 -4
- aws_cdk/aws_emr/__init__.py +23 -3
- aws_cdk/aws_events_targets/__init__.py +64 -20
- aws_cdk/aws_fis/__init__.py +4 -4
- aws_cdk/aws_frauddetector/__init__.py +3 -3
- aws_cdk/aws_globalaccelerator/__init__.py +2 -6
- aws_cdk/aws_glue/__init__.py +84 -55
- aws_cdk/aws_groundstation/__init__.py +8 -12
- aws_cdk/aws_guardduty/__init__.py +74 -70
- aws_cdk/aws_iam/__init__.py +16 -23
- aws_cdk/aws_imagebuilder/__init__.py +178 -156
- aws_cdk/aws_internetmonitor/__init__.py +12 -10
- aws_cdk/aws_iot/__init__.py +17 -10
- aws_cdk/aws_iotevents/__init__.py +4 -4
- aws_cdk/aws_iotfleetwise/__init__.py +10 -5
- aws_cdk/aws_iottwinmaker/__init__.py +3 -5
- aws_cdk/aws_iotwireless/__init__.py +35 -23
- aws_cdk/aws_kendra/__init__.py +36 -15
- aws_cdk/aws_kinesisfirehose/__init__.py +155 -114
- aws_cdk/aws_lambda/__init__.py +157 -12
- aws_cdk/aws_lambda_nodejs/__init__.py +22 -0
- aws_cdk/aws_lightsail/__init__.py +14 -18
- aws_cdk/aws_logs/__init__.py +15 -15
- aws_cdk/aws_mediaconnect/__init__.py +5 -3
- aws_cdk/aws_medialive/__init__.py +3 -12
- aws_cdk/aws_mediapackagev2/__init__.py +287 -286
- aws_cdk/aws_mediatailor/__init__.py +2 -2
- aws_cdk/aws_memorydb/__init__.py +2 -2
- aws_cdk/aws_msk/__init__.py +6 -3
- aws_cdk/aws_mwaa/__init__.py +10 -5
- aws_cdk/aws_neptunegraph/__init__.py +84 -66
- aws_cdk/aws_networkfirewall/__init__.py +5 -8
- aws_cdk/aws_networkmanager/__init__.py +3 -3
- aws_cdk/aws_nimblestudio/__init__.py +2 -4
- aws_cdk/aws_opensearchservice/__init__.py +6 -7
- aws_cdk/aws_osis/__init__.py +1 -3
- aws_cdk/aws_pinpoint/__init__.py +5 -5
- aws_cdk/aws_pipes/__init__.py +5 -5
- aws_cdk/aws_quicksight/__init__.py +5 -10
- aws_cdk/aws_rds/__init__.py +38 -21
- aws_cdk/aws_redshift/__init__.py +9 -5
- aws_cdk/aws_redshiftserverless/__init__.py +62 -38
- aws_cdk/aws_rolesanywhere/__init__.py +41 -53
- aws_cdk/aws_route53/__init__.py +532 -6
- aws_cdk/aws_route53recoverycontrol/__init__.py +1 -3
- aws_cdk/aws_route53recoveryreadiness/__init__.py +2 -2
- aws_cdk/aws_route53resolver/__init__.py +1 -4
- aws_cdk/aws_s3/__init__.py +3 -1
- aws_cdk/aws_s3objectlambda/__init__.py +7 -4
- aws_cdk/aws_s3outposts/__init__.py +1 -1
- aws_cdk/aws_sagemaker/__init__.py +111 -11
- aws_cdk/aws_servicecatalogappregistry/__init__.py +3 -3
- aws_cdk/aws_sns/__init__.py +185 -38
- aws_cdk/aws_ssm/__init__.py +16 -16
- aws_cdk/aws_ssmincidents/__init__.py +1 -1
- aws_cdk/aws_synthetics/__init__.py +94 -21
- aws_cdk/aws_verifiedpermissions/__init__.py +1 -2
- aws_cdk/aws_vpclattice/__init__.py +8 -4
- aws_cdk/aws_wafv2/__init__.py +14 -59
- aws_cdk/aws_workspaces/__init__.py +5 -4
- aws_cdk/aws_workspacesweb/__init__.py +6 -12
- aws_cdk/triggers/__init__.py +22 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/RECORD +98 -98
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.128.0.dist-info → aws_cdk_lib-2.129.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_lambda/__init__.py
CHANGED
|
@@ -1169,6 +1169,47 @@ fn = lambda_.Function(self, "MyLambda",
|
|
|
1169
1169
|
)
|
|
1170
1170
|
```
|
|
1171
1171
|
|
|
1172
|
+
## IPv6 support
|
|
1173
|
+
|
|
1174
|
+
You can configure IPv6 connectivity for lambda function by setting `Ipv6AllowedForDualStack` to true.
|
|
1175
|
+
It allows Lambda functions to specify whether the IPv6 traffic should be allowed when using dual-stack VPCs.
|
|
1176
|
+
To access IPv6 network using Lambda, Dual-stack VPC is required. Using dual-stack VPC a function communicates with subnet over either of IPv4 or IPv6.
|
|
1177
|
+
|
|
1178
|
+
```python
|
|
1179
|
+
import aws_cdk.aws_ec2 as ec2
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
nat_provider = ec2.NatProvider.gateway()
|
|
1183
|
+
|
|
1184
|
+
# create dual-stack VPC
|
|
1185
|
+
vpc = ec2.Vpc(self, "DualStackVpc",
|
|
1186
|
+
ip_protocol=ec2.IpProtocol.DUAL_STACK,
|
|
1187
|
+
subnet_configuration=[ec2.SubnetConfiguration(
|
|
1188
|
+
name="Ipv6Public1",
|
|
1189
|
+
subnet_type=ec2.SubnetType.PUBLIC
|
|
1190
|
+
), ec2.SubnetConfiguration(
|
|
1191
|
+
name="Ipv6Public2",
|
|
1192
|
+
subnet_type=ec2.SubnetType.PUBLIC
|
|
1193
|
+
), ec2.SubnetConfiguration(
|
|
1194
|
+
name="Ipv6Private1",
|
|
1195
|
+
subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
|
|
1196
|
+
)
|
|
1197
|
+
],
|
|
1198
|
+
nat_gateway_provider=nat_provider
|
|
1199
|
+
)
|
|
1200
|
+
|
|
1201
|
+
nat_gateway_id = nat_provider.configured_gateways[0].gateway_id
|
|
1202
|
+
(vpc.private_subnets[0]).add_ipv6_nat64_route(nat_gateway_id)
|
|
1203
|
+
|
|
1204
|
+
fn = lambda_.Function(self, "Lambda_with_IPv6_VPC",
|
|
1205
|
+
code=lambda_.InlineCode("def main(event, context): pass"),
|
|
1206
|
+
handler="index.main",
|
|
1207
|
+
runtime=lambda_.Runtime.PYTHON_3_9,
|
|
1208
|
+
vpc=vpc,
|
|
1209
|
+
ipv6_allowed_for_dual_stack=True
|
|
1210
|
+
)
|
|
1211
|
+
```
|
|
1212
|
+
|
|
1172
1213
|
## Ephemeral Storage
|
|
1173
1214
|
|
|
1174
1215
|
You can configure ephemeral storage on a function to control the amount of storage it gets for reading
|
|
@@ -1372,6 +1413,7 @@ from .. import (
|
|
|
1372
1413
|
Size as _Size_7b441c34,
|
|
1373
1414
|
SymlinkFollowMode as _SymlinkFollowMode_047ec1f6,
|
|
1374
1415
|
TagManager as _TagManager_0a598cb3,
|
|
1416
|
+
TimeZone as _TimeZone_cdd72ac9,
|
|
1375
1417
|
TreeInspector as _TreeInspector_488e0dd5,
|
|
1376
1418
|
)
|
|
1377
1419
|
from ..aws_applicationautoscaling import (
|
|
@@ -9070,8 +9112,7 @@ class CfnPermission(
|
|
|
9070
9112
|
@builtins.property
|
|
9071
9113
|
@jsii.member(jsii_name="attrId")
|
|
9072
9114
|
def attr_id(self) -> builtins.str:
|
|
9073
|
-
'''
|
|
9074
|
-
|
|
9115
|
+
'''
|
|
9075
9116
|
:cloudformationAttribute: Id
|
|
9076
9117
|
'''
|
|
9077
9118
|
return typing.cast(builtins.str, jsii.get(self, "attrId"))
|
|
@@ -13598,6 +13639,7 @@ class FunctionAttributes:
|
|
|
13598
13639
|
"function_name": "functionName",
|
|
13599
13640
|
"initial_policy": "initialPolicy",
|
|
13600
13641
|
"insights_version": "insightsVersion",
|
|
13642
|
+
"ipv6_allowed_for_dual_stack": "ipv6AllowedForDualStack",
|
|
13601
13643
|
"layers": "layers",
|
|
13602
13644
|
"log_format": "logFormat",
|
|
13603
13645
|
"logging_format": "loggingFormat",
|
|
@@ -13648,6 +13690,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13648
13690
|
function_name: typing.Optional[builtins.str] = None,
|
|
13649
13691
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
13650
13692
|
insights_version: typing.Optional["LambdaInsightsVersion"] = None,
|
|
13693
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
13651
13694
|
layers: typing.Optional[typing.Sequence["ILayerVersion"]] = None,
|
|
13652
13695
|
log_format: typing.Optional[builtins.str] = None,
|
|
13653
13696
|
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
@@ -13695,6 +13738,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13695
13738
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
13696
13739
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
13697
13740
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
13741
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
13698
13742
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
13699
13743
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
13700
13744
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -13791,6 +13835,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13791
13835
|
function_name="functionName",
|
|
13792
13836
|
initial_policy=[policy_statement],
|
|
13793
13837
|
insights_version=lambda_insights_version,
|
|
13838
|
+
ipv6_allowed_for_dual_stack=False,
|
|
13794
13839
|
layers=[layer_version],
|
|
13795
13840
|
log_format="logFormat",
|
|
13796
13841
|
logging_format=lambda_.LoggingFormat.TEXT,
|
|
@@ -13861,6 +13906,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13861
13906
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
13862
13907
|
check_type(argname="argument initial_policy", value=initial_policy, expected_type=type_hints["initial_policy"])
|
|
13863
13908
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
13909
|
+
check_type(argname="argument ipv6_allowed_for_dual_stack", value=ipv6_allowed_for_dual_stack, expected_type=type_hints["ipv6_allowed_for_dual_stack"])
|
|
13864
13910
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
13865
13911
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
13866
13912
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
@@ -13929,6 +13975,8 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
13929
13975
|
self._values["initial_policy"] = initial_policy
|
|
13930
13976
|
if insights_version is not None:
|
|
13931
13977
|
self._values["insights_version"] = insights_version
|
|
13978
|
+
if ipv6_allowed_for_dual_stack is not None:
|
|
13979
|
+
self._values["ipv6_allowed_for_dual_stack"] = ipv6_allowed_for_dual_stack
|
|
13932
13980
|
if layers is not None:
|
|
13933
13981
|
self._values["layers"] = layers
|
|
13934
13982
|
if log_format is not None:
|
|
@@ -14220,6 +14268,17 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14220
14268
|
result = self._values.get("insights_version")
|
|
14221
14269
|
return typing.cast(typing.Optional["LambdaInsightsVersion"], result)
|
|
14222
14270
|
|
|
14271
|
+
@builtins.property
|
|
14272
|
+
def ipv6_allowed_for_dual_stack(self) -> typing.Optional[builtins.bool]:
|
|
14273
|
+
'''Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
|
|
14274
|
+
|
|
14275
|
+
Only used if 'vpc' is supplied.
|
|
14276
|
+
|
|
14277
|
+
:default: false
|
|
14278
|
+
'''
|
|
14279
|
+
result = self._values.get("ipv6_allowed_for_dual_stack")
|
|
14280
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
14281
|
+
|
|
14223
14282
|
@builtins.property
|
|
14224
14283
|
def layers(self) -> typing.Optional[typing.List["ILayerVersion"]]:
|
|
14225
14284
|
'''A list of layers to add to the function's execution environment.
|
|
@@ -14533,6 +14592,7 @@ class FunctionOptions(EventInvokeConfigOptions):
|
|
|
14533
14592
|
"function_name": "functionName",
|
|
14534
14593
|
"initial_policy": "initialPolicy",
|
|
14535
14594
|
"insights_version": "insightsVersion",
|
|
14595
|
+
"ipv6_allowed_for_dual_stack": "ipv6AllowedForDualStack",
|
|
14536
14596
|
"layers": "layers",
|
|
14537
14597
|
"log_format": "logFormat",
|
|
14538
14598
|
"logging_format": "loggingFormat",
|
|
@@ -14586,6 +14646,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14586
14646
|
function_name: typing.Optional[builtins.str] = None,
|
|
14587
14647
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
14588
14648
|
insights_version: typing.Optional["LambdaInsightsVersion"] = None,
|
|
14649
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
14589
14650
|
layers: typing.Optional[typing.Sequence["ILayerVersion"]] = None,
|
|
14590
14651
|
log_format: typing.Optional[builtins.str] = None,
|
|
14591
14652
|
logging_format: typing.Optional["LoggingFormat"] = None,
|
|
@@ -14635,6 +14696,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14635
14696
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
14636
14697
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
14637
14698
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
14699
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
14638
14700
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
14639
14701
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
14640
14702
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -14720,6 +14782,7 @@ class FunctionProps(FunctionOptions):
|
|
|
14720
14782
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
14721
14783
|
check_type(argname="argument initial_policy", value=initial_policy, expected_type=type_hints["initial_policy"])
|
|
14722
14784
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
14785
|
+
check_type(argname="argument ipv6_allowed_for_dual_stack", value=ipv6_allowed_for_dual_stack, expected_type=type_hints["ipv6_allowed_for_dual_stack"])
|
|
14723
14786
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
14724
14787
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
14725
14788
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
@@ -14795,6 +14858,8 @@ class FunctionProps(FunctionOptions):
|
|
|
14795
14858
|
self._values["initial_policy"] = initial_policy
|
|
14796
14859
|
if insights_version is not None:
|
|
14797
14860
|
self._values["insights_version"] = insights_version
|
|
14861
|
+
if ipv6_allowed_for_dual_stack is not None:
|
|
14862
|
+
self._values["ipv6_allowed_for_dual_stack"] = ipv6_allowed_for_dual_stack
|
|
14798
14863
|
if layers is not None:
|
|
14799
14864
|
self._values["layers"] = layers
|
|
14800
14865
|
if log_format is not None:
|
|
@@ -15086,6 +15151,17 @@ class FunctionProps(FunctionOptions):
|
|
|
15086
15151
|
result = self._values.get("insights_version")
|
|
15087
15152
|
return typing.cast(typing.Optional["LambdaInsightsVersion"], result)
|
|
15088
15153
|
|
|
15154
|
+
@builtins.property
|
|
15155
|
+
def ipv6_allowed_for_dual_stack(self) -> typing.Optional[builtins.bool]:
|
|
15156
|
+
'''Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
|
|
15157
|
+
|
|
15158
|
+
Only used if 'vpc' is supplied.
|
|
15159
|
+
|
|
15160
|
+
:default: false
|
|
15161
|
+
'''
|
|
15162
|
+
result = self._values.get("ipv6_allowed_for_dual_stack")
|
|
15163
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
15164
|
+
|
|
15089
15165
|
@builtins.property
|
|
15090
15166
|
def layers(self) -> typing.Optional[typing.List["ILayerVersion"]]:
|
|
15091
15167
|
'''A list of layers to add to the function's execution environment.
|
|
@@ -15423,12 +15499,16 @@ class FunctionUrlAuthType(enum.Enum):
|
|
|
15423
15499
|
|
|
15424
15500
|
Example::
|
|
15425
15501
|
|
|
15502
|
+
# Can be a Function or an Alias
|
|
15426
15503
|
# fn: lambda.Function
|
|
15427
15504
|
|
|
15428
15505
|
|
|
15429
|
-
fn.add_function_url(
|
|
15430
|
-
auth_type=lambda_.FunctionUrlAuthType.NONE
|
|
15431
|
-
|
|
15506
|
+
fn_url = fn.add_function_url(
|
|
15507
|
+
auth_type=lambda_.FunctionUrlAuthType.NONE
|
|
15508
|
+
)
|
|
15509
|
+
|
|
15510
|
+
CfnOutput(self, "TheUrl",
|
|
15511
|
+
value=fn_url.url
|
|
15432
15512
|
)
|
|
15433
15513
|
'''
|
|
15434
15514
|
|
|
@@ -15601,12 +15681,16 @@ class FunctionUrlOptions:
|
|
|
15601
15681
|
|
|
15602
15682
|
Example::
|
|
15603
15683
|
|
|
15684
|
+
# Can be a Function or an Alias
|
|
15604
15685
|
# fn: lambda.Function
|
|
15605
15686
|
|
|
15606
15687
|
|
|
15607
|
-
fn.add_function_url(
|
|
15608
|
-
auth_type=lambda_.FunctionUrlAuthType.NONE
|
|
15609
|
-
|
|
15688
|
+
fn_url = fn.add_function_url(
|
|
15689
|
+
auth_type=lambda_.FunctionUrlAuthType.NONE
|
|
15690
|
+
)
|
|
15691
|
+
|
|
15692
|
+
CfnOutput(self, "TheUrl",
|
|
15693
|
+
value=fn_url.url
|
|
15610
15694
|
)
|
|
15611
15695
|
'''
|
|
15612
15696
|
if isinstance(cors, dict):
|
|
@@ -17189,6 +17273,7 @@ class IScalableFunctionAttribute(
|
|
|
17189
17273
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
17190
17274
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
17191
17275
|
start_time: typing.Optional[datetime.datetime] = None,
|
|
17276
|
+
time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
|
|
17192
17277
|
) -> None:
|
|
17193
17278
|
'''Scale out or in based on schedule.
|
|
17194
17279
|
|
|
@@ -17198,6 +17283,7 @@ class IScalableFunctionAttribute(
|
|
|
17198
17283
|
:param max_capacity: The new maximum capacity. During the scheduled time, the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new maximum capacity
|
|
17199
17284
|
:param min_capacity: The new minimum capacity. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new minimum capacity
|
|
17200
17285
|
:param start_time: When this scheduled action becomes active. Default: The rule is activate immediately
|
|
17286
|
+
:param time_zone: The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression. Default: - UTC
|
|
17201
17287
|
'''
|
|
17202
17288
|
...
|
|
17203
17289
|
|
|
@@ -17243,6 +17329,7 @@ class _IScalableFunctionAttributeProxy(
|
|
|
17243
17329
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
17244
17330
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
17245
17331
|
start_time: typing.Optional[datetime.datetime] = None,
|
|
17332
|
+
time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
|
|
17246
17333
|
) -> None:
|
|
17247
17334
|
'''Scale out or in based on schedule.
|
|
17248
17335
|
|
|
@@ -17252,6 +17339,7 @@ class _IScalableFunctionAttributeProxy(
|
|
|
17252
17339
|
:param max_capacity: The new maximum capacity. During the scheduled time, the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new maximum capacity
|
|
17253
17340
|
:param min_capacity: The new minimum capacity. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new minimum capacity
|
|
17254
17341
|
:param start_time: When this scheduled action becomes active. Default: The rule is activate immediately
|
|
17342
|
+
:param time_zone: The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression. Default: - UTC
|
|
17255
17343
|
'''
|
|
17256
17344
|
if __debug__:
|
|
17257
17345
|
type_hints = typing.get_type_hints(_typecheckingstub__6400e52bafb7e00e3113dbb1e115c4dea946b786b17eee75a6aa6706a941170c)
|
|
@@ -17262,6 +17350,7 @@ class _IScalableFunctionAttributeProxy(
|
|
|
17262
17350
|
max_capacity=max_capacity,
|
|
17263
17351
|
min_capacity=min_capacity,
|
|
17264
17352
|
start_time=start_time,
|
|
17353
|
+
time_zone=time_zone,
|
|
17265
17354
|
)
|
|
17266
17355
|
|
|
17267
17356
|
return typing.cast(None, jsii.invoke(self, "scaleOnSchedule", [id, actions]))
|
|
@@ -19240,6 +19329,12 @@ class Runtime(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.Runtime
|
|
|
19240
19329
|
'''The .NET 6 runtime (dotnet6).'''
|
|
19241
19330
|
return typing.cast("Runtime", jsii.sget(cls, "DOTNET_6"))
|
|
19242
19331
|
|
|
19332
|
+
@jsii.python.classproperty
|
|
19333
|
+
@jsii.member(jsii_name="DOTNET_8")
|
|
19334
|
+
def DOTNET_8(cls) -> "Runtime":
|
|
19335
|
+
'''The .NET 8 runtime (dotnet8).'''
|
|
19336
|
+
return typing.cast("Runtime", jsii.sget(cls, "DOTNET_8"))
|
|
19337
|
+
|
|
19243
19338
|
@jsii.python.classproperty
|
|
19244
19339
|
@jsii.member(jsii_name="DOTNET_CORE_1")
|
|
19245
19340
|
def DOTNET_CORE_1(cls) -> "Runtime":
|
|
@@ -19774,6 +19869,7 @@ class S3Code(Code, metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_lambda.S3
|
|
|
19774
19869
|
"function_name": "functionName",
|
|
19775
19870
|
"initial_policy": "initialPolicy",
|
|
19776
19871
|
"insights_version": "insightsVersion",
|
|
19872
|
+
"ipv6_allowed_for_dual_stack": "ipv6AllowedForDualStack",
|
|
19777
19873
|
"layers": "layers",
|
|
19778
19874
|
"log_format": "logFormat",
|
|
19779
19875
|
"logging_format": "loggingFormat",
|
|
@@ -19829,6 +19925,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19829
19925
|
function_name: typing.Optional[builtins.str] = None,
|
|
19830
19926
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
19831
19927
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
19928
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
19832
19929
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
19833
19930
|
log_format: typing.Optional[builtins.str] = None,
|
|
19834
19931
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -19881,6 +19978,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19881
19978
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
19882
19979
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
19883
19980
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
19981
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
19884
19982
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
19885
19983
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
19886
19984
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -19951,6 +20049,7 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
19951
20049
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
19952
20050
|
check_type(argname="argument initial_policy", value=initial_policy, expected_type=type_hints["initial_policy"])
|
|
19953
20051
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
20052
|
+
check_type(argname="argument ipv6_allowed_for_dual_stack", value=ipv6_allowed_for_dual_stack, expected_type=type_hints["ipv6_allowed_for_dual_stack"])
|
|
19954
20053
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
19955
20054
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
19956
20055
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
@@ -20029,6 +20128,8 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20029
20128
|
self._values["initial_policy"] = initial_policy
|
|
20030
20129
|
if insights_version is not None:
|
|
20031
20130
|
self._values["insights_version"] = insights_version
|
|
20131
|
+
if ipv6_allowed_for_dual_stack is not None:
|
|
20132
|
+
self._values["ipv6_allowed_for_dual_stack"] = ipv6_allowed_for_dual_stack
|
|
20032
20133
|
if layers is not None:
|
|
20033
20134
|
self._values["layers"] = layers
|
|
20034
20135
|
if log_format is not None:
|
|
@@ -20322,6 +20423,17 @@ class SingletonFunctionProps(FunctionProps):
|
|
|
20322
20423
|
result = self._values.get("insights_version")
|
|
20323
20424
|
return typing.cast(typing.Optional[LambdaInsightsVersion], result)
|
|
20324
20425
|
|
|
20426
|
+
@builtins.property
|
|
20427
|
+
def ipv6_allowed_for_dual_stack(self) -> typing.Optional[builtins.bool]:
|
|
20428
|
+
'''Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
|
|
20429
|
+
|
|
20430
|
+
Only used if 'vpc' is supplied.
|
|
20431
|
+
|
|
20432
|
+
:default: false
|
|
20433
|
+
'''
|
|
20434
|
+
result = self._values.get("ipv6_allowed_for_dual_stack")
|
|
20435
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
20436
|
+
|
|
20325
20437
|
@builtins.property
|
|
20326
20438
|
def layers(self) -> typing.Optional[typing.List[ILayerVersion]]:
|
|
20327
20439
|
'''A list of layers to add to the function's execution environment.
|
|
@@ -22635,6 +22747,7 @@ class CodeSigningConfig(
|
|
|
22635
22747
|
"function_name": "functionName",
|
|
22636
22748
|
"initial_policy": "initialPolicy",
|
|
22637
22749
|
"insights_version": "insightsVersion",
|
|
22750
|
+
"ipv6_allowed_for_dual_stack": "ipv6AllowedForDualStack",
|
|
22638
22751
|
"layers": "layers",
|
|
22639
22752
|
"log_format": "logFormat",
|
|
22640
22753
|
"logging_format": "loggingFormat",
|
|
@@ -22686,6 +22799,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22686
22799
|
function_name: typing.Optional[builtins.str] = None,
|
|
22687
22800
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
22688
22801
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
22802
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
22689
22803
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
22690
22804
|
log_format: typing.Optional[builtins.str] = None,
|
|
22691
22805
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -22734,6 +22848,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22734
22848
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
22735
22849
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
22736
22850
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
22851
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
22737
22852
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
22738
22853
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
22739
22854
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -22798,6 +22913,7 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22798
22913
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
22799
22914
|
check_type(argname="argument initial_policy", value=initial_policy, expected_type=type_hints["initial_policy"])
|
|
22800
22915
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
22916
|
+
check_type(argname="argument ipv6_allowed_for_dual_stack", value=ipv6_allowed_for_dual_stack, expected_type=type_hints["ipv6_allowed_for_dual_stack"])
|
|
22801
22917
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
22802
22918
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
22803
22919
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
@@ -22869,6 +22985,8 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
22869
22985
|
self._values["initial_policy"] = initial_policy
|
|
22870
22986
|
if insights_version is not None:
|
|
22871
22987
|
self._values["insights_version"] = insights_version
|
|
22988
|
+
if ipv6_allowed_for_dual_stack is not None:
|
|
22989
|
+
self._values["ipv6_allowed_for_dual_stack"] = ipv6_allowed_for_dual_stack
|
|
22872
22990
|
if layers is not None:
|
|
22873
22991
|
self._values["layers"] = layers
|
|
22874
22992
|
if log_format is not None:
|
|
@@ -23160,6 +23278,17 @@ class DockerImageFunctionProps(FunctionOptions):
|
|
|
23160
23278
|
result = self._values.get("insights_version")
|
|
23161
23279
|
return typing.cast(typing.Optional[LambdaInsightsVersion], result)
|
|
23162
23280
|
|
|
23281
|
+
@builtins.property
|
|
23282
|
+
def ipv6_allowed_for_dual_stack(self) -> typing.Optional[builtins.bool]:
|
|
23283
|
+
'''Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
|
|
23284
|
+
|
|
23285
|
+
Only used if 'vpc' is supplied.
|
|
23286
|
+
|
|
23287
|
+
:default: false
|
|
23288
|
+
'''
|
|
23289
|
+
result = self._values.get("ipv6_allowed_for_dual_stack")
|
|
23290
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
23291
|
+
|
|
23163
23292
|
@builtins.property
|
|
23164
23293
|
def layers(self) -> typing.Optional[typing.List[ILayerVersion]]:
|
|
23165
23294
|
'''A list of layers to add to the function's execution environment.
|
|
@@ -24311,14 +24440,13 @@ class FunctionUrl(
|
|
|
24311
24440
|
|
|
24312
24441
|
# Can be a Function or an Alias
|
|
24313
24442
|
# fn: lambda.Function
|
|
24314
|
-
# my_role: iam.Role
|
|
24315
24443
|
|
|
24316
24444
|
|
|
24317
|
-
fn_url = fn.add_function_url(
|
|
24318
|
-
|
|
24445
|
+
fn_url = fn.add_function_url(
|
|
24446
|
+
auth_type=lambda_.FunctionUrlAuthType.NONE
|
|
24447
|
+
)
|
|
24319
24448
|
|
|
24320
24449
|
CfnOutput(self, "TheUrl",
|
|
24321
|
-
# The .url attributes will return the unique Function URL
|
|
24322
24450
|
value=fn_url.url
|
|
24323
24451
|
)
|
|
24324
24452
|
'''
|
|
@@ -24624,6 +24752,7 @@ class SingletonFunction(
|
|
|
24624
24752
|
function_name: typing.Optional[builtins.str] = None,
|
|
24625
24753
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
24626
24754
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
24755
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
24627
24756
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
24628
24757
|
log_format: typing.Optional[builtins.str] = None,
|
|
24629
24758
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -24677,6 +24806,7 @@ class SingletonFunction(
|
|
|
24677
24806
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
24678
24807
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
24679
24808
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
24809
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
24680
24810
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
24681
24811
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
24682
24812
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -24732,6 +24862,7 @@ class SingletonFunction(
|
|
|
24732
24862
|
function_name=function_name,
|
|
24733
24863
|
initial_policy=initial_policy,
|
|
24734
24864
|
insights_version=insights_version,
|
|
24865
|
+
ipv6_allowed_for_dual_stack=ipv6_allowed_for_dual_stack,
|
|
24735
24866
|
layers=layers,
|
|
24736
24867
|
log_format=log_format,
|
|
24737
24868
|
logging_format=logging_format,
|
|
@@ -25573,6 +25704,7 @@ class Function(
|
|
|
25573
25704
|
function_name: typing.Optional[builtins.str] = None,
|
|
25574
25705
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
25575
25706
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
25707
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
25576
25708
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
25577
25709
|
log_format: typing.Optional[builtins.str] = None,
|
|
25578
25710
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -25624,6 +25756,7 @@ class Function(
|
|
|
25624
25756
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
25625
25757
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
25626
25758
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
25759
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
25627
25760
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
25628
25761
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
25629
25762
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -25677,6 +25810,7 @@ class Function(
|
|
|
25677
25810
|
function_name=function_name,
|
|
25678
25811
|
initial_policy=initial_policy,
|
|
25679
25812
|
insights_version=insights_version,
|
|
25813
|
+
ipv6_allowed_for_dual_stack=ipv6_allowed_for_dual_stack,
|
|
25680
25814
|
layers=layers,
|
|
25681
25815
|
log_format=log_format,
|
|
25682
25816
|
logging_format=logging_format,
|
|
@@ -26356,6 +26490,7 @@ class DockerImageFunction(
|
|
|
26356
26490
|
function_name: typing.Optional[builtins.str] = None,
|
|
26357
26491
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
26358
26492
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
26493
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
26359
26494
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
26360
26495
|
log_format: typing.Optional[builtins.str] = None,
|
|
26361
26496
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -26405,6 +26540,7 @@ class DockerImageFunction(
|
|
|
26405
26540
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
26406
26541
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
26407
26542
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
26543
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
26408
26544
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
26409
26545
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
26410
26546
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -26456,6 +26592,7 @@ class DockerImageFunction(
|
|
|
26456
26592
|
function_name=function_name,
|
|
26457
26593
|
initial_policy=initial_policy,
|
|
26458
26594
|
insights_version=insights_version,
|
|
26595
|
+
ipv6_allowed_for_dual_stack=ipv6_allowed_for_dual_stack,
|
|
26459
26596
|
layers=layers,
|
|
26460
26597
|
log_format=log_format,
|
|
26461
26598
|
logging_format=logging_format,
|
|
@@ -28419,6 +28556,7 @@ def _typecheckingstub__59918bb957d892739733c7a5849db990615fe5329709ad7ba703e0ee4
|
|
|
28419
28556
|
function_name: typing.Optional[builtins.str] = None,
|
|
28420
28557
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
28421
28558
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
28559
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
28422
28560
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28423
28561
|
log_format: typing.Optional[builtins.str] = None,
|
|
28424
28562
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -28469,6 +28607,7 @@ def _typecheckingstub__94e70d11aa3c53737d418dbb9983973dfc06dbdef5c8cc30613cc3c6d
|
|
|
28469
28607
|
function_name: typing.Optional[builtins.str] = None,
|
|
28470
28608
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
28471
28609
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
28610
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
28472
28611
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28473
28612
|
log_format: typing.Optional[builtins.str] = None,
|
|
28474
28613
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -28673,6 +28812,7 @@ def _typecheckingstub__6400e52bafb7e00e3113dbb1e115c4dea946b786b17eee75a6aa6706a
|
|
|
28673
28812
|
max_capacity: typing.Optional[jsii.Number] = None,
|
|
28674
28813
|
min_capacity: typing.Optional[jsii.Number] = None,
|
|
28675
28814
|
start_time: typing.Optional[datetime.datetime] = None,
|
|
28815
|
+
time_zone: typing.Optional[_TimeZone_cdd72ac9] = None,
|
|
28676
28816
|
) -> None:
|
|
28677
28817
|
"""Type checking stubs"""
|
|
28678
28818
|
pass
|
|
@@ -28948,6 +29088,7 @@ def _typecheckingstub__68a03ec9f866a29c77aabcf8328c63a49511790fa9714874f255b3292
|
|
|
28948
29088
|
function_name: typing.Optional[builtins.str] = None,
|
|
28949
29089
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
28950
29090
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29091
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
28951
29092
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
28952
29093
|
log_format: typing.Optional[builtins.str] = None,
|
|
28953
29094
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -29196,6 +29337,7 @@ def _typecheckingstub__04dd97f4b18c00e7ee0981f2428664401ae0b75dbda6102ea3ef53d08
|
|
|
29196
29337
|
function_name: typing.Optional[builtins.str] = None,
|
|
29197
29338
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
29198
29339
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29340
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
29199
29341
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29200
29342
|
log_format: typing.Optional[builtins.str] = None,
|
|
29201
29343
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -29436,6 +29578,7 @@ def _typecheckingstub__e7b766bff13bb7266787cec9bebb600187e19c1672e530bb9cfa31649
|
|
|
29436
29578
|
function_name: typing.Optional[builtins.str] = None,
|
|
29437
29579
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
29438
29580
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29581
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
29439
29582
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29440
29583
|
log_format: typing.Optional[builtins.str] = None,
|
|
29441
29584
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -29639,6 +29782,7 @@ def _typecheckingstub__724895b6b59aaf2b678ef25f2beca19fb114fc04ff6b37edef28e12b3
|
|
|
29639
29782
|
function_name: typing.Optional[builtins.str] = None,
|
|
29640
29783
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
29641
29784
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29785
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
29642
29786
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29643
29787
|
log_format: typing.Optional[builtins.str] = None,
|
|
29644
29788
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -29779,6 +29923,7 @@ def _typecheckingstub__368a49fe1f866c7ea7986c57b6f8488d0fddea8f62bf05ec1ed7eb09b
|
|
|
29779
29923
|
function_name: typing.Optional[builtins.str] = None,
|
|
29780
29924
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
29781
29925
|
insights_version: typing.Optional[LambdaInsightsVersion] = None,
|
|
29926
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
29782
29927
|
layers: typing.Optional[typing.Sequence[ILayerVersion]] = None,
|
|
29783
29928
|
log_format: typing.Optional[builtins.str] = None,
|
|
29784
29929
|
logging_format: typing.Optional[LoggingFormat] = None,
|
|
@@ -1472,6 +1472,7 @@ class NodejsFunction(
|
|
|
1472
1472
|
function_name: typing.Optional[builtins.str] = None,
|
|
1473
1473
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
1474
1474
|
insights_version: typing.Optional[_LambdaInsightsVersion_9dfbfef9] = None,
|
|
1475
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
1475
1476
|
layers: typing.Optional[typing.Sequence[_ILayerVersion_5ac127c8]] = None,
|
|
1476
1477
|
log_format: typing.Optional[builtins.str] = None,
|
|
1477
1478
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
@@ -1527,6 +1528,7 @@ class NodejsFunction(
|
|
|
1527
1528
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
1528
1529
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
1529
1530
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
1531
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
1530
1532
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
1531
1533
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
1532
1534
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -1584,6 +1586,7 @@ class NodejsFunction(
|
|
|
1584
1586
|
function_name=function_name,
|
|
1585
1587
|
initial_policy=initial_policy,
|
|
1586
1588
|
insights_version=insights_version,
|
|
1589
|
+
ipv6_allowed_for_dual_stack=ipv6_allowed_for_dual_stack,
|
|
1587
1590
|
layers=layers,
|
|
1588
1591
|
log_format=log_format,
|
|
1589
1592
|
logging_format=logging_format,
|
|
@@ -1641,6 +1644,7 @@ class NodejsFunction(
|
|
|
1641
1644
|
"function_name": "functionName",
|
|
1642
1645
|
"initial_policy": "initialPolicy",
|
|
1643
1646
|
"insights_version": "insightsVersion",
|
|
1647
|
+
"ipv6_allowed_for_dual_stack": "ipv6AllowedForDualStack",
|
|
1644
1648
|
"layers": "layers",
|
|
1645
1649
|
"log_format": "logFormat",
|
|
1646
1650
|
"logging_format": "loggingFormat",
|
|
@@ -1698,6 +1702,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1698
1702
|
function_name: typing.Optional[builtins.str] = None,
|
|
1699
1703
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
1700
1704
|
insights_version: typing.Optional[_LambdaInsightsVersion_9dfbfef9] = None,
|
|
1705
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
1701
1706
|
layers: typing.Optional[typing.Sequence[_ILayerVersion_5ac127c8]] = None,
|
|
1702
1707
|
log_format: typing.Optional[builtins.str] = None,
|
|
1703
1708
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
@@ -1752,6 +1757,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1752
1757
|
:param function_name: A name for the function. Default: - AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.
|
|
1753
1758
|
:param initial_policy: Initial policy statements to add to the created Lambda Role. You can call ``addToRolePolicy`` to the created lambda to add statements post creation. Default: - No policy statements are added to the created Lambda role.
|
|
1754
1759
|
:param insights_version: Specify the version of CloudWatch Lambda insights to use for monitoring. Default: - No Lambda Insights
|
|
1760
|
+
:param ipv6_allowed_for_dual_stack: Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets. Only used if 'vpc' is supplied. Default: false
|
|
1755
1761
|
:param layers: A list of layers to add to the function's execution environment. You can configure your Lambda function to pull in additional code during initialization in the form of layers. Layers are packages of libraries or other dependencies that can be used by multiple functions. Default: - No layers.
|
|
1756
1762
|
:param log_format: Sets the logFormat for the function. Default: "Text"
|
|
1757
1763
|
:param logging_format: Sets the loggingFormat for the function. Default: LoggingFormat.TEXT
|
|
@@ -1830,6 +1836,7 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1830
1836
|
check_type(argname="argument function_name", value=function_name, expected_type=type_hints["function_name"])
|
|
1831
1837
|
check_type(argname="argument initial_policy", value=initial_policy, expected_type=type_hints["initial_policy"])
|
|
1832
1838
|
check_type(argname="argument insights_version", value=insights_version, expected_type=type_hints["insights_version"])
|
|
1839
|
+
check_type(argname="argument ipv6_allowed_for_dual_stack", value=ipv6_allowed_for_dual_stack, expected_type=type_hints["ipv6_allowed_for_dual_stack"])
|
|
1833
1840
|
check_type(argname="argument layers", value=layers, expected_type=type_hints["layers"])
|
|
1834
1841
|
check_type(argname="argument log_format", value=log_format, expected_type=type_hints["log_format"])
|
|
1835
1842
|
check_type(argname="argument logging_format", value=logging_format, expected_type=type_hints["logging_format"])
|
|
@@ -1905,6 +1912,8 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
1905
1912
|
self._values["initial_policy"] = initial_policy
|
|
1906
1913
|
if insights_version is not None:
|
|
1907
1914
|
self._values["insights_version"] = insights_version
|
|
1915
|
+
if ipv6_allowed_for_dual_stack is not None:
|
|
1916
|
+
self._values["ipv6_allowed_for_dual_stack"] = ipv6_allowed_for_dual_stack
|
|
1908
1917
|
if layers is not None:
|
|
1909
1918
|
self._values["layers"] = layers
|
|
1910
1919
|
if log_format is not None:
|
|
@@ -2212,6 +2221,17 @@ class NodejsFunctionProps(_FunctionOptions_328f4d39):
|
|
|
2212
2221
|
result = self._values.get("insights_version")
|
|
2213
2222
|
return typing.cast(typing.Optional[_LambdaInsightsVersion_9dfbfef9], result)
|
|
2214
2223
|
|
|
2224
|
+
@builtins.property
|
|
2225
|
+
def ipv6_allowed_for_dual_stack(self) -> typing.Optional[builtins.bool]:
|
|
2226
|
+
'''Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets.
|
|
2227
|
+
|
|
2228
|
+
Only used if 'vpc' is supplied.
|
|
2229
|
+
|
|
2230
|
+
:default: false
|
|
2231
|
+
'''
|
|
2232
|
+
result = self._values.get("ipv6_allowed_for_dual_stack")
|
|
2233
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
2234
|
+
|
|
2215
2235
|
@builtins.property
|
|
2216
2236
|
def layers(self) -> typing.Optional[typing.List[_ILayerVersion_5ac127c8]]:
|
|
2217
2237
|
'''A list of layers to add to the function's execution environment.
|
|
@@ -2797,6 +2817,7 @@ def _typecheckingstub__ece177829b26ef102d4080d730f168e29d7d310d1518738839cd3fc82
|
|
|
2797
2817
|
function_name: typing.Optional[builtins.str] = None,
|
|
2798
2818
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
2799
2819
|
insights_version: typing.Optional[_LambdaInsightsVersion_9dfbfef9] = None,
|
|
2820
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
2800
2821
|
layers: typing.Optional[typing.Sequence[_ILayerVersion_5ac127c8]] = None,
|
|
2801
2822
|
log_format: typing.Optional[builtins.str] = None,
|
|
2802
2823
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|
|
@@ -2851,6 +2872,7 @@ def _typecheckingstub__2da45b394f0332be0f6d6b7468d9fb54961953d56265da69955d36ffa
|
|
|
2851
2872
|
function_name: typing.Optional[builtins.str] = None,
|
|
2852
2873
|
initial_policy: typing.Optional[typing.Sequence[_PolicyStatement_0fe33853]] = None,
|
|
2853
2874
|
insights_version: typing.Optional[_LambdaInsightsVersion_9dfbfef9] = None,
|
|
2875
|
+
ipv6_allowed_for_dual_stack: typing.Optional[builtins.bool] = None,
|
|
2854
2876
|
layers: typing.Optional[typing.Sequence[_ILayerVersion_5ac127c8]] = None,
|
|
2855
2877
|
log_format: typing.Optional[builtins.str] = None,
|
|
2856
2878
|
logging_format: typing.Optional[_LoggingFormat_30be8e01] = None,
|