/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Http { class HttpClient; class HttpClientFactory; } // namespace Http namespace Utils { template< typename R, typename E> class Outcome; namespace Threading { class Executor; } // namespace Threading } // namespace Utils namespace Auth { class AWSCredentials; class AWSCredentialsProvider; } // namespace Auth namespace Client { class RetryStrategy; } // namespace Client namespace AutoScalingPlans { namespace Model { class CreateScalingPlanRequest; class DeleteScalingPlanRequest; class DescribeScalingPlanResourcesRequest; class DescribeScalingPlansRequest; class GetScalingPlanResourceForecastDataRequest; class UpdateScalingPlanRequest; typedef Aws::Utils::Outcome CreateScalingPlanOutcome; typedef Aws::Utils::Outcome DeleteScalingPlanOutcome; typedef Aws::Utils::Outcome DescribeScalingPlanResourcesOutcome; typedef Aws::Utils::Outcome DescribeScalingPlansOutcome; typedef Aws::Utils::Outcome GetScalingPlanResourceForecastDataOutcome; typedef Aws::Utils::Outcome UpdateScalingPlanOutcome; typedef std::future CreateScalingPlanOutcomeCallable; typedef std::future DeleteScalingPlanOutcomeCallable; typedef std::future DescribeScalingPlanResourcesOutcomeCallable; typedef std::future DescribeScalingPlansOutcomeCallable; typedef std::future GetScalingPlanResourceForecastDataOutcomeCallable; typedef std::future UpdateScalingPlanOutcomeCallable; } // namespace Model class AutoScalingPlansClient; typedef std::function&) > CreateScalingPlanResponseReceivedHandler; typedef std::function&) > DeleteScalingPlanResponseReceivedHandler; typedef std::function&) > DescribeScalingPlanResourcesResponseReceivedHandler; typedef std::function&) > DescribeScalingPlansResponseReceivedHandler; typedef std::function&) > GetScalingPlanResourceForecastDataResponseReceivedHandler; typedef std::function&) > UpdateScalingPlanResponseReceivedHandler; /** * AWS Auto Scaling

Use AWS Auto Scaling to quickly * discover all the scalable AWS resources for your application and configure * dynamic scaling and predictive scaling for your resources using scaling plans. * Use this service in conjunction with the Amazon EC2 Auto Scaling, Application * Auto Scaling, Amazon CloudWatch, and AWS CloudFormation services.

*

Currently, predictive scaling is only available for Amazon EC2 Auto Scaling * groups.

For more information about AWS Auto Scaling, including * information about granting IAM users required permissions for AWS Auto Scaling * actions, see the AWS * Auto Scaling User Guide.

