aws-cdk.aws-ec2-alpha 2.188.0a0__tar.gz → 2.189.1a0__tar.gz
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.aws-ec2-alpha might be problematic. Click here for more details.
- {aws_cdk_aws_ec2_alpha-2.188.0a0/src/aws_cdk.aws_ec2_alpha.egg-info → aws_cdk_aws_ec2_alpha-2.189.1a0}/PKG-INFO +5 -3
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/README.md +3 -1
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/setup.py +3 -3
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk/aws_ec2_alpha/__init__.py +27 -1
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk/aws_ec2_alpha/_jsii/__init__.py +2 -2
- aws_cdk_aws_ec2_alpha-2.189.1a0/src/aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.189.1-alpha.0.jsii.tgz +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0/src/aws_cdk.aws_ec2_alpha.egg-info}/PKG-INFO +5 -3
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk.aws_ec2_alpha.egg-info/SOURCES.txt +1 -1
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk.aws_ec2_alpha.egg-info/requires.txt +1 -1
- aws_cdk_aws_ec2_alpha-2.188.0a0/src/aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.188.0-alpha.0.jsii.tgz +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/LICENSE +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/MANIFEST.in +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/NOTICE +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/pyproject.toml +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/setup.cfg +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk/aws_ec2_alpha/py.typed +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk.aws_ec2_alpha.egg-info/dependency_links.txt +0 -0
- {aws_cdk_aws_ec2_alpha-2.188.0a0 → aws_cdk_aws_ec2_alpha-2.189.1a0}/src/aws_cdk.aws_ec2_alpha.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk.aws-ec2-alpha
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.189.1a0
|
|
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,7 +22,7 @@ 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.
|
|
25
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.189.1
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
27
|
Requires-Dist: jsii<2.0.0,>=1.110.0
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|
|
@@ -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
|
|
|
@@ -42,6 +42,7 @@ VpcV2(self, "Vpc",
|
|
|
42
42
|
`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.
|
|
43
43
|
This new construct can be used to add subnets to a `VpcV2` instance:
|
|
44
44
|
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.
|
|
45
|
+
To enable the `mapPublicIpOnLaunch` feature (which is `false` by default), set the property to `true` when creating the subnet.
|
|
45
46
|
|
|
46
47
|
```python
|
|
47
48
|
stack = Stack()
|
|
@@ -56,7 +57,8 @@ SubnetV2(self, "subnetA",
|
|
|
56
57
|
availability_zone="us-east-1a",
|
|
57
58
|
ipv4_cidr_block=IpCidr("10.0.0.0/24"),
|
|
58
59
|
ipv6_cidr_block=IpCidr("2a05:d02c:25:4000::/60"),
|
|
59
|
-
subnet_type=SubnetType.
|
|
60
|
+
subnet_type=SubnetType.PUBLIC,
|
|
61
|
+
map_public_ip_on_launch=True
|
|
60
62
|
)
|
|
61
63
|
```
|
|
62
64
|
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "aws-cdk.aws-ec2-alpha",
|
|
8
|
-
"version": "2.
|
|
8
|
+
"version": "2.189.1.a0",
|
|
9
9
|
"description": "The CDK construct library for VPC V2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"url": "https://github.com/aws/aws-cdk",
|
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"aws_cdk.aws_ec2_alpha._jsii": [
|
|
29
|
-
"aws-ec2-alpha@2.
|
|
29
|
+
"aws-ec2-alpha@2.189.1-alpha.0.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"aws_cdk.aws_ec2_alpha": [
|
|
32
32
|
"py.typed"
|
|
@@ -34,7 +34,7 @@ kwargs = json.loads(
|
|
|
34
34
|
},
|
|
35
35
|
"python_requires": "~=3.9",
|
|
36
36
|
"install_requires": [
|
|
37
|
-
"aws-cdk-lib>=2.
|
|
37
|
+
"aws-cdk-lib>=2.189.1, <3.0.0",
|
|
38
38
|
"constructs>=10.0.0, <11.0.0",
|
|
39
39
|
"jsii>=1.110.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
@@ -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
|
|
|
@@ -6055,6 +6057,7 @@ class SubnetV2(
|
|
|
6055
6057
|
vpc: IVpcV2,
|
|
6056
6058
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
6057
6059
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
6060
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
6058
6061
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
6059
6062
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
6060
6063
|
) -> None:
|
|
@@ -6068,6 +6071,7 @@ class SubnetV2(
|
|
|
6068
6071
|
:param vpc: (experimental) VPC Prop.
|
|
6069
6072
|
: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
|
|
6070
6073
|
:param ipv6_cidr_block: (experimental) Ipv6 CIDR Range for subnet. Default: - No Ipv6 address
|
|
6074
|
+
: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
6075
|
:param route_table: (experimental) Custom Route for subnet. Default: - a default route table created
|
|
6072
6076
|
:param subnet_name: (experimental) Subnet name. Default: - provisioned with an autogenerated name by CDK
|
|
6073
6077
|
|
|
@@ -6084,6 +6088,7 @@ class SubnetV2(
|
|
|
6084
6088
|
vpc=vpc,
|
|
6085
6089
|
assign_ipv6_address_on_creation=assign_ipv6_address_on_creation,
|
|
6086
6090
|
ipv6_cidr_block=ipv6_cidr_block,
|
|
6091
|
+
map_public_ip_on_launch=map_public_ip_on_launch,
|
|
6087
6092
|
route_table=route_table,
|
|
6088
6093
|
subnet_name=subnet_name,
|
|
6089
6094
|
)
|
|
@@ -6398,6 +6403,7 @@ class SubnetV2Attributes:
|
|
|
6398
6403
|
"vpc": "vpc",
|
|
6399
6404
|
"assign_ipv6_address_on_creation": "assignIpv6AddressOnCreation",
|
|
6400
6405
|
"ipv6_cidr_block": "ipv6CidrBlock",
|
|
6406
|
+
"map_public_ip_on_launch": "mapPublicIpOnLaunch",
|
|
6401
6407
|
"route_table": "routeTable",
|
|
6402
6408
|
"subnet_name": "subnetName",
|
|
6403
6409
|
},
|
|
@@ -6412,6 +6418,7 @@ class SubnetV2Props:
|
|
|
6412
6418
|
vpc: IVpcV2,
|
|
6413
6419
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
6414
6420
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
6421
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
6415
6422
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
6416
6423
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
6417
6424
|
) -> None:
|
|
@@ -6423,6 +6430,7 @@ class SubnetV2Props:
|
|
|
6423
6430
|
:param vpc: (experimental) VPC Prop.
|
|
6424
6431
|
: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
|
|
6425
6432
|
:param ipv6_cidr_block: (experimental) Ipv6 CIDR Range for subnet. Default: - No Ipv6 address
|
|
6433
|
+
: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
6434
|
:param route_table: (experimental) Custom Route for subnet. Default: - a default route table created
|
|
6427
6435
|
:param subnet_name: (experimental) Subnet name. Default: - provisioned with an autogenerated name by CDK
|
|
6428
6436
|
|
|
@@ -6462,6 +6470,7 @@ class SubnetV2Props:
|
|
|
6462
6470
|
check_type(argname="argument vpc", value=vpc, expected_type=type_hints["vpc"])
|
|
6463
6471
|
check_type(argname="argument assign_ipv6_address_on_creation", value=assign_ipv6_address_on_creation, expected_type=type_hints["assign_ipv6_address_on_creation"])
|
|
6464
6472
|
check_type(argname="argument ipv6_cidr_block", value=ipv6_cidr_block, expected_type=type_hints["ipv6_cidr_block"])
|
|
6473
|
+
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
6474
|
check_type(argname="argument route_table", value=route_table, expected_type=type_hints["route_table"])
|
|
6466
6475
|
check_type(argname="argument subnet_name", value=subnet_name, expected_type=type_hints["subnet_name"])
|
|
6467
6476
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
@@ -6474,6 +6483,8 @@ class SubnetV2Props:
|
|
|
6474
6483
|
self._values["assign_ipv6_address_on_creation"] = assign_ipv6_address_on_creation
|
|
6475
6484
|
if ipv6_cidr_block is not None:
|
|
6476
6485
|
self._values["ipv6_cidr_block"] = ipv6_cidr_block
|
|
6486
|
+
if map_public_ip_on_launch is not None:
|
|
6487
|
+
self._values["map_public_ip_on_launch"] = map_public_ip_on_launch
|
|
6477
6488
|
if route_table is not None:
|
|
6478
6489
|
self._values["route_table"] = route_table
|
|
6479
6490
|
if subnet_name is not None:
|
|
@@ -6550,6 +6561,19 @@ class SubnetV2Props:
|
|
|
6550
6561
|
result = self._values.get("ipv6_cidr_block")
|
|
6551
6562
|
return typing.cast(typing.Optional[IpCidr], result)
|
|
6552
6563
|
|
|
6564
|
+
@builtins.property
|
|
6565
|
+
def map_public_ip_on_launch(self) -> typing.Optional[builtins.bool]:
|
|
6566
|
+
'''(experimental) Controls if instances launched into the subnet should be assigned a public IP address.
|
|
6567
|
+
|
|
6568
|
+
This property can only be set for public subnets.
|
|
6569
|
+
|
|
6570
|
+
:default: - undefined in case not provided as an input
|
|
6571
|
+
|
|
6572
|
+
:stability: experimental
|
|
6573
|
+
'''
|
|
6574
|
+
result = self._values.get("map_public_ip_on_launch")
|
|
6575
|
+
return typing.cast(typing.Optional[builtins.bool], result)
|
|
6576
|
+
|
|
6553
6577
|
@builtins.property
|
|
6554
6578
|
def route_table(self) -> typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable]:
|
|
6555
6579
|
'''(experimental) Custom Route for subnet.
|
|
@@ -11460,6 +11484,7 @@ def _typecheckingstub__df9294d0dd8fd099bad5e4bd408f0f8b8bffbcdc6e4f624de6a1bf541
|
|
|
11460
11484
|
vpc: IVpcV2,
|
|
11461
11485
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
11462
11486
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
11487
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
11463
11488
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
11464
11489
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
11465
11490
|
) -> None:
|
|
@@ -11509,6 +11534,7 @@ def _typecheckingstub__95ce99f8025433ac8b79825abef6ff91da4dfd0693fd24dadedcee63e
|
|
|
11509
11534
|
vpc: IVpcV2,
|
|
11510
11535
|
assign_ipv6_address_on_creation: typing.Optional[builtins.bool] = None,
|
|
11511
11536
|
ipv6_cidr_block: typing.Optional[IpCidr] = None,
|
|
11537
|
+
map_public_ip_on_launch: typing.Optional[builtins.bool] = None,
|
|
11512
11538
|
route_table: typing.Optional[_aws_cdk_aws_ec2_ceddda9d.IRouteTable] = None,
|
|
11513
11539
|
subnet_name: typing.Optional[builtins.str] = None,
|
|
11514
11540
|
) -> None:
|
|
@@ -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.189.1-alpha.0",
|
|
37
37
|
__name__[0:-6],
|
|
38
|
-
"aws-ec2-alpha@2.
|
|
38
|
+
"aws-ec2-alpha@2.189.1-alpha.0.jsii.tgz",
|
|
39
39
|
)
|
|
40
40
|
|
|
41
41
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: aws-cdk.aws-ec2-alpha
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.189.1a0
|
|
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,7 +22,7 @@ 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.
|
|
25
|
+
Requires-Dist: aws-cdk-lib<3.0.0,>=2.189.1
|
|
26
26
|
Requires-Dist: constructs<11.0.0,>=10.0.0
|
|
27
27
|
Requires-Dist: jsii<2.0.0,>=1.110.0
|
|
28
28
|
Requires-Dist: publication>=0.0.3
|
|
@@ -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
|
|
|
@@ -12,4 +12,4 @@ src/aws_cdk.aws_ec2_alpha.egg-info/top_level.txt
|
|
|
12
12
|
src/aws_cdk/aws_ec2_alpha/__init__.py
|
|
13
13
|
src/aws_cdk/aws_ec2_alpha/py.typed
|
|
14
14
|
src/aws_cdk/aws_ec2_alpha/_jsii/__init__.py
|
|
15
|
-
src/aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.
|
|
15
|
+
src/aws_cdk/aws_ec2_alpha/_jsii/aws-ec2-alpha@2.189.1-alpha.0.jsii.tgz
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|