@pulumi/aws-native
Version:
The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)
88 lines (87 loc) • 5.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Describes an AWS App Runner automatic configuration resource that enables automatic scaling of instances used to process web requests. You can share an auto scaling configuration across multiple services.
*/
export declare class AutoScalingConfiguration extends pulumi.CustomResource {
/**
* Get an existing AutoScalingConfiguration 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): AutoScalingConfiguration;
/**
* Returns true if the given object is an instance of AutoScalingConfiguration. 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 AutoScalingConfiguration;
/**
* The Amazon Resource Name (ARN) of this auto scaling configuration.
*/
readonly autoScalingConfigurationArn: pulumi.Output<string>;
/**
* The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
*/
readonly autoScalingConfigurationName: pulumi.Output<string | undefined>;
/**
* The revision of this auto scaling configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName.
*/
readonly autoScalingConfigurationRevision: pulumi.Output<number>;
/**
* It's set to true for the configuration with the highest Revision among all configurations that share the same AutoScalingConfigurationName. It's set to false otherwise. App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
*/
readonly latest: pulumi.Output<boolean>;
/**
* The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up to use more instances to process the requests.
*/
readonly maxConcurrency: pulumi.Output<number | undefined>;
/**
* The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
*/
readonly maxSize: pulumi.Output<number | undefined>;
/**
* The minimum number of instances that App Runner provisions for a service. The service always has at least MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
*/
readonly minSize: pulumi.Output<number | undefined>;
/**
* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
*/
readonly tags: pulumi.Output<outputs.CreateOnlyTag[] | undefined>;
/**
* Create a AutoScalingConfiguration 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?: AutoScalingConfigurationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a AutoScalingConfiguration resource.
*/
export interface AutoScalingConfigurationArgs {
/**
* The customer-provided auto scaling configuration name. When you use it for the first time in an AWS Region, App Runner creates revision number 1 of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration. The auto scaling configuration name can be used in multiple revisions of a configuration.
*/
autoScalingConfigurationName?: pulumi.Input<string>;
/**
* The maximum number of concurrent requests that an instance processes. If the number of concurrent requests exceeds this limit, App Runner scales the service up to use more instances to process the requests.
*/
maxConcurrency?: pulumi.Input<number>;
/**
* The maximum number of instances that an App Runner service scales up to. At most MaxSize instances actively serve traffic for your service.
*/
maxSize?: pulumi.Input<number>;
/**
* The minimum number of instances that App Runner provisions for a service. The service always has at least MinSize provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.
*/
minSize?: pulumi.Input<number>;
/**
* A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
*/
tags?: pulumi.Input<pulumi.Input<inputs.CreateOnlyTagArgs>[]>;
}