import * as pulumi from "@pulumi/pulumi"; /** * Use this resource to create and manage New Relic fleets for centralized agent management. * * Fleets enable you to organize and manage New Relic agents across your infrastructure. You can create fleets for different types of infrastructure (HOST or KUBERNETESCLUSTER) and use them to centrally deploy agent configurations, manage updates, and organize your entities with tags. * * ## Example Usage * * ### Linux Host Fleet * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const linuxHosts = new newrelic.Fleet("linux_hosts", { * name: "Production Linux Hosts", * managedEntityType: "HOST", * operatingSystem: "LINUX", * description: "Fleet for managing Linux production hosts", * tags: [ * "environment:production", * "team:platform,ops", * ], * }); * ``` * * ### Windows Host Fleet * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const windowsHosts = new newrelic.Fleet("windows_hosts", { * name: "Production Windows Hosts", * managedEntityType: "HOST", * operatingSystem: "WINDOWS", * description: "Fleet for managing Windows production hosts", * }); * ``` * * ### Kubernetes Cluster Fleet * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const k8sClusters = new newrelic.Fleet("k8s_clusters", { * name: "Production Kubernetes Clusters", * managedEntityType: "KUBERNETESCLUSTER", * description: "Fleet for managing Kubernetes clusters", * tags: ["environment:production"], * }); * ``` * * ## Import * * Fleets can be imported using the fleet ID: * * ```sh * $ pulumi import newrelic:index/fleet:Fleet linux_hosts * ``` */ export declare 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: string, id: pulumi.Input, state?: FleetState, opts?: pulumi.CustomResourceOptions): Fleet; /** * 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: any): obj is Fleet; /** * A description of the fleet. This can be updated after creation. */ readonly description: pulumi.Output; /** * The type of entities this fleet will manage. Valid values are `HOST` or `KUBERNETESCLUSTER`. **Note**: This cannot be changed after creation (forces new resource). */ readonly managedEntityType: pulumi.Output; /** * The name of the fleet. This can be changed after creation. */ readonly name: pulumi.Output; /** * The operating system type for HOST fleets. **Required when `managedEntityType` is `HOST`**. Valid values are `LINUX` or `WINDOWS`. **Must not be set when `managedEntityType` is `KUBERNETESCLUSTER`**. Both pairings are validated at plan time so misconfigurations surface before apply. **Note**: This cannot be changed after creation (forces new resource). */ readonly operatingSystem: pulumi.Output; /** * The organization ID. If not provided, it will be automatically fetched from your account. **Note**: This cannot be changed after creation (forces new resource). */ readonly organizationId: pulumi.Output; /** * A list of tags for the fleet. Each tag should be in the format `"key:value1,value2"` where multiple values can be comma-separated. */ readonly tags: pulumi.Output; /** * Create a Fleet 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: string, args: FleetArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Fleet resources. */ export interface FleetState { /** * A description of the fleet. This can be updated after creation. */ description?: pulumi.Input; /** * The type of entities this fleet will manage. Valid values are `HOST` or `KUBERNETESCLUSTER`. **Note**: This cannot be changed after creation (forces new resource). */ managedEntityType?: pulumi.Input; /** * The name of the fleet. This can be changed after creation. */ name?: pulumi.Input; /** * The operating system type for HOST fleets. **Required when `managedEntityType` is `HOST`**. Valid values are `LINUX` or `WINDOWS`. **Must not be set when `managedEntityType` is `KUBERNETESCLUSTER`**. Both pairings are validated at plan time so misconfigurations surface before apply. **Note**: This cannot be changed after creation (forces new resource). */ operatingSystem?: pulumi.Input; /** * The organization ID. If not provided, it will be automatically fetched from your account. **Note**: This cannot be changed after creation (forces new resource). */ organizationId?: pulumi.Input; /** * A list of tags for the fleet. Each tag should be in the format `"key:value1,value2"` where multiple values can be comma-separated. */ tags?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a Fleet resource. */ export interface FleetArgs { /** * A description of the fleet. This can be updated after creation. */ description?: pulumi.Input; /** * The type of entities this fleet will manage. Valid values are `HOST` or `KUBERNETESCLUSTER`. **Note**: This cannot be changed after creation (forces new resource). */ managedEntityType: pulumi.Input; /** * The name of the fleet. This can be changed after creation. */ name?: pulumi.Input; /** * The operating system type for HOST fleets. **Required when `managedEntityType` is `HOST`**. Valid values are `LINUX` or `WINDOWS`. **Must not be set when `managedEntityType` is `KUBERNETESCLUSTER`**. Both pairings are validated at plan time so misconfigurations surface before apply. **Note**: This cannot be changed after creation (forces new resource). */ operatingSystem?: pulumi.Input; /** * The organization ID. If not provided, it will be automatically fetched from your account. **Note**: This cannot be changed after creation (forces new resource). */ organizationId?: pulumi.Input; /** * A list of tags for the fleet. Each tag should be in the format `"key:value1,value2"` where multiple values can be comma-separated. */ tags?: pulumi.Input[] | undefined>; } //# sourceMappingURL=fleet.d.ts.map