/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace AppRunner { namespace Model { /** */ class CreateAutoScalingConfigurationRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API CreateAutoScalingConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateAutoScalingConfiguration"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline const Aws::String& GetAutoScalingConfigurationName() const{ return m_autoScalingConfigurationName; } /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline bool AutoScalingConfigurationNameHasBeenSet() const { return m_autoScalingConfigurationNameHasBeenSet; } /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetAutoScalingConfigurationName(const Aws::String& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = value; } /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetAutoScalingConfigurationName(Aws::String&& value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName = std::move(value); } /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetAutoScalingConfigurationName(const char* value) { m_autoScalingConfigurationNameHasBeenSet = true; m_autoScalingConfigurationName.assign(value); } /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(const Aws::String& value) { SetAutoScalingConfigurationName(value); return *this;} /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(Aws::String&& value) { SetAutoScalingConfigurationName(std::move(value)); return *this;} /** *

A name for the auto scaling configuration. When you use it for the first time * in an Amazon Web Services 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 * name DefaultConfiguration is reserved (it's the configuration that * App Runner uses if you don't provide a custome one). You can't use it to create * a new auto scaling configuration, and you can't create a revision of it.

*

When you want to use your own auto scaling configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateAutoScalingConfigurationRequest& WithAutoScalingConfigurationName(const char* value) { SetAutoScalingConfigurationName(value); return *this;} /** *

The maximum number of concurrent requests that you want an instance to * process. If the number of concurrent requests exceeds this limit, App Runner * scales up your service.

Default: 100

*/ inline int GetMaxConcurrency() const{ return m_maxConcurrency; } /** *

The maximum number of concurrent requests that you want an instance to * process. If the number of concurrent requests exceeds this limit, App Runner * scales up your service.

Default: 100

*/ inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; } /** *

The maximum number of concurrent requests that you want an instance to * process. If the number of concurrent requests exceeds this limit, App Runner * scales up your service.

Default: 100

*/ inline void SetMaxConcurrency(int value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; } /** *

The maximum number of concurrent requests that you want an instance to * process. If the number of concurrent requests exceeds this limit, App Runner * scales up your service.

Default: 100

*/ inline CreateAutoScalingConfigurationRequest& WithMaxConcurrency(int value) { SetMaxConcurrency(value); return *this;} /** *

The minimum number of instances that App Runner provisions for your 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.

App Runner temporarily * doubles the number of provisioned instances during deployments, to maintain the * same capacity for both old and new code.

Default: 1

*/ inline int GetMinSize() const{ return m_minSize; } /** *

The minimum number of instances that App Runner provisions for your 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.

App Runner temporarily * doubles the number of provisioned instances during deployments, to maintain the * same capacity for both old and new code.

Default: 1

*/ inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; } /** *

The minimum number of instances that App Runner provisions for your 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.

App Runner temporarily * doubles the number of provisioned instances during deployments, to maintain the * same capacity for both old and new code.

Default: 1

*/ inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; } /** *

The minimum number of instances that App Runner provisions for your 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.

App Runner temporarily * doubles the number of provisioned instances during deployments, to maintain the * same capacity for both old and new code.

Default: 1

*/ inline CreateAutoScalingConfigurationRequest& WithMinSize(int value) { SetMinSize(value); return *this;} /** *

The maximum number of instances that your service scales up to. At most * MaxSize instances actively serve traffic for your service.

*

Default: 25

*/ inline int GetMaxSize() const{ return m_maxSize; } /** *

The maximum number of instances that your service scales up to. At most * MaxSize instances actively serve traffic for your service.

*

Default: 25

*/ inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; } /** *

The maximum number of instances that your service scales up to. At most * MaxSize instances actively serve traffic for your service.

*

Default: 25

*/ inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; } /** *

The maximum number of instances that your service scales up to. At most * MaxSize instances actively serve traffic for your service.

*

Default: 25

*/ inline CreateAutoScalingConfigurationRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;} /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline CreateAutoScalingConfigurationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline CreateAutoScalingConfigurationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline CreateAutoScalingConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of metadata items that you can associate with your auto scaling * configuration resource. A tag is a key-value pair.

*/ inline CreateAutoScalingConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_autoScalingConfigurationName; bool m_autoScalingConfigurationNameHasBeenSet = false; int m_maxConcurrency; bool m_maxConcurrencyHasBeenSet = false; int m_minSize; bool m_minSizeHasBeenSet = false; int m_maxSize; bool m_maxSizeHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws