aws-cdk.aws-ec2-alpha 2.187.0a0__py3-none-any.whl → 2.223.0a0__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.
- aws_cdk/aws_ec2_alpha/__init__.py +266 -11
- aws_cdk/aws_ec2_alpha/_jsii/__init__.py +2 -2
- aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.223.0-alpha.0.jsii.tgz +0 -0
- {aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/METADATA +9 -7
- aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/RECORD +10 -0
- aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.187.0-alpha.0.jsii.tgz +0 -0
- aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/RECORD +0 -10
- {aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/LICENSE +0 -0
- {aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/NOTICE +0 -0
- {aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/WHEEL +0 -0
- {aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/top_level.txt +0 -0
|
@@ -43,6 +43,7 @@ VpcV2(self, "Vpc",
|
|
|
43
43
|
`SubnetV2` is a re-write of the [`ec2.Subnet`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Subnet.html) construct.
|
|
44
44
|
This new construct can be used to add subnets to a `VpcV2` instance:
|
|
45
45
|
Note: When defining a subnet with `SubnetV2`, CDK automatically creates a new route table, unless a route table is explicitly provided as an input to the construct.
|
|
46
|
+
To enable the `mapPublicIpOnLaunch` feature (which is `false` by default), set the property to `true` when creating the subnet.
|
|
46
47
|
|
|
47
48
|
```python
|
|
48
49
|
stack = Stack()
|
|
@@ -57,7 +58,8 @@ SubnetV2(self, "subnetA",
|
|
|
57
58
|
availability_zone="us-east-1a",
|
|
58
59
|
ipv4_cidr_block=IpCidr("10.0.0.0/24"),
|
|
59
60
|
ipv6_cidr_block=IpCidr("2a05:d02c:25:4000::/60"),
|
|
60
|
-
subnet_type=SubnetType.
|
|
61
|
+
subnet_type=SubnetType.PUBLIC,
|
|
62
|
+
map_public_ip_on_launch=True
|
|
61
63
|
)
|
|
62
64
|
```
|
|
63
65
|
|
|
@@ -2983,7 +2985,7 @@ class IVpcV2(_aws_cdk_aws_ec2_ceddda9d.IVpc, typing_extensions.Protocol):
|
|
|
2983
2985
|
destination: typing.Optional[builtins.str] = None,
|
|
2984
2986
|
egress_only_internet_gateway_name: typing.Optional[builtins.str] = None,
|
|
2985
2987
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2986
|
-
) ->
|
|
2988
|
+
) -> "EgressOnlyInternetGateway":
|
|
2987
2989
|
'''(experimental) Add an Egress only Internet Gateway to current VPC.
|
|
2988
2990
|
|
|
2989
2991
|
Can only be used for ipv6 enabled VPCs.
|
|
@@ -3005,7 +3007,7 @@ class IVpcV2(_aws_cdk_aws_ec2_ceddda9d.IVpc, typing_extensions.Protocol):
|
|
|
3005
3007
|
ipv4_destination: typing.Optional[builtins.str] = None,
|
|
3006
3008
|
ipv6_destination: typing.Optional[builtins.str] = None,
|
|
3007
3009
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3008
|
-
) ->
|
|
3010
|
+
) -> "InternetGateway":
|
|
3009
3011
|
'''(experimental) Adds an Internet Gateway to current VPC.
|
|
3010
3012
|
|
|
3011
3013
|
For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
|
|
@@ -3200,7 +3202,7 @@ class _IVpcV2Proxy(
|
|
|
3200
3202
|
destination: typing.Optional[builtins.str] = None,
|
|
3201
3203
|
egress_only_internet_gateway_name: typing.Optional[builtins.str] = None,
|
|
3202
3204
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3203
|
-
) ->
|
|
3205
|
+
) -> "EgressOnlyInternetGateway":
|
|
3204
3206
|
'''(experimental) Add an Egress only Internet Gateway to current VPC.
|
|
3205
3207
|
|
|
3206
3208
|
Can only be used for ipv6 enabled VPCs.
|
|
@@ -3218,7 +3220,7 @@ class _IVpcV2Proxy(
|
|
|
3218
3220
|
subnets=subnets,
|
|
3219
3221
|
)
|
|
3220
3222
|
|
|
3221
|
-
return typing.cast(
|
|
3223
|
+
return typing.cast("EgressOnlyInternetGateway", jsii.invoke(self, "addEgressOnlyInternetGateway", [options]))
|
|
3222
3224
|
|
|
3223
3225
|
@jsii.member(jsii_name="addInternetGateway")
|
|
3224
3226
|
def add_internet_gateway(
|
|
@@ -3228,7 +3230,7 @@ class _IVpcV2Proxy(
|
|
|
3228
3230
|
ipv4_destination: typing.Optional[builtins.str] = None,
|
|
3229
3231
|
ipv6_destination: typing.Optional[builtins.str] = None,
|
|
3230
3232
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
3231
|
-
) ->
|
|
3233
|
+
) -> "InternetGateway":
|
|
3232
3234
|
'''(experimental) Adds an Internet Gateway to current VPC.
|
|
3233
3235
|
|
|
3234
3236
|
For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html}.
|
|
@@ -3249,7 +3251,7 @@ class _IVpcV2Proxy(
|
|
|
3249
3251
|
subnets=subnets,
|
|
3250
3252
|
)
|
|
3251
3253
|
|
|
3252
|
-
return typing.cast(
|
|
3254
|
+
return typing.cast("InternetGateway", jsii.invoke(self, "addInternetGateway", [options]))
|
|
3253
3255
|
|
|
3254
3256
|
@jsii.member(jsii_name="addNatGateway")
|
|
3255
3257
|
def add_nat_gateway(
|
|
@@ -3444,6 +3446,15 @@ class InternetGateway(
|
|
|
3444
3446
|
|
|
3445
3447
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
3446
3448
|
|
|
3449
|
+
@jsii.python.classproperty
|
|
3450
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
3451
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
3452
|
+
'''(experimental) Uniquely identifies this class.
|
|
3453
|
+
|
|
3454
|
+
:stability: experimental
|
|
3455
|
+
'''
|
|
3456
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
3457
|
+
|
|
3447
3458
|
@builtins.property
|
|
3448
3459
|
@jsii.member(jsii_name="resource")
|
|
3449
3460
|
def resource(self) -> _aws_cdk_aws_ec2_ceddda9d.CfnInternetGateway:
|
|
@@ -3973,6 +3984,15 @@ class Ipam(
|
|
|
3973
3984
|
|
|
3974
3985
|
return typing.cast(IIpamScopeBase, jsii.invoke(self, "addScope", [scope, id, options]))
|
|
3975
3986
|
|
|
3987
|
+
@jsii.python.classproperty
|
|
3988
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
3989
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
3990
|
+
'''(experimental) Uniquely identifies this class.
|
|
3991
|
+
|
|
3992
|
+
:stability: experimental
|
|
3993
|
+
'''
|
|
3994
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
3995
|
+
|
|
3976
3996
|
@builtins.property
|
|
3977
3997
|
@jsii.member(jsii_name="ipamId")
|
|
3978
3998
|
def ipam_id(self) -> builtins.str:
|
|
@@ -4639,6 +4659,15 @@ class NatGateway(
|
|
|
4639
4659
|
|
|
4640
4660
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
4641
4661
|
|
|
4662
|
+
@jsii.python.classproperty
|
|
4663
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
4664
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
4665
|
+
'''(experimental) Uniquely identifies this class.
|
|
4666
|
+
|
|
4667
|
+
:stability: experimental
|
|
4668
|
+
'''
|
|
4669
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
4670
|
+
|
|
4642
4671
|
@builtins.property
|
|
4643
4672
|
@jsii.member(jsii_name="natGatewayId")
|
|
4644
4673
|
def nat_gateway_id(self) -> builtins.str:
|
|
@@ -4687,6 +4716,15 @@ class NatGateway(
|
|
|
4687
4716
|
'''
|
|
4688
4717
|
return typing.cast(typing.Optional[NatConnectivityType], jsii.get(self, "connectivityType"))
|
|
4689
4718
|
|
|
4719
|
+
@builtins.property
|
|
4720
|
+
@jsii.member(jsii_name="eip")
|
|
4721
|
+
def eip(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnEIP]:
|
|
4722
|
+
'''(experimental) Elastic IP created for allocation.
|
|
4723
|
+
|
|
4724
|
+
:stability: experimental
|
|
4725
|
+
'''
|
|
4726
|
+
return typing.cast(typing.Optional[_aws_cdk_aws_ec2_ceddda9d.CfnEIP], jsii.get(self, "eip"))
|
|
4727
|
+
|
|
4690
4728
|
@builtins.property
|
|
4691
4729
|
@jsii.member(jsii_name="maxDrainDuration")
|
|
4692
4730
|
def max_drain_duration(self) -> typing.Optional[_aws_cdk_ceddda9d.Duration]:
|
|
@@ -5419,6 +5457,15 @@ class Route(
|
|
|
5419
5457
|
|
|
5420
5458
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
5421
5459
|
|
|
5460
|
+
@jsii.python.classproperty
|
|
5461
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
5462
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
5463
|
+
'''(experimental) Uniquely identifies this class.
|
|
5464
|
+
|
|
5465
|
+
:stability: experimental
|
|
5466
|
+
'''
|
|
5467
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
5468
|
+
|
|
5422
5469
|
@builtins.property
|
|
5423
5470
|
@jsii.member(jsii_name="destination")
|
|
5424
5471
|
def destination(self) -> builtins.str:
|
|
@@ -5673,6 +5720,15 @@ class RouteTable(
|
|
|
5673
5720
|
check_type(argname="argument route_name", value=route_name, expected_type=type_hints["route_name"])
|
|
5674
5721
|
return typing.cast(None, jsii.invoke(self, "addRoute", [id, destination, target, route_name]))
|
|
5675
5722
|
|
|
5723
|
+
@jsii.python.classproperty
|
|
5724
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
5725
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
5726
|
+
'''(experimental) Uniquely identifies this class.
|
|
5727
|
+
|
|
5728
|
+
:stability: experimental
|
|
5729
|
+
'''
|
|
5730
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
5731
|
+
|
|
5676
5732
|
@builtins.property
|
|
5677
5733
|
@jsii.member(jsii_name="resource")
|
|
5678
5734
|
def resource(self) -> _aws_cdk_aws_ec2_ceddda9d.CfnRouteTable:
|
|
@@ -6054,7 +6110,9 @@ class SubnetV2(
|
|
|
6054
6110
|
subnet_type: _aws_cdk_aws_ec2_ceddda9d.SubnetType,
|
|
6055
6111
|
vpc: IVpcV2,
|
|
6056
6112
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
6113
|
+
default_route_table_name: typing.Optional[builtins.str] = None,
|
|
6057
6114
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
6115
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
6058
6116
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
6059
6117
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
6060
6118
|
) -> None:
|
|
@@ -6067,7 +6125,9 @@ class SubnetV2(
|
|
|
6067
6125
|
:param subnet_type: (experimental) The type of Subnet to configure. The Subnet type will control the ability to route and connect to the Internet. TODO: Add validation check ``subnetType`` when adding resources (e.g. cannot add NatGateway to private)
|
|
6068
6126
|
:param vpc: (experimental) VPC Prop.
|
|
6069
6127
|
:param assign_ipv6_address_on_creation: (experimental) Indicates whether a network interface created in this subnet receives an IPv6 address. If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock. Default: - undefined in case not provided as an input
|
|
6128
|
+
:param default_route_table_name: (experimental) Name of the default RouteTable created by CDK to be used for tagging. Default: - default route table name created by CDK as 'DefaultCDKRouteTable'
|
|
6070
6129
|
:param ipv6_cidr_block: (experimental) Ipv6 CIDR Range for subnet. Default: - No Ipv6 address
|
|
6130
|
+
:param map_public_ip_on_launch: (experimental) Controls if instances launched into the subnet should be assigned a public IP address. This property can only be set for public subnets. Default: - undefined in case not provided as an input
|
|
6071
6131
|
:param route_table: (experimental) Custom Route for subnet. Default: - a default route table created
|
|
6072
6132
|
:param subnet_name: (experimental) Subnet name. Default: - provisioned with an autogenerated name by CDK
|
|
6073
6133
|
|
|
@@ -6083,7 +6143,9 @@ class SubnetV2(
|
|
|
6083
6143
|
subnet_type=subnet_type,
|
|
6084
6144
|
vpc=vpc,
|
|
6085
6145
|
assign_ipv6_address_on_creation=assign_ipv6_address_on_creation,
|
|
6146
|
+
default_route_table_name=default_route_table_name,
|
|
6086
6147
|
ipv6_cidr_block=ipv6_cidr_block,
|
|
6148
|
+
map_public_ip_on_launch=map_public_ip_on_launch,
|
|
6087
6149
|
route_table=route_table,
|
|
6088
6150
|
subnet_name=subnet_name,
|
|
6089
6151
|
)
|
|
@@ -6154,6 +6216,15 @@ class SubnetV2(
|
|
|
6154
6216
|
check_type(argname="argument network_acl", value=network_acl, expected_type=type_hints["network_acl"])
|
|
6155
6217
|
return typing.cast(None, jsii.invoke(self, "associateNetworkAcl", [id, network_acl]))
|
|
6156
6218
|
|
|
6219
|
+
@jsii.python.classproperty
|
|
6220
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
6221
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
6222
|
+
'''(experimental) Uniquely identifies this class.
|
|
6223
|
+
|
|
6224
|
+
:stability: experimental
|
|
6225
|
+
'''
|
|
6226
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
6227
|
+
|
|
6157
6228
|
@builtins.property
|
|
6158
6229
|
@jsii.member(jsii_name="availabilityZone")
|
|
6159
6230
|
def availability_zone(self) -> builtins.str:
|
|
@@ -6209,6 +6280,15 @@ class SubnetV2(
|
|
|
6209
6280
|
'''
|
|
6210
6281
|
return typing.cast(builtins.str, jsii.get(self, "subnetId"))
|
|
6211
6282
|
|
|
6283
|
+
@builtins.property
|
|
6284
|
+
@jsii.member(jsii_name="subnetRef")
|
|
6285
|
+
def subnet_ref(self) -> _aws_cdk_aws_ec2_ceddda9d.SubnetReference:
|
|
6286
|
+
'''(experimental) A reference to a Subnet resource.
|
|
6287
|
+
|
|
6288
|
+
:stability: experimental
|
|
6289
|
+
'''
|
|
6290
|
+
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.SubnetReference, jsii.get(self, "subnetRef"))
|
|
6291
|
+
|
|
6212
6292
|
@builtins.property
|
|
6213
6293
|
@jsii.member(jsii_name="ipv6CidrBlock")
|
|
6214
6294
|
def ipv6_cidr_block(self) -> typing.Optional[builtins.str]:
|
|
@@ -6397,7 +6477,9 @@ class SubnetV2Attributes:
|
|
|
6397
6477
|
"subnet_type": "subnetType",
|
|
6398
6478
|
"vpc": "vpc",
|
|
6399
6479
|
"assign_ipv6_address_on_creation": "assignIpv6AddressOnCreation",
|
|
6480
|
+
"default_route_table_name": "defaultRouteTableName",
|
|
6400
6481
|
"ipv6_cidr_block": "ipv6CidrBlock",
|
|
6482
|
+
"map_public_ip_on_launch": "mapPublicIpOnLaunch",
|
|
6401
6483
|
"route_table": "routeTable",
|
|
6402
6484
|
"subnet_name": "subnetName",
|
|
6403
6485
|
},
|
|
@@ -6411,7 +6493,9 @@ class SubnetV2Props:
|
|
|
6411
6493
|
subnet_type: _aws_cdk_aws_ec2_ceddda9d.SubnetType,
|
|
6412
6494
|
vpc: IVpcV2,
|
|
6413
6495
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
6496
|
+
default_route_table_name: typing.Optional[builtins.str] = None,
|
|
6414
6497
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
6498
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
6415
6499
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
6416
6500
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
6417
6501
|
) -> None:
|
|
@@ -6422,7 +6506,9 @@ class SubnetV2Props:
|
|
|
6422
6506
|
:param subnet_type: (experimental) The type of Subnet to configure. The Subnet type will control the ability to route and connect to the Internet. TODO: Add validation check ``subnetType`` when adding resources (e.g. cannot add NatGateway to private)
|
|
6423
6507
|
:param vpc: (experimental) VPC Prop.
|
|
6424
6508
|
:param assign_ipv6_address_on_creation: (experimental) Indicates whether a network interface created in this subnet receives an IPv6 address. If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock. Default: - undefined in case not provided as an input
|
|
6509
|
+
:param default_route_table_name: (experimental) Name of the default RouteTable created by CDK to be used for tagging. Default: - default route table name created by CDK as 'DefaultCDKRouteTable'
|
|
6425
6510
|
:param ipv6_cidr_block: (experimental) Ipv6 CIDR Range for subnet. Default: - No Ipv6 address
|
|
6511
|
+
:param map_public_ip_on_launch: (experimental) Controls if instances launched into the subnet should be assigned a public IP address. This property can only be set for public subnets. Default: - undefined in case not provided as an input
|
|
6426
6512
|
:param route_table: (experimental) Custom Route for subnet. Default: - a default route table created
|
|
6427
6513
|
:param subnet_name: (experimental) Subnet name. Default: - provisioned with an autogenerated name by CDK
|
|
6428
6514
|
|
|
@@ -6461,7 +6547,9 @@ class SubnetV2Props:
|
|
|
6461
6547
|
check_type(argname="argument subnet_type", value=subnet_type, expected_type=type_hints["subnet_type"])
|
|
6462
6548
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
6463
6549
|
check_type(argname="argument assign_ipv6_address_on_creation", value=assign_ipv6_address_on_creation, expected_type=type_hints["assign_ipv6_address_on_creation"])
|
|
6550
|
+
check_type(argname="argument default_route_table_name", value=default_route_table_name, expected_type=type_hints["default_route_table_name"])
|
|
6464
6551
|
check_type(argname="argument ipv6_cidr_block", value=ipv6_cidr_block, expected_type=type_hints["ipv6_cidr_block"])
|
|
6552
|
+
check_type(argname="argument map_public_ip_on_launch", value=map_public_ip_on_launch, expected_type=type_hints["map_public_ip_on_launch"])
|
|
6465
6553
|
check_type(argname="argument route_table", value=route_table, expected_type=type_hints["route_table"])
|
|
6466
6554
|
check_type(argname="argument subnet_name", value=subnet_name, expected_type=type_hints["subnet_name"])
|
|
6467
6555
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -6472,8 +6560,12 @@ class SubnetV2Props:
|
|
|
6472
6560
|
}
|
|
6473
6561
|
if assign_ipv6_address_on_creation is not None:
|
|
6474
6562
|
self._values["assign_ipv6_address_on_creation"] = assign_ipv6_address_on_creation
|
|
6563
|
+
if default_route_table_name is not None:
|
|
6564
|
+
self._values["default_route_table_name"] = default_route_table_name
|
|
6475
6565
|
if ipv6_cidr_block is not None:
|
|
6476
6566
|
self._values["ipv6_cidr_block"] = ipv6_cidr_block
|
|
6567
|
+
if map_public_ip_on_launch is not None:
|
|
6568
|
+
self._values["map_public_ip_on_launch"] = map_public_ip_on_launch
|
|
6477
6569
|
if route_table is not None:
|
|
6478
6570
|
self._values["route_table"] = route_table
|
|
6479
6571
|
if subnet_name is not None:
|
|
@@ -6539,6 +6631,17 @@ class SubnetV2Props:
|
|
|
6539
6631
|
result = self._values.get("assign_ipv6_address_on_creation")
|
|
6540
6632
|
return typing.cast(typing.Optional[builtins.bool], result)
|
|
6541
6633
|
|
|
6634
|
+
@builtins.property
|
|
6635
|
+
def default_route_table_name(self) -> typing.Optional[builtins.str]:
|
|
6636
|
+
'''(experimental) Name of the default RouteTable created by CDK to be used for tagging.
|
|
6637
|
+
|
|
6638
|
+
:default: - default route table name created by CDK as 'DefaultCDKRouteTable'
|
|
6639
|
+
|
|
6640
|
+
:stability: experimental
|
|
6641
|
+
'''
|
|
6642
|
+
result = self._values.get("default_route_table_name")
|
|
6643
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
6644
|
+
|
|
6542
6645
|
@builtins.property
|
|
6543
6646
|
def ipv6_cidr_block(self) -> typing.Optional[IpCidr]:
|
|
6544
6647
|
'''(experimental) Ipv6 CIDR Range for subnet.
|
|
@@ -6550,6 +6653,19 @@ class SubnetV2Props:
|
|
|
6550
6653
|
result = self._values.get("ipv6_cidr_block")
|
|
6551
6654
|
return typing.cast(typing.Optional[IpCidr], result)
|
|
6552
6655
|
|
|
6656
|
+
@builtins.property
|
|
6657
|
+
def map_public_ip_on_launch(self) -> typing.Optional[builtins.bool]:
|
|
6658
|
+
'''(experimental) Controls if instances launched into the subnet should be assigned a public IP address.
|
|
6659
|
+
|
|
6660
|
+
This property can only be set for public subnets.
|
|
6661
|
+
|
|
6662
|
+
:default: - undefined in case not provided as an input
|
|
6663
|
+
|
|
6664
|
+
:stability: experimental
|
|
6665
|
+
'''
|
|
6666
|
+
result = self._values.get("map_public_ip_on_launch")
|
|
6667
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
6668
|
+
|
|
6553
6669
|
@builtins.property
|
|
6554
6670
|
def route_table(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable]:
|
|
6555
6671
|
'''(experimental) Custom Route for subnet.
|
|
@@ -6722,6 +6838,15 @@ class TransitGateway(
|
|
|
6722
6838
|
|
|
6723
6839
|
return typing.cast(ITransitGatewayVpcAttachment, jsii.invoke(self, "attachVpc", [id, options]))
|
|
6724
6840
|
|
|
6841
|
+
@jsii.python.classproperty
|
|
6842
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
6843
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
6844
|
+
'''(experimental) Uniquely identifies this class.
|
|
6845
|
+
|
|
6846
|
+
:stability: experimental
|
|
6847
|
+
'''
|
|
6848
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
6849
|
+
|
|
6725
6850
|
@builtins.property
|
|
6726
6851
|
@jsii.member(jsii_name="defaultRouteTable")
|
|
6727
6852
|
def default_route_table(self) -> ITransitGatewayRouteTable:
|
|
@@ -6878,6 +7003,15 @@ class TransitGatewayBlackholeRoute(
|
|
|
6878
7003
|
|
|
6879
7004
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
6880
7005
|
|
|
7006
|
+
@jsii.python.classproperty
|
|
7007
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
7008
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
7009
|
+
'''(experimental) Uniquely identifies this class.
|
|
7010
|
+
|
|
7011
|
+
:stability: experimental
|
|
7012
|
+
'''
|
|
7013
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
7014
|
+
|
|
6881
7015
|
@builtins.property
|
|
6882
7016
|
@jsii.member(jsii_name="destinationCidrBlock")
|
|
6883
7017
|
def destination_cidr_block(self) -> builtins.str:
|
|
@@ -7265,6 +7399,15 @@ class TransitGatewayRoute(
|
|
|
7265
7399
|
|
|
7266
7400
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
7267
7401
|
|
|
7402
|
+
@jsii.python.classproperty
|
|
7403
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
7404
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
7405
|
+
'''(experimental) Uniquely identifies this class.
|
|
7406
|
+
|
|
7407
|
+
:stability: experimental
|
|
7408
|
+
'''
|
|
7409
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
7410
|
+
|
|
7268
7411
|
@builtins.property
|
|
7269
7412
|
@jsii.member(jsii_name="destinationCidrBlock")
|
|
7270
7413
|
def destination_cidr_block(self) -> builtins.str:
|
|
@@ -7547,6 +7690,15 @@ class TransitGatewayRouteTable(
|
|
|
7547
7690
|
check_type(argname="argument transit_gateway_attachment", value=transit_gateway_attachment, expected_type=type_hints["transit_gateway_attachment"])
|
|
7548
7691
|
return typing.cast(ITransitGatewayRouteTablePropagation, jsii.invoke(self, "enablePropagation", [id, transit_gateway_attachment]))
|
|
7549
7692
|
|
|
7693
|
+
@jsii.python.classproperty
|
|
7694
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
7695
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
7696
|
+
'''(experimental) Uniquely identifies this class.
|
|
7697
|
+
|
|
7698
|
+
:stability: experimental
|
|
7699
|
+
'''
|
|
7700
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
7701
|
+
|
|
7550
7702
|
@builtins.property
|
|
7551
7703
|
@jsii.member(jsii_name="routeTableId")
|
|
7552
7704
|
def route_table_id(self) -> builtins.str:
|
|
@@ -7626,6 +7778,15 @@ class TransitGatewayRouteTableAssociation(
|
|
|
7626
7778
|
|
|
7627
7779
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
7628
7780
|
|
|
7781
|
+
@jsii.python.classproperty
|
|
7782
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
7783
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
7784
|
+
'''(experimental) Uniquely identifies this class.
|
|
7785
|
+
|
|
7786
|
+
:stability: experimental
|
|
7787
|
+
'''
|
|
7788
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
7789
|
+
|
|
7629
7790
|
@builtins.property
|
|
7630
7791
|
@jsii.member(jsii_name="transitGatewayAssociationId")
|
|
7631
7792
|
def transit_gateway_association_id(self) -> builtins.str:
|
|
@@ -7796,6 +7957,15 @@ class TransitGatewayRouteTablePropagation(
|
|
|
7796
7957
|
|
|
7797
7958
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
7798
7959
|
|
|
7960
|
+
@jsii.python.classproperty
|
|
7961
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
7962
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
7963
|
+
'''(experimental) Uniquely identifies this class.
|
|
7964
|
+
|
|
7965
|
+
:stability: experimental
|
|
7966
|
+
'''
|
|
7967
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
7968
|
+
|
|
7799
7969
|
@builtins.property
|
|
7800
7970
|
@jsii.member(jsii_name="transitGatewayRouteTablePropagationId")
|
|
7801
7971
|
def transit_gateway_route_table_propagation_id(self) -> builtins.str:
|
|
@@ -8090,6 +8260,15 @@ class TransitGatewayVpcAttachment(
|
|
|
8090
8260
|
check_type(argname="argument subnets", value=subnets, expected_type=type_hints["subnets"])
|
|
8091
8261
|
return typing.cast(None, jsii.invoke(self, "removeSubnets", [subnets]))
|
|
8092
8262
|
|
|
8263
|
+
@jsii.python.classproperty
|
|
8264
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
8265
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
8266
|
+
'''(experimental) Uniquely identifies this class.
|
|
8267
|
+
|
|
8268
|
+
:stability: experimental
|
|
8269
|
+
'''
|
|
8270
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
8271
|
+
|
|
8093
8272
|
@builtins.property
|
|
8094
8273
|
@jsii.member(jsii_name="transitGatewayAttachmentId")
|
|
8095
8274
|
def transit_gateway_attachment_id(self) -> builtins.str:
|
|
@@ -8531,6 +8710,15 @@ class VPCPeeringConnection(
|
|
|
8531
8710
|
|
|
8532
8711
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
8533
8712
|
|
|
8713
|
+
@jsii.python.classproperty
|
|
8714
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
8715
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
8716
|
+
'''(experimental) Uniquely identifies this class.
|
|
8717
|
+
|
|
8718
|
+
:stability: experimental
|
|
8719
|
+
'''
|
|
8720
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
8721
|
+
|
|
8534
8722
|
@builtins.property
|
|
8535
8723
|
@jsii.member(jsii_name="resource")
|
|
8536
8724
|
def resource(self) -> _aws_cdk_aws_ec2_ceddda9d.CfnVPCPeeringConnection:
|
|
@@ -8847,6 +9035,15 @@ class VPNGatewayV2(
|
|
|
8847
9035
|
|
|
8848
9036
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
8849
9037
|
|
|
9038
|
+
@jsii.python.classproperty
|
|
9039
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
9040
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
9041
|
+
'''(experimental) Uniquely identifies this class.
|
|
9042
|
+
|
|
9043
|
+
:stability: experimental
|
|
9044
|
+
'''
|
|
9045
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
9046
|
+
|
|
8850
9047
|
@builtins.property
|
|
8851
9048
|
@jsii.member(jsii_name="resource")
|
|
8852
9049
|
def resource(self) -> _aws_cdk_aws_ec2_ceddda9d.CfnVPNGateway:
|
|
@@ -9626,7 +9823,9 @@ class VpcV2Base(
|
|
|
9626
9823
|
client_certificate_arn: typing.Optional[builtins.str] = None,
|
|
9627
9824
|
client_connection_handler: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IClientVpnConnectionHandler] = None,
|
|
9628
9825
|
client_login_banner: typing.Optional[builtins.str] = None,
|
|
9826
|
+
client_route_enforcement_options: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.ClientRouteEnforcementOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
9629
9827
|
description: typing.Optional[builtins.str] = None,
|
|
9828
|
+
disconnect_on_session_timeout: typing.Optional[builtins.bool] = None,
|
|
9630
9829
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
9631
9830
|
logging: typing.Optional[builtins.bool] = None,
|
|
9632
9831
|
log_group: typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup] = None,
|
|
@@ -9649,7 +9848,9 @@ class VpcV2Base(
|
|
|
9649
9848
|
:param client_certificate_arn: The ARN of the client certificate for mutual authentication. The certificate must be signed by a certificate authority (CA) and it must be provisioned in AWS Certificate Manager (ACM). Default: - use user-based authentication
|
|
9650
9849
|
:param client_connection_handler: The AWS Lambda function used for connection authorization. The name of the Lambda function must begin with the ``AWSClientVPN-`` prefix Default: - no connection handler
|
|
9651
9850
|
:param client_login_banner: Customizable text that will be displayed in a banner on AWS provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters. Default: - no banner is presented to the client
|
|
9851
|
+
:param client_route_enforcement_options: Options for Client Route Enforcement. Client Route Enforcement is a feature of Client VPN that helps enforce administrator defined routes on devices connected through the VPN. This feature helps improve your security posture by ensuring that network traffic originating from a connected client is not inadvertently sent outside the VPN tunnel. Default: undefined - AWS Client VPN default setting is disable client route enforcement
|
|
9652
9852
|
:param description: A brief description of the Client VPN endpoint. Default: - no description
|
|
9853
|
+
:param disconnect_on_session_timeout: Indicates whether the client VPN session is disconnected after the maximum ``sessionTimeout`` is reached. If ``true``, users are prompted to reconnect client VPN. If ``false``, client VPN attempts to reconnect automatically. Default: undefined - AWS Client VPN default is true
|
|
9653
9854
|
:param dns_servers: Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. Default: - use the DNS address configured on the device
|
|
9654
9855
|
:param logging: Whether to enable connections logging. Default: true
|
|
9655
9856
|
:param log_group: A CloudWatch Logs log group for connection logging. Default: - a new group is created
|
|
@@ -9675,7 +9876,9 @@ class VpcV2Base(
|
|
|
9675
9876
|
client_certificate_arn=client_certificate_arn,
|
|
9676
9877
|
client_connection_handler=client_connection_handler,
|
|
9677
9878
|
client_login_banner=client_login_banner,
|
|
9879
|
+
client_route_enforcement_options=client_route_enforcement_options,
|
|
9678
9880
|
description=description,
|
|
9881
|
+
disconnect_on_session_timeout=disconnect_on_session_timeout,
|
|
9679
9882
|
dns_servers=dns_servers,
|
|
9680
9883
|
logging=logging,
|
|
9681
9884
|
log_group=log_group,
|
|
@@ -9699,7 +9902,7 @@ class VpcV2Base(
|
|
|
9699
9902
|
destination: typing.Optional[builtins.str] = None,
|
|
9700
9903
|
egress_only_internet_gateway_name: typing.Optional[builtins.str] = None,
|
|
9701
9904
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9702
|
-
) ->
|
|
9905
|
+
) -> "EgressOnlyInternetGateway":
|
|
9703
9906
|
'''(experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.
|
|
9704
9907
|
|
|
9705
9908
|
:param destination: (experimental) Destination Ipv6 address for EGW route. Default: - '::/0' all Ipv6 traffic
|
|
@@ -9716,7 +9919,7 @@ class VpcV2Base(
|
|
|
9716
9919
|
subnets=subnets,
|
|
9717
9920
|
)
|
|
9718
9921
|
|
|
9719
|
-
return typing.cast(
|
|
9922
|
+
return typing.cast("EgressOnlyInternetGateway", jsii.invoke(self, "addEgressOnlyInternetGateway", [options]))
|
|
9720
9923
|
|
|
9721
9924
|
@jsii.member(jsii_name="addFlowLog")
|
|
9722
9925
|
def add_flow_log(
|
|
@@ -9781,20 +9984,28 @@ class VpcV2Base(
|
|
|
9781
9984
|
id: builtins.str,
|
|
9782
9985
|
*,
|
|
9783
9986
|
service: _aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpointService,
|
|
9987
|
+
dns_record_ip_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointDnsRecordIpType] = None,
|
|
9988
|
+
ip_address_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointIpAddressType] = None,
|
|
9784
9989
|
lookup_supported_azs: typing.Optional[builtins.bool] = None,
|
|
9785
9990
|
open: typing.Optional[builtins.bool] = None,
|
|
9786
9991
|
private_dns_enabled: typing.Optional[builtins.bool] = None,
|
|
9992
|
+
private_dns_only_for_inbound_resolver_endpoint: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointPrivateDnsOnlyForInboundResolverEndpoint] = None,
|
|
9787
9993
|
security_groups: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]] = None,
|
|
9994
|
+
service_region: typing.Optional[builtins.str] = None,
|
|
9788
9995
|
subnets: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
9789
9996
|
) -> _aws_cdk_aws_ec2_ceddda9d.InterfaceVpcEndpoint:
|
|
9790
9997
|
'''(experimental) Adds a new interface endpoint to this VPC.
|
|
9791
9998
|
|
|
9792
9999
|
:param id: -
|
|
9793
10000
|
:param service: The service to use for this interface VPC endpoint.
|
|
10001
|
+
:param dns_record_ip_type: Type of DNS records created for the VPC endpoint. Default: not specified
|
|
10002
|
+
:param ip_address_type: The IP address type for the endpoint. Default: not specified
|
|
9794
10003
|
:param lookup_supported_azs: Limit to only those availability zones where the endpoint service can be created. Setting this to 'true' requires a lookup to be performed at synthesis time. Account and region must be set on the containing stack for this to work. Default: false
|
|
9795
10004
|
:param open: Whether to automatically allow VPC traffic to the endpoint. If enabled, all traffic to the endpoint from within the VPC will be automatically allowed. This is done based on the VPC's CIDR range. Default: true
|
|
9796
10005
|
:param private_dns_enabled: Whether to associate a private hosted zone with the specified VPC. This allows you to make requests to the service using its default DNS hostname. Default: set by the instance of IInterfaceVpcEndpointService, or true if not defined by the instance of IInterfaceVpcEndpointService
|
|
10006
|
+
:param private_dns_only_for_inbound_resolver_endpoint: Whether to enable private DNS only for inbound endpoints. Default: not specified
|
|
9797
10007
|
:param security_groups: The security groups to associate with this interface VPC endpoint. Default: - a new security group is created
|
|
10008
|
+
:param service_region: The region where the VPC endpoint service is located. Only needs to be specified for cross-region VPC endpoints. Default: - Same region as the interface VPC endpoint
|
|
9798
10009
|
:param subnets: The subnets in which to create an endpoint network interface. At most one per availability zone. Default: - private subnets
|
|
9799
10010
|
|
|
9800
10011
|
:stability: experimental
|
|
@@ -9804,10 +10015,14 @@ class VpcV2Base(
|
|
|
9804
10015
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
9805
10016
|
options = _aws_cdk_aws_ec2_ceddda9d.InterfaceVpcEndpointOptions(
|
|
9806
10017
|
service=service,
|
|
10018
|
+
dns_record_ip_type=dns_record_ip_type,
|
|
10019
|
+
ip_address_type=ip_address_type,
|
|
9807
10020
|
lookup_supported_azs=lookup_supported_azs,
|
|
9808
10021
|
open=open,
|
|
9809
10022
|
private_dns_enabled=private_dns_enabled,
|
|
10023
|
+
private_dns_only_for_inbound_resolver_endpoint=private_dns_only_for_inbound_resolver_endpoint,
|
|
9810
10024
|
security_groups=security_groups,
|
|
10025
|
+
service_region=service_region,
|
|
9811
10026
|
subnets=subnets,
|
|
9812
10027
|
)
|
|
9813
10028
|
|
|
@@ -9821,7 +10036,7 @@ class VpcV2Base(
|
|
|
9821
10036
|
ipv4_destination: typing.Optional[builtins.str] = None,
|
|
9822
10037
|
ipv6_destination: typing.Optional[builtins.str] = None,
|
|
9823
10038
|
subnets: typing.Optional[typing.Sequence[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9824
|
-
) ->
|
|
10039
|
+
) -> InternetGateway:
|
|
9825
10040
|
'''(experimental) Adds a new Internet Gateway to this VPC.
|
|
9826
10041
|
|
|
9827
10042
|
:param internet_gateway_name: (experimental) The resource name of the internet gateway. Provided name will be used for tagging Default: - provisioned without a resource name
|
|
@@ -9840,7 +10055,7 @@ class VpcV2Base(
|
|
|
9840
10055
|
subnets=subnets,
|
|
9841
10056
|
)
|
|
9842
10057
|
|
|
9843
|
-
return typing.cast(
|
|
10058
|
+
return typing.cast(InternetGateway, jsii.invoke(self, "addInternetGateway", [options]))
|
|
9844
10059
|
|
|
9845
10060
|
@jsii.member(jsii_name="addNatGateway")
|
|
9846
10061
|
def add_nat_gateway(
|
|
@@ -10191,6 +10406,15 @@ class VpcV2Base(
|
|
|
10191
10406
|
'''
|
|
10192
10407
|
...
|
|
10193
10408
|
|
|
10409
|
+
@builtins.property
|
|
10410
|
+
@jsii.member(jsii_name="vpcRef")
|
|
10411
|
+
def vpc_ref(self) -> _aws_cdk_aws_ec2_ceddda9d.VPCReference:
|
|
10412
|
+
'''(experimental) A reference to a VPC resource.
|
|
10413
|
+
|
|
10414
|
+
:stability: experimental
|
|
10415
|
+
'''
|
|
10416
|
+
return typing.cast(_aws_cdk_aws_ec2_ceddda9d.VPCReference, jsii.get(self, "vpcRef"))
|
|
10417
|
+
|
|
10194
10418
|
@builtins.property
|
|
10195
10419
|
@jsii.member(jsii_name="egressOnlyInternetGatewayId")
|
|
10196
10420
|
def egress_only_internet_gateway_id(self) -> typing.Optional[builtins.str]:
|
|
@@ -10603,6 +10827,15 @@ class EgressOnlyInternetGateway(
|
|
|
10603
10827
|
|
|
10604
10828
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
10605
10829
|
|
|
10830
|
+
@jsii.python.classproperty
|
|
10831
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
10832
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
10833
|
+
'''(experimental) Uniquely identifies this class.
|
|
10834
|
+
|
|
10835
|
+
:stability: experimental
|
|
10836
|
+
'''
|
|
10837
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
10838
|
+
|
|
10606
10839
|
@builtins.property
|
|
10607
10840
|
@jsii.member(jsii_name="resource")
|
|
10608
10841
|
def resource(self) -> _aws_cdk_aws_ec2_ceddda9d.CfnEgressOnlyInternetGateway:
|
|
@@ -10849,6 +11082,15 @@ class VpcV2(
|
|
|
10849
11082
|
|
|
10850
11083
|
return typing.cast(IVpcV2, jsii.sinvoke(cls, "fromVpcV2Attributes", [scope, id, attrs]))
|
|
10851
11084
|
|
|
11085
|
+
@jsii.python.classproperty
|
|
11086
|
+
@jsii.member(jsii_name="PROPERTY_INJECTION_ID")
|
|
11087
|
+
def PROPERTY_INJECTION_ID(cls) -> builtins.str:
|
|
11088
|
+
'''(experimental) Uniquely identifies this class.
|
|
11089
|
+
|
|
11090
|
+
:stability: experimental
|
|
11091
|
+
'''
|
|
11092
|
+
return typing.cast(builtins.str, jsii.sget(cls, "PROPERTY_INJECTION_ID"))
|
|
11093
|
+
|
|
10852
11094
|
@builtins.property
|
|
10853
11095
|
@jsii.member(jsii_name="dnsHostnamesEnabled")
|
|
10854
11096
|
def dns_hostnames_enabled(self) -> builtins.bool:
|
|
@@ -11459,7 +11701,9 @@ def _typecheckingstub__df9294d0dd8fd099bad5e4bd408f0f8b8bffbcdc6e4f624de6a1bf541
|
|
|
11459
11701
|
subnet_type: _aws_cdk_aws_ec2_ceddda9d.SubnetType,
|
|
11460
11702
|
vpc: IVpcV2,
|
|
11461
11703
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
11704
|
+
default_route_table_name: typing.Optional[builtins.str] = None,
|
|
11462
11705
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
11706
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
11463
11707
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
11464
11708
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
11465
11709
|
) -> None:
|
|
@@ -11508,7 +11752,9 @@ def _typecheckingstub__95ce99f8025433ac8b79825abef6ff91da4dfd0693fd24dadedcee63e
|
|
|
11508
11752
|
subnet_type: _aws_cdk_aws_ec2_ceddda9d.SubnetType,
|
|
11509
11753
|
vpc: IVpcV2,
|
|
11510
11754
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
11755
|
+
default_route_table_name: typing.Optional[builtins.str] = None,
|
|
11511
11756
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
11757
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
11512
11758
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
11513
11759
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
11514
11760
|
) -> None:
|
|
@@ -11863,7 +12109,9 @@ def _typecheckingstub__c8e22ab92bf67ef2717b155efcdb6ba2134d3e9bdc0a53f7c0965eca6
|
|
|
11863
12109
|
client_certificate_arn: typing.Optional[builtins.str] = None,
|
|
11864
12110
|
client_connection_handler: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IClientVpnConnectionHandler] = None,
|
|
11865
12111
|
client_login_banner: typing.Optional[builtins.str] = None,
|
|
12112
|
+
client_route_enforcement_options: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.ClientRouteEnforcementOptions, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11866
12113
|
description: typing.Optional[builtins.str] = None,
|
|
12114
|
+
disconnect_on_session_timeout: typing.Optional[builtins.bool] = None,
|
|
11867
12115
|
dns_servers: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
11868
12116
|
logging: typing.Optional[builtins.bool] = None,
|
|
11869
12117
|
log_group: typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup] = None,
|
|
@@ -11904,10 +12152,14 @@ def _typecheckingstub__8cbad96bdbea562df222ed5faebcc6f505e346aac5ded2fa222b915b6
|
|
|
11904
12152
|
id: builtins.str,
|
|
11905
12153
|
*,
|
|
11906
12154
|
service: _aws_cdk_aws_ec2_ceddda9d.IInterfaceVpcEndpointService,
|
|
12155
|
+
dns_record_ip_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointDnsRecordIpType] = None,
|
|
12156
|
+
ip_address_type: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointIpAddressType] = None,
|
|
11907
12157
|
lookup_supported_azs: typing.Optional[builtins.bool] = None,
|
|
11908
12158
|
open: typing.Optional[builtins.bool] = None,
|
|
11909
12159
|
private_dns_enabled: typing.Optional[builtins.bool] = None,
|
|
12160
|
+
private_dns_only_for_inbound_resolver_endpoint: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.VpcEndpointPrivateDnsOnlyForInboundResolverEndpoint] = None,
|
|
11910
12161
|
security_groups: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]] = None,
|
|
12162
|
+
service_region: typing.Optional[builtins.str] = None,
|
|
11911
12163
|
subnets: typing.Optional[typing.Union[_aws_cdk_aws_ec2_ceddda9d.SubnetSelection, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
11912
12164
|
) -> None:
|
|
11913
12165
|
"""Type checking stubs"""
|
|
@@ -12005,3 +12257,6 @@ def _typecheckingstub__a44e5d77c989876de48b8f71adf0b240f0b6a3149cc8bd0c5ab7bb8df
|
|
|
12005
12257
|
) -> None:
|
|
12006
12258
|
"""Type checking stubs"""
|
|
12007
12259
|
pass
|
|
12260
|
+
|
|
12261
|
+
for cls in [IIpAddresses, IIpamPool, IIpamScopeBase, IRouteTarget, IRouteV2, ISubnetV2, ITransitGateway, ITransitGatewayAssociation, ITransitGatewayAttachment, ITransitGatewayRoute, ITransitGatewayRouteTable, ITransitGatewayRouteTableAssociation, ITransitGatewayRouteTablePropagation, ITransitGatewayVpcAttachment, ITransitGatewayVpcAttachmentOptions, IVPCCidrBlock, IVpcV2]:
|
|
12262
|
+
typing.cast(typing.Any, cls).__protocol_attrs__ = typing.cast(typing.Any, cls).__protocol_attrs__ - set(['__jsii_proxy_class__', '__jsii_type__'])
|
|
@@ -33,9 +33,9 @@ import constructs._jsii
|
|
|
33
33
|
|
|
34
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
35
35
|
"@aws-cdk/aws-ec2-alpha",
|
|
36
|
-
"2.
|
|
36
|
+
"2.223.0-alpha.0",
|
|
37
37
|
__name__[0:-6],
|
|
38
|
-
"aws-ec2-alpha@2.
|
|
38
|
+
"aws-ec2-alpha@2.223.0-alpha.0.jsii.tgz",
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
{aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk.aws-ec2-alpha
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.223.0a0
|
|
4
4
|
Summary: The CDK construct library for VPC V2
|
|
5
5
|
Home-page: https://github.com/aws/aws-cdk
|
|
6
6
|
Author: Amazon Web Services
|
|
@@ -22,11 +22,11 @@ Requires-Python: ~=3.9
|
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
24
|
License-File: NOTICE
|
|
25
|
-
Requires-Dist: aws-cdk-lib<3.0.0,>=2.
|
|
26
|
-
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
28
|
-
Requires-Dist: publication>=0.0.3
|
|
29
|
-
Requires-Dist: typeguard<4.3.0,>=2.13.3
|
|
25
|
+
Requires-Dist: aws-cdk-lib <3.0.0,>=2.223.0
|
|
26
|
+
Requires-Dist: constructs <11.0.0,>=10.0.0
|
|
27
|
+
Requires-Dist: jsii <2.0.0,>=1.118.0
|
|
28
|
+
Requires-Dist: publication >=0.0.3
|
|
29
|
+
Requires-Dist: typeguard <4.3.0,>=2.13.3
|
|
30
30
|
|
|
31
31
|
# Amazon VpcV2 Construct Library
|
|
32
32
|
|
|
@@ -72,6 +72,7 @@ VpcV2(self, "Vpc",
|
|
|
72
72
|
`SubnetV2` is a re-write of the [`ec2.Subnet`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Subnet.html) construct.
|
|
73
73
|
This new construct can be used to add subnets to a `VpcV2` instance:
|
|
74
74
|
Note: When defining a subnet with `SubnetV2`, CDK automatically creates a new route table, unless a route table is explicitly provided as an input to the construct.
|
|
75
|
+
To enable the `mapPublicIpOnLaunch` feature (which is `false` by default), set the property to `true` when creating the subnet.
|
|
75
76
|
|
|
76
77
|
```python
|
|
77
78
|
stack = Stack()
|
|
@@ -86,7 +87,8 @@ SubnetV2(self, "subnetA",
|
|
|
86
87
|
availability_zone="us-east-1a",
|
|
87
88
|
ipv4_cidr_block=IpCidr("10.0.0.0/24"),
|
|
88
89
|
ipv6_cidr_block=IpCidr("2a05:d02c:25:4000::/60"),
|
|
89
|
-
subnet_type=SubnetType.
|
|
90
|
+
subnet_type=SubnetType.PUBLIC,
|
|
91
|
+
map_public_ip_on_launch=True
|
|
90
92
|
)
|
|
91
93
|
```
|
|
92
94
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
aws_cdk/aws_ec2_alpha/__init__.py,sha256=bsgrSVAY_AI26oD_saiMWtPDlv_9ltPhGc3Lg6dW9eE,535946
|
|
2
|
+
aws_cdk/aws_ec2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
+
aws_cdk/aws_ec2_alpha/_jsii/__init__.py,sha256=UIj_qyOYNPie4hOKAQ-K9XykI8pa9s7bMBOz4xVurps,1479
|
|
4
|
+
aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.223.0-alpha.0.jsii.tgz,sha256=TpRaHOVjH8UkXtdicaEC-rQviBxn7XfTceqn2wk1oiQ,248242
|
|
5
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/LICENSE,sha256=y47tc38H0C4DpGljYUZDl8XxidQjNxxGLq-K4jwv6Xc,11391
|
|
6
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/METADATA,sha256=l8_nozE_5V5fiGnQR9URInZQRYORWiswCZZ5GZ2WiVM,36673
|
|
7
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/NOTICE,sha256=ZDV6_xBfMvhFtjjBh_f6lJjhZ2AEWWAGGkx2kLKHiuc,113
|
|
8
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
9
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
+
aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info/RECORD,,
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
aws_cdk/aws_ec2_alpha/__init__.py,sha256=AWTUHm3fqGgSQxp3VDckVj1AxpnKnhFx0uXq02OD3ko,522310
|
|
2
|
-
aws_cdk/aws_ec2_alpha/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
3
|
-
aws_cdk/aws_ec2_alpha/_jsii/__init__.py,sha256=zbmwgiV0B3qBGx5YTvlGKxyeCVmaBncu3Zq4pbeH7Zg,1479
|
|
4
|
-
aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.187.0-alpha.0.jsii.tgz,sha256=mlKSo6fqLNudb-jsx-h9LTx9ZN_A6PtYDIqQHvhFqq8,231288
|
|
5
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/LICENSE,sha256=y47tc38H0C4DpGljYUZDl8XxidQjNxxGLq-K4jwv6Xc,11391
|
|
6
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/METADATA,sha256=_t0MNNiJ2DX3KFslI-BT4PFcdDNMLIZqiHA8YlLoH4w,36516
|
|
7
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/NOTICE,sha256=ZDV6_xBfMvhFtjjBh_f6lJjhZ2AEWWAGGkx2kLKHiuc,113
|
|
8
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
9
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/top_level.txt,sha256=1TALAKbuUGsMSrfKWEf268lySCmcqSEO6cDYe_XlLHM,8
|
|
10
|
-
aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info/RECORD,,
|
{aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/LICENSE
RENAMED
|
File without changes
|
{aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/NOTICE
RENAMED
|
File without changes
|
{aws_cdk_aws_ec2_alpha-2.187.0a0.dist-info → aws_cdk_aws_ec2_alpha-2.223.0a0.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|