1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. EipAssociation

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.ec2.EipAssociation

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource schema for EC2 EIP association.

    Create EipAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EipAssociation(name: string, args?: EipAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def EipAssociation(resource_name: str,
                       args: Optional[EipAssociationArgs] = None,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def EipAssociation(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       allocation_id: Optional[str] = None,
                       eip: Optional[str] = None,
                       instance_id: Optional[str] = None,
                       network_interface_id: Optional[str] = None,
                       private_ip_address: Optional[str] = None)
    func NewEipAssociation(ctx *Context, name string, args *EipAssociationArgs, opts ...ResourceOption) (*EipAssociation, error)
    public EipAssociation(string name, EipAssociationArgs? args = null, CustomResourceOptions? opts = null)
    public EipAssociation(String name, EipAssociationArgs args)
    public EipAssociation(String name, EipAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:ec2:EipAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EipAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EipAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EipAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EipAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EipAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EipAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The EipAssociation resource accepts the following input properties:

    AllocationId string
    The allocation ID. This is required for EC2-VPC.
    Eip string
    The Elastic IP address to associate with the instance.
    InstanceId string
    The ID of the instance.
    NetworkInterfaceId string
    The ID of the network interface.
    PrivateIpAddress string
    The primary or secondary private IP address to associate with the Elastic IP address.
    AllocationId string
    The allocation ID. This is required for EC2-VPC.
    Eip string
    The Elastic IP address to associate with the instance.
    InstanceId string
    The ID of the instance.
    NetworkInterfaceId string
    The ID of the network interface.
    PrivateIpAddress string
    The primary or secondary private IP address to associate with the Elastic IP address.
    allocationId String
    The allocation ID. This is required for EC2-VPC.
    eip String
    The Elastic IP address to associate with the instance.
    instanceId String
    The ID of the instance.
    networkInterfaceId String
    The ID of the network interface.
    privateIpAddress String
    The primary or secondary private IP address to associate with the Elastic IP address.
    allocationId string
    The allocation ID. This is required for EC2-VPC.
    eip string
    The Elastic IP address to associate with the instance.
    instanceId string
    The ID of the instance.
    networkInterfaceId string
    The ID of the network interface.
    privateIpAddress string
    The primary or secondary private IP address to associate with the Elastic IP address.
    allocation_id str
    The allocation ID. This is required for EC2-VPC.
    eip str
    The Elastic IP address to associate with the instance.
    instance_id str
    The ID of the instance.
    network_interface_id str
    The ID of the network interface.
    private_ip_address str
    The primary or secondary private IP address to associate with the Elastic IP address.
    allocationId String
    The allocation ID. This is required for EC2-VPC.
    eip String
    The Elastic IP address to associate with the instance.
    instanceId String
    The ID of the instance.
    networkInterfaceId String
    The ID of the network interface.
    privateIpAddress String
    The primary or secondary private IP address to associate with the Elastic IP address.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EipAssociation resource produces the following output properties:

    AwsId string
    Composite ID of non-empty properties, to determine the identification.
    Id string
    The provider-assigned unique ID for this managed resource.
    AwsId string
    Composite ID of non-empty properties, to determine the identification.
    Id string
    The provider-assigned unique ID for this managed resource.
    awsId String
    Composite ID of non-empty properties, to determine the identification.
    id String
    The provider-assigned unique ID for this managed resource.
    awsId string
    Composite ID of non-empty properties, to determine the identification.
    id string
    The provider-assigned unique ID for this managed resource.
    aws_id str
    Composite ID of non-empty properties, to determine the identification.
    id str
    The provider-assigned unique ID for this managed resource.
    awsId String
    Composite ID of non-empty properties, to determine the identification.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi