"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPublicIpsOutput = exports.getPublicIps = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * This data source provides the list of Public Ips in Oracle Cloud Infrastructure Core service.
 *
 * Lists the [PublicIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PublicIp/) objects
 * in the specified compartment. You can filter the list by using query parameters.
 *
 * To list your reserved public IPs:
 *   * Set `scope` = `REGION`  (required)
 *   * Leave the `availabilityDomain` parameter empty
 *   * Set `lifetime` = `RESERVED`
 *
 * To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway:
 *   * Set `scope` = `REGION`  (required)
 *   * Leave the `availabilityDomain` parameter empty
 *   * Set `lifetime` = `EPHEMERAL`
 *
 * To list the ephemeral public IPs assigned to private IPs:
 *   * Set `scope` = `AVAILABILITY_DOMAIN` (required)
 *   * Set the `availabilityDomain` parameter to the desired availability domain (required)
 *   * Set `lifetime` = `EPHEMERAL`
 *
 * **Note:** An ephemeral public IP assigned to a private IP
 * is always in the same availability domain and compartment as the private IP.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testPublicIps = oci.core.getPublicIps({
 *     compartmentId: compartmentId,
 *     scope: publicIpScope,
 *     availabilityDomain: publicIpAvailabilityDomain,
 *     lifetime: publicIpLifetime,
 *     publicIpPoolId: testPublicIpPool.id,
 * });
 * ```
 */
function getPublicIps(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invoke("oci:Core/getPublicIps:getPublicIps", {
        "availabilityDomain": args.availabilityDomain,
        "compartmentId": args.compartmentId,
        "filters": args.filters,
        "lifetime": args.lifetime,
        "publicIpPoolId": args.publicIpPoolId,
        "scope": args.scope,
    }, opts);
}
exports.getPublicIps = getPublicIps;
/**
 * This data source provides the list of Public Ips in Oracle Cloud Infrastructure Core service.
 *
 * Lists the [PublicIp](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/PublicIp/) objects
 * in the specified compartment. You can filter the list by using query parameters.
 *
 * To list your reserved public IPs:
 *   * Set `scope` = `REGION`  (required)
 *   * Leave the `availabilityDomain` parameter empty
 *   * Set `lifetime` = `RESERVED`
 *
 * To list the ephemeral public IPs assigned to a regional entity such as a NAT gateway:
 *   * Set `scope` = `REGION`  (required)
 *   * Leave the `availabilityDomain` parameter empty
 *   * Set `lifetime` = `EPHEMERAL`
 *
 * To list the ephemeral public IPs assigned to private IPs:
 *   * Set `scope` = `AVAILABILITY_DOMAIN` (required)
 *   * Set the `availabilityDomain` parameter to the desired availability domain (required)
 *   * Set `lifetime` = `EPHEMERAL`
 *
 * **Note:** An ephemeral public IP assigned to a private IP
 * is always in the same availability domain and compartment as the private IP.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as oci from "@pulumi/oci";
 *
 * const testPublicIps = oci.core.getPublicIps({
 *     compartmentId: compartmentId,
 *     scope: publicIpScope,
 *     availabilityDomain: publicIpAvailabilityDomain,
 *     lifetime: publicIpLifetime,
 *     publicIpPoolId: testPublicIpPool.id,
 * });
 * ```
 */
function getPublicIpsOutput(args, opts) {
    opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
    return pulumi.runtime.invokeOutput("oci:Core/getPublicIps:getPublicIps", {
        "availabilityDomain": args.availabilityDomain,
        "compartmentId": args.compartmentId,
        "filters": args.filters,
        "lifetime": args.lifetime,
        "publicIpPoolId": args.publicIpPoolId,
        "scope": args.scope,
    }, opts);
}
exports.getPublicIpsOutput = getPublicIpsOutput;
//# sourceMappingURL=getPublicIps.js.map