"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.IpamPool = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Resource Schema of AWS::EC2::IPAMPool Type
 */
class IpamPool extends pulumi.CustomResource {
    /**
     * Get an existing IpamPool 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 IpamPool(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of IpamPool.  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'] === IpamPool.__pulumiType;
    }
    /**
     * Create a IpamPool 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) {
            if (args?.addressFamily === undefined && !opts.urn) {
                throw new Error("Missing required property 'addressFamily'");
            }
            if (args?.ipamScopeId === undefined && !opts.urn) {
                throw new Error("Missing required property 'ipamScopeId'");
            }
            resourceInputs["addressFamily"] = args?.addressFamily;
            resourceInputs["allocationDefaultNetmaskLength"] = args?.allocationDefaultNetmaskLength;
            resourceInputs["allocationMaxNetmaskLength"] = args?.allocationMaxNetmaskLength;
            resourceInputs["allocationMinNetmaskLength"] = args?.allocationMinNetmaskLength;
            resourceInputs["allocationResourceTags"] = args?.allocationResourceTags;
            resourceInputs["autoImport"] = args?.autoImport;
            resourceInputs["awsService"] = args?.awsService;
            resourceInputs["description"] = args?.description;
            resourceInputs["ipamScopeId"] = args?.ipamScopeId;
            resourceInputs["locale"] = args?.locale;
            resourceInputs["provisionedCidrs"] = args?.provisionedCidrs;
            resourceInputs["publicIpSource"] = args?.publicIpSource;
            resourceInputs["publiclyAdvertisable"] = args?.publiclyAdvertisable;
            resourceInputs["sourceIpamPoolId"] = args?.sourceIpamPoolId;
            resourceInputs["sourceResource"] = args?.sourceResource;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["ipamArn"] = undefined /*out*/;
            resourceInputs["ipamPoolId"] = undefined /*out*/;
            resourceInputs["ipamScopeArn"] = undefined /*out*/;
            resourceInputs["ipamScopeType"] = undefined /*out*/;
            resourceInputs["poolDepth"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["stateMessage"] = undefined /*out*/;
        }
        else {
            resourceInputs["addressFamily"] = undefined /*out*/;
            resourceInputs["allocationDefaultNetmaskLength"] = undefined /*out*/;
            resourceInputs["allocationMaxNetmaskLength"] = undefined /*out*/;
            resourceInputs["allocationMinNetmaskLength"] = undefined /*out*/;
            resourceInputs["allocationResourceTags"] = undefined /*out*/;
            resourceInputs["arn"] = undefined /*out*/;
            resourceInputs["autoImport"] = undefined /*out*/;
            resourceInputs["awsService"] = undefined /*out*/;
            resourceInputs["description"] = undefined /*out*/;
            resourceInputs["ipamArn"] = undefined /*out*/;
            resourceInputs["ipamPoolId"] = undefined /*out*/;
            resourceInputs["ipamScopeArn"] = undefined /*out*/;
            resourceInputs["ipamScopeId"] = undefined /*out*/;
            resourceInputs["ipamScopeType"] = undefined /*out*/;
            resourceInputs["locale"] = undefined /*out*/;
            resourceInputs["poolDepth"] = undefined /*out*/;
            resourceInputs["provisionedCidrs"] = undefined /*out*/;
            resourceInputs["publicIpSource"] = undefined /*out*/;
            resourceInputs["publiclyAdvertisable"] = undefined /*out*/;
            resourceInputs["sourceIpamPoolId"] = undefined /*out*/;
            resourceInputs["sourceResource"] = undefined /*out*/;
            resourceInputs["state"] = undefined /*out*/;
            resourceInputs["stateMessage"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const replaceOnChanges = { replaceOnChanges: ["addressFamily", "awsService", "ipamScopeId", "locale", "publicIpSource", "publiclyAdvertisable", "sourceIpamPoolId", "sourceResource"] };
        opts = pulumi.mergeOptions(opts, replaceOnChanges);
        super(IpamPool.__pulumiType, name, resourceInputs, opts);
    }
}
exports.IpamPool = IpamPool;
/** @internal */
IpamPool.__pulumiType = 'aws-native:ec2:IpamPool';
//# sourceMappingURL=ipamPool.js.map