aws-cdk-lib 2.167.2__py3-none-any.whl → 2.169.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 +2083 -0
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.167.2.jsii.tgz → aws-cdk-lib@2.169.0.jsii.tgz} +0 -0
- aws_cdk/aws_accessanalyzer/__init__.py +244 -13
- aws_cdk/aws_applicationautoscaling/__init__.py +1691 -95
- aws_cdk/aws_applicationinsights/__init__.py +41 -0
- aws_cdk/aws_applicationsignals/__init__.py +124 -0
- aws_cdk/aws_autoscaling/__init__.py +743 -7
- aws_cdk/aws_batch/__init__.py +202 -5
- aws_cdk/aws_bedrock/__init__.py +12 -12
- aws_cdk/aws_cleanrooms/__init__.py +17 -8
- aws_cdk/aws_cloudformation/__init__.py +2571 -492
- aws_cdk/aws_cloudfront/__init__.py +281 -0
- aws_cdk/aws_cloudfront/experimental/__init__.py +5 -0
- aws_cdk/aws_cloudfront_origins/__init__.py +714 -132
- aws_cdk/aws_cloudtrail/__init__.py +52 -14
- aws_cdk/aws_codebuild/__init__.py +670 -4
- aws_cdk/aws_connect/__init__.py +378 -0
- aws_cdk/aws_connectcampaignsv2/__init__.py +3376 -0
- aws_cdk/aws_customerprofiles/__init__.py +44 -0
- aws_cdk/aws_deadline/__init__.py +299 -6
- aws_cdk/aws_dynamodb/__init__.py +359 -16
- aws_cdk/aws_ec2/__init__.py +19 -6
- aws_cdk/aws_ecs/__init__.py +231 -12
- aws_cdk/aws_efs/__init__.py +61 -4
- aws_cdk/aws_eks/__init__.py +116 -0
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +160 -11
- aws_cdk/aws_fis/__init__.py +495 -0
- aws_cdk/aws_gamelift/__init__.py +3204 -1104
- aws_cdk/aws_iot/__init__.py +209 -0
- aws_cdk/aws_iotfleetwise/__init__.py +550 -0
- aws_cdk/aws_iotsitewise/__init__.py +6 -3
- aws_cdk/aws_ivs/__init__.py +458 -0
- aws_cdk/aws_kinesisfirehose/__init__.py +756 -8
- aws_cdk/aws_lambda/__init__.py +634 -259
- aws_cdk/aws_lambda_destinations/__init__.py +73 -0
- aws_cdk/aws_lambda_event_sources/__init__.py +102 -2
- aws_cdk/aws_location/__init__.py +18 -18
- aws_cdk/aws_mediastore/__init__.py +22 -10
- aws_cdk/aws_opensearchservice/__init__.py +6 -0
- aws_cdk/aws_quicksight/__init__.py +35 -19
- aws_cdk/aws_rbin/__init__.py +902 -0
- aws_cdk/aws_rds/__init__.py +166 -3
- aws_cdk/aws_route53resolver/__init__.py +76 -19
- aws_cdk/aws_sagemaker/__init__.py +32 -0
- aws_cdk/aws_securityhub/__init__.py +11 -14
- aws_cdk/aws_ses/__init__.py +58 -5
- aws_cdk/aws_sns/__init__.py +593 -8
- aws_cdk/aws_sns_subscriptions/__init__.py +68 -22
- aws_cdk/aws_stepfunctions_tasks/__init__.py +1601 -8
- aws_cdk/aws_synthetics/__init__.py +46 -0
- aws_cdk/aws_transfer/__init__.py +0 -8
- aws_cdk/aws_vpclattice/__init__.py +157 -2
- aws_cdk/aws_wisdom/__init__.py +113 -69
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/RECORD +60 -58
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.167.2.dist-info → aws_cdk_lib-2.169.0.dist-info}/top_level.txt +0 -0
|
@@ -225,6 +225,39 @@ cloudfront.Distribution(self, "myDist",
|
|
|
225
225
|
)
|
|
226
226
|
```
|
|
227
227
|
|
|
228
|
+
### Attaching WAF Web Acls
|
|
229
|
+
|
|
230
|
+
You can attach the AWS WAF web ACL to a CloudFront distribution.
|
|
231
|
+
|
|
232
|
+
To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example
|
|
233
|
+
`arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a`.
|
|
234
|
+
The web ACL must be in the `us-east-1` region.
|
|
235
|
+
|
|
236
|
+
To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example `473e64fd-f30b-4765-81a0-62ad96dd167a`.
|
|
237
|
+
|
|
238
|
+
```python
|
|
239
|
+
# bucket_origin: origins.S3Origin
|
|
240
|
+
# web_acl: wafv2.CfnWebACL
|
|
241
|
+
|
|
242
|
+
distribution = cloudfront.Distribution(self, "Distribution",
|
|
243
|
+
default_behavior=cloudfront.BehaviorOptions(origin=bucket_origin),
|
|
244
|
+
web_acl_id=web_acl.attr_arn
|
|
245
|
+
)
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
You can also attach a web ACL to a distribution after creation.
|
|
249
|
+
|
|
250
|
+
```python
|
|
251
|
+
# bucket_origin: origins.S3Origin
|
|
252
|
+
# web_acl: wafv2.CfnWebACL
|
|
253
|
+
|
|
254
|
+
distribution = cloudfront.Distribution(self, "Distribution",
|
|
255
|
+
default_behavior=cloudfront.BehaviorOptions(origin=bucket_origin)
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
distribution.attach_web_acl_id(web_acl.attr_arn)
|
|
259
|
+
```
|
|
260
|
+
|
|
228
261
|
### Customizing Cache Keys and TTLs with Cache Policies
|
|
229
262
|
|
|
230
263
|
You can use a cache policy to improve your cache hit ratio by controlling the values (URL query strings, HTTP headers, and cookies)
|
|
@@ -23753,6 +23786,17 @@ class Distribution(
|
|
|
23753
23786
|
|
|
23754
23787
|
return typing.cast(None, jsii.invoke(self, "addBehavior", [path_pattern, origin, behavior_options]))
|
|
23755
23788
|
|
|
23789
|
+
@jsii.member(jsii_name="attachWebAclId")
|
|
23790
|
+
def attach_web_acl_id(self, web_acl_id: builtins.str) -> None:
|
|
23791
|
+
'''Attach WAF WebACL to this CloudFront distribution.
|
|
23792
|
+
|
|
23793
|
+
:param web_acl_id: The WAF WebACL to associate with this distribution.
|
|
23794
|
+
'''
|
|
23795
|
+
if __debug__:
|
|
23796
|
+
type_hints = typing.get_type_hints(_typecheckingstub__12aa9fa01675ec283b93d82dff1b83aaf4ed90beee1e944bba61b1e00701d82a)
|
|
23797
|
+
check_type(argname="argument web_acl_id", value=web_acl_id, expected_type=type_hints["web_acl_id"])
|
|
23798
|
+
return typing.cast(None, jsii.invoke(self, "attachWebAclId", [web_acl_id]))
|
|
23799
|
+
|
|
23756
23800
|
@jsii.member(jsii_name="grant")
|
|
23757
23801
|
def grant(
|
|
23758
23802
|
self,
|
|
@@ -24538,6 +24582,207 @@ class Function(
|
|
|
24538
24582
|
return typing.cast(builtins.str, jsii.get(self, "functionStage"))
|
|
24539
24583
|
|
|
24540
24584
|
|
|
24585
|
+
@jsii.implements(IOriginAccessControl)
|
|
24586
|
+
class FunctionUrlOriginAccessControl(
|
|
24587
|
+
_Resource_45bc6135,
|
|
24588
|
+
metaclass=jsii.JSIIMeta,
|
|
24589
|
+
jsii_type="aws-cdk-lib.aws_cloudfront.FunctionUrlOriginAccessControl",
|
|
24590
|
+
):
|
|
24591
|
+
'''An Origin Access Control for Lambda Function URLs.
|
|
24592
|
+
|
|
24593
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-originaccesscontrol.html
|
|
24594
|
+
:resource: AWS::CloudFront::OriginAccessControl
|
|
24595
|
+
:exampleMetadata: infused
|
|
24596
|
+
|
|
24597
|
+
Example::
|
|
24598
|
+
|
|
24599
|
+
import aws_cdk.aws_lambda as lambda_
|
|
24600
|
+
# fn: lambda.Function
|
|
24601
|
+
|
|
24602
|
+
|
|
24603
|
+
fn_url = fn.add_function_url(
|
|
24604
|
+
auth_type=lambda_.FunctionUrlAuthType.AWS_IAM
|
|
24605
|
+
)
|
|
24606
|
+
|
|
24607
|
+
# Define a custom OAC
|
|
24608
|
+
oac = cloudfront.FunctionUrlOriginAccessControl(self, "MyOAC",
|
|
24609
|
+
origin_access_control_name="CustomLambdaOAC",
|
|
24610
|
+
signing=cloudfront.Signing.SIGV4_ALWAYS
|
|
24611
|
+
)
|
|
24612
|
+
|
|
24613
|
+
# Set up Lambda Function URL with OAC in CloudFront Distribution
|
|
24614
|
+
cloudfront.Distribution(self, "MyDistribution",
|
|
24615
|
+
default_behavior=cloudfront.BehaviorOptions(
|
|
24616
|
+
origin=origins.FunctionUrlOrigin.with_origin_access_control(fn_url,
|
|
24617
|
+
origin_access_control=oac
|
|
24618
|
+
)
|
|
24619
|
+
)
|
|
24620
|
+
)
|
|
24621
|
+
'''
|
|
24622
|
+
|
|
24623
|
+
def __init__(
|
|
24624
|
+
self,
|
|
24625
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
24626
|
+
id: builtins.str,
|
|
24627
|
+
*,
|
|
24628
|
+
description: typing.Optional[builtins.str] = None,
|
|
24629
|
+
origin_access_control_name: typing.Optional[builtins.str] = None,
|
|
24630
|
+
signing: typing.Optional[Signing] = None,
|
|
24631
|
+
) -> None:
|
|
24632
|
+
'''
|
|
24633
|
+
:param scope: -
|
|
24634
|
+
:param id: -
|
|
24635
|
+
:param description: A description of the origin access control. Default: - no description
|
|
24636
|
+
:param origin_access_control_name: A name to identify the origin access control, with a maximum length of 64 characters. Default: - a generated name
|
|
24637
|
+
:param signing: Specifies which requests CloudFront signs and the signing protocol. Default: SIGV4_ALWAYS
|
|
24638
|
+
'''
|
|
24639
|
+
if __debug__:
|
|
24640
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7c435d2d2a47e56fedcaac07e7c31ef46db8241b5d6286cf12905609d8174d2e)
|
|
24641
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
24642
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
24643
|
+
props = FunctionUrlOriginAccessControlProps(
|
|
24644
|
+
description=description,
|
|
24645
|
+
origin_access_control_name=origin_access_control_name,
|
|
24646
|
+
signing=signing,
|
|
24647
|
+
)
|
|
24648
|
+
|
|
24649
|
+
jsii.create(self.__class__, self, [scope, id, props])
|
|
24650
|
+
|
|
24651
|
+
@jsii.member(jsii_name="fromOriginAccessControlId")
|
|
24652
|
+
@builtins.classmethod
|
|
24653
|
+
def from_origin_access_control_id(
|
|
24654
|
+
cls,
|
|
24655
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
24656
|
+
id: builtins.str,
|
|
24657
|
+
origin_access_control_id: builtins.str,
|
|
24658
|
+
) -> IOriginAccessControl:
|
|
24659
|
+
'''Imports a Lambda Function URL origin access control from its id.
|
|
24660
|
+
|
|
24661
|
+
:param scope: -
|
|
24662
|
+
:param id: -
|
|
24663
|
+
:param origin_access_control_id: -
|
|
24664
|
+
'''
|
|
24665
|
+
if __debug__:
|
|
24666
|
+
type_hints = typing.get_type_hints(_typecheckingstub__14d6d580a802855a4d6f3aadc8ef536814cfcbcce4bde782eaebd5a5ec2ef53f)
|
|
24667
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
24668
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
24669
|
+
check_type(argname="argument origin_access_control_id", value=origin_access_control_id, expected_type=type_hints["origin_access_control_id"])
|
|
24670
|
+
return typing.cast(IOriginAccessControl, jsii.sinvoke(cls, "fromOriginAccessControlId", [scope, id, origin_access_control_id]))
|
|
24671
|
+
|
|
24672
|
+
@builtins.property
|
|
24673
|
+
@jsii.member(jsii_name="originAccessControlId")
|
|
24674
|
+
def origin_access_control_id(self) -> builtins.str:
|
|
24675
|
+
'''The unique identifier of this Origin Access Control.
|
|
24676
|
+
|
|
24677
|
+
:attribute: true
|
|
24678
|
+
'''
|
|
24679
|
+
return typing.cast(builtins.str, jsii.get(self, "originAccessControlId"))
|
|
24680
|
+
|
|
24681
|
+
|
|
24682
|
+
@jsii.data_type(
|
|
24683
|
+
jsii_type="aws-cdk-lib.aws_cloudfront.FunctionUrlOriginAccessControlProps",
|
|
24684
|
+
jsii_struct_bases=[OriginAccessControlBaseProps],
|
|
24685
|
+
name_mapping={
|
|
24686
|
+
"description": "description",
|
|
24687
|
+
"origin_access_control_name": "originAccessControlName",
|
|
24688
|
+
"signing": "signing",
|
|
24689
|
+
},
|
|
24690
|
+
)
|
|
24691
|
+
class FunctionUrlOriginAccessControlProps(OriginAccessControlBaseProps):
|
|
24692
|
+
def __init__(
|
|
24693
|
+
self,
|
|
24694
|
+
*,
|
|
24695
|
+
description: typing.Optional[builtins.str] = None,
|
|
24696
|
+
origin_access_control_name: typing.Optional[builtins.str] = None,
|
|
24697
|
+
signing: typing.Optional[Signing] = None,
|
|
24698
|
+
) -> None:
|
|
24699
|
+
'''Properties for creating a Lambda Function URL Origin Access Control resource.
|
|
24700
|
+
|
|
24701
|
+
:param description: A description of the origin access control. Default: - no description
|
|
24702
|
+
:param origin_access_control_name: A name to identify the origin access control, with a maximum length of 64 characters. Default: - a generated name
|
|
24703
|
+
:param signing: Specifies which requests CloudFront signs and the signing protocol. Default: SIGV4_ALWAYS
|
|
24704
|
+
|
|
24705
|
+
:exampleMetadata: infused
|
|
24706
|
+
|
|
24707
|
+
Example::
|
|
24708
|
+
|
|
24709
|
+
import aws_cdk.aws_lambda as lambda_
|
|
24710
|
+
# fn: lambda.Function
|
|
24711
|
+
|
|
24712
|
+
|
|
24713
|
+
fn_url = fn.add_function_url(
|
|
24714
|
+
auth_type=lambda_.FunctionUrlAuthType.AWS_IAM
|
|
24715
|
+
)
|
|
24716
|
+
|
|
24717
|
+
# Define a custom OAC
|
|
24718
|
+
oac = cloudfront.FunctionUrlOriginAccessControl(self, "MyOAC",
|
|
24719
|
+
origin_access_control_name="CustomLambdaOAC",
|
|
24720
|
+
signing=cloudfront.Signing.SIGV4_ALWAYS
|
|
24721
|
+
)
|
|
24722
|
+
|
|
24723
|
+
# Set up Lambda Function URL with OAC in CloudFront Distribution
|
|
24724
|
+
cloudfront.Distribution(self, "MyDistribution",
|
|
24725
|
+
default_behavior=cloudfront.BehaviorOptions(
|
|
24726
|
+
origin=origins.FunctionUrlOrigin.with_origin_access_control(fn_url,
|
|
24727
|
+
origin_access_control=oac
|
|
24728
|
+
)
|
|
24729
|
+
)
|
|
24730
|
+
)
|
|
24731
|
+
'''
|
|
24732
|
+
if __debug__:
|
|
24733
|
+
type_hints = typing.get_type_hints(_typecheckingstub__207551b5918cb2acd48d7da3c08e9254a8c19ba3c2219d13ee23918521aa2a36)
|
|
24734
|
+
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
24735
|
+
check_type(argname="argument origin_access_control_name", value=origin_access_control_name, expected_type=type_hints["origin_access_control_name"])
|
|
24736
|
+
check_type(argname="argument signing", value=signing, expected_type=type_hints["signing"])
|
|
24737
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
24738
|
+
if description is not None:
|
|
24739
|
+
self._values["description"] = description
|
|
24740
|
+
if origin_access_control_name is not None:
|
|
24741
|
+
self._values["origin_access_control_name"] = origin_access_control_name
|
|
24742
|
+
if signing is not None:
|
|
24743
|
+
self._values["signing"] = signing
|
|
24744
|
+
|
|
24745
|
+
@builtins.property
|
|
24746
|
+
def description(self) -> typing.Optional[builtins.str]:
|
|
24747
|
+
'''A description of the origin access control.
|
|
24748
|
+
|
|
24749
|
+
:default: - no description
|
|
24750
|
+
'''
|
|
24751
|
+
result = self._values.get("description")
|
|
24752
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
24753
|
+
|
|
24754
|
+
@builtins.property
|
|
24755
|
+
def origin_access_control_name(self) -> typing.Optional[builtins.str]:
|
|
24756
|
+
'''A name to identify the origin access control, with a maximum length of 64 characters.
|
|
24757
|
+
|
|
24758
|
+
:default: - a generated name
|
|
24759
|
+
'''
|
|
24760
|
+
result = self._values.get("origin_access_control_name")
|
|
24761
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
24762
|
+
|
|
24763
|
+
@builtins.property
|
|
24764
|
+
def signing(self) -> typing.Optional[Signing]:
|
|
24765
|
+
'''Specifies which requests CloudFront signs and the signing protocol.
|
|
24766
|
+
|
|
24767
|
+
:default: SIGV4_ALWAYS
|
|
24768
|
+
|
|
24769
|
+
:see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-originaccesscontrol-originaccesscontrolconfig.html#cfn-cloudfront-originaccesscontrol-originaccesscontrolconfig-signingbehavior
|
|
24770
|
+
'''
|
|
24771
|
+
result = self._values.get("signing")
|
|
24772
|
+
return typing.cast(typing.Optional[Signing], result)
|
|
24773
|
+
|
|
24774
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
24775
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
24776
|
+
|
|
24777
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
24778
|
+
return not (rhs == self)
|
|
24779
|
+
|
|
24780
|
+
def __repr__(self) -> str:
|
|
24781
|
+
return "FunctionUrlOriginAccessControlProps(%s)" % ", ".join(
|
|
24782
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
24783
|
+
)
|
|
24784
|
+
|
|
24785
|
+
|
|
24541
24786
|
__all__ = [
|
|
24542
24787
|
"AccessLevel",
|
|
24543
24788
|
"AddBehaviorOptions",
|
|
@@ -24600,6 +24845,8 @@ __all__ = [
|
|
|
24600
24845
|
"FunctionEventType",
|
|
24601
24846
|
"FunctionProps",
|
|
24602
24847
|
"FunctionRuntime",
|
|
24848
|
+
"FunctionUrlOriginAccessControl",
|
|
24849
|
+
"FunctionUrlOriginAccessControlProps",
|
|
24603
24850
|
"GeoRestriction",
|
|
24604
24851
|
"HeadersFrameOption",
|
|
24605
24852
|
"HeadersReferrerPolicy",
|
|
@@ -26973,6 +27220,12 @@ def _typecheckingstub__f94c33f8f74d148b7c436f42a002e770c6ad95241e489b963596aea62
|
|
|
26973
27220
|
"""Type checking stubs"""
|
|
26974
27221
|
pass
|
|
26975
27222
|
|
|
27223
|
+
def _typecheckingstub__12aa9fa01675ec283b93d82dff1b83aaf4ed90beee1e944bba61b1e00701d82a(
|
|
27224
|
+
web_acl_id: builtins.str,
|
|
27225
|
+
) -> None:
|
|
27226
|
+
"""Type checking stubs"""
|
|
27227
|
+
pass
|
|
27228
|
+
|
|
26976
27229
|
def _typecheckingstub__570665aa807bcddef2b06088f934fc7c08e51ec76b12bb573dce40bcd558c053(
|
|
26977
27230
|
identity: _IGrantable_71c4f5de,
|
|
26978
27231
|
*actions: builtins.str,
|
|
@@ -27025,3 +27278,31 @@ def _typecheckingstub__5989cbf7079014eacde0ab3a45d42fc3fb56a2cf17ecfbacd7bc46da0
|
|
|
27025
27278
|
) -> None:
|
|
27026
27279
|
"""Type checking stubs"""
|
|
27027
27280
|
pass
|
|
27281
|
+
|
|
27282
|
+
def _typecheckingstub__7c435d2d2a47e56fedcaac07e7c31ef46db8241b5d6286cf12905609d8174d2e(
|
|
27283
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
27284
|
+
id: builtins.str,
|
|
27285
|
+
*,
|
|
27286
|
+
description: typing.Optional[builtins.str] = None,
|
|
27287
|
+
origin_access_control_name: typing.Optional[builtins.str] = None,
|
|
27288
|
+
signing: typing.Optional[Signing] = None,
|
|
27289
|
+
) -> None:
|
|
27290
|
+
"""Type checking stubs"""
|
|
27291
|
+
pass
|
|
27292
|
+
|
|
27293
|
+
def _typecheckingstub__14d6d580a802855a4d6f3aadc8ef536814cfcbcce4bde782eaebd5a5ec2ef53f(
|
|
27294
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
27295
|
+
id: builtins.str,
|
|
27296
|
+
origin_access_control_id: builtins.str,
|
|
27297
|
+
) -> None:
|
|
27298
|
+
"""Type checking stubs"""
|
|
27299
|
+
pass
|
|
27300
|
+
|
|
27301
|
+
def _typecheckingstub__207551b5918cb2acd48d7da3c08e9254a8c19ba3c2219d13ee23918521aa2a36(
|
|
27302
|
+
*,
|
|
27303
|
+
description: typing.Optional[builtins.str] = None,
|
|
27304
|
+
origin_access_control_name: typing.Optional[builtins.str] = None,
|
|
27305
|
+
signing: typing.Optional[Signing] = None,
|
|
27306
|
+
) -> None:
|
|
27307
|
+
"""Type checking stubs"""
|
|
27308
|
+
pass
|
|
@@ -84,6 +84,7 @@ from ...aws_lambda import (
|
|
|
84
84
|
LambdaInsightsVersion as _LambdaInsightsVersion_9dfbfef9,
|
|
85
85
|
LogRetentionRetryOptions as _LogRetentionRetryOptions_ad797a7a,
|
|
86
86
|
LoggingFormat as _LoggingFormat_30be8e01,
|
|
87
|
+
MetricsConfig as _MetricsConfig_48ab59c4,
|
|
87
88
|
ParamsAndSecretsLayerVersion as _ParamsAndSecretsLayerVersion_dce97f06,
|
|
88
89
|
Permission as _Permission_9def3964,
|
|
89
90
|
RecursiveLoop as _RecursiveLoop_fc293827,
|
|
@@ -388,6 +389,7 @@ class EdgeFunction(
|
|
|
388
389
|
max_batching_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
389
390
|
max_concurrency: typing.Optional[jsii.Number] = None,
|
|
390
391
|
max_record_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
392
|
+
metrics_config: typing.Optional[typing.Union[_MetricsConfig_48ab59c4, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
391
393
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
392
394
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
393
395
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|
|
@@ -413,6 +415,7 @@ class EdgeFunction(
|
|
|
413
415
|
:param max_batching_window: The maximum amount of time to gather records before invoking the function. Maximum of Duration.minutes(5) Default: Duration.seconds(0)
|
|
414
416
|
:param max_concurrency: The maximum concurrency setting limits the number of concurrent instances of the function that an Amazon SQS event source can invoke. Default: - No specific limit.
|
|
415
417
|
:param max_record_age: The maximum age of a record that Lambda sends to a function for processing. Valid Range: - Minimum value of 60 seconds - Maximum value of 7 days Default: - infinite or until the record expires.
|
|
418
|
+
:param metrics_config: Configuration for enhanced monitoring metrics collection When specified, enables collection of additional metrics for the stream event source. Default: - Enhanced monitoring is disabled
|
|
416
419
|
:param on_failure: An Amazon SQS queue or Amazon SNS topic destination for discarded records. Default: discarded records are ignored
|
|
417
420
|
:param parallelization_factor: The number of batches to process from each shard concurrently. Valid Range: - Minimum value of 1 - Maximum value of 10 Default: 1
|
|
418
421
|
:param report_batch_item_failures: Allow functions to return partially successful responses for a batch of records. Default: false
|
|
@@ -439,6 +442,7 @@ class EdgeFunction(
|
|
|
439
442
|
max_batching_window=max_batching_window,
|
|
440
443
|
max_concurrency=max_concurrency,
|
|
441
444
|
max_record_age=max_record_age,
|
|
445
|
+
metrics_config=metrics_config,
|
|
442
446
|
on_failure=on_failure,
|
|
443
447
|
parallelization_factor=parallelization_factor,
|
|
444
448
|
report_batch_item_failures=report_batch_item_failures,
|
|
@@ -2048,6 +2052,7 @@ def _typecheckingstub__e3a2f6769309cd3c52da869813738e2d4a94d233e574ada7ebba1654d
|
|
|
2048
2052
|
max_batching_window: typing.Optional[_Duration_4839e8c3] = None,
|
|
2049
2053
|
max_concurrency: typing.Optional[jsii.Number] = None,
|
|
2050
2054
|
max_record_age: typing.Optional[_Duration_4839e8c3] = None,
|
|
2055
|
+
metrics_config: typing.Optional[typing.Union[_MetricsConfig_48ab59c4, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2051
2056
|
on_failure: typing.Optional[_IEventSourceDlq_5e2c6ad9] = None,
|
|
2052
2057
|
parallelization_factor: typing.Optional[jsii.Number] = None,
|
|
2053
2058
|
report_batch_item_failures: typing.Optional[builtins.bool] = None,
|