Modifier and Type | Method and Description |
---|---|
CfnEIP |
build() |
static CfnEIP.Builder |
create(Construct scope,
java.lang.String id) |
CfnEIP.Builder |
domain(java.lang.String domain)
Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic.
|
CfnEIP.Builder |
instanceId(java.lang.String instanceId)
The ID of the instance.
|
CfnEIP.Builder |
publicIpv4Pool(java.lang.String publicIpv4Pool)
The ID of an address pool that you own.
|
CfnEIP.Builder |
tags(java.util.List<? extends CfnTag> tags)
Any tags assigned to the Elastic IP address.
|
public static CfnEIP.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnEIP.Builder
.public CfnEIP.Builder domain(java.lang.String domain)
Default: If the Region supports EC2-Classic, the default is standard
. Otherwise, the default is vpc
.
Use when allocating an address for use with a VPC if the Region supports EC2-Classic.
If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.
domain
- Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic. This parameter is required.this
public CfnEIP.Builder instanceId(java.lang.String instanceId)
Updates to the
InstanceId
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
instanceId
- The ID of the instance. This parameter is required.this
public CfnEIP.Builder publicIpv4Pool(java.lang.String publicIpv4Pool)
Use this parameter to let Amazon EC2 select an address from the address pool.
Updates to the
PublicIpv4Pool
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
publicIpv4Pool
- The ID of an address pool that you own. This parameter is required.this
public CfnEIP.Builder tags(java.util.List<? extends CfnTag> tags)
Updates to the
Tags
property may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
tags
- Any tags assigned to the Elastic IP address. This parameter is required.this
public CfnEIP build()