534 lines
33 KiB
C++
534 lines
33 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
|
|
#include <aws/codestar-connections/CodeStarconnectionsErrors.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/codestar-connections/model/CreateConnectionResult.h>
|
|
#include <aws/codestar-connections/model/CreateHostResult.h>
|
|
#include <aws/codestar-connections/model/DeleteConnectionResult.h>
|
|
#include <aws/codestar-connections/model/DeleteHostResult.h>
|
|
#include <aws/codestar-connections/model/GetConnectionResult.h>
|
|
#include <aws/codestar-connections/model/GetHostResult.h>
|
|
#include <aws/codestar-connections/model/ListConnectionsResult.h>
|
|
#include <aws/codestar-connections/model/ListHostsResult.h>
|
|
#include <aws/codestar-connections/model/ListTagsForResourceResult.h>
|
|
#include <aws/codestar-connections/model/TagResourceResult.h>
|
|
#include <aws/codestar-connections/model/UntagResourceResult.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 CodeStarconnections
|
|
{
|
|
|
|
namespace Model
|
|
{
|
|
class CreateConnectionRequest;
|
|
class CreateHostRequest;
|
|
class DeleteConnectionRequest;
|
|
class DeleteHostRequest;
|
|
class GetConnectionRequest;
|
|
class GetHostRequest;
|
|
class ListConnectionsRequest;
|
|
class ListHostsRequest;
|
|
class ListTagsForResourceRequest;
|
|
class TagResourceRequest;
|
|
class UntagResourceRequest;
|
|
|
|
typedef Aws::Utils::Outcome<CreateConnectionResult, CodeStarconnectionsError> CreateConnectionOutcome;
|
|
typedef Aws::Utils::Outcome<CreateHostResult, CodeStarconnectionsError> CreateHostOutcome;
|
|
typedef Aws::Utils::Outcome<DeleteConnectionResult, CodeStarconnectionsError> DeleteConnectionOutcome;
|
|
typedef Aws::Utils::Outcome<DeleteHostResult, CodeStarconnectionsError> DeleteHostOutcome;
|
|
typedef Aws::Utils::Outcome<GetConnectionResult, CodeStarconnectionsError> GetConnectionOutcome;
|
|
typedef Aws::Utils::Outcome<GetHostResult, CodeStarconnectionsError> GetHostOutcome;
|
|
typedef Aws::Utils::Outcome<ListConnectionsResult, CodeStarconnectionsError> ListConnectionsOutcome;
|
|
typedef Aws::Utils::Outcome<ListHostsResult, CodeStarconnectionsError> ListHostsOutcome;
|
|
typedef Aws::Utils::Outcome<ListTagsForResourceResult, CodeStarconnectionsError> ListTagsForResourceOutcome;
|
|
typedef Aws::Utils::Outcome<TagResourceResult, CodeStarconnectionsError> TagResourceOutcome;
|
|
typedef Aws::Utils::Outcome<UntagResourceResult, CodeStarconnectionsError> UntagResourceOutcome;
|
|
|
|
typedef std::future<CreateConnectionOutcome> CreateConnectionOutcomeCallable;
|
|
typedef std::future<CreateHostOutcome> CreateHostOutcomeCallable;
|
|
typedef std::future<DeleteConnectionOutcome> DeleteConnectionOutcomeCallable;
|
|
typedef std::future<DeleteHostOutcome> DeleteHostOutcomeCallable;
|
|
typedef std::future<GetConnectionOutcome> GetConnectionOutcomeCallable;
|
|
typedef std::future<GetHostOutcome> GetHostOutcomeCallable;
|
|
typedef std::future<ListConnectionsOutcome> ListConnectionsOutcomeCallable;
|
|
typedef std::future<ListHostsOutcome> ListHostsOutcomeCallable;
|
|
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
|
|
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
|
|
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
|
|
} // namespace Model
|
|
|
|
class CodeStarconnectionsClient;
|
|
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::CreateConnectionRequest&, const Model::CreateConnectionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateConnectionResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::CreateHostRequest&, const Model::CreateHostOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateHostResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::DeleteConnectionRequest&, const Model::DeleteConnectionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteConnectionResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::DeleteHostRequest&, const Model::DeleteHostOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteHostResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::GetConnectionRequest&, const Model::GetConnectionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetConnectionResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::GetHostRequest&, const Model::GetHostOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetHostResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::ListConnectionsRequest&, const Model::ListConnectionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListConnectionsResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::ListHostsRequest&, const Model::ListHostsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListHostsResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
|
|
typedef std::function<void(const CodeStarconnectionsClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
|
|
|
|
/**
|
|
* <fullname>AWS CodeStar Connections</fullname> <p>The CodeStar
|
|
* Connections feature is in preview release and is subject to change.</p>
|
|
* <p>This AWS CodeStar Connections API Reference provides
|
|
* descriptions and usage examples of the operations and data types for the AWS
|
|
* CodeStar Connections API. You can use the connections API to work with
|
|
* connections and installations.</p> <p> <i>Connections</i> are configurations
|
|
* that you use to connect AWS resources to external code repositories. Each
|
|
* connection is a resource that can be given to services such as CodePipeline to
|
|
* connect to a third-party repository such as Bitbucket. For example, you can add
|
|
* the connection in CodePipeline so that it triggers your pipeline when a code
|
|
* change is made to your third-party code repository. Each connection is named and
|
|
* associated with a unique ARN that is used to reference the connection.</p>
|
|
* <p>When you create a connection, the console initiates a third-party connection
|
|
* handshake. <i>Installations</i> are the apps that are used to conduct this
|
|
* handshake. For example, the installation for the Bitbucket provider type is the
|
|
* Bitbucket Cloud app. When you create a connection, you can choose an existing
|
|
* installation or create one.</p> <p>When you want to create a connection to an
|
|
* installed provider type such as GitHub Enterprise Server, you create a
|
|
* <i>host</i> for your connections.</p> <p>You can work with connections by
|
|
* calling:</p> <ul> <li> <p> <a>CreateConnection</a>, which creates a uniquely
|
|
* named connection that can be referenced by services such as CodePipeline.</p>
|
|
* </li> <li> <p> <a>DeleteConnection</a>, which deletes the specified
|
|
* connection.</p> </li> <li> <p> <a>GetConnection</a>, which returns information
|
|
* about the connection, including the connection status.</p> </li> <li> <p>
|
|
* <a>ListConnections</a>, which lists the connections associated with your
|
|
* account.</p> </li> </ul> <p>You can work with hosts by calling:</p> <ul> <li>
|
|
* <p> <a>CreateHost</a>, which creates a host that represents the infrastructure
|
|
* where your provider is installed.</p> </li> <li> <p> <a>DeleteHost</a>, which
|
|
* deletes the specified host.</p> </li> <li> <p> <a>GetHost</a>, which returns
|
|
* information about the host, including the setup status.</p> </li> <li> <p>
|
|
* <a>ListHosts</a>, which lists the hosts associated with your account.</p> </li>
|
|
* </ul> <p>You can work with tags in AWS CodeStar Connections by calling the
|
|
* following:</p> <ul> <li> <p> <a>ListTagsForResource</a>, which gets information
|
|
* about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeStar
|
|
* Connections.</p> </li> <li> <p> <a>TagResource</a>, which adds or updates tags
|
|
* for a resource in AWS CodeStar Connections.</p> </li> <li> <p>
|
|
* <a>UntagResource</a>, which removes tags for a resource in AWS CodeStar
|
|
* Connections.</p> </li> </ul> <p>For information about how to use AWS CodeStar
|
|
* Connections, see the <a
|
|
* href="https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html">Developer
|
|
* Tools User Guide</a>.</p>
|
|
*/
|
|
class AWS_CODESTARCONNECTIONS_API CodeStarconnectionsClient : 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.
|
|
*/
|
|
CodeStarconnectionsClient(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.
|
|
*/
|
|
CodeStarconnectionsClient(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
|
|
*/
|
|
CodeStarconnectionsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
|
|
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
|
|
|
|
virtual ~CodeStarconnectionsClient();
|
|
|
|
|
|
/**
|
|
* <p>Creates a connection that can then be given to other AWS services like
|
|
* CodePipeline so that it can access third-party code repositories. The connection
|
|
* is in pending status until the third-party connection handshake is completed
|
|
* from the console.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::CreateConnectionOutcome CreateConnection(const Model::CreateConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>Creates a connection that can then be given to other AWS services like
|
|
* CodePipeline so that it can access third-party code repositories. The connection
|
|
* is in pending status until the third-party connection handshake is completed
|
|
* from the console.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::CreateConnectionOutcomeCallable CreateConnectionCallable(const Model::CreateConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>Creates a connection that can then be given to other AWS services like
|
|
* CodePipeline so that it can access third-party code repositories. The connection
|
|
* is in pending status until the third-party connection handshake is completed
|
|
* from the console.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void CreateConnectionAsync(const Model::CreateConnectionRequest& request, const CreateConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Creates a resource that represents the infrastructure where a third-party
|
|
* provider is installed. The host is used when you create connections to an
|
|
* installed third-party provider type, such as GitHub Enterprise Server. You
|
|
* create one host for all connections to that provider.</p> <p>A host
|
|
* created through the CLI or the SDK is in `PENDING` status by default. You can
|
|
* make its status `AVAILABLE` by setting up the host in the console.</p>
|
|
* <p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHost">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::CreateHostOutcome CreateHost(const Model::CreateHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>Creates a resource that represents the infrastructure where a third-party
|
|
* provider is installed. The host is used when you create connections to an
|
|
* installed third-party provider type, such as GitHub Enterprise Server. You
|
|
* create one host for all connections to that provider.</p> <p>A host
|
|
* created through the CLI or the SDK is in `PENDING` status by default. You can
|
|
* make its status `AVAILABLE` by setting up the host in the console.</p>
|
|
* <p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::CreateHostOutcomeCallable CreateHostCallable(const Model::CreateHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>Creates a resource that represents the infrastructure where a third-party
|
|
* provider is installed. The host is used when you create connections to an
|
|
* installed third-party provider type, such as GitHub Enterprise Server. You
|
|
* create one host for all connections to that provider.</p> <p>A host
|
|
* created through the CLI or the SDK is in `PENDING` status by default. You can
|
|
* make its status `AVAILABLE` by setting up the host in the console.</p>
|
|
* <p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void CreateHostAsync(const Model::CreateHostRequest& request, const CreateHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>The connection to be deleted.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnection">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::DeleteConnectionOutcome DeleteConnection(const Model::DeleteConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>The connection to be deleted.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::DeleteConnectionOutcomeCallable DeleteConnectionCallable(const Model::DeleteConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>The connection to be deleted.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void DeleteConnectionAsync(const Model::DeleteConnectionRequest& request, const DeleteConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>The host to be deleted. Before you delete a host, all connections associated
|
|
* to the host must be deleted.</p> <p>A host cannot be deleted if it is in
|
|
* the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.</p> <p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHost">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::DeleteHostOutcome DeleteHost(const Model::DeleteHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>The host to be deleted. Before you delete a host, all connections associated
|
|
* to the host must be deleted.</p> <p>A host cannot be deleted if it is in
|
|
* the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.</p> <p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::DeleteHostOutcomeCallable DeleteHostCallable(const Model::DeleteHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>The host to be deleted. Before you delete a host, all connections associated
|
|
* to the host must be deleted.</p> <p>A host cannot be deleted if it is in
|
|
* the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.</p> <p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void DeleteHostAsync(const Model::DeleteHostRequest& request, const DeleteHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Returns the connection ARN and details such as status, owner, and provider
|
|
* type.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::GetConnectionOutcome GetConnection(const Model::GetConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>Returns the connection ARN and details such as status, owner, and provider
|
|
* type.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::GetConnectionOutcomeCallable GetConnectionCallable(const Model::GetConnectionRequest& request) const;
|
|
|
|
/**
|
|
* <p>Returns the connection ARN and details such as status, owner, and provider
|
|
* type.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void GetConnectionAsync(const Model::GetConnectionRequest& request, const GetConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Returns the host ARN and details such as status, provider type, endpoint,
|
|
* and, if applicable, the VPC configuration.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::GetHostOutcome GetHost(const Model::GetHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>Returns the host ARN and details such as status, provider type, endpoint,
|
|
* and, if applicable, the VPC configuration.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::GetHostOutcomeCallable GetHostCallable(const Model::GetHostRequest& request) const;
|
|
|
|
/**
|
|
* <p>Returns the host ARN and details such as status, provider type, endpoint,
|
|
* and, if applicable, the VPC configuration.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetHost">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void GetHostAsync(const Model::GetHostRequest& request, const GetHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Lists the connections associated with your account.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::ListConnectionsOutcome ListConnections(const Model::ListConnectionsRequest& request) const;
|
|
|
|
/**
|
|
* <p>Lists the connections associated with your account.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::ListConnectionsOutcomeCallable ListConnectionsCallable(const Model::ListConnectionsRequest& request) const;
|
|
|
|
/**
|
|
* <p>Lists the connections associated with your account.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListConnections">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void ListConnectionsAsync(const Model::ListConnectionsRequest& request, const ListConnectionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Lists the hosts associated with your account.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::ListHostsOutcome ListHosts(const Model::ListHostsRequest& request) const;
|
|
|
|
/**
|
|
* <p>Lists the hosts associated with your account.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::ListHostsOutcomeCallable ListHostsCallable(const Model::ListHostsRequest& request) const;
|
|
|
|
/**
|
|
* <p>Lists the hosts associated with your account.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListHosts">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void ListHostsAsync(const Model::ListHostsRequest& request, const ListHostsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Gets the set of key-value pairs (metadata) that are used to manage the
|
|
* resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Gets the set of key-value pairs (metadata) that are used to manage the
|
|
* resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Gets the set of key-value pairs (metadata) that are used to manage the
|
|
* resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/ListTagsForResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Adds to or modifies the tags of the given resource. Tags are metadata that
|
|
* can be used to manage a resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Adds to or modifies the tags of the given resource. Tags are metadata that
|
|
* can be used to manage a resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Adds to or modifies the tags of the given resource. Tags are metadata that
|
|
* can be used to manage a resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/TagResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
|
|
|
|
/**
|
|
* <p>Removes tags from an AWS resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Removes tags from an AWS resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* returns a future to the operation so that it can be executed in parallel to other requests.
|
|
*/
|
|
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const;
|
|
|
|
/**
|
|
* <p>Removes tags from an AWS resource.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UntagResource">AWS
|
|
* API Reference</a></p>
|
|
*
|
|
* Queues the request into a thread executor and triggers associated callback when operation has finished.
|
|
*/
|
|
virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& 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 CreateConnectionAsyncHelper(const Model::CreateConnectionRequest& request, const CreateConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void CreateHostAsyncHelper(const Model::CreateHostRequest& request, const CreateHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void DeleteConnectionAsyncHelper(const Model::DeleteConnectionRequest& request, const DeleteConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void DeleteHostAsyncHelper(const Model::DeleteHostRequest& request, const DeleteHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void GetConnectionAsyncHelper(const Model::GetConnectionRequest& request, const GetConnectionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void GetHostAsyncHelper(const Model::GetHostRequest& request, const GetHostResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void ListConnectionsAsyncHelper(const Model::ListConnectionsRequest& request, const ListConnectionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void ListHostsAsyncHelper(const Model::ListHostsRequest& request, const ListHostsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
|
|
void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& 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 CodeStarconnections
|
|
} // namespace Aws
|