"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.NetworkEdgeSecurityService = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Google Cloud Armor network edge security service resource.
 *
 * To get more information about NetworkEdgeSecurityService, see:
 *
 * * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/networkEdgeSecurityServices)
 * * How-to Guides
 *     * [Official Documentation](https://cloud.google.com/armor/docs/advanced-network-ddos)
 *
 * ## Example Usage
 *
 * ### Compute Network Edge Security Service Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const _default = new gcp.compute.NetworkEdgeSecurityService("default", {
 *     name: "my-edge-security-service",
 *     region: "us-east1",
 *     description: "My basic resource",
 * });
 * ```
 *
 * ## Import
 *
 * NetworkEdgeSecurityService can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{name}}`
 *
 * * `{{project}}/{{region}}/{{name}}`
 *
 * * `{{region}}/{{name}}`
 *
 * * `{{name}}`
 *
 * When using the `pulumi import` command, NetworkEdgeSecurityService can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{project}}/{{region}}/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{region}}/{{name}}
 * ```
 *
 * ```sh
 * $ pulumi import gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService default {{name}}
 * ```
 */
class NetworkEdgeSecurityService extends pulumi.CustomResource {
    /**
     * Get an existing NetworkEdgeSecurityService 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new NetworkEdgeSecurityService(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of NetworkEdgeSecurityService.  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'] === NetworkEdgeSecurityService.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["creationTimestamp"] = state?.creationTimestamp;
            resourceInputs["description"] = state?.description;
            resourceInputs["fingerprint"] = state?.fingerprint;
            resourceInputs["name"] = state?.name;
            resourceInputs["project"] = state?.project;
            resourceInputs["region"] = state?.region;
            resourceInputs["securityPolicy"] = state?.securityPolicy;
            resourceInputs["selfLink"] = state?.selfLink;
            resourceInputs["selfLinkWithServiceId"] = state?.selfLinkWithServiceId;
            resourceInputs["serviceId"] = state?.serviceId;
        }
        else {
            const args = argsOrState;
            resourceInputs["description"] = args?.description;
            resourceInputs["name"] = args?.name;
            resourceInputs["project"] = args?.project;
            resourceInputs["region"] = args?.region;
            resourceInputs["securityPolicy"] = args?.securityPolicy;
            resourceInputs["creationTimestamp"] = undefined /*out*/;
            resourceInputs["fingerprint"] = undefined /*out*/;
            resourceInputs["selfLink"] = undefined /*out*/;
            resourceInputs["selfLinkWithServiceId"] = undefined /*out*/;
            resourceInputs["serviceId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(NetworkEdgeSecurityService.__pulumiType, name, resourceInputs, opts);
    }
}
exports.NetworkEdgeSecurityService = NetworkEdgeSecurityService;
/** @internal */
NetworkEdgeSecurityService.__pulumiType = 'gcp:compute/networkEdgeSecurityService:NetworkEdgeSecurityService';
//# sourceMappingURL=networkEdgeSecurityService.js.map