UNPKG

@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)

72 lines 3.73 kB
"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.AutoScalingConfiguration = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * 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. */ 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, id, opts) { return new AutoScalingConfiguration(name, undefined, { ...opts, id: id }); } /** * 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) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === AutoScalingConfiguration.__pulumiType; } /** * 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, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { resourceInputs["autoScalingConfigurationName"] = args?.autoScalingConfigurationName; resourceInputs["maxConcurrency"] = args?.maxConcurrency; resourceInputs["maxSize"] = args?.maxSize; resourceInputs["minSize"] = args?.minSize; resourceInputs["tags"] = args?.tags; resourceInputs["autoScalingConfigurationArn"] = undefined /*out*/; resourceInputs["autoScalingConfigurationRevision"] = undefined /*out*/; resourceInputs["latest"] = undefined /*out*/; } else { resourceInputs["autoScalingConfigurationArn"] = undefined /*out*/; resourceInputs["autoScalingConfigurationName"] = undefined /*out*/; resourceInputs["autoScalingConfigurationRevision"] = undefined /*out*/; resourceInputs["latest"] = undefined /*out*/; resourceInputs["maxConcurrency"] = undefined /*out*/; resourceInputs["maxSize"] = undefined /*out*/; resourceInputs["minSize"] = undefined /*out*/; resourceInputs["tags"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["autoScalingConfigurationName", "maxConcurrency", "maxSize", "minSize", "tags[*]"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(AutoScalingConfiguration.__pulumiType, name, resourceInputs, opts); } } exports.AutoScalingConfiguration = AutoScalingConfiguration; /** @internal */ AutoScalingConfiguration.__pulumiType = 'aws-native:apprunner:AutoScalingConfiguration'; //# sourceMappingURL=autoScalingConfiguration.js.map