pulumi-alicloud 3.58.0__py3-none-any.whl → 3.58.0a1718943944__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 pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +0 -24
- pulumi_alicloud/_inputs.py +9 -9
- pulumi_alicloud/_utilities.py +0 -35
- pulumi_alicloud/actiontrail/get_trails.py +3 -1
- pulumi_alicloud/actiontrail/get_trails_deprecated.py +3 -1
- pulumi_alicloud/actiontrail/trail.py +27 -9
- pulumi_alicloud/actiontrail/trail_deprecated.py +27 -9
- pulumi_alicloud/adb/cluster.py +18 -6
- pulumi_alicloud/adb/db_cluster.py +18 -6
- pulumi_alicloud/alb/__init__.py +0 -1
- pulumi_alicloud/alb/acl.py +9 -3
- pulumi_alicloud/alb/get_load_balancers.py +3 -1
- pulumi_alicloud/alb/listener.py +9 -3
- pulumi_alicloud/alb/outputs.py +3 -1
- pulumi_alicloud/alikafka/instance.py +9 -3
- pulumi_alicloud/cas/certificate.py +9 -3
- pulumi_alicloud/cas/outputs.py +6 -2
- pulumi_alicloud/cas/service_certificate.py +9 -3
- pulumi_alicloud/cddc/dedicated_host_account.py +0 -4
- pulumi_alicloud/cddc/dedicated_host_group.py +0 -4
- pulumi_alicloud/cdn/domain.py +135 -45
- pulumi_alicloud/cen/__init__.py +0 -1
- pulumi_alicloud/cen/bandwidth_package.py +27 -9
- pulumi_alicloud/cen/instance.py +9 -3
- pulumi_alicloud/cen/transit_router_vpc_attachment.py +18 -6
- pulumi_alicloud/cfg/aggregate_compliance_pack.py +9 -3
- pulumi_alicloud/cfg/compliance_pack.py +9 -3
- pulumi_alicloud/cfg/get_rules.py +3 -1
- pulumi_alicloud/cfg/rule.py +27 -9
- pulumi_alicloud/clickhouse/account.py +18 -6
- pulumi_alicloud/cloudfirewall/instance.py +9 -3
- pulumi_alicloud/cloudstoragegateway/gateway.py +69 -69
- pulumi_alicloud/cms/alarm.py +27 -9
- pulumi_alicloud/config/outputs.py +6 -6
- pulumi_alicloud/cs/_inputs.py +6 -2
- pulumi_alicloud/cs/cluster.py +9 -3
- pulumi_alicloud/cs/edge_kubernetes.py +18 -6
- pulumi_alicloud/cs/kubernetes.py +9 -3
- pulumi_alicloud/cs/kubernetes_addon.py +2 -2
- pulumi_alicloud/cs/node_pool.py +52 -22
- pulumi_alicloud/cs/outputs.py +6 -2
- pulumi_alicloud/cs/serverless_kubernetes.py +27 -9
- pulumi_alicloud/cs/swarm.py +9 -3
- pulumi_alicloud/databasefilesystem/instance.py +18 -6
- pulumi_alicloud/ddos/__init__.py +0 -1
- pulumi_alicloud/ddos/_inputs.py +0 -712
- pulumi_alicloud/ddos/bgp_ip.py +2 -53
- pulumi_alicloud/ddos/outputs.py +0 -666
- pulumi_alicloud/dms/enterprise_instance.py +15 -5
- pulumi_alicloud/dms/enterprise_user.py +9 -3
- pulumi_alicloud/dns/domain_group.py +9 -3
- pulumi_alicloud/drds/get_instances.py +3 -1
- pulumi_alicloud/eci/_inputs.py +0 -12
- pulumi_alicloud/eci/outputs.py +0 -8
- pulumi_alicloud/ecs/copy_image.py +9 -3
- pulumi_alicloud/ecs/disk.py +18 -6
- pulumi_alicloud/ecs/ecs_disk.py +25 -13
- pulumi_alicloud/ecs/ecs_key_pair.py +9 -3
- pulumi_alicloud/ecs/ecs_key_pair_attachment.py +9 -3
- pulumi_alicloud/ecs/ecs_launch_template.py +55 -160
- pulumi_alicloud/ecs/ecs_network_interface.py +45 -15
- pulumi_alicloud/ecs/ecs_snapshot.py +9 -3
- pulumi_alicloud/ecs/eip.py +19 -7
- pulumi_alicloud/ecs/eip_address.py +317 -501
- pulumi_alicloud/ecs/eip_association.py +58 -205
- pulumi_alicloud/ecs/eip_segment_address.py +133 -311
- pulumi_alicloud/ecs/get_disks.py +6 -2
- pulumi_alicloud/ecs/get_ecs_disks.py +6 -2
- pulumi_alicloud/ecs/get_ecs_key_pairs.py +3 -1
- pulumi_alicloud/ecs/get_ecs_network_interfaces.py +6 -2
- pulumi_alicloud/ecs/get_eip_addresses.py +6 -2
- pulumi_alicloud/ecs/get_eips.py +6 -2
- pulumi_alicloud/ecs/get_key_pairs.py +3 -1
- pulumi_alicloud/ecs/get_network_interfaces.py +6 -2
- pulumi_alicloud/ecs/image.py +9 -3
- pulumi_alicloud/ecs/image_copy.py +9 -3
- pulumi_alicloud/ecs/instance.py +24 -26
- pulumi_alicloud/ecs/key_pair.py +9 -3
- pulumi_alicloud/ecs/key_pair_attachment.py +9 -3
- pulumi_alicloud/ecs/launch_template.py +55 -121
- pulumi_alicloud/ecs/reserved_instance.py +9 -3
- pulumi_alicloud/ecs/security_group.py +9 -3
- pulumi_alicloud/ecs/snapshot.py +9 -3
- pulumi_alicloud/edas/k8s_application.py +36 -12
- pulumi_alicloud/eds/outputs.py +6 -2
- pulumi_alicloud/eds/simple_office_site.py +18 -6
- pulumi_alicloud/ess/_inputs.py +3 -89
- pulumi_alicloud/ess/alarm.py +38 -132
- pulumi_alicloud/ess/outputs.py +3 -88
- pulumi_alicloud/ess/scaling_configuration.py +18 -6
- pulumi_alicloud/ess/scaling_group.py +16 -151
- pulumi_alicloud/ga/accelerator.py +0 -47
- pulumi_alicloud/ga/acl.py +9 -50
- pulumi_alicloud/ga/bandwidth_package.py +12 -57
- pulumi_alicloud/ga/basic_accelerator.py +8 -55
- pulumi_alicloud/gpdb/instance.py +45 -15
- pulumi_alicloud/hbr/ecs_backup_plan.py +9 -3
- pulumi_alicloud/hbr/nas_backup_plan.py +9 -3
- pulumi_alicloud/hbr/ots_backup_plan.py +9 -3
- pulumi_alicloud/kms/key.py +27 -9
- pulumi_alicloud/kvstore/_inputs.py +6 -2
- pulumi_alicloud/kvstore/get_instance_classes.py +9 -3
- pulumi_alicloud/kvstore/instance.py +69 -124
- pulumi_alicloud/kvstore/outputs.py +6 -2
- pulumi_alicloud/lindorm/instance.py +9 -3
- pulumi_alicloud/log/_inputs.py +3 -1
- pulumi_alicloud/log/alert.py +63 -21
- pulumi_alicloud/log/oss_shipper.py +0 -4
- pulumi_alicloud/log/outputs.py +3 -1
- pulumi_alicloud/log/project.py +9 -3
- pulumi_alicloud/log/store.py +18 -6
- pulumi_alicloud/mongodb/sharding_instance.py +7 -54
- pulumi_alicloud/nas/access_group.py +18 -6
- pulumi_alicloud/nas/get_access_groups.py +3 -1
- pulumi_alicloud/nas/get_mount_targets.py +6 -2
- pulumi_alicloud/nlb/server_group.py +9 -3
- pulumi_alicloud/oss/bucket.py +18 -6
- pulumi_alicloud/oss/bucket_policy.py +2 -2
- pulumi_alicloud/oss/bucket_referer.py +2 -2
- pulumi_alicloud/provider.py +24 -8
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/pvtz/zone.py +9 -3
- pulumi_alicloud/pvtz/zone_record.py +9 -3
- pulumi_alicloud/ram/policy.py +36 -12
- pulumi_alicloud/ram/role.py +27 -9
- pulumi_alicloud/rds/account.py +45 -15
- pulumi_alicloud/rds/backup_policy.py +45 -15
- pulumi_alicloud/rds/get_zones.py +3 -1
- pulumi_alicloud/rds/instance.py +18 -27
- pulumi_alicloud/rds/rds_account.py +45 -15
- pulumi_alicloud/resourcemanager/policy.py +9 -3
- pulumi_alicloud/resourcemanager/policy_version.py +9 -3
- pulumi_alicloud/resourcemanager/resource_group.py +9 -3
- pulumi_alicloud/rocketmq/group.py +9 -3
- pulumi_alicloud/rocketmq/instance.py +9 -3
- pulumi_alicloud/rocketmq/topic.py +18 -6
- pulumi_alicloud/sae/application.py +90 -30
- pulumi_alicloud/scdn/domain.py +9 -3
- pulumi_alicloud/servicecatalog/get_launch_options.py +3 -1
- pulumi_alicloud/servicecatalog/get_product_versions.py +3 -1
- pulumi_alicloud/servicecatalog/get_provisioned_products.py +3 -1
- pulumi_alicloud/slb/acl.py +9 -3
- pulumi_alicloud/slb/application_load_balancer.py +18 -6
- pulumi_alicloud/slb/ca_certificate.py +9 -3
- pulumi_alicloud/slb/get_application_load_balancers.py +3 -1
- pulumi_alicloud/slb/get_load_balancers.py +3 -1
- pulumi_alicloud/slb/get_zones.py +3 -1
- pulumi_alicloud/slb/listener.py +27 -9
- pulumi_alicloud/slb/load_balancer.py +18 -6
- pulumi_alicloud/slb/outputs.py +3 -1
- pulumi_alicloud/slb/server_certificate.py +18 -6
- pulumi_alicloud/slb/server_group.py +9 -3
- pulumi_alicloud/threatdetection/instance.py +9 -3
- pulumi_alicloud/vpc/common_bandwith_package.py +129 -200
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +30 -58
- pulumi_alicloud/vpc/dhcp_options_set.py +9 -3
- pulumi_alicloud/vpc/forward_entry.py +9 -3
- pulumi_alicloud/vpc/ha_vip.py +9 -3
- pulumi_alicloud/vpc/ha_vip_attachment.py +9 -3
- pulumi_alicloud/vpc/ha_vipv2.py +9 -3
- pulumi_alicloud/vpc/ipv6_gateway.py +9 -3
- pulumi_alicloud/vpc/network.py +24 -8
- pulumi_alicloud/vpc/network_acl.py +9 -3
- pulumi_alicloud/vpc/network_interface.py +45 -15
- pulumi_alicloud/vpc/route_entry.py +9 -3
- pulumi_alicloud/vpc/route_table.py +9 -3
- pulumi_alicloud/vpc/router_interface.py +39 -13
- pulumi_alicloud/vpc/router_interface_connection.py +2 -2
- pulumi_alicloud/vpc/subnet.py +18 -6
- pulumi_alicloud/vpc/switch.py +18 -6
- pulumi_alicloud/vpc/traffic_mirror_filter_egress_rule.py +9 -3
- pulumi_alicloud/vpc/traffic_mirror_filter_ingress_rule.py +9 -3
- pulumi_alicloud/vpn/connection.py +9 -3
- pulumi_alicloud/vpn/customer_gateway.py +9 -3
- pulumi_alicloud/vpn/gateway.py +18 -6
- pulumi_alicloud/vpn/get_gateway_vpn_attachments.py +3 -1
- pulumi_alicloud/vpn/get_gateways.py +3 -1
- pulumi_alicloud/waf/domain.py +9 -3
- {pulumi_alicloud-3.58.0.dist-info → pulumi_alicloud-3.58.0a1718943944.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.58.0.dist-info → pulumi_alicloud-3.58.0a1718943944.dist-info}/RECORD +182 -185
- {pulumi_alicloud-3.58.0.dist-info → pulumi_alicloud-3.58.0a1718943944.dist-info}/WHEEL +1 -1
- pulumi_alicloud/alb/load_balancer_security_group_attachment.py +0 -327
- pulumi_alicloud/cen/transit_router_ecr_attachment.py +0 -584
- pulumi_alicloud/ddos/bgp_policy.py +0 -343
- {pulumi_alicloud-3.58.0.dist-info → pulumi_alicloud-3.58.0a1718943944.dist-info}/top_level.txt +0 -0
|
@@ -23,34 +23,13 @@ class EipAssociationArgs:
|
|
|
23
23
|
vpc_id: Optional[pulumi.Input[str]] = None):
|
|
24
24
|
"""
|
|
25
25
|
The set of arguments for constructing a EipAssociation resource.
|
|
26
|
-
:param pulumi.Input[str] allocation_id: The ID of the EIP instance.
|
|
27
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
28
|
-
:param pulumi.Input[bool] force:
|
|
29
|
-
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values:
|
|
30
|
-
|
|
31
|
-
- `SlbInstance`: CLB instance
|
|
32
|
-
- `EcsInstance` (default): ECS instance
|
|
33
|
-
- `NetworkInterface`: secondary ENI
|
|
34
|
-
- `HaVip`: HAVIP
|
|
35
|
-
- `IpAddress`: IP address
|
|
36
|
-
|
|
37
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
38
|
-
:param pulumi.Input[str] mode: The association mode. Valid values:
|
|
39
|
-
- `NAT` (default): NAT mode
|
|
40
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
41
|
-
- `BINDED`: cut-network interface controller mode
|
|
42
|
-
|
|
43
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
26
|
+
:param pulumi.Input[str] allocation_id: The ID of the EIP that you want to associate with an instance.
|
|
27
|
+
:param pulumi.Input[str] instance_id: The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
28
|
+
:param pulumi.Input[bool] force: When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
29
|
+
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
30
|
+
:param pulumi.Input[str] mode: The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
44
31
|
:param pulumi.Input[str] private_ip_address: The IP address in the CIDR block of the vSwitch.
|
|
45
|
-
|
|
46
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
47
|
-
|
|
48
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
49
|
-
:param pulumi.Input[str] vpc_id: The ID of the VPC in which an IPv4 gateway is created. The VPC and the EIP must be in the same region.
|
|
50
|
-
|
|
51
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
52
|
-
|
|
53
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
32
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
54
33
|
"""
|
|
55
34
|
pulumi.set(__self__, "allocation_id", allocation_id)
|
|
56
35
|
pulumi.set(__self__, "instance_id", instance_id)
|
|
@@ -69,7 +48,7 @@ class EipAssociationArgs:
|
|
|
69
48
|
@pulumi.getter(name="allocationId")
|
|
70
49
|
def allocation_id(self) -> pulumi.Input[str]:
|
|
71
50
|
"""
|
|
72
|
-
The ID of the EIP instance.
|
|
51
|
+
The ID of the EIP that you want to associate with an instance.
|
|
73
52
|
"""
|
|
74
53
|
return pulumi.get(self, "allocation_id")
|
|
75
54
|
|
|
@@ -81,7 +60,7 @@ class EipAssociationArgs:
|
|
|
81
60
|
@pulumi.getter(name="instanceId")
|
|
82
61
|
def instance_id(self) -> pulumi.Input[str]:
|
|
83
62
|
"""
|
|
84
|
-
The ID of the
|
|
63
|
+
The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
85
64
|
"""
|
|
86
65
|
return pulumi.get(self, "instance_id")
|
|
87
66
|
|
|
@@ -93,7 +72,7 @@ class EipAssociationArgs:
|
|
|
93
72
|
@pulumi.getter
|
|
94
73
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
95
74
|
"""
|
|
96
|
-
|
|
75
|
+
When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
97
76
|
"""
|
|
98
77
|
return pulumi.get(self, "force")
|
|
99
78
|
|
|
@@ -105,15 +84,7 @@ class EipAssociationArgs:
|
|
|
105
84
|
@pulumi.getter(name="instanceType")
|
|
106
85
|
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
107
86
|
"""
|
|
108
|
-
The type of the instance with which you want to associate the EIP. Valid values:
|
|
109
|
-
- `Nat`: NAT gateway
|
|
110
|
-
- `SlbInstance`: CLB instance
|
|
111
|
-
- `EcsInstance` (default): ECS instance
|
|
112
|
-
- `NetworkInterface`: secondary ENI
|
|
113
|
-
- `HaVip`: HAVIP
|
|
114
|
-
- `IpAddress`: IP address
|
|
115
|
-
|
|
116
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
87
|
+
The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
117
88
|
"""
|
|
118
89
|
return pulumi.get(self, "instance_type")
|
|
119
90
|
|
|
@@ -125,12 +96,7 @@ class EipAssociationArgs:
|
|
|
125
96
|
@pulumi.getter
|
|
126
97
|
def mode(self) -> Optional[pulumi.Input[str]]:
|
|
127
98
|
"""
|
|
128
|
-
The association mode. Valid values:
|
|
129
|
-
- `NAT` (default): NAT mode
|
|
130
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
131
|
-
- `BINDED`: cut-network interface controller mode
|
|
132
|
-
|
|
133
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
99
|
+
The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
134
100
|
"""
|
|
135
101
|
return pulumi.get(self, "mode")
|
|
136
102
|
|
|
@@ -143,10 +109,6 @@ class EipAssociationArgs:
|
|
|
143
109
|
def private_ip_address(self) -> Optional[pulumi.Input[str]]:
|
|
144
110
|
"""
|
|
145
111
|
The IP address in the CIDR block of the vSwitch.
|
|
146
|
-
|
|
147
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
148
|
-
|
|
149
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
150
112
|
"""
|
|
151
113
|
return pulumi.get(self, "private_ip_address")
|
|
152
114
|
|
|
@@ -158,11 +120,7 @@ class EipAssociationArgs:
|
|
|
158
120
|
@pulumi.getter(name="vpcId")
|
|
159
121
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
160
122
|
"""
|
|
161
|
-
The ID of the VPC
|
|
162
|
-
|
|
163
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
164
|
-
|
|
165
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
123
|
+
The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
166
124
|
"""
|
|
167
125
|
return pulumi.get(self, "vpc_id")
|
|
168
126
|
|
|
@@ -183,34 +141,13 @@ class _EipAssociationState:
|
|
|
183
141
|
vpc_id: Optional[pulumi.Input[str]] = None):
|
|
184
142
|
"""
|
|
185
143
|
Input properties used for looking up and filtering EipAssociation resources.
|
|
186
|
-
:param pulumi.Input[str] allocation_id: The ID of the EIP instance.
|
|
187
|
-
:param pulumi.Input[bool] force:
|
|
188
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
189
|
-
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values:
|
|
190
|
-
|
|
191
|
-
- `SlbInstance`: CLB instance
|
|
192
|
-
- `EcsInstance` (default): ECS instance
|
|
193
|
-
- `NetworkInterface`: secondary ENI
|
|
194
|
-
- `HaVip`: HAVIP
|
|
195
|
-
- `IpAddress`: IP address
|
|
196
|
-
|
|
197
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
198
|
-
:param pulumi.Input[str] mode: The association mode. Valid values:
|
|
199
|
-
- `NAT` (default): NAT mode
|
|
200
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
201
|
-
- `BINDED`: cut-network interface controller mode
|
|
202
|
-
|
|
203
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
144
|
+
:param pulumi.Input[str] allocation_id: The ID of the EIP that you want to associate with an instance.
|
|
145
|
+
:param pulumi.Input[bool] force: When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
146
|
+
:param pulumi.Input[str] instance_id: The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
147
|
+
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
148
|
+
:param pulumi.Input[str] mode: The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
204
149
|
:param pulumi.Input[str] private_ip_address: The IP address in the CIDR block of the vSwitch.
|
|
205
|
-
|
|
206
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
207
|
-
|
|
208
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
209
|
-
:param pulumi.Input[str] vpc_id: The ID of the VPC in which an IPv4 gateway is created. The VPC and the EIP must be in the same region.
|
|
210
|
-
|
|
211
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
212
|
-
|
|
213
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
150
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
214
151
|
"""
|
|
215
152
|
if allocation_id is not None:
|
|
216
153
|
pulumi.set(__self__, "allocation_id", allocation_id)
|
|
@@ -231,7 +168,7 @@ class _EipAssociationState:
|
|
|
231
168
|
@pulumi.getter(name="allocationId")
|
|
232
169
|
def allocation_id(self) -> Optional[pulumi.Input[str]]:
|
|
233
170
|
"""
|
|
234
|
-
The ID of the EIP instance.
|
|
171
|
+
The ID of the EIP that you want to associate with an instance.
|
|
235
172
|
"""
|
|
236
173
|
return pulumi.get(self, "allocation_id")
|
|
237
174
|
|
|
@@ -243,7 +180,7 @@ class _EipAssociationState:
|
|
|
243
180
|
@pulumi.getter
|
|
244
181
|
def force(self) -> Optional[pulumi.Input[bool]]:
|
|
245
182
|
"""
|
|
246
|
-
|
|
183
|
+
When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
247
184
|
"""
|
|
248
185
|
return pulumi.get(self, "force")
|
|
249
186
|
|
|
@@ -255,7 +192,7 @@ class _EipAssociationState:
|
|
|
255
192
|
@pulumi.getter(name="instanceId")
|
|
256
193
|
def instance_id(self) -> Optional[pulumi.Input[str]]:
|
|
257
194
|
"""
|
|
258
|
-
The ID of the
|
|
195
|
+
The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
259
196
|
"""
|
|
260
197
|
return pulumi.get(self, "instance_id")
|
|
261
198
|
|
|
@@ -267,15 +204,7 @@ class _EipAssociationState:
|
|
|
267
204
|
@pulumi.getter(name="instanceType")
|
|
268
205
|
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
269
206
|
"""
|
|
270
|
-
The type of the instance with which you want to associate the EIP. Valid values:
|
|
271
|
-
- `Nat`: NAT gateway
|
|
272
|
-
- `SlbInstance`: CLB instance
|
|
273
|
-
- `EcsInstance` (default): ECS instance
|
|
274
|
-
- `NetworkInterface`: secondary ENI
|
|
275
|
-
- `HaVip`: HAVIP
|
|
276
|
-
- `IpAddress`: IP address
|
|
277
|
-
|
|
278
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
207
|
+
The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
279
208
|
"""
|
|
280
209
|
return pulumi.get(self, "instance_type")
|
|
281
210
|
|
|
@@ -287,12 +216,7 @@ class _EipAssociationState:
|
|
|
287
216
|
@pulumi.getter
|
|
288
217
|
def mode(self) -> Optional[pulumi.Input[str]]:
|
|
289
218
|
"""
|
|
290
|
-
The association mode. Valid values:
|
|
291
|
-
- `NAT` (default): NAT mode
|
|
292
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
293
|
-
- `BINDED`: cut-network interface controller mode
|
|
294
|
-
|
|
295
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
219
|
+
The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
296
220
|
"""
|
|
297
221
|
return pulumi.get(self, "mode")
|
|
298
222
|
|
|
@@ -305,10 +229,6 @@ class _EipAssociationState:
|
|
|
305
229
|
def private_ip_address(self) -> Optional[pulumi.Input[str]]:
|
|
306
230
|
"""
|
|
307
231
|
The IP address in the CIDR block of the vSwitch.
|
|
308
|
-
|
|
309
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
310
|
-
|
|
311
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
312
232
|
"""
|
|
313
233
|
return pulumi.get(self, "private_ip_address")
|
|
314
234
|
|
|
@@ -320,11 +240,7 @@ class _EipAssociationState:
|
|
|
320
240
|
@pulumi.getter(name="vpcId")
|
|
321
241
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
322
242
|
"""
|
|
323
|
-
The ID of the VPC
|
|
324
|
-
|
|
325
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
326
|
-
|
|
327
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
243
|
+
The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
328
244
|
"""
|
|
329
245
|
return pulumi.get(self, "vpc_id")
|
|
330
246
|
|
|
@@ -347,7 +263,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
347
263
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
348
264
|
__props__=None):
|
|
349
265
|
"""
|
|
350
|
-
Provides
|
|
266
|
+
Provides an Alicloud EIP Association resource for associating Elastic IP to ECS Instance, SLB Instance or Nat Gateway.
|
|
351
267
|
|
|
352
268
|
> **NOTE:** `ecs.EipAssociation` is useful in scenarios where EIPs are either
|
|
353
269
|
pre-existing or distributed to customers or users and therefore cannot be changed.
|
|
@@ -356,14 +272,10 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
356
272
|
|
|
357
273
|
> **NOTE:** One EIP can only be associated with ECS or SLB instance which in the VPC.
|
|
358
274
|
|
|
359
|
-
For information about EIP Association and how to use it, see [What is Association](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-vpc-2016-04-28-associateeipaddress).
|
|
360
|
-
|
|
361
275
|
> **NOTE:** Available since v1.117.0.
|
|
362
276
|
|
|
363
277
|
## Example Usage
|
|
364
278
|
|
|
365
|
-
Basic Usage
|
|
366
|
-
|
|
367
279
|
```python
|
|
368
280
|
import pulumi
|
|
369
281
|
import pulumi_alicloud as alicloud
|
|
@@ -377,8 +289,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
377
289
|
cpu_core_count=1,
|
|
378
290
|
memory_size=2)
|
|
379
291
|
example_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
|
|
380
|
-
owners="system"
|
|
381
|
-
instance_type=example_get_instance_types.instance_types[0].id)
|
|
292
|
+
owners="system")
|
|
382
293
|
example_network = alicloud.vpc.Network("example",
|
|
383
294
|
vpc_name=name,
|
|
384
295
|
cidr_block="10.4.0.0/16")
|
|
@@ -407,9 +318,14 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
407
318
|
instance_id=example_instance.id)
|
|
408
319
|
```
|
|
409
320
|
|
|
321
|
+
## Module Support
|
|
322
|
+
|
|
323
|
+
You can use the existing eip module
|
|
324
|
+
to create several EIP instances and associate them with other resources one-click, like ECS instances, SLB, Nat Gateway and so on.
|
|
325
|
+
|
|
410
326
|
## Import
|
|
411
327
|
|
|
412
|
-
|
|
328
|
+
Elastic IP address association can be imported using the id, e.g.
|
|
413
329
|
|
|
414
330
|
```sh
|
|
415
331
|
$ pulumi import alicloud:ecs/eipAssociation:EipAssociation example <allocation_id>:<instance_id>
|
|
@@ -417,34 +333,13 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
417
333
|
|
|
418
334
|
:param str resource_name: The name of the resource.
|
|
419
335
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
420
|
-
:param pulumi.Input[str] allocation_id: The ID of the EIP instance.
|
|
421
|
-
:param pulumi.Input[bool] force:
|
|
422
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
423
|
-
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values:
|
|
424
|
-
|
|
425
|
-
- `SlbInstance`: CLB instance
|
|
426
|
-
- `EcsInstance` (default): ECS instance
|
|
427
|
-
- `NetworkInterface`: secondary ENI
|
|
428
|
-
- `HaVip`: HAVIP
|
|
429
|
-
- `IpAddress`: IP address
|
|
430
|
-
|
|
431
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
432
|
-
:param pulumi.Input[str] mode: The association mode. Valid values:
|
|
433
|
-
- `NAT` (default): NAT mode
|
|
434
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
435
|
-
- `BINDED`: cut-network interface controller mode
|
|
436
|
-
|
|
437
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
336
|
+
:param pulumi.Input[str] allocation_id: The ID of the EIP that you want to associate with an instance.
|
|
337
|
+
:param pulumi.Input[bool] force: When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
338
|
+
:param pulumi.Input[str] instance_id: The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
339
|
+
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
340
|
+
:param pulumi.Input[str] mode: The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
438
341
|
:param pulumi.Input[str] private_ip_address: The IP address in the CIDR block of the vSwitch.
|
|
439
|
-
|
|
440
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
441
|
-
|
|
442
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
443
|
-
:param pulumi.Input[str] vpc_id: The ID of the VPC in which an IPv4 gateway is created. The VPC and the EIP must be in the same region.
|
|
444
|
-
|
|
445
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
446
|
-
|
|
447
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
342
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
448
343
|
"""
|
|
449
344
|
...
|
|
450
345
|
@overload
|
|
@@ -453,7 +348,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
453
348
|
args: EipAssociationArgs,
|
|
454
349
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
455
350
|
"""
|
|
456
|
-
Provides
|
|
351
|
+
Provides an Alicloud EIP Association resource for associating Elastic IP to ECS Instance, SLB Instance or Nat Gateway.
|
|
457
352
|
|
|
458
353
|
> **NOTE:** `ecs.EipAssociation` is useful in scenarios where EIPs are either
|
|
459
354
|
pre-existing or distributed to customers or users and therefore cannot be changed.
|
|
@@ -462,14 +357,10 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
462
357
|
|
|
463
358
|
> **NOTE:** One EIP can only be associated with ECS or SLB instance which in the VPC.
|
|
464
359
|
|
|
465
|
-
For information about EIP Association and how to use it, see [What is Association](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-vpc-2016-04-28-associateeipaddress).
|
|
466
|
-
|
|
467
360
|
> **NOTE:** Available since v1.117.0.
|
|
468
361
|
|
|
469
362
|
## Example Usage
|
|
470
363
|
|
|
471
|
-
Basic Usage
|
|
472
|
-
|
|
473
364
|
```python
|
|
474
365
|
import pulumi
|
|
475
366
|
import pulumi_alicloud as alicloud
|
|
@@ -483,8 +374,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
483
374
|
cpu_core_count=1,
|
|
484
375
|
memory_size=2)
|
|
485
376
|
example_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
|
|
486
|
-
owners="system"
|
|
487
|
-
instance_type=example_get_instance_types.instance_types[0].id)
|
|
377
|
+
owners="system")
|
|
488
378
|
example_network = alicloud.vpc.Network("example",
|
|
489
379
|
vpc_name=name,
|
|
490
380
|
cidr_block="10.4.0.0/16")
|
|
@@ -513,9 +403,14 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
513
403
|
instance_id=example_instance.id)
|
|
514
404
|
```
|
|
515
405
|
|
|
406
|
+
## Module Support
|
|
407
|
+
|
|
408
|
+
You can use the existing eip module
|
|
409
|
+
to create several EIP instances and associate them with other resources one-click, like ECS instances, SLB, Nat Gateway and so on.
|
|
410
|
+
|
|
516
411
|
## Import
|
|
517
412
|
|
|
518
|
-
|
|
413
|
+
Elastic IP address association can be imported using the id, e.g.
|
|
519
414
|
|
|
520
415
|
```sh
|
|
521
416
|
$ pulumi import alicloud:ecs/eipAssociation:EipAssociation example <allocation_id>:<instance_id>
|
|
@@ -587,34 +482,13 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
587
482
|
:param str resource_name: The unique name of the resulting resource.
|
|
588
483
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
589
484
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
590
|
-
:param pulumi.Input[str] allocation_id: The ID of the EIP instance.
|
|
591
|
-
:param pulumi.Input[bool] force:
|
|
592
|
-
:param pulumi.Input[str] instance_id: The ID of the
|
|
593
|
-
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values:
|
|
594
|
-
|
|
595
|
-
- `SlbInstance`: CLB instance
|
|
596
|
-
- `EcsInstance` (default): ECS instance
|
|
597
|
-
- `NetworkInterface`: secondary ENI
|
|
598
|
-
- `HaVip`: HAVIP
|
|
599
|
-
- `IpAddress`: IP address
|
|
600
|
-
|
|
601
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
602
|
-
:param pulumi.Input[str] mode: The association mode. Valid values:
|
|
603
|
-
- `NAT` (default): NAT mode
|
|
604
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
605
|
-
- `BINDED`: cut-network interface controller mode
|
|
606
|
-
|
|
607
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
485
|
+
:param pulumi.Input[str] allocation_id: The ID of the EIP that you want to associate with an instance.
|
|
486
|
+
:param pulumi.Input[bool] force: When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
487
|
+
:param pulumi.Input[str] instance_id: The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
488
|
+
:param pulumi.Input[str] instance_type: The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
489
|
+
:param pulumi.Input[str] mode: The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
608
490
|
:param pulumi.Input[str] private_ip_address: The IP address in the CIDR block of the vSwitch.
|
|
609
|
-
|
|
610
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
611
|
-
|
|
612
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
613
|
-
:param pulumi.Input[str] vpc_id: The ID of the VPC in which an IPv4 gateway is created. The VPC and the EIP must be in the same region.
|
|
614
|
-
|
|
615
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
616
|
-
|
|
617
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
491
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
618
492
|
"""
|
|
619
493
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
620
494
|
|
|
@@ -633,7 +507,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
633
507
|
@pulumi.getter(name="allocationId")
|
|
634
508
|
def allocation_id(self) -> pulumi.Output[str]:
|
|
635
509
|
"""
|
|
636
|
-
The ID of the EIP instance.
|
|
510
|
+
The ID of the EIP that you want to associate with an instance.
|
|
637
511
|
"""
|
|
638
512
|
return pulumi.get(self, "allocation_id")
|
|
639
513
|
|
|
@@ -641,7 +515,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
641
515
|
@pulumi.getter
|
|
642
516
|
def force(self) -> pulumi.Output[Optional[bool]]:
|
|
643
517
|
"""
|
|
644
|
-
|
|
518
|
+
When EIP is bound to a NAT gateway, and the NAT gateway adds a DNAT or SNAT entry, set it for `true` can unassociation any way. Default value: `false`. Valid values: `true`, `false`.
|
|
645
519
|
"""
|
|
646
520
|
return pulumi.get(self, "force")
|
|
647
521
|
|
|
@@ -649,7 +523,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
649
523
|
@pulumi.getter(name="instanceId")
|
|
650
524
|
def instance_id(self) -> pulumi.Output[str]:
|
|
651
525
|
"""
|
|
652
|
-
The ID of the
|
|
526
|
+
The ID of the ECS or SLB instance or Nat Gateway or NetworkInterface or HaVip.
|
|
653
527
|
"""
|
|
654
528
|
return pulumi.get(self, "instance_id")
|
|
655
529
|
|
|
@@ -657,15 +531,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
657
531
|
@pulumi.getter(name="instanceType")
|
|
658
532
|
def instance_type(self) -> pulumi.Output[str]:
|
|
659
533
|
"""
|
|
660
|
-
The type of the instance with which you want to associate the EIP. Valid values:
|
|
661
|
-
- `Nat`: NAT gateway
|
|
662
|
-
- `SlbInstance`: CLB instance
|
|
663
|
-
- `EcsInstance` (default): ECS instance
|
|
664
|
-
- `NetworkInterface`: secondary ENI
|
|
665
|
-
- `HaVip`: HAVIP
|
|
666
|
-
- `IpAddress`: IP address
|
|
667
|
-
|
|
668
|
-
> **NOTE:** The default value is `EcsInstance`. If the instance with which you want to associate the EIP is not an ECS instance, this parameter is required.
|
|
534
|
+
The type of the instance with which you want to associate the EIP. Valid values: `Nat`, `SlbInstance`, `EcsInstance`, `NetworkInterface`, `HaVip` and `IpAddress`.
|
|
669
535
|
"""
|
|
670
536
|
return pulumi.get(self, "instance_type")
|
|
671
537
|
|
|
@@ -673,12 +539,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
673
539
|
@pulumi.getter
|
|
674
540
|
def mode(self) -> pulumi.Output[str]:
|
|
675
541
|
"""
|
|
676
|
-
The association mode. Valid values:
|
|
677
|
-
- `NAT` (default): NAT mode
|
|
678
|
-
- `MULTI_BINDED`: multi-EIP-to-ENI mode
|
|
679
|
-
- `BINDED`: cut-network interface controller mode
|
|
680
|
-
|
|
681
|
-
> **NOTE:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
542
|
+
The association mode. Default value: `NAT`. Valid values: `NAT`, `BINDED`, `MULTI_BINDED`. **Note:** This parameter is required only when `instance_type` is set to `NetworkInterface`.
|
|
682
543
|
"""
|
|
683
544
|
return pulumi.get(self, "mode")
|
|
684
545
|
|
|
@@ -687,10 +548,6 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
687
548
|
def private_ip_address(self) -> pulumi.Output[Optional[str]]:
|
|
688
549
|
"""
|
|
689
550
|
The IP address in the CIDR block of the vSwitch.
|
|
690
|
-
|
|
691
|
-
If you leave this parameter empty, the system allocates a private IP address based on the VPC ID and vSwitch ID.
|
|
692
|
-
|
|
693
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
694
551
|
"""
|
|
695
552
|
return pulumi.get(self, "private_ip_address")
|
|
696
553
|
|
|
@@ -698,11 +555,7 @@ class EipAssociation(pulumi.CustomResource):
|
|
|
698
555
|
@pulumi.getter(name="vpcId")
|
|
699
556
|
def vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
700
557
|
"""
|
|
701
|
-
The ID of the VPC
|
|
702
|
-
|
|
703
|
-
When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations.
|
|
704
|
-
|
|
705
|
-
> **NOTE:** This parameter is required if `instance_type` is set to `IpAddress`, which indicates that the EIP is to be associated with an IP address.
|
|
558
|
+
The ID of the VPC that has IPv4 gateways enabled and that is deployed in the same region as the EIP. When you associate an EIP with an IP address, the system can enable the IP address to access the Internet based on VPC route configurations. **Note:** This parameter is required if `instance_type` is set to `IpAddress`.
|
|
706
559
|
"""
|
|
707
560
|
return pulumi.get(self, "vpc_id")
|
|
708
561
|
|