Interface CodeConnectionsAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface CodeConnectionsAsyncClient extends AwsClient
Service client for accessing AWS CodeConnections asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call. AWS CodeConnections

This Amazon Web Services CodeConnections API Reference provides descriptions and usage examples of the operations and data types for the Amazon Web Services CodeConnections API. You can use the connections API to work with connections and installations.

Connections are configurations that you use to connect Amazon Web Services 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.

When you create a connection, the console initiates a third-party connection handshake. Installations are the apps that are used to conduct this handshake. For example, the installation for the Bitbucket provider type is the Bitbucket app. When you create a connection, you can choose an existing installation or create one.

When you want to create a connection to an installed provider type such as GitHub Enterprise Server, you create a host for your connections.

You can work with connections by calling:

  • CreateConnection, which creates a uniquely named connection that can be referenced by services such as CodePipeline.

  • DeleteConnection, which deletes the specified connection.

  • GetConnection, which returns information about the connection, including the connection status.

  • ListConnections, which lists the connections associated with your account.

You can work with hosts by calling:

  • CreateHost, which creates a host that represents the infrastructure where your provider is installed.

  • DeleteHost, which deletes the specified host.

  • GetHost, which returns information about the host, including the setup status.

  • ListHosts, which lists the hosts associated with your account.

You can work with tags in Amazon Web Services CodeConnections by calling the following:

  • ListTagsForResource, which gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Amazon Web Services CodeConnections.

  • TagResource, which adds or updates tags for a resource in Amazon Web Services CodeConnections.

  • UntagResource, which removes tags for a resource in Amazon Web Services CodeConnections.

