"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.Fleet = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Fleet contains information about a group of clusters.
 *
 * To get more information about Fleet, see:
 *
 * * [API documentation](https://cloud.google.com/anthos/multicluster-management/reference/rest/v1/projects.locations.fleets)
 * * How-to Guides
 *     * [Registering a Cluster to a Fleet](https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster#register_cluster)
 *
 * ## Example Usage
 *
 * ### Gkehub Fleet Basic
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 *
 * const _default = new gcp.gkehub.Fleet("default", {
 *     displayName: "my production fleet",
 *     defaultClusterConfig: {
 *         securityPostureConfig: {
 *             mode: "DISABLED",
 *             vulnerabilityMode: "VULNERABILITY_DISABLED",
 *         },
 *     },
 * });
 * ```
 *
 * ## Import
 *
 * Fleet can be imported using any of these accepted formats:
 *
 * * `projects/{{project}}/locations/global/fleets/default`
 *
 * * `{{project}}`
 *
 * When using the `pulumi import` command, Fleet can be imported using one of the formats above. For example:
 *
 * ```sh
 * $ pulumi import gcp:gkehub/fleet:Fleet default projects/{{project}}/locations/global/fleets/default
 * ```
 *
 * ```sh
 * $ pulumi import gcp:gkehub/fleet:Fleet default {{project}}
 * ```
 */
class Fleet extends pulumi.CustomResource {
    /**
     * Get an existing Fleet 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 Fleet(name, state, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of Fleet.  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'] === Fleet.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["createTime"] = state?.createTime;
            resourceInputs["defaultClusterConfig"] = state?.defaultClusterConfig;
            resourceInputs["deleteTime"] = state?.deleteTime;
            resourceInputs["displayName"] = state?.displayName;
            resourceInputs["project"] = state?.project;
            resourceInputs["states"] = state?.states;
            resourceInputs["uid"] = state?.uid;
            resourceInputs["updateTime"] = state?.updateTime;
        }
        else {
            const args = argsOrState;
            resourceInputs["defaultClusterConfig"] = args?.defaultClusterConfig;
            resourceInputs["displayName"] = args?.displayName;
            resourceInputs["project"] = args?.project;
            resourceInputs["createTime"] = undefined /*out*/;
            resourceInputs["deleteTime"] = undefined /*out*/;
            resourceInputs["states"] = undefined /*out*/;
            resourceInputs["uid"] = undefined /*out*/;
            resourceInputs["updateTime"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Fleet.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Fleet = Fleet;
/** @internal */
Fleet.__pulumiType = 'gcp:gkehub/fleet:Fleet';
//# sourceMappingURL=fleet.js.map