*/ class AWS_AUTOSCALINGPLANS_API AutoScalingPlansClient : public Aws::Client::AWSJsonClient { public: typedef Aws::Client::AWSJsonClient BASECLASS; /** * Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config * is not specified, it will be initialized to default values. */ AutoScalingPlansClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); /** * Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config * is not specified, it will be initialized to default values. */ AutoScalingPlansClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); /** * Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied, * the default http client factory will be used */ AutoScalingPlansClient(const std::shared_ptr& credentialsProvider, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); virtual ~AutoScalingPlansClient(); /** *

Creates a scaling plan.

See Also:

AWS * API Reference

*/ virtual Model::CreateScalingPlanOutcome CreateScalingPlan(const Model::CreateScalingPlanRequest& request) const; /** *

Creates a scaling plan.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::CreateScalingPlanOutcomeCallable CreateScalingPlanCallable(const Model::CreateScalingPlanRequest& request) const; /** *

Creates a scaling plan.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void CreateScalingPlanAsync(const Model::CreateScalingPlanRequest& request, const CreateScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Deletes the specified scaling plan.

Deleting a scaling plan deletes * the underlying ScalingInstruction for all of the scalable resources that * are covered by the plan.

If the plan has launched resources or has * scaling activities in progress, you must delete those resources * separately.

See Also:

AWS * API Reference

*/ virtual Model::DeleteScalingPlanOutcome DeleteScalingPlan(const Model::DeleteScalingPlanRequest& request) const; /** *

Deletes the specified scaling plan.

Deleting a scaling plan deletes * the underlying ScalingInstruction for all of the scalable resources that * are covered by the plan.

If the plan has launched resources or has * scaling activities in progress, you must delete those resources * separately.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::DeleteScalingPlanOutcomeCallable DeleteScalingPlanCallable(const Model::DeleteScalingPlanRequest& request) const; /** *

Deletes the specified scaling plan.

Deleting a scaling plan deletes * the underlying ScalingInstruction for all of the scalable resources that * are covered by the plan.

If the plan has launched resources or has * scaling activities in progress, you must delete those resources * separately.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void DeleteScalingPlanAsync(const Model::DeleteScalingPlanRequest& request, const DeleteScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Describes the scalable resources in the specified scaling plan.

See * Also:

AWS * API Reference

*/ virtual Model::DescribeScalingPlanResourcesOutcome DescribeScalingPlanResources(const Model::DescribeScalingPlanResourcesRequest& request) const; /** *

Describes the scalable resources in the specified scaling plan.

See * Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::DescribeScalingPlanResourcesOutcomeCallable DescribeScalingPlanResourcesCallable(const Model::DescribeScalingPlanResourcesRequest& request) const; /** *

Describes the scalable resources in the specified scaling plan.

See * Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void DescribeScalingPlanResourcesAsync(const Model::DescribeScalingPlanResourcesRequest& request, const DescribeScalingPlanResourcesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Describes one or more of your scaling plans.

See Also:

AWS * API Reference

*/ virtual Model::DescribeScalingPlansOutcome DescribeScalingPlans(const Model::DescribeScalingPlansRequest& request) const; /** *

Describes one or more of your scaling plans.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::DescribeScalingPlansOutcomeCallable DescribeScalingPlansCallable(const Model::DescribeScalingPlansRequest& request) const; /** *

Describes one or more of your scaling plans.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void DescribeScalingPlansAsync(const Model::DescribeScalingPlansRequest& request, const DescribeScalingPlansResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Retrieves the forecast data for a scalable resource.

Capacity * forecasts are represented as predicted values, or data points, that are * calculated using historical data points from a specified CloudWatch load metric. * Data points are available for up to 56 days.

See Also:

AWS * API Reference

*/ virtual Model::GetScalingPlanResourceForecastDataOutcome GetScalingPlanResourceForecastData(const Model::GetScalingPlanResourceForecastDataRequest& request) const; /** *

Retrieves the forecast data for a scalable resource.

Capacity * forecasts are represented as predicted values, or data points, that are * calculated using historical data points from a specified CloudWatch load metric. * Data points are available for up to 56 days.

See Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::GetScalingPlanResourceForecastDataOutcomeCallable GetScalingPlanResourceForecastDataCallable(const Model::GetScalingPlanResourceForecastDataRequest& request) const; /** *

Retrieves the forecast data for a scalable resource.

Capacity * forecasts are represented as predicted values, or data points, that are * calculated using historical data points from a specified CloudWatch load metric. * Data points are available for up to 56 days.

See Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void GetScalingPlanResourceForecastDataAsync(const Model::GetScalingPlanResourceForecastDataRequest& request, const GetScalingPlanResourceForecastDataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; /** *

Updates the specified scaling plan.

You cannot update a scaling plan * if it is in the process of being created, updated, or deleted.

See * Also:

AWS * API Reference

*/ virtual Model::UpdateScalingPlanOutcome UpdateScalingPlan(const Model::UpdateScalingPlanRequest& request) const; /** *

Updates the specified scaling plan.

You cannot update a scaling plan * if it is in the process of being created, updated, or deleted.

See * Also:

AWS * API Reference

* * returns a future to the operation so that it can be executed in parallel to other requests. */ virtual Model::UpdateScalingPlanOutcomeCallable UpdateScalingPlanCallable(const Model::UpdateScalingPlanRequest& request) const; /** *

Updates the specified scaling plan.

You cannot update a scaling plan * if it is in the process of being created, updated, or deleted.

See * Also:

AWS * API Reference

* * Queues the request into a thread executor and triggers associated callback when operation has finished. */ virtual void UpdateScalingPlanAsync(const Model::UpdateScalingPlanRequest& request, const UpdateScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const; void OverrideEndpoint(const Aws::String& endpoint); private: void init(const Aws::Client::ClientConfiguration& clientConfiguration); void CreateScalingPlanAsyncHelper(const Model::CreateScalingPlanRequest& request, const CreateScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteScalingPlanAsyncHelper(const Model::DeleteScalingPlanRequest& request, const DeleteScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeScalingPlanResourcesAsyncHelper(const Model::DescribeScalingPlanResourcesRequest& request, const DescribeScalingPlanResourcesResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeScalingPlansAsyncHelper(const Model::DescribeScalingPlansRequest& request, const DescribeScalingPlansResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetScalingPlanResourceForecastDataAsyncHelper(const Model::GetScalingPlanResourceForecastDataRequest& request, const GetScalingPlanResourceForecastDataResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateScalingPlanAsyncHelper(const Model::UpdateScalingPlanRequest& request, const UpdateScalingPlanResponseReceivedHandler& handler, const std::shared_ptr& context) const; Aws::String m_uri; Aws::String m_configScheme; std::shared_ptr m_executor; }; } // namespace AutoScalingPlans } // namespace Aws