For information about how to use Amazon Web Services CodeConnections, see the Developer Tools User Guide.

  • Field Details

  • Method Details

    • createConnection

      default CompletableFuture<CreateConnectionResponse> createConnection(CreateConnectionRequest createConnectionRequest)

      Creates a connection that can then be given to other Amazon Web Services 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.

      Parameters:
      createConnectionRequest -
      Returns:
      A Java Future containing the result of the CreateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createConnection

      default CompletableFuture<CreateConnectionResponse> createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest)

      Creates a connection that can then be given to other Amazon Web Services 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.


      This is a convenience which creates an instance of the CreateConnectionRequest.Builder avoiding the need to create one manually via CreateConnectionRequest.builder()

      Parameters:
      createConnectionRequest - A Consumer that will call methods on CreateConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createHost

      default CompletableFuture<CreateHostResponse> createHost(CreateHostRequest createHostRequest)

      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.

      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.

      Parameters:
      createHostRequest -
      Returns:
      A Java Future containing the result of the CreateHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • LimitExceededException Exceeded the maximum limit for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createHost

      default CompletableFuture<CreateHostResponse> createHost(Consumer<CreateHostRequest.Builder> createHostRequest)

      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.

      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.


      This is a convenience which creates an instance of the CreateHostRequest.Builder avoiding the need to create one manually via CreateHostRequest.builder()

      Parameters:
      createHostRequest - A Consumer that will call methods on CreateHostRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • LimitExceededException Exceeded the maximum limit for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRepositoryLink

      default CompletableFuture<CreateRepositoryLinkResponse> createRepositoryLink(CreateRepositoryLinkRequest createRepositoryLinkRequest)

      Creates a link to a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.

      Parameters:
      createRepositoryLinkRequest -
      Returns:
      A Java Future containing the result of the CreateRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceAlreadyExistsException Unable to create resource. Resource already exists.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createRepositoryLink

      default CompletableFuture<CreateRepositoryLinkResponse> createRepositoryLink(Consumer<CreateRepositoryLinkRequest.Builder> createRepositoryLinkRequest)

      Creates a link to a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.


      This is a convenience which creates an instance of the CreateRepositoryLinkRequest.Builder avoiding the need to create one manually via CreateRepositoryLinkRequest.builder()

      Parameters:
      createRepositoryLinkRequest - A Consumer that will call methods on CreateRepositoryLinkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceAlreadyExistsException Unable to create resource. Resource already exists.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSyncConfiguration

      default CompletableFuture<CreateSyncConfigurationResponse> createSyncConfiguration(CreateSyncConfigurationRequest createSyncConfigurationRequest)

      Creates a sync configuration which allows Amazon Web Services to sync content from a Git repository to update a specified Amazon Web Services resource. Parameters for the sync configuration are determined by the sync type.

      Parameters:
      createSyncConfigurationRequest -
      Returns:
      A Java Future containing the result of the CreateSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceAlreadyExistsException Unable to create resource. Resource already exists.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSyncConfiguration

      default CompletableFuture<CreateSyncConfigurationResponse> createSyncConfiguration(Consumer<CreateSyncConfigurationRequest.Builder> createSyncConfigurationRequest)

      Creates a sync configuration which allows Amazon Web Services to sync content from a Git repository to update a specified Amazon Web Services resource. Parameters for the sync configuration are determined by the sync type.


      This is a convenience which creates an instance of the CreateSyncConfigurationRequest.Builder avoiding the need to create one manually via CreateSyncConfigurationRequest.builder()

      Parameters:
      createSyncConfigurationRequest - A Consumer that will call methods on CreateSyncConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ResourceAlreadyExistsException Unable to create resource. Resource already exists.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteConnection

      default CompletableFuture<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest deleteConnectionRequest)

      The connection to be deleted.

      Parameters:
      deleteConnectionRequest -
      Returns:
      A Java Future containing the result of the DeleteConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteConnection

      default CompletableFuture<DeleteConnectionResponse> deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest)

      The connection to be deleted.


      This is a convenience which creates an instance of the DeleteConnectionRequest.Builder avoiding the need to create one manually via DeleteConnectionRequest.builder()

      Parameters:
      deleteConnectionRequest - A Consumer that will call methods on DeleteConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteHost

      default CompletableFuture<DeleteHostResponse> deleteHost(DeleteHostRequest deleteHostRequest)

      The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.

      A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.

      Parameters:
      deleteHostRequest -
      Returns:
      A Java Future containing the result of the DeleteHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteHost

      default CompletableFuture<DeleteHostResponse> deleteHost(Consumer<DeleteHostRequest.Builder> deleteHostRequest)

      The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.

      A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.


      This is a convenience which creates an instance of the DeleteHostRequest.Builder avoiding the need to create one manually via DeleteHostRequest.builder()

      Parameters:
      deleteHostRequest - A Consumer that will call methods on DeleteHostRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRepositoryLink

      default CompletableFuture<DeleteRepositoryLinkResponse> deleteRepositoryLink(DeleteRepositoryLinkRequest deleteRepositoryLinkRequest)

      Deletes the association between your connection and a specified external Git repository.

      Parameters:
      deleteRepositoryLinkRequest -
      Returns:
      A Java Future containing the result of the DeleteRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • SyncConfigurationStillExistsException Unable to continue. The sync blocker still exists.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UnsupportedProviderTypeException The specified provider type is not supported for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteRepositoryLink

      default CompletableFuture<DeleteRepositoryLinkResponse> deleteRepositoryLink(Consumer<DeleteRepositoryLinkRequest.Builder> deleteRepositoryLinkRequest)

      Deletes the association between your connection and a specified external Git repository.


      This is a convenience which creates an instance of the DeleteRepositoryLinkRequest.Builder avoiding the need to create one manually via DeleteRepositoryLinkRequest.builder()

      Parameters:
      deleteRepositoryLinkRequest - A Consumer that will call methods on DeleteRepositoryLinkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • SyncConfigurationStillExistsException Unable to continue. The sync blocker still exists.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UnsupportedProviderTypeException The specified provider type is not supported for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSyncConfiguration

      default CompletableFuture<DeleteSyncConfigurationResponse> deleteSyncConfiguration(DeleteSyncConfigurationRequest deleteSyncConfigurationRequest)

      Deletes the sync configuration for a specified repository and connection.

      Parameters:
      deleteSyncConfigurationRequest -
      Returns:
      A Java Future containing the result of the DeleteSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSyncConfiguration

      default CompletableFuture<DeleteSyncConfigurationResponse> deleteSyncConfiguration(Consumer<DeleteSyncConfigurationRequest.Builder> deleteSyncConfigurationRequest)

      Deletes the sync configuration for a specified repository and connection.


      This is a convenience which creates an instance of the DeleteSyncConfigurationRequest.Builder avoiding the need to create one manually via DeleteSyncConfigurationRequest.builder()

      Parameters:
      deleteSyncConfigurationRequest - A Consumer that will call methods on DeleteSyncConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • LimitExceededException Exceeded the maximum limit for connections.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConnection

      default CompletableFuture<GetConnectionResponse> getConnection(GetConnectionRequest getConnectionRequest)

      Returns the connection ARN and details such as status, owner, and provider type.

      Parameters:
      getConnectionRequest -
      Returns:
      A Java Future containing the result of the GetConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getConnection

      default CompletableFuture<GetConnectionResponse> getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest)

      Returns the connection ARN and details such as status, owner, and provider type.


      This is a convenience which creates an instance of the GetConnectionRequest.Builder avoiding the need to create one manually via GetConnectionRequest.builder()

      Parameters:
      getConnectionRequest - A Consumer that will call methods on GetConnectionRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetConnection operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getHost

      default CompletableFuture<GetHostResponse> getHost(GetHostRequest getHostRequest)

      Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.

      Parameters:
      getHostRequest -
      Returns:
      A Java Future containing the result of the GetHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getHost

      Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.


      This is a convenience which creates an instance of the GetHostRequest.Builder avoiding the need to create one manually via GetHostRequest.builder()

      Parameters:
      getHostRequest - A Consumer that will call methods on GetHostRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRepositoryLink

      default CompletableFuture<GetRepositoryLinkResponse> getRepositoryLink(GetRepositoryLinkRequest getRepositoryLinkRequest)

      Returns details about a repository link. A repository link allows Git sync to monitor and sync changes from files in a specified Git repository.

      Parameters:
      getRepositoryLinkRequest -
      Returns:
      A Java Future containing the result of the GetRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRepositoryLink

      default CompletableFuture<GetRepositoryLinkResponse> getRepositoryLink(Consumer<GetRepositoryLinkRequest.Builder> getRepositoryLinkRequest)

      Returns details about a repository link. A repository link allows Git sync to monitor and sync changes from files in a specified Git repository.


      This is a convenience which creates an instance of the GetRepositoryLinkRequest.Builder avoiding the need to create one manually via GetRepositoryLinkRequest.builder()

      Parameters:
      getRepositoryLinkRequest - A Consumer that will call methods on GetRepositoryLinkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRepositorySyncStatus

      default CompletableFuture<GetRepositorySyncStatusResponse> getRepositorySyncStatus(GetRepositorySyncStatusRequest getRepositorySyncStatusRequest)

      Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.

      Parameters:
      getRepositorySyncStatusRequest -
      Returns:
      A Java Future containing the result of the GetRepositorySyncStatus operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRepositorySyncStatus

      default CompletableFuture<GetRepositorySyncStatusResponse> getRepositorySyncStatus(Consumer<GetRepositorySyncStatusRequest.Builder> getRepositorySyncStatusRequest)

      Returns details about the sync status for a repository. A repository sync uses Git sync to push and pull changes from your remote repository.


      This is a convenience which creates an instance of the GetRepositorySyncStatusRequest.Builder avoiding the need to create one manually via GetRepositorySyncStatusRequest.builder()

      Parameters:
      getRepositorySyncStatusRequest - A Consumer that will call methods on GetRepositorySyncStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetRepositorySyncStatus operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getResourceSyncStatus

      default CompletableFuture<GetResourceSyncStatusResponse> getResourceSyncStatus(GetResourceSyncStatusRequest getResourceSyncStatusRequest)

      Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.

      Parameters:
      getResourceSyncStatusRequest -
      Returns:
      A Java Future containing the result of the GetResourceSyncStatus operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getResourceSyncStatus

      default CompletableFuture<GetResourceSyncStatusResponse> getResourceSyncStatus(Consumer<GetResourceSyncStatusRequest.Builder> getResourceSyncStatusRequest)

      Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.


      This is a convenience which creates an instance of the GetResourceSyncStatusRequest.Builder avoiding the need to create one manually via GetResourceSyncStatusRequest.builder()

      Parameters:
      getResourceSyncStatusRequest - A Consumer that will call methods on GetResourceSyncStatusRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetResourceSyncStatus operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSyncBlockerSummary

      default CompletableFuture<GetSyncBlockerSummaryResponse> getSyncBlockerSummary(GetSyncBlockerSummaryRequest getSyncBlockerSummaryRequest)

      Returns a list of the most recent sync blockers.

      Parameters:
      getSyncBlockerSummaryRequest -
      Returns:
      A Java Future containing the result of the GetSyncBlockerSummary operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSyncBlockerSummary

      default CompletableFuture<GetSyncBlockerSummaryResponse> getSyncBlockerSummary(Consumer<GetSyncBlockerSummaryRequest.Builder> getSyncBlockerSummaryRequest)

      Returns a list of the most recent sync blockers.


      This is a convenience which creates an instance of the GetSyncBlockerSummaryRequest.Builder avoiding the need to create one manually via GetSyncBlockerSummaryRequest.builder()

      Parameters:
      getSyncBlockerSummaryRequest - A Consumer that will call methods on GetSyncBlockerSummaryRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetSyncBlockerSummary operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSyncConfiguration

      default CompletableFuture<GetSyncConfigurationResponse> getSyncConfiguration(GetSyncConfigurationRequest getSyncConfigurationRequest)

      Returns details about a sync configuration, including the sync type and resource name. A sync configuration allows the configuration to sync (push and pull) changes from the remote repository for a specified branch in a Git repository.

      Parameters:
      getSyncConfigurationRequest -
      Returns:
      A Java Future containing the result of the GetSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getSyncConfiguration

      default CompletableFuture<GetSyncConfigurationResponse> getSyncConfiguration(Consumer<GetSyncConfigurationRequest.Builder> getSyncConfigurationRequest)

      Returns details about a sync configuration, including the sync type and resource name. A sync configuration allows the configuration to sync (push and pull) changes from the remote repository for a specified branch in a Git repository.


      This is a convenience which creates an instance of the GetSyncConfigurationRequest.Builder avoiding the need to create one manually via GetSyncConfigurationRequest.builder()

      Parameters:
      getSyncConfigurationRequest - A Consumer that will call methods on GetSyncConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnections

      default CompletableFuture<ListConnectionsResponse> listConnections(ListConnectionsRequest listConnectionsRequest)

      Lists the connections associated with your account.

      Parameters:
      listConnectionsRequest -
      Returns:
      A Java Future containing the result of the ListConnections operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnections

      default CompletableFuture<ListConnectionsResponse> listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest)

      Lists the connections associated with your account.


      This is a convenience which creates an instance of the ListConnectionsRequest.Builder avoiding the need to create one manually via ListConnectionsRequest.builder()

      Parameters:
      listConnectionsRequest - A Consumer that will call methods on ListConnectionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListConnections operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnectionsPaginator

      default ListConnectionsPublisher listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest)

      This is a variant of listConnections(software.amazon.awssdk.services.codeconnections.model.ListConnectionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListConnectionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListConnectionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listConnections(software.amazon.awssdk.services.codeconnections.model.ListConnectionsRequest) operation.

      Parameters:
      listConnectionsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listConnectionsPaginator

      default ListConnectionsPublisher listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest)

      This is a variant of listConnections(software.amazon.awssdk.services.codeconnections.model.ListConnectionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListConnectionsPublisher publisher = client.listConnectionsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListConnectionsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListConnectionsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listConnections(software.amazon.awssdk.services.codeconnections.model.ListConnectionsRequest) operation.


      This is a convenience which creates an instance of the ListConnectionsRequest.Builder avoiding the need to create one manually via ListConnectionsRequest.builder()

      Parameters:
      listConnectionsRequest - A Consumer that will call methods on ListConnectionsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listHosts

      default CompletableFuture<ListHostsResponse> listHosts(ListHostsRequest listHostsRequest)

      Lists the hosts associated with your account.

      Parameters:
      listHostsRequest -
      Returns:
      A Java Future containing the result of the ListHosts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listHosts

      default CompletableFuture<ListHostsResponse> listHosts(Consumer<ListHostsRequest.Builder> listHostsRequest)

      Lists the hosts associated with your account.


      This is a convenience which creates an instance of the ListHostsRequest.Builder avoiding the need to create one manually via ListHostsRequest.builder()

      Parameters:
      listHostsRequest - A Consumer that will call methods on ListHostsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListHosts operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listHostsPaginator

      default ListHostsPublisher listHostsPaginator(ListHostsRequest listHostsRequest)

      This is a variant of listHosts(software.amazon.awssdk.services.codeconnections.model.ListHostsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListHostsPublisher publisher = client.listHostsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListHostsPublisher publisher = client.listHostsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListHostsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListHostsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listHosts(software.amazon.awssdk.services.codeconnections.model.ListHostsRequest) operation.

      Parameters:
      listHostsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listHostsPaginator

      default ListHostsPublisher listHostsPaginator(Consumer<ListHostsRequest.Builder> listHostsRequest)

      This is a variant of listHosts(software.amazon.awssdk.services.codeconnections.model.ListHostsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListHostsPublisher publisher = client.listHostsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListHostsPublisher publisher = client.listHostsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListHostsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListHostsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listHosts(software.amazon.awssdk.services.codeconnections.model.ListHostsRequest) operation.


      This is a convenience which creates an instance of the ListHostsRequest.Builder avoiding the need to create one manually via ListHostsRequest.builder()

      Parameters:
      listHostsRequest - A Consumer that will call methods on ListHostsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositoryLinks

      default CompletableFuture<ListRepositoryLinksResponse> listRepositoryLinks(ListRepositoryLinksRequest listRepositoryLinksRequest)

      Lists the repository links created for connections in your account.

      Parameters:
      listRepositoryLinksRequest -
      Returns:
      A Java Future containing the result of the ListRepositoryLinks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositoryLinks

      default CompletableFuture<ListRepositoryLinksResponse> listRepositoryLinks(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest)

      Lists the repository links created for connections in your account.


      This is a convenience which creates an instance of the ListRepositoryLinksRequest.Builder avoiding the need to create one manually via ListRepositoryLinksRequest.builder()

      Parameters:
      listRepositoryLinksRequest - A Consumer that will call methods on ListRepositoryLinksRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRepositoryLinks operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositoryLinksPaginator

      default ListRepositoryLinksPublisher listRepositoryLinksPaginator(ListRepositoryLinksRequest listRepositoryLinksRequest)

      This is a variant of listRepositoryLinks(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListRepositoryLinksPublisher publisher = client.listRepositoryLinksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListRepositoryLinksPublisher publisher = client.listRepositoryLinksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listRepositoryLinks(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksRequest) operation.

      Parameters:
      listRepositoryLinksRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositoryLinksPaginator

      default ListRepositoryLinksPublisher listRepositoryLinksPaginator(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest)

      This is a variant of listRepositoryLinks(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListRepositoryLinksPublisher publisher = client.listRepositoryLinksPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListRepositoryLinksPublisher publisher = client.listRepositoryLinksPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listRepositoryLinks(software.amazon.awssdk.services.codeconnections.model.ListRepositoryLinksRequest) operation.


      This is a convenience which creates an instance of the ListRepositoryLinksRequest.Builder avoiding the need to create one manually via ListRepositoryLinksRequest.builder()

      Parameters:
      listRepositoryLinksRequest - A Consumer that will call methods on ListRepositoryLinksRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositorySyncDefinitions

      default CompletableFuture<ListRepositorySyncDefinitionsResponse> listRepositorySyncDefinitions(ListRepositorySyncDefinitionsRequest listRepositorySyncDefinitionsRequest)

      Lists the repository sync definitions for repository links in your account.

      Parameters:
      listRepositorySyncDefinitionsRequest -
      Returns:
      A Java Future containing the result of the ListRepositorySyncDefinitions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listRepositorySyncDefinitions

      default CompletableFuture<ListRepositorySyncDefinitionsResponse> listRepositorySyncDefinitions(Consumer<ListRepositorySyncDefinitionsRequest.Builder> listRepositorySyncDefinitionsRequest)

      Lists the repository sync definitions for repository links in your account.


      This is a convenience which creates an instance of the ListRepositorySyncDefinitionsRequest.Builder avoiding the need to create one manually via ListRepositorySyncDefinitionsRequest.builder()

      Parameters:
      listRepositorySyncDefinitionsRequest - A Consumer that will call methods on ListRepositorySyncDefinitionsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListRepositorySyncDefinitions operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSyncConfigurations

      default CompletableFuture<ListSyncConfigurationsResponse> listSyncConfigurations(ListSyncConfigurationsRequest listSyncConfigurationsRequest)

      Returns a list of sync configurations for a specified repository.

      Parameters:
      listSyncConfigurationsRequest -
      Returns:
      A Java Future containing the result of the ListSyncConfigurations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSyncConfigurations

      default CompletableFuture<ListSyncConfigurationsResponse> listSyncConfigurations(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest)

      Returns a list of sync configurations for a specified repository.


      This is a convenience which creates an instance of the ListSyncConfigurationsRequest.Builder avoiding the need to create one manually via ListSyncConfigurationsRequest.builder()

      Parameters:
      listSyncConfigurationsRequest - A Consumer that will call methods on ListSyncConfigurationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListSyncConfigurations operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSyncConfigurationsPaginator

      default ListSyncConfigurationsPublisher listSyncConfigurationsPaginator(ListSyncConfigurationsRequest listSyncConfigurationsRequest)

      This is a variant of listSyncConfigurations(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListSyncConfigurationsPublisher publisher = client.listSyncConfigurationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListSyncConfigurationsPublisher publisher = client.listSyncConfigurationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listSyncConfigurations(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsRequest) operation.

      Parameters:
      listSyncConfigurationsRequest -
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSyncConfigurationsPaginator

      default ListSyncConfigurationsPublisher listSyncConfigurationsPaginator(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest)

      This is a variant of listSyncConfigurations(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

      When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codeconnections.paginators.ListSyncConfigurationsPublisher publisher = client.listSyncConfigurationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codeconnections.paginators.ListSyncConfigurationsPublisher publisher = client.listSyncConfigurationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listSyncConfigurations(software.amazon.awssdk.services.codeconnections.model.ListSyncConfigurationsRequest) operation.


      This is a convenience which creates an instance of the ListSyncConfigurationsRequest.Builder avoiding the need to create one manually via ListSyncConfigurationsRequest.builder()

      Parameters:
      listSyncConfigurationsRequest - A Consumer that will call methods on ListSyncConfigurationsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Gets the set of key-value pairs (metadata) that are used to manage the resource.

      Parameters:
      listTagsForResourceRequest -
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      Gets the set of key-value pairs (metadata) that are used to manage the resource.


      This is a convenience which creates an instance of the ListTagsForResourceRequest.Builder avoiding the need to create one manually via ListTagsForResourceRequest.builder()

      Parameters:
      listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListTagsForResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.

      Parameters:
      tagResourceRequest -
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • LimitExceededException Exceeded the maximum limit for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.


      This is a convenience which creates an instance of the TagResourceRequest.Builder avoiding the need to create one manually via TagResourceRequest.builder()

      Parameters:
      tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the TagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • LimitExceededException Exceeded the maximum limit for connections.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes tags from an Amazon Web Services resource.

      Parameters:
      untagResourceRequest -
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Removes tags from an Amazon Web Services resource.


      This is a convenience which creates an instance of the UntagResourceRequest.Builder avoiding the need to create one manually via UntagResourceRequest.builder()

      Parameters:
      untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UntagResource operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateHost

      default CompletableFuture<UpdateHostResponse> updateHost(UpdateHostRequest updateHostRequest)

      Updates a specified host with the provided configurations.

      Parameters:
      updateHostRequest -
      Returns:
      A Java Future containing the result of the UpdateHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException Two conflicting operations have been made on the same resource.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • UnsupportedOperationException The operation is not supported. Check the connection status and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateHost

      default CompletableFuture<UpdateHostResponse> updateHost(Consumer<UpdateHostRequest.Builder> updateHostRequest)

      Updates a specified host with the provided configurations.


      This is a convenience which creates an instance of the UpdateHostRequest.Builder avoiding the need to create one manually via UpdateHostRequest.builder()

      Parameters:
      updateHostRequest - A Consumer that will call methods on UpdateHostRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateHost operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ConflictException Two conflicting operations have been made on the same resource.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ResourceUnavailableException Resource not found. Verify the ARN for the host resource and try again.
      • UnsupportedOperationException The operation is not supported. Check the connection status and try again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateRepositoryLink

      default CompletableFuture<UpdateRepositoryLinkResponse> updateRepositoryLink(UpdateRepositoryLinkRequest updateRepositoryLinkRequest)

      Updates the association between your connection and a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.

      Parameters:
      updateRepositoryLinkRequest -
      Returns:
      A Java Future containing the result of the UpdateRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConditionalCheckFailedException The conditional check failed. Try again later.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UpdateOutOfSyncException The update is out of sync. Try syncing again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateRepositoryLink

      default CompletableFuture<UpdateRepositoryLinkResponse> updateRepositoryLink(Consumer<UpdateRepositoryLinkRequest.Builder> updateRepositoryLinkRequest)

      Updates the association between your connection and a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.


      This is a convenience which creates an instance of the UpdateRepositoryLinkRequest.Builder avoiding the need to create one manually via UpdateRepositoryLinkRequest.builder()

      Parameters:
      updateRepositoryLinkRequest - A Consumer that will call methods on UpdateRepositoryLinkRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateRepositoryLink operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConditionalCheckFailedException The conditional check failed. Try again later.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UpdateOutOfSyncException The update is out of sync. Try syncing again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateSyncBlocker

      default CompletableFuture<UpdateSyncBlockerResponse> updateSyncBlocker(UpdateSyncBlockerRequest updateSyncBlockerRequest)

      Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.

      Parameters:
      updateSyncBlockerRequest -
      Returns:
      A Java Future containing the result of the UpdateSyncBlocker operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • RetryLatestCommitFailedException Retrying the latest commit failed. Try again later.
      • SyncBlockerDoesNotExistException Unable to continue. The sync blocker does not exist.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateSyncBlocker

      default CompletableFuture<UpdateSyncBlockerResponse> updateSyncBlocker(Consumer<UpdateSyncBlockerRequest.Builder> updateSyncBlockerRequest)

      Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.


      This is a convenience which creates an instance of the UpdateSyncBlockerRequest.Builder avoiding the need to create one manually via UpdateSyncBlockerRequest.builder()

      Parameters:
      updateSyncBlockerRequest - A Consumer that will call methods on UpdateSyncBlockerRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateSyncBlocker operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • RetryLatestCommitFailedException Retrying the latest commit failed. Try again later.
      • SyncBlockerDoesNotExistException Unable to continue. The sync blocker does not exist.
      • ThrottlingException The request was denied due to request throttling.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateSyncConfiguration

      default CompletableFuture<UpdateSyncConfigurationResponse> updateSyncConfiguration(UpdateSyncConfigurationRequest updateSyncConfigurationRequest)

      Updates the sync configuration for your connection and a specified external Git repository.

      Parameters:
      updateSyncConfigurationRequest -
      Returns:
      A Java Future containing the result of the UpdateSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UpdateOutOfSyncException The update is out of sync. Try syncing again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateSyncConfiguration

      default CompletableFuture<UpdateSyncConfigurationResponse> updateSyncConfiguration(Consumer<UpdateSyncConfigurationRequest.Builder> updateSyncConfigurationRequest)

      Updates the sync configuration for your connection and a specified external Git repository.


      This is a convenience which creates an instance of the UpdateSyncConfigurationRequest.Builder avoiding the need to create one manually via UpdateSyncConfigurationRequest.builder()

      Parameters:
      updateSyncConfigurationRequest - A Consumer that will call methods on UpdateSyncConfigurationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateSyncConfiguration operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • AccessDeniedException You do not have sufficient access to perform this action.
      • ConcurrentModificationException Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.
      • InternalServerException Received an internal server exception. Try again later.
      • InvalidInputException The input is not valid. Verify that the action is typed correctly.
      • ResourceNotFoundException Resource not found. Verify the connection resource ARN and try again.
      • ThrottlingException The request was denied due to request throttling.
      • UpdateOutOfSyncException The update is out of sync. Try syncing again.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeConnectionsException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default CodeConnectionsServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static CodeConnectionsAsyncClient create()
      Create a CodeConnectionsAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      Create a builder that can be used to configure and create a CodeConnectionsAsyncClient.