UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

114 lines (113 loc) 4.57 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The autoscale setting resource. * * Uses Azure REST API version 2021-05-01-preview. */ export declare class AutoscaleSetting extends pulumi.CustomResource { /** * Get an existing AutoscaleSetting 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: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): AutoscaleSetting; /** * Returns true if the given object is an instance of AutoscaleSetting. 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 AutoscaleSetting; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Resource location */ readonly location: pulumi.Output<string>; /** * Azure resource name */ readonly name: pulumi.Output<string>; /** * The autoscale setting of the resource. */ readonly properties: pulumi.Output<outputs.monitor.AutoscaleSettingResponse>; /** * The system metadata related to the response. */ readonly systemData: pulumi.Output<outputs.monitor.SystemDataResponse>; /** * Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Azure resource type */ readonly type: pulumi.Output<string>; /** * Create a AutoscaleSetting 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: AutoscaleSettingArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a AutoscaleSetting resource. */ export interface AutoscaleSettingArgs { /** * The autoscale setting name. */ autoscaleSettingName?: pulumi.Input<string>; /** * the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'. */ enabled?: pulumi.Input<boolean>; /** * Resource location */ location?: pulumi.Input<string>; /** * the name of the autoscale setting. */ name?: pulumi.Input<string>; /** * the collection of notifications. */ notifications?: pulumi.Input<pulumi.Input<inputs.monitor.AutoscaleNotificationArgs>[]>; /** * the predictive autoscale policy mode. */ predictiveAutoscalePolicy?: pulumi.Input<inputs.monitor.PredictiveAutoscalePolicyArgs>; /** * the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. */ profiles: pulumi.Input<pulumi.Input<inputs.monitor.AutoscaleProfileArgs>[]>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * the location of the resource that the autoscale setting should be added to. */ targetResourceLocation?: pulumi.Input<string>; /** * the resource identifier of the resource that the autoscale setting should be added to. */ targetResourceUri?: pulumi.Input<string>; }