This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
forked from violethaze74/aws-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for Change Manager API content
(New Service) Amazon Managed Service for Prometheus is a fully managed Prometheus-compatible monitoring service that makes it easy to monitor containerized applications securely and at scale. FileFormatConfiguration enables data store to save data in JSON or Parquet format. S3Paths enables you to specify the S3 objects that save your channel messages when you reprocess the pipeline. AWS IoT Greengrass V2 is a new major version of AWS IoT Greengrass. This release adds several updates such as modular components, continuous deployments, and improved ease of use. AWS IoT for LoRaWAN enables customers to setup a private LoRaWAN network by connecting their LoRaWAN devices and gateways to the AWS cloud without managing a LoRaWAN Network Server. Added support for Apache Kafka as a event source. Added support for TumblingWindowInSeconds for streams event source mappings. Added support for FunctionResponseTypes for streams event source mappings AWS IoT Fleet Hub, a new feature of AWS IoT Device Management that provides a web application for monitoring and managing device fleets connected to AWS IoT at scale. AWS IoT Core Device Advisor is fully managed test capability for IoT devices. Device manufacturers can use Device Advisor to test their IoT devices for reliable and secure connectivity with AWS IoT. AWS IoT Rules Engine adds Kafka Action that allows sending data to Apache Kafka clusters inside a VPC. AWS IoT Device Defender adds custom metrics and machine-learning based anomaly detection.
- Loading branch information
aws-sdk-cpp-automation
committed
Dec 15, 2020
1 parent
0a508d7
commit 6fa607a
Showing
986 changed files
with
111,187 additions
and
1,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
add_project(aws-cpp-sdk-amp "C++ SDK for the AWS amp service" aws-cpp-sdk-core) | ||
|
||
file(GLOB AWS_AMP_HEADERS | ||
"include/aws/amp/*.h" | ||
) | ||
|
||
file(GLOB AWS_AMP_MODEL_HEADERS | ||
"include/aws/amp/model/*.h" | ||
) | ||
|
||
file(GLOB AWS_AMP_SOURCE | ||
"source/*.cpp" | ||
) | ||
|
||
file(GLOB AWS_AMP_MODEL_SOURCE | ||
"source/model/*.cpp" | ||
) | ||
|
||
file(GLOB AMP_UNIFIED_HEADERS | ||
${AWS_AMP_HEADERS} | ||
${AWS_AMP_MODEL_HEADERS} | ||
) | ||
|
||
file(GLOB AMP_UNITY_SRC | ||
${AWS_AMP_SOURCE} | ||
${AWS_AMP_MODEL_SOURCE} | ||
) | ||
|
||
if(ENABLE_UNITY_BUILD) | ||
enable_unity_build("AMP" AMP_UNITY_SRC) | ||
endif() | ||
|
||
file(GLOB AMP_SRC | ||
${AMP_UNIFIED_HEADERS} | ||
${AMP_UNITY_SRC} | ||
) | ||
|
||
if(WIN32) | ||
#if we are compiling for visual studio, create a sane directory tree. | ||
if(MSVC) | ||
source_group("Header Files\\aws\\amp" FILES ${AWS_AMP_HEADERS}) | ||
source_group("Header Files\\aws\\amp\\model" FILES ${AWS_AMP_MODEL_HEADERS}) | ||
source_group("Source Files" FILES ${AWS_AMP_SOURCE}) | ||
source_group("Source Files\\model" FILES ${AWS_AMP_MODEL_SOURCE}) | ||
endif(MSVC) | ||
endif() | ||
|
||
set(AMP_INCLUDES | ||
"${CMAKE_CURRENT_SOURCE_DIR}/include/" | ||
) | ||
|
||
add_library(${PROJECT_NAME} ${AMP_SRC}) | ||
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) | ||
|
||
set_compiler_flags(${PROJECT_NAME}) | ||
set_compiler_warnings(${PROJECT_NAME}) | ||
|
||
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_PROMETHEUSSERVICE_EXPORTS") | ||
endif() | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include>) | ||
|
||
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) | ||
|
||
|
||
setup_install() | ||
|
||
install (FILES ${AWS_AMP_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/amp) | ||
install (FILES ${AWS_AMP_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/amp/model) | ||
|
||
do_packaging() | ||
|
||
|
258 changes: 258 additions & 0 deletions
258
aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceClient.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,258 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/amp/PrometheusService_EXPORTS.h> | ||
#include <aws/amp/PrometheusServiceErrors.h> | ||
#include <aws/core/client/AWSError.h> | ||
#include <aws/core/client/ClientConfiguration.h> | ||
#include <aws/core/client/AWSClient.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
#include <aws/core/utils/json/JsonSerializer.h> | ||
#include <aws/amp/model/CreateWorkspaceResult.h> | ||
#include <aws/amp/model/DescribeWorkspaceResult.h> | ||
#include <aws/amp/model/ListWorkspacesResult.h> | ||
#include <aws/core/NoResult.h> | ||
#include <aws/core/client/AsyncCallerContext.h> | ||
#include <aws/core/http/HttpTypes.h> | ||
#include <future> | ||
#include <functional> | ||
|
||
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 PrometheusService | ||
{ | ||
|
||
namespace Model | ||
{ | ||
class CreateWorkspaceRequest; | ||
class DeleteWorkspaceRequest; | ||
class DescribeWorkspaceRequest; | ||
class ListWorkspacesRequest; | ||
class UpdateWorkspaceAliasRequest; | ||
|
||
typedef Aws::Utils::Outcome<CreateWorkspaceResult, PrometheusServiceError> CreateWorkspaceOutcome; | ||
typedef Aws::Utils::Outcome<Aws::NoResult, PrometheusServiceError> DeleteWorkspaceOutcome; | ||
typedef Aws::Utils::Outcome<DescribeWorkspaceResult, PrometheusServiceError> DescribeWorkspaceOutcome; | ||
typedef Aws::Utils::Outcome<ListWorkspacesResult, PrometheusServiceError> ListWorkspacesOutcome; | ||
typedef Aws::Utils::Outcome<Aws::NoResult, PrometheusServiceError> UpdateWorkspaceAliasOutcome; | ||
|
||
typedef std::future<CreateWorkspaceOutcome> CreateWorkspaceOutcomeCallable; | ||
typedef std::future<DeleteWorkspaceOutcome> DeleteWorkspaceOutcomeCallable; | ||
typedef std::future<DescribeWorkspaceOutcome> DescribeWorkspaceOutcomeCallable; | ||
typedef std::future<ListWorkspacesOutcome> ListWorkspacesOutcomeCallable; | ||
typedef std::future<UpdateWorkspaceAliasOutcome> UpdateWorkspaceAliasOutcomeCallable; | ||
} // namespace Model | ||
|
||
class PrometheusServiceClient; | ||
|
||
typedef std::function<void(const PrometheusServiceClient*, const Model::CreateWorkspaceRequest&, const Model::CreateWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateWorkspaceResponseReceivedHandler; | ||
typedef std::function<void(const PrometheusServiceClient*, const Model::DeleteWorkspaceRequest&, const Model::DeleteWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteWorkspaceResponseReceivedHandler; | ||
typedef std::function<void(const PrometheusServiceClient*, const Model::DescribeWorkspaceRequest&, const Model::DescribeWorkspaceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeWorkspaceResponseReceivedHandler; | ||
typedef std::function<void(const PrometheusServiceClient*, const Model::ListWorkspacesRequest&, const Model::ListWorkspacesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListWorkspacesResponseReceivedHandler; | ||
typedef std::function<void(const PrometheusServiceClient*, const Model::UpdateWorkspaceAliasRequest&, const Model::UpdateWorkspaceAliasOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateWorkspaceAliasResponseReceivedHandler; | ||
|
||
/** | ||
* <p>StealFire Service</p> | ||
*/ | ||
class AWS_PROMETHEUSSERVICE_API PrometheusServiceClient : 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. | ||
*/ | ||
PrometheusServiceClient(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. | ||
*/ | ||
PrometheusServiceClient(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 | ||
*/ | ||
PrometheusServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider, | ||
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); | ||
|
||
virtual ~PrometheusServiceClient(); | ||
|
||
|
||
/** | ||
* <p>Creates a new StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace">AWS | ||
* API Reference</a></p> | ||
*/ | ||
virtual Model::CreateWorkspaceOutcome CreateWorkspace(const Model::CreateWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Creates a new StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* returns a future to the operation so that it can be executed in parallel to other requests. | ||
*/ | ||
virtual Model::CreateWorkspaceOutcomeCallable CreateWorkspaceCallable(const Model::CreateWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Creates a new StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* Queues the request into a thread executor and triggers associated callback when operation has finished. | ||
*/ | ||
virtual void CreateWorkspaceAsync(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const; | ||
|
||
/** | ||
* <p>Deletes a StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace">AWS | ||
* API Reference</a></p> | ||
*/ | ||
virtual Model::DeleteWorkspaceOutcome DeleteWorkspace(const Model::DeleteWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Deletes a StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* returns a future to the operation so that it can be executed in parallel to other requests. | ||
*/ | ||
virtual Model::DeleteWorkspaceOutcomeCallable DeleteWorkspaceCallable(const Model::DeleteWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Deletes a StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* Queues the request into a thread executor and triggers associated callback when operation has finished. | ||
*/ | ||
virtual void DeleteWorkspaceAsync(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const; | ||
|
||
/** | ||
* <p>Describes an existing StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace">AWS | ||
* API Reference</a></p> | ||
*/ | ||
virtual Model::DescribeWorkspaceOutcome DescribeWorkspace(const Model::DescribeWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Describes an existing StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* returns a future to the operation so that it can be executed in parallel to other requests. | ||
*/ | ||
virtual Model::DescribeWorkspaceOutcomeCallable DescribeWorkspaceCallable(const Model::DescribeWorkspaceRequest& request) const; | ||
|
||
/** | ||
* <p>Describes an existing StealFire workspace.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace">AWS | ||
* API Reference</a></p> | ||
* | ||
* Queues the request into a thread executor and triggers associated callback when operation has finished. | ||
*/ | ||
virtual void DescribeWorkspaceAsync(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const; | ||
|
||
/** | ||
* <p>Lists all StealFire workspaces, including workspaces being created or | ||
* deleted.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces">AWS | ||
* API Reference</a></p> | ||
*/ | ||
virtual Model::ListWorkspacesOutcome ListWorkspaces(const Model::ListWorkspacesRequest& request) const; | ||
|
||
/** | ||
* <p>Lists all StealFire workspaces, including workspaces being created or | ||
* deleted.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces">AWS | ||
* API Reference</a></p> | ||
* | ||
* returns a future to the operation so that it can be executed in parallel to other requests. | ||
*/ | ||
virtual Model::ListWorkspacesOutcomeCallable ListWorkspacesCallable(const Model::ListWorkspacesRequest& request) const; | ||
|
||
/** | ||
* <p>Lists all StealFire workspaces, including workspaces being created or | ||
* deleted.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces">AWS | ||
* API Reference</a></p> | ||
* | ||
* Queues the request into a thread executor and triggers associated callback when operation has finished. | ||
*/ | ||
virtual void ListWorkspacesAsync(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const; | ||
|
||
/** | ||
* <p>Updates a StealFire workspace alias.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias">AWS | ||
* API Reference</a></p> | ||
*/ | ||
virtual Model::UpdateWorkspaceAliasOutcome UpdateWorkspaceAlias(const Model::UpdateWorkspaceAliasRequest& request) const; | ||
|
||
/** | ||
* <p>Updates a StealFire workspace alias.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias">AWS | ||
* API Reference</a></p> | ||
* | ||
* returns a future to the operation so that it can be executed in parallel to other requests. | ||
*/ | ||
virtual Model::UpdateWorkspaceAliasOutcomeCallable UpdateWorkspaceAliasCallable(const Model::UpdateWorkspaceAliasRequest& request) const; | ||
|
||
/** | ||
* <p>Updates a StealFire workspace alias.</p><p><h3>See Also:</h3> <a | ||
* href="http://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias">AWS | ||
* API Reference</a></p> | ||
* | ||
* Queues the request into a thread executor and triggers associated callback when operation has finished. | ||
*/ | ||
virtual void UpdateWorkspaceAliasAsync(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const; | ||
|
||
|
||
void OverrideEndpoint(const Aws::String& endpoint); | ||
private: | ||
void init(const Aws::Client::ClientConfiguration& clientConfiguration); | ||
void CreateWorkspaceAsyncHelper(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const; | ||
void DeleteWorkspaceAsyncHelper(const Model::DeleteWorkspaceRequest& request, const DeleteWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const; | ||
void DescribeWorkspaceAsyncHelper(const Model::DescribeWorkspaceRequest& request, const DescribeWorkspaceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const; | ||
void ListWorkspacesAsyncHelper(const Model::ListWorkspacesRequest& request, const ListWorkspacesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const; | ||
void UpdateWorkspaceAliasAsyncHelper(const Model::UpdateWorkspaceAliasRequest& request, const UpdateWorkspaceAliasResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const; | ||
|
||
Aws::String m_uri; | ||
Aws::String m_configScheme; | ||
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor; | ||
}; | ||
|
||
} // namespace PrometheusService | ||
} // namespace Aws |
21 changes: 21 additions & 0 deletions
21
aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceEndpoint.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/amp/PrometheusService_EXPORTS.h> | ||
#include <aws/core/Region.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
|
||
namespace Aws | ||
{ | ||
|
||
namespace PrometheusService | ||
{ | ||
namespace PrometheusServiceEndpoint | ||
{ | ||
AWS_PROMETHEUSSERVICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false); | ||
} // namespace PrometheusServiceEndpoint | ||
} // namespace PrometheusService | ||
} // namespace Aws |
23 changes: 23 additions & 0 deletions
23
aws-cpp-sdk-amp/include/aws/amp/PrometheusServiceErrorMarshaller.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <aws/amp/PrometheusService_EXPORTS.h> | ||
#include <aws/core/client/AWSErrorMarshaller.h> | ||
|
||
namespace Aws | ||
{ | ||
namespace Client | ||
{ | ||
|
||
class AWS_PROMETHEUSSERVICE_API PrometheusServiceErrorMarshaller : public Aws::Client::JsonErrorMarshaller | ||
{ | ||
public: | ||
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override; | ||
}; | ||
|
||
} // namespace Client | ||
} // namespace Aws |
Oops, something went wrong.