1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getEipAssociation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.ec2.getEipAssociation

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi

    Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account. For more information about working with Elastic IP addresses, see Elastic IP address concepts and rules. You must specify AllocationId and either InstanceId, NetworkInterfaceId, or PrivateIpAddress.

    Using getEipAssociation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getEipAssociation(args: GetEipAssociationArgs, opts?: InvokeOptions): Promise<GetEipAssociationResult>
    function getEipAssociationOutput(args: GetEipAssociationOutputArgs, opts?: InvokeOptions): Output<GetEipAssociationResult>
    def get_eip_association(id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetEipAssociationResult
    def get_eip_association_output(id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetEipAssociationResult]
    func LookupEipAssociation(ctx *Context, args *LookupEipAssociationArgs, opts ...InvokeOption) (*LookupEipAssociationResult, error)
    func LookupEipAssociationOutput(ctx *Context, args *LookupEipAssociationOutputArgs, opts ...InvokeOption) LookupEipAssociationResultOutput

    > Note: This function is named LookupEipAssociation in the Go SDK.

    public static class GetEipAssociation 
    {
        public static Task<GetEipAssociationResult> InvokeAsync(GetEipAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetEipAssociationResult> Invoke(GetEipAssociationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEipAssociationResult> getEipAssociation(GetEipAssociationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getEipAssociation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the association.
    Id string
    The ID of the association.
    id String
    The ID of the association.
    id string
    The ID of the association.
    id str
    The ID of the association.
    id String
    The ID of the association.

    getEipAssociation Result

    The following output properties are available:

    Id string
    The ID of the association.
    Id string
    The ID of the association.
    id String
    The ID of the association.
    id string
    The ID of the association.
    id str
    The ID of the association.
    id String
    The ID of the association.

    Package Details

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

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi