UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

120 lines (119 loc) 7.74 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Specifies an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance. * You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see [Bring Your Own IP Addresses (BYOIP)](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the *Amazon EC2 User Guide*. * For more information, see [Elastic IP Addresses](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) in the *Amazon EC2 User Guide*. */ export declare class Eip extends pulumi.CustomResource { /** * Get an existing Eip resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Eip; /** * Returns true if the given object is an instance of Eip. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Eip; /** * An Elastic IP address or a carrier IP address in a Wavelength Zone. */ readonly address: pulumi.Output<string | undefined>; /** * The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC. This is returned only for VPC elastic IP addresses. For example, `eipalloc-5723d13e` . */ readonly allocationId: pulumi.Output<string>; /** * The network (``vpc``). * 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) on this resource. */ readonly domain: pulumi.Output<string | undefined>; /** * The ID of the instance. * Updates to the ``InstanceId`` property may require *some interruptions*. Updates on an EIP reassociates the address on its associated resource. */ readonly instanceId: pulumi.Output<string | undefined>; /** * The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see [Allocate sequential Elastic IP addresses from an IPAM pool](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html) in the *Amazon VPC IPAM User Guide* . */ readonly ipamPoolId: pulumi.Output<string | undefined>; /** * A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. * Use [DescribeAvailabilityZones](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html) to view the network border groups. */ readonly networkBorderGroup: pulumi.Output<string | undefined>; /** * The Elastic IP address. */ readonly publicIp: pulumi.Output<string>; /** * The ID of an address pool that you own. 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. */ readonly publicIpv4Pool: pulumi.Output<string | undefined>; /** * Any tags assigned to the Elastic IP address. * Updates to the ``Tags`` property may require *some interruptions*. Updates on an EIP reassociates the address on its associated resource. */ readonly tags: pulumi.Output<outputs.Tag[] | undefined>; /** * The Elastic IP address you are accepting for transfer. You can only accept one transferred address. For more information on Elastic IP address transfers, see [Transfer Elastic IP addresses](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro) in the *Amazon Virtual Private Cloud User Guide*. */ readonly transferAddress: pulumi.Output<string | undefined>; /** * Create a Eip resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: EipArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a Eip resource. */ export interface EipArgs { /** * An Elastic IP address or a carrier IP address in a Wavelength Zone. */ address?: pulumi.Input<string>; /** * The network (``vpc``). * 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) on this resource. */ domain?: pulumi.Input<string>; /** * The ID of the instance. * Updates to the ``InstanceId`` property may require *some interruptions*. Updates on an EIP reassociates the address on its associated resource. */ instanceId?: pulumi.Input<string>; /** * The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see [Allocate sequential Elastic IP addresses from an IPAM pool](https://docs.aws.amazon.com/vpc/latest/ipam/tutorials-eip-pool.html) in the *Amazon VPC IPAM User Guide* . */ ipamPoolId?: pulumi.Input<string>; /** * A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. * Use [DescribeAvailabilityZones](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html) to view the network border groups. */ networkBorderGroup?: pulumi.Input<string>; /** * The ID of an address pool that you own. 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?: pulumi.Input<string>; /** * Any tags assigned to the Elastic IP address. * Updates to the ``Tags`` property may require *some interruptions*. Updates on an EIP reassociates the address on its associated resource. */ tags?: pulumi.Input<pulumi.Input<inputs.TagArgs>[]>; /** * The Elastic IP address you are accepting for transfer. You can only accept one transferred address. For more information on Elastic IP address transfers, see [Transfer Elastic IP addresses](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro) in the *Amazon Virtual Private Cloud User Guide*. */ transferAddress?: pulumi.Input<string>; }