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

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

AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi

aws-native.ec2.getEip

Explore with Pulumi AI

aws-native logo

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

AWS Native v0.78.0 published on Wednesday, Sep 27, 2023 by Pulumi

    Resource Type definition for AWS::EC2::EIP

    Using getEip

    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 getEip(args: GetEipArgs, opts?: InvokeOptions): Promise<GetEipResult>
    function getEipOutput(args: GetEipOutputArgs, opts?: InvokeOptions): Output<GetEipResult>
    def get_eip(allocation_id: Optional[str] = None,
                public_ip: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetEipResult
    def get_eip_output(allocation_id: Optional[pulumi.Input[str]] = None,
                public_ip: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetEipResult]
    func LookupEip(ctx *Context, args *LookupEipArgs, opts ...InvokeOption) (*LookupEipResult, error)
    func LookupEipOutput(ctx *Context, args *LookupEipOutputArgs, opts ...InvokeOption) LookupEipResultOutput

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

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

    The following arguments are supported:

    AllocationId string

    The Allocation ID of the EIP generated by resource.

    PublicIp string

    The PublicIP of the EIP generated by resource.

    AllocationId string

    The Allocation ID of the EIP generated by resource.

    PublicIp string

    The PublicIP of the EIP generated by resource.

    allocationId String

    The Allocation ID of the EIP generated by resource.

    publicIp String

    The PublicIP of the EIP generated by resource.

    allocationId string

    The Allocation ID of the EIP generated by resource.

    publicIp string

    The PublicIP of the EIP generated by resource.

    allocation_id str

    The Allocation ID of the EIP generated by resource.

    public_ip str

    The PublicIP of the EIP generated by resource.

    allocationId String

    The Allocation ID of the EIP generated by resource.

    publicIp String

    The PublicIP of the EIP generated by resource.

    getEip Result

    The following output properties are available:

    AllocationId string

    The Allocation ID of the EIP generated by resource.

    InstanceId string

    The ID of the instance.

    PublicIp string

    The PublicIP of the EIP generated by resource.

    PublicIpv4Pool string

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    Tags List<Pulumi.AwsNative.Ec2.Outputs.EipTag>

    Any tags assigned to the EIP.

    AllocationId string

    The Allocation ID of the EIP generated by resource.

    InstanceId string

    The ID of the instance.

    PublicIp string

    The PublicIP of the EIP generated by resource.

    PublicIpv4Pool string

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    Tags []EipTag

    Any tags assigned to the EIP.

    allocationId String

    The Allocation ID of the EIP generated by resource.

    instanceId String

    The ID of the instance.

    publicIp String

    The PublicIP of the EIP generated by resource.

    publicIpv4Pool String

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    tags List<EipTag>

    Any tags assigned to the EIP.

    allocationId string

    The Allocation ID of the EIP generated by resource.

    instanceId string

    The ID of the instance.

    publicIp string

    The PublicIP of the EIP generated by resource.

    publicIpv4Pool string

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    tags EipTag[]

    Any tags assigned to the EIP.

    allocation_id str

    The Allocation ID of the EIP generated by resource.

    instance_id str

    The ID of the instance.

    public_ip str

    The PublicIP of the EIP generated by resource.

    public_ipv4_pool str

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    tags Sequence[EipTag]

    Any tags assigned to the EIP.

    allocationId String

    The Allocation ID of the EIP generated by resource.

    instanceId String

    The ID of the instance.

    publicIp String

    The PublicIP of the EIP generated by resource.

    publicIpv4Pool String

    The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool.

    tags List<Property Map>

    Any tags assigned to the EIP.

    Supporting Types

    EipTag

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    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.78.0 published on Wednesday, Sep 27, 2023 by Pulumi