@Stability(value=Stable) public static final class CfnEIPAssociation.Builder extends Object implements software.amazon.jsii.Builder<CfnEIPAssociation>
CfnEIPAssociation.| Modifier and Type | Method and Description |
|---|---|
CfnEIPAssociation.Builder |
allocationId(String allocationId)
[EC2-VPC] The allocation ID.
|
CfnEIPAssociation |
build() |
static CfnEIPAssociation.Builder |
create(software.constructs.Construct scope,
String id) |
CfnEIPAssociation.Builder |
eip(String eip)
[EC2-Classic] The Elastic IP address to associate with the instance.
|
CfnEIPAssociation.Builder |
instanceId(String instanceId)
The ID of the instance.
|
CfnEIPAssociation.Builder |
networkInterfaceId(String networkInterfaceId)
[EC2-VPC] The ID of the network interface.
|
CfnEIPAssociation.Builder |
privateIpAddress(String privateIpAddress)
[EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address.
|
@Stability(value=Stable) public static CfnEIPAssociation.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnEIPAssociation.Builder.@Stability(value=Stable) public CfnEIPAssociation.Builder allocationId(String allocationId)
This is required for EC2-VPC.
allocationId - [EC2-VPC] The allocation ID. This parameter is required.this@Stability(value=Stable) public CfnEIPAssociation.Builder eip(String eip)
This is required for EC2-Classic.
eip - [EC2-Classic] The Elastic IP address to associate with the instance. This parameter is required.this@Stability(value=Stable) public CfnEIPAssociation.Builder instanceId(String instanceId)
The instance must have exactly one attached network interface. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you must specify an instance ID and the instance must be in the running state.
instanceId - The ID of the instance. This parameter is required.this@Stability(value=Stable) public CfnEIPAssociation.Builder networkInterfaceId(String networkInterfaceId)
If the instance has more than one network interface, you must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
networkInterfaceId - [EC2-VPC] The ID of the network interface. This parameter is required.this@Stability(value=Stable) public CfnEIPAssociation.Builder privateIpAddress(String privateIpAddress)
If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
privateIpAddress - [EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address. This parameter is required.this@Stability(value=Stable) public CfnEIPAssociation build()
build in interface software.amazon.jsii.Builder<CfnEIPAssociation>Copyright © 2022. All rights reserved.