aws-cdk-lib 2.150.0__py3-none-any.whl → 2.151.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 +4 -10
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.150.0.jsii.tgz → aws-cdk-lib@2.151.0.jsii.tgz} +0 -0
- aws_cdk/aws_apigatewayv2/__init__.py +94 -21
- aws_cdk/aws_appconfig/__init__.py +3 -3
- aws_cdk/aws_backup/__init__.py +3 -3
- aws_cdk/aws_bedrock/__init__.py +28 -20
- aws_cdk/aws_cleanrooms/__init__.py +5 -5
- aws_cdk/aws_cloudformation/__init__.py +2 -2
- aws_cdk/aws_cloudfront/__init__.py +102 -32
- aws_cdk/aws_cloudtrail/__init__.py +6 -2
- aws_cdk/aws_ec2/__init__.py +181 -3
- aws_cdk/aws_ecs/__init__.py +6 -2
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +104 -9
- aws_cdk/aws_entityresolution/__init__.py +27 -21
- aws_cdk/aws_events/__init__.py +83 -16
- aws_cdk/aws_iam/__init__.py +11 -24
- aws_cdk/aws_iotsitewise/__init__.py +8 -8
- aws_cdk/aws_lambda/__init__.py +2 -0
- aws_cdk/aws_mwaa/__init__.py +3 -3
- aws_cdk/aws_pipes/__init__.py +2 -2
- aws_cdk/aws_rds/__init__.py +237 -197
- aws_cdk/aws_s3/__init__.py +8 -2
- aws_cdk/aws_ses/__init__.py +3 -3
- aws_cdk/aws_sns/__init__.py +5 -2
- aws_cdk/aws_stepfunctions/__init__.py +5 -2
- aws_cdk/aws_stepfunctions_tasks/__init__.py +17 -0
- aws_cdk/aws_synthetics/__init__.py +159 -21
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/RECORD +34 -34
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.150.0.dist-info → aws_cdk_lib-2.151.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_ec2/__init__.py
CHANGED
|
@@ -2399,6 +2399,8 @@ instance_profile = iam.InstanceProfile(self, "InstanceProfile",
|
|
|
2399
2399
|
)
|
|
2400
2400
|
|
|
2401
2401
|
template = ec2.LaunchTemplate(self, "LaunchTemplate",
|
|
2402
|
+
launch_template_name="MyTemplateV1",
|
|
2403
|
+
version_description="This is my v1 template",
|
|
2402
2404
|
machine_image=ec2.MachineImage.latest_amazon_linux2023(),
|
|
2403
2405
|
security_group=ec2.SecurityGroup(self, "LaunchTemplateSG",
|
|
2404
2406
|
vpc=vpc
|
|
@@ -16924,7 +16926,7 @@ class CfnIPAMPool(
|
|
|
16924
16926
|
:param auto_import: If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only. A locale must be set on the pool for this feature to work.
|
|
16925
16927
|
:param aws_service: Limits which service in AWS that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
|
|
16926
16928
|
:param description: The description of the IPAM pool.
|
|
16927
|
-
:param locale: The locale of the IPAM pool.
|
|
16929
|
+
:param locale: The locale of the IPAM pool. The locale for the pool should be one of the following: - An AWS Region where you want this IPAM pool to be available for allocations. - The network border group for an AWS Local Zone where you want this IPAM pool to be available for allocations ( `supported Local Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail>`_ ). This option is only available for IPAM IPv4 pools in the public scope. If you choose an AWS Region for locale that has not been configured as an operating Region for the IPAM, you'll get an error.
|
|
16928
16930
|
:param provisioned_cidrs: Information about the CIDRs provisioned to an IPAM pool.
|
|
16929
16931
|
:param public_ip_source: The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is ``BYOIP`` . For more information, see `Create IPv6 pools <https://docs.aws.amazon.com//vpc/latest/ipam/intro-create-ipv6-pools.html>`_ in the *Amazon VPC IPAM User Guide* . By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool. For information on increasing the default limit, see `Quotas for your IPAM <https://docs.aws.amazon.com//vpc/latest/ipam/quotas-ipam.html>`_ in the *Amazon VPC IPAM User Guide* .
|
|
16930
16932
|
:param publicly_advertisable: Determines if a pool is publicly advertisable. This option is not available for pools with AddressFamily set to ``ipv4`` .
|
|
@@ -17777,7 +17779,7 @@ class CfnIPAMPoolProps:
|
|
|
17777
17779
|
:param auto_import: If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only. A locale must be set on the pool for this feature to work.
|
|
17778
17780
|
:param aws_service: Limits which service in AWS that the pool can be used in. "ec2", for example, allows users to use space for Elastic IP addresses and VPCs.
|
|
17779
17781
|
:param description: The description of the IPAM pool.
|
|
17780
|
-
:param locale: The locale of the IPAM pool.
|
|
17782
|
+
:param locale: The locale of the IPAM pool. The locale for the pool should be one of the following: - An AWS Region where you want this IPAM pool to be available for allocations. - The network border group for an AWS Local Zone where you want this IPAM pool to be available for allocations ( `supported Local Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail>`_ ). This option is only available for IPAM IPv4 pools in the public scope. If you choose an AWS Region for locale that has not been configured as an operating Region for the IPAM, you'll get an error.
|
|
17781
17783
|
:param provisioned_cidrs: Information about the CIDRs provisioned to an IPAM pool.
|
|
17782
17784
|
:param public_ip_source: The IP address source for pools in the public scope. Only used for provisioning IP address CIDRs to pools in the public scope. Default is ``BYOIP`` . For more information, see `Create IPv6 pools <https://docs.aws.amazon.com//vpc/latest/ipam/intro-create-ipv6-pools.html>`_ in the *Amazon VPC IPAM User Guide* . By default, you can add only one Amazon-provided IPv6 CIDR block to a top-level IPv6 pool. For information on increasing the default limit, see `Quotas for your IPAM <https://docs.aws.amazon.com//vpc/latest/ipam/quotas-ipam.html>`_ in the *Amazon VPC IPAM User Guide* .
|
|
17783
17785
|
:param publicly_advertisable: Determines if a pool is publicly advertisable. This option is not available for pools with AddressFamily set to ``ipv4`` .
|
|
@@ -17984,7 +17986,12 @@ class CfnIPAMPoolProps:
|
|
|
17984
17986
|
def locale(self) -> typing.Optional[builtins.str]:
|
|
17985
17987
|
'''The locale of the IPAM pool.
|
|
17986
17988
|
|
|
17987
|
-
|
|
17989
|
+
The locale for the pool should be one of the following:
|
|
17990
|
+
|
|
17991
|
+
- An AWS Region where you want this IPAM pool to be available for allocations.
|
|
17992
|
+
- The network border group for an AWS Local Zone where you want this IPAM pool to be available for allocations ( `supported Local Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#byoip-zone-avail>`_ ). This option is only available for IPAM IPv4 pools in the public scope.
|
|
17993
|
+
|
|
17994
|
+
If you choose an AWS Region for locale that has not been configured as an operating Region for the IPAM, you'll get an error.
|
|
17988
17995
|
|
|
17989
17996
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-locale
|
|
17990
17997
|
'''
|
|
@@ -76628,6 +76635,7 @@ class LaunchTemplate(
|
|
|
76628
76635
|
security_group: typing.Optional[ISecurityGroup] = None,
|
|
76629
76636
|
spot_options: typing.Optional[typing.Union["LaunchTemplateSpotOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
76630
76637
|
user_data: typing.Optional["UserData"] = None,
|
|
76638
|
+
version_description: typing.Optional[builtins.str] = None,
|
|
76631
76639
|
) -> None:
|
|
76632
76640
|
'''
|
|
76633
76641
|
:param scope: -
|
|
@@ -76657,6 +76665,7 @@ class LaunchTemplate(
|
|
|
76657
76665
|
:param security_group: Security group to assign to instances created with the launch template. Default: No security group is assigned.
|
|
76658
76666
|
:param spot_options: If this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined. Default: - Instance launched with this template will not be spot instances.
|
|
76659
76667
|
:param user_data: The AMI that will be used by instances. Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
|
|
76668
|
+
:param version_description: A description for the first version of the launch template. The version description must be maximum 255 characters long. Default: - No description
|
|
76660
76669
|
'''
|
|
76661
76670
|
if __debug__:
|
|
76662
76671
|
type_hints = typing.get_type_hints(_typecheckingstub__544aef11081ec87047935491f75a3d5bc9d5075de77f96969bd2ffd1a0d78cc9)
|
|
@@ -76688,6 +76697,7 @@ class LaunchTemplate(
|
|
|
76688
76697
|
security_group=security_group,
|
|
76689
76698
|
spot_options=spot_options,
|
|
76690
76699
|
user_data=user_data,
|
|
76700
|
+
version_description=version_description,
|
|
76691
76701
|
)
|
|
76692
76702
|
|
|
76693
76703
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
@@ -76996,6 +77006,7 @@ class LaunchTemplateHttpTokens(enum.Enum):
|
|
|
76996
77006
|
"security_group": "securityGroup",
|
|
76997
77007
|
"spot_options": "spotOptions",
|
|
76998
77008
|
"user_data": "userData",
|
|
77009
|
+
"version_description": "versionDescription",
|
|
76999
77010
|
},
|
|
77000
77011
|
)
|
|
77001
77012
|
class LaunchTemplateProps:
|
|
@@ -77027,6 +77038,7 @@ class LaunchTemplateProps:
|
|
|
77027
77038
|
security_group: typing.Optional[ISecurityGroup] = None,
|
|
77028
77039
|
spot_options: typing.Optional[typing.Union["LaunchTemplateSpotOptions", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
77029
77040
|
user_data: typing.Optional["UserData"] = None,
|
|
77041
|
+
version_description: typing.Optional[builtins.str] = None,
|
|
77030
77042
|
) -> None:
|
|
77031
77043
|
'''Properties of a LaunchTemplate.
|
|
77032
77044
|
|
|
@@ -77055,6 +77067,7 @@ class LaunchTemplateProps:
|
|
|
77055
77067
|
:param security_group: Security group to assign to instances created with the launch template. Default: No security group is assigned.
|
|
77056
77068
|
:param spot_options: If this property is defined, then the Launch Template's InstanceMarketOptions will be set to use Spot instances, and the options for the Spot instances will be as defined. Default: - Instance launched with this template will not be spot instances.
|
|
77057
77069
|
:param user_data: The AMI that will be used by instances. Default: - This Launch Template creates a UserData based on the type of provided machineImage; no UserData is created if a machineImage is not provided
|
|
77070
|
+
:param version_description: A description for the first version of the launch template. The version description must be maximum 255 characters long. Default: - No description
|
|
77058
77071
|
|
|
77059
77072
|
:exampleMetadata: infused
|
|
77060
77073
|
|
|
@@ -77106,6 +77119,7 @@ class LaunchTemplateProps:
|
|
|
77106
77119
|
check_type(argname="argument security_group", value=security_group, expected_type=type_hints["security_group"])
|
|
77107
77120
|
check_type(argname="argument spot_options", value=spot_options, expected_type=type_hints["spot_options"])
|
|
77108
77121
|
check_type(argname="argument user_data", value=user_data, expected_type=type_hints["user_data"])
|
|
77122
|
+
check_type(argname="argument version_description", value=version_description, expected_type=type_hints["version_description"])
|
|
77109
77123
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
77110
77124
|
if associate_public_ip_address is not None:
|
|
77111
77125
|
self._values["associate_public_ip_address"] = associate_public_ip_address
|
|
@@ -77157,6 +77171,8 @@ class LaunchTemplateProps:
|
|
|
77157
77171
|
self._values["spot_options"] = spot_options
|
|
77158
77172
|
if user_data is not None:
|
|
77159
77173
|
self._values["user_data"] = user_data
|
|
77174
|
+
if version_description is not None:
|
|
77175
|
+
self._values["version_description"] = version_description
|
|
77160
77176
|
|
|
77161
77177
|
@builtins.property
|
|
77162
77178
|
def associate_public_ip_address(self) -> typing.Optional[builtins.bool]:
|
|
@@ -77441,6 +77457,19 @@ class LaunchTemplateProps:
|
|
|
77441
77457
|
result = self._values.get("user_data")
|
|
77442
77458
|
return typing.cast(typing.Optional["UserData"], result)
|
|
77443
77459
|
|
|
77460
|
+
@builtins.property
|
|
77461
|
+
def version_description(self) -> typing.Optional[builtins.str]:
|
|
77462
|
+
'''A description for the first version of the launch template.
|
|
77463
|
+
|
|
77464
|
+
The version description must be maximum 255 characters long.
|
|
77465
|
+
|
|
77466
|
+
:default: - No description
|
|
77467
|
+
|
|
77468
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-launchtemplate.html#cfn-ec2-launchtemplate-versiondescription
|
|
77469
|
+
'''
|
|
77470
|
+
result = self._values.get("version_description")
|
|
77471
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
77472
|
+
|
|
77444
77473
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
77445
77474
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
77446
77475
|
|
|
@@ -77984,6 +78013,72 @@ class LogFormat(metaclass=jsii.JSIIMeta, jsii_type="aws-cdk-lib.aws_ec2.LogForma
|
|
|
77984
78013
|
'''The destination port of the traffic.'''
|
|
77985
78014
|
return typing.cast("LogFormat", jsii.sget(cls, "DST_PORT"))
|
|
77986
78015
|
|
|
78016
|
+
@jsii.python.classproperty
|
|
78017
|
+
@jsii.member(jsii_name="ECS_CLUSTER_ARN")
|
|
78018
|
+
def ECS_CLUSTER_ARN(cls) -> "LogFormat":
|
|
78019
|
+
'''AWS Resource Name (ARN) of the ECS cluster if the traffic is from a running ECS task.'''
|
|
78020
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_CLUSTER_ARN"))
|
|
78021
|
+
|
|
78022
|
+
@jsii.python.classproperty
|
|
78023
|
+
@jsii.member(jsii_name="ECS_CLUSTER_NAME")
|
|
78024
|
+
def ECS_CLUSTER_NAME(cls) -> "LogFormat":
|
|
78025
|
+
'''Name of the ECS cluster if the traffic is from a running ECS task.'''
|
|
78026
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_CLUSTER_NAME"))
|
|
78027
|
+
|
|
78028
|
+
@jsii.python.classproperty
|
|
78029
|
+
@jsii.member(jsii_name="ECS_CONTAINER_ID")
|
|
78030
|
+
def ECS_CONTAINER_ID(cls) -> "LogFormat":
|
|
78031
|
+
'''Docker runtime ID of the container if the traffic is from a running ECS task.
|
|
78032
|
+
|
|
78033
|
+
If there is one container or more in the ECS task, this will be the docker runtime ID of the first container.
|
|
78034
|
+
'''
|
|
78035
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_CONTAINER_ID"))
|
|
78036
|
+
|
|
78037
|
+
@jsii.python.classproperty
|
|
78038
|
+
@jsii.member(jsii_name="ECS_CONTAINER_INSTANCE_ARN")
|
|
78039
|
+
def ECS_CONTAINER_INSTANCE_ARN(cls) -> "LogFormat":
|
|
78040
|
+
'''ARN of the ECS container instance if the traffic is from a running ECS task on an EC2 instance.'''
|
|
78041
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_CONTAINER_INSTANCE_ARN"))
|
|
78042
|
+
|
|
78043
|
+
@jsii.python.classproperty
|
|
78044
|
+
@jsii.member(jsii_name="ECS_CONTAINER_INSTANCE_ID")
|
|
78045
|
+
def ECS_CONTAINER_INSTANCE_ID(cls) -> "LogFormat":
|
|
78046
|
+
'''ID of the ECS container instance if the traffic is from a running ECS task on an EC2 instance.'''
|
|
78047
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_CONTAINER_INSTANCE_ID"))
|
|
78048
|
+
|
|
78049
|
+
@jsii.python.classproperty
|
|
78050
|
+
@jsii.member(jsii_name="ECS_SECOND_CONTAINER_ID")
|
|
78051
|
+
def ECS_SECOND_CONTAINER_ID(cls) -> "LogFormat":
|
|
78052
|
+
'''Docker runtime ID of the container if the traffic is from a running ECS task.
|
|
78053
|
+
|
|
78054
|
+
If there is more than one container in the ECS task, this will be the Docker runtime ID of the second container.
|
|
78055
|
+
'''
|
|
78056
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_SECOND_CONTAINER_ID"))
|
|
78057
|
+
|
|
78058
|
+
@jsii.python.classproperty
|
|
78059
|
+
@jsii.member(jsii_name="ECS_SERVICE_NAME")
|
|
78060
|
+
def ECS_SERVICE_NAME(cls) -> "LogFormat":
|
|
78061
|
+
'''Name of the ECS service if the traffic is from a running ECS task and the ECS task is started by an ECS service.'''
|
|
78062
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_SERVICE_NAME"))
|
|
78063
|
+
|
|
78064
|
+
@jsii.python.classproperty
|
|
78065
|
+
@jsii.member(jsii_name="ECS_TASK_ARN")
|
|
78066
|
+
def ECS_TASK_ARN(cls) -> "LogFormat":
|
|
78067
|
+
'''ARN of the ECS task if the traffic is from a running ECS task.'''
|
|
78068
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_TASK_ARN"))
|
|
78069
|
+
|
|
78070
|
+
@jsii.python.classproperty
|
|
78071
|
+
@jsii.member(jsii_name="ECS_TASK_DEFINITION_ARN")
|
|
78072
|
+
def ECS_TASK_DEFINITION_ARN(cls) -> "LogFormat":
|
|
78073
|
+
'''ARN of the ECS task definition if the traffic is from a running ECS task.'''
|
|
78074
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_TASK_DEFINITION_ARN"))
|
|
78075
|
+
|
|
78076
|
+
@jsii.python.classproperty
|
|
78077
|
+
@jsii.member(jsii_name="ECS_TASK_ID")
|
|
78078
|
+
def ECS_TASK_ID(cls) -> "LogFormat":
|
|
78079
|
+
'''ID of the ECS task if the traffic is from a running ECS task.'''
|
|
78080
|
+
return typing.cast("LogFormat", jsii.sget(cls, "ECS_TASK_ID"))
|
|
78081
|
+
|
|
77987
78082
|
@jsii.python.classproperty
|
|
77988
78083
|
@jsii.member(jsii_name="END_TIMESTAMP")
|
|
77989
78084
|
def END_TIMESTAMP(cls) -> "LogFormat":
|
|
@@ -91953,6 +92048,80 @@ class MultipartUserData(
|
|
|
91953
92048
|
return typing.cast(builtins.str, jsii.invoke(self, "render", []))
|
|
91954
92049
|
|
|
91955
92050
|
|
|
92051
|
+
class NatGatewayProvider(
|
|
92052
|
+
NatProvider,
|
|
92053
|
+
metaclass=jsii.JSIIMeta,
|
|
92054
|
+
jsii_type="aws-cdk-lib.aws_ec2.NatGatewayProvider",
|
|
92055
|
+
):
|
|
92056
|
+
'''Provider for NAT Gateways.
|
|
92057
|
+
|
|
92058
|
+
:exampleMetadata: fixture=_generated
|
|
92059
|
+
|
|
92060
|
+
Example::
|
|
92061
|
+
|
|
92062
|
+
# The code below shows an example of how to instantiate this type.
|
|
92063
|
+
# The values are placeholders you should change.
|
|
92064
|
+
from aws_cdk import aws_ec2 as ec2
|
|
92065
|
+
|
|
92066
|
+
nat_gateway_provider = ec2.NatGatewayProvider(
|
|
92067
|
+
eip_allocation_ids=["eipAllocationIds"]
|
|
92068
|
+
)
|
|
92069
|
+
'''
|
|
92070
|
+
|
|
92071
|
+
def __init__(
|
|
92072
|
+
self,
|
|
92073
|
+
*,
|
|
92074
|
+
eip_allocation_ids: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
92075
|
+
) -> None:
|
|
92076
|
+
'''
|
|
92077
|
+
:param eip_allocation_ids: EIP allocation IDs for the NAT gateways. Default: - No fixed EIPs allocated for the NAT gateways
|
|
92078
|
+
'''
|
|
92079
|
+
props = NatGatewayProps(eip_allocation_ids=eip_allocation_ids)
|
|
92080
|
+
|
|
92081
|
+
jsii.create(self.__class__, self, [props])
|
|
92082
|
+
|
|
92083
|
+
@jsii.member(jsii_name="configureNat")
|
|
92084
|
+
def configure_nat(
|
|
92085
|
+
self,
|
|
92086
|
+
*,
|
|
92087
|
+
nat_subnets: typing.Sequence["PublicSubnet"],
|
|
92088
|
+
private_subnets: typing.Sequence["PrivateSubnet"],
|
|
92089
|
+
vpc: Vpc,
|
|
92090
|
+
) -> None:
|
|
92091
|
+
'''Called by the VPC to configure NAT.
|
|
92092
|
+
|
|
92093
|
+
Don't call this directly, the VPC will call it automatically.
|
|
92094
|
+
|
|
92095
|
+
:param nat_subnets: The public subnets where the NAT providers need to be placed.
|
|
92096
|
+
:param private_subnets: The private subnets that need to route through the NAT providers. There may be more private subnets than public subnets with NAT providers.
|
|
92097
|
+
:param vpc: The VPC we're configuring NAT for.
|
|
92098
|
+
'''
|
|
92099
|
+
options = ConfigureNatOptions(
|
|
92100
|
+
nat_subnets=nat_subnets, private_subnets=private_subnets, vpc=vpc
|
|
92101
|
+
)
|
|
92102
|
+
|
|
92103
|
+
return typing.cast(None, jsii.invoke(self, "configureNat", [options]))
|
|
92104
|
+
|
|
92105
|
+
@jsii.member(jsii_name="configureSubnet")
|
|
92106
|
+
def configure_subnet(self, subnet: "PrivateSubnet") -> None:
|
|
92107
|
+
'''Configures subnet with the gateway.
|
|
92108
|
+
|
|
92109
|
+
Don't call this directly, the VPC will call it automatically.
|
|
92110
|
+
|
|
92111
|
+
:param subnet: -
|
|
92112
|
+
'''
|
|
92113
|
+
if __debug__:
|
|
92114
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2c352330578bedc14b307b90db4cdd21ccfc59ed0e509c561759015133bdfac9)
|
|
92115
|
+
check_type(argname="argument subnet", value=subnet, expected_type=type_hints["subnet"])
|
|
92116
|
+
return typing.cast(None, jsii.invoke(self, "configureSubnet", [subnet]))
|
|
92117
|
+
|
|
92118
|
+
@builtins.property
|
|
92119
|
+
@jsii.member(jsii_name="configuredGateways")
|
|
92120
|
+
def configured_gateways(self) -> typing.List[GatewayConfig]:
|
|
92121
|
+
'''Return list of gateways spawned by the provider.'''
|
|
92122
|
+
return typing.cast(typing.List[GatewayConfig], jsii.get(self, "configuredGateways"))
|
|
92123
|
+
|
|
92124
|
+
|
|
91956
92125
|
@jsii.implements(IConnectable)
|
|
91957
92126
|
class NatInstanceProvider(
|
|
91958
92127
|
NatProvider,
|
|
@@ -94356,6 +94525,7 @@ __all__ = [
|
|
|
94356
94525
|
"MultipartUserDataOptions",
|
|
94357
94526
|
"NamedPackageOptions",
|
|
94358
94527
|
"NatGatewayProps",
|
|
94528
|
+
"NatGatewayProvider",
|
|
94359
94529
|
"NatInstanceImage",
|
|
94360
94530
|
"NatInstanceProps",
|
|
94361
94531
|
"NatInstanceProvider",
|
|
@@ -104620,6 +104790,7 @@ def _typecheckingstub__544aef11081ec87047935491f75a3d5bc9d5075de77f96969bd2ffd1a
|
|
|
104620
104790
|
security_group: typing.Optional[ISecurityGroup] = None,
|
|
104621
104791
|
spot_options: typing.Optional[typing.Union[LaunchTemplateSpotOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
104622
104792
|
user_data: typing.Optional[UserData] = None,
|
|
104793
|
+
version_description: typing.Optional[builtins.str] = None,
|
|
104623
104794
|
) -> None:
|
|
104624
104795
|
"""Type checking stubs"""
|
|
104625
104796
|
pass
|
|
@@ -104677,6 +104848,7 @@ def _typecheckingstub__e2ebb1bf0fbb2f9e894169a610cd9fb7cc3f827d34d3a10351bd2f517
|
|
|
104677
104848
|
security_group: typing.Optional[ISecurityGroup] = None,
|
|
104678
104849
|
spot_options: typing.Optional[typing.Union[LaunchTemplateSpotOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
104679
104850
|
user_data: typing.Optional[UserData] = None,
|
|
104851
|
+
version_description: typing.Optional[builtins.str] = None,
|
|
104680
104852
|
) -> None:
|
|
104681
104853
|
"""Type checking stubs"""
|
|
104682
104854
|
pass
|
|
@@ -106353,6 +106525,12 @@ def _typecheckingstub__d7099fb74981d61c8dfdb2cc1b9c36254deb6f003b7e88f104b7a0a35
|
|
|
106353
106525
|
"""Type checking stubs"""
|
|
106354
106526
|
pass
|
|
106355
106527
|
|
|
106528
|
+
def _typecheckingstub__2c352330578bedc14b307b90db4cdd21ccfc59ed0e509c561759015133bdfac9(
|
|
106529
|
+
subnet: PrivateSubnet,
|
|
106530
|
+
) -> None:
|
|
106531
|
+
"""Type checking stubs"""
|
|
106532
|
+
pass
|
|
106533
|
+
|
|
106356
106534
|
def _typecheckingstub__53772cd5bc705ccbd691b4063a85c8427a71a5c9fc29d3af5c0a334c7df3f57a(
|
|
106357
106535
|
subnet: PrivateSubnet,
|
|
106358
106536
|
) -> None:
|
aws_cdk/aws_ecs/__init__.py
CHANGED
|
@@ -517,7 +517,7 @@ To grant a principal permission to run your `TaskDefinition`, you can use the `T
|
|
|
517
517
|
# role: iam.IGrantable
|
|
518
518
|
|
|
519
519
|
task_def = ecs.TaskDefinition(self, "TaskDef",
|
|
520
|
-
cpu="
|
|
520
|
+
cpu="256",
|
|
521
521
|
memory_mi_b="512",
|
|
522
522
|
compatibility=ecs.Compatibility.EC2_AND_FARGATE
|
|
523
523
|
)
|
|
@@ -21438,7 +21438,7 @@ class ContainerImage(
|
|
|
21438
21438
|
'''Reference an image in an ECR repository.
|
|
21439
21439
|
|
|
21440
21440
|
:param repository: -
|
|
21441
|
-
:param tag:
|
|
21441
|
+
:param tag: If you don't specify this parameter, ``latest`` is used as default.
|
|
21442
21442
|
'''
|
|
21443
21443
|
if __debug__:
|
|
21444
21444
|
type_hints = typing.get_type_hints(_typecheckingstub__c7678d92c566cb839a4e76a199bb9ba47a55910493c94a6a2568984d1b6bd374)
|
|
@@ -30343,6 +30343,7 @@ class ListenerConfig(
|
|
|
30343
30343
|
listener: _ApplicationListener_e0620bf5,
|
|
30344
30344
|
*,
|
|
30345
30345
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
30346
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
30346
30347
|
health_check: typing.Optional[typing.Union[_HealthCheck_6f291880, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
30347
30348
|
load_balancing_algorithm_type: typing.Optional[_TargetGroupLoadBalancingAlgorithmType_ed070d6d] = None,
|
|
30348
30349
|
port: typing.Optional[jsii.Number] = None,
|
|
@@ -30360,6 +30361,7 @@ class ListenerConfig(
|
|
|
30360
30361
|
|
|
30361
30362
|
:param listener: -
|
|
30362
30363
|
:param deregistration_delay: The amount of time for Elastic Load Balancing to wait before deregistering a target. The range is 0-3600 seconds. Default: Duration.minutes(5)
|
|
30364
|
+
:param enable_anomaly_mitigation: Indicates whether anomaly mitigation is enabled. Only available when ``loadBalancingAlgorithmType`` is ``TargetGroupLoadBalancingAlgorithmType.WEIGHTED_RANDOM`` Default: false
|
|
30363
30365
|
:param health_check: Health check configuration. Default: - The default value for each property in this configuration varies depending on the target.
|
|
30364
30366
|
:param load_balancing_algorithm_type: The load balancing algorithm to select targets for routing requests. Default: round_robin.
|
|
30365
30367
|
:param port: The port on which the listener listens for requests. Default: Determined from protocol if known
|
|
@@ -30378,6 +30380,7 @@ class ListenerConfig(
|
|
|
30378
30380
|
check_type(argname="argument listener", value=listener, expected_type=type_hints["listener"])
|
|
30379
30381
|
props = _AddApplicationTargetsProps_76c7d190(
|
|
30380
30382
|
deregistration_delay=deregistration_delay,
|
|
30383
|
+
enable_anomaly_mitigation=enable_anomaly_mitigation,
|
|
30381
30384
|
health_check=health_check,
|
|
30382
30385
|
load_balancing_algorithm_type=load_balancing_algorithm_type,
|
|
30383
30386
|
port=port,
|
|
@@ -43740,6 +43743,7 @@ def _typecheckingstub__49e49c7f39199be5ac444df54afd1bd33a772db0f97806964e1456680
|
|
|
43740
43743
|
listener: _ApplicationListener_e0620bf5,
|
|
43741
43744
|
*,
|
|
43742
43745
|
deregistration_delay: typing.Optional[_Duration_4839e8c3] = None,
|
|
43746
|
+
enable_anomaly_mitigation: typing.Optional[builtins.bool] = None,
|
|
43743
43747
|
health_check: typing.Optional[typing.Union[_HealthCheck_6f291880, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
43744
43748
|
load_balancing_algorithm_type: typing.Optional[_TargetGroupLoadBalancingAlgorithmType_ed070d6d] = None,
|
|
43745
43749
|
port: typing.Optional[jsii.Number] = None,
|