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)

78 lines 4.24 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Eip = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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*. */ 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, id, opts) { return new Eip(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * 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) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === Eip.__pulumiType; } /** * 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, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { resourceInputs["address"] = args ? args.address : undefined; resourceInputs["domain"] = args ? args.domain : undefined; resourceInputs["instanceId"] = args ? args.instanceId : undefined; resourceInputs["ipamPoolId"] = args ? args.ipamPoolId : undefined; resourceInputs["networkBorderGroup"] = args ? args.networkBorderGroup : undefined; resourceInputs["publicIpv4Pool"] = args ? args.publicIpv4Pool : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["transferAddress"] = args ? args.transferAddress : undefined; resourceInputs["allocationId"] = undefined /*out*/; resourceInputs["publicIp"] = undefined /*out*/; } else { resourceInputs["address"] = undefined /*out*/; resourceInputs["allocationId"] = undefined /*out*/; resourceInputs["domain"] = undefined /*out*/; resourceInputs["instanceId"] = undefined /*out*/; resourceInputs["ipamPoolId"] = undefined /*out*/; resourceInputs["networkBorderGroup"] = undefined /*out*/; resourceInputs["publicIp"] = undefined /*out*/; resourceInputs["publicIpv4Pool"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; resourceInputs["transferAddress"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["address", "ipamPoolId", "networkBorderGroup", "transferAddress"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(Eip.__pulumiType, name, resourceInputs, opts); } } exports.Eip = Eip; /** @internal */ Eip.__pulumiType = 'aws-native:ec2:Eip'; //# sourceMappingURL=eip.js.map