Interface CodeStarConnectionsClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
This Amazon Web Services CodeStar Connections API Reference provides descriptions and usage examples of the operations and data types for the Amazon Web Services CodeStar Connections 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 CodeStar Connections by calling the following:
-
ListTagsForResource, which gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in Amazon Web Services CodeStar Connections.
-
TagResource, which adds or updates tags for a resource in Amazon Web Services CodeStar Connections.
-
UntagResource, which removes tags for a resource in Amazon Web Services CodeStar Connections.
For information about how to use Amazon Web Services CodeStar Connections, see the Developer Tools User Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that can be used to configure and create aCodeStarConnectionsClient
.static CodeStarConnectionsClient
create()
Create aCodeStarConnectionsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default 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.default 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.default CreateHostResponse
createHost
(Consumer<CreateHostRequest.Builder> createHostRequest) Creates a resource that represents the infrastructure where a third-party provider is installed.default CreateHostResponse
createHost
(CreateHostRequest createHostRequest) Creates a resource that represents the infrastructure where a third-party provider is installed.default CreateRepositoryLinkResponse
createRepositoryLink
(Consumer<CreateRepositoryLinkRequest.Builder> createRepositoryLinkRequest) Creates a link to a specified external Git repository.default CreateRepositoryLinkResponse
createRepositoryLink
(CreateRepositoryLinkRequest createRepositoryLinkRequest) Creates a link to a specified external Git repository.default 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.default 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.default DeleteConnectionResponse
deleteConnection
(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) The connection to be deleted.default DeleteConnectionResponse
deleteConnection
(DeleteConnectionRequest deleteConnectionRequest) The connection to be deleted.default DeleteHostResponse
deleteHost
(Consumer<DeleteHostRequest.Builder> deleteHostRequest) The host to be deleted.default DeleteHostResponse
deleteHost
(DeleteHostRequest deleteHostRequest) The host to be deleted.default DeleteRepositoryLinkResponse
deleteRepositoryLink
(Consumer<DeleteRepositoryLinkRequest.Builder> deleteRepositoryLinkRequest) Deletes the association between your connection and a specified external Git repository.default DeleteRepositoryLinkResponse
deleteRepositoryLink
(DeleteRepositoryLinkRequest deleteRepositoryLinkRequest) Deletes the association between your connection and a specified external Git repository.default DeleteSyncConfigurationResponse
deleteSyncConfiguration
(Consumer<DeleteSyncConfigurationRequest.Builder> deleteSyncConfigurationRequest) Deletes the sync configuration for a specified repository and connection.default DeleteSyncConfigurationResponse
deleteSyncConfiguration
(DeleteSyncConfigurationRequest deleteSyncConfigurationRequest) Deletes the sync configuration for a specified repository and connection.default GetConnectionResponse
getConnection
(Consumer<GetConnectionRequest.Builder> getConnectionRequest) Returns the connection ARN and details such as status, owner, and provider type.default GetConnectionResponse
getConnection
(GetConnectionRequest getConnectionRequest) Returns the connection ARN and details such as status, owner, and provider type.default GetHostResponse
getHost
(Consumer<GetHostRequest.Builder> getHostRequest) Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.default GetHostResponse
getHost
(GetHostRequest getHostRequest) Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.default GetRepositoryLinkResponse
getRepositoryLink
(Consumer<GetRepositoryLinkRequest.Builder> getRepositoryLinkRequest) Returns details about a repository link.default GetRepositoryLinkResponse
getRepositoryLink
(GetRepositoryLinkRequest getRepositoryLinkRequest) Returns details about a repository link.default GetRepositorySyncStatusResponse
getRepositorySyncStatus
(Consumer<GetRepositorySyncStatusRequest.Builder> getRepositorySyncStatusRequest) Returns details about the sync status for a repository.default GetRepositorySyncStatusResponse
getRepositorySyncStatus
(GetRepositorySyncStatusRequest getRepositorySyncStatusRequest) Returns details about the sync status for a repository.default GetResourceSyncStatusResponse
getResourceSyncStatus
(Consumer<GetResourceSyncStatusRequest.Builder> getResourceSyncStatusRequest) Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.default GetResourceSyncStatusResponse
getResourceSyncStatus
(GetResourceSyncStatusRequest getResourceSyncStatusRequest) Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.default GetSyncBlockerSummaryResponse
getSyncBlockerSummary
(Consumer<GetSyncBlockerSummaryRequest.Builder> getSyncBlockerSummaryRequest) Returns a list of the most recent sync blockers.default GetSyncBlockerSummaryResponse
getSyncBlockerSummary
(GetSyncBlockerSummaryRequest getSyncBlockerSummaryRequest) Returns a list of the most recent sync blockers.default GetSyncConfigurationResponse
getSyncConfiguration
(Consumer<GetSyncConfigurationRequest.Builder> getSyncConfigurationRequest) Returns details about a sync configuration, including the sync type and resource name.default GetSyncConfigurationResponse
getSyncConfiguration
(GetSyncConfigurationRequest getSyncConfigurationRequest) Returns details about a sync configuration, including the sync type and resource name.default ListConnectionsResponse
listConnections
(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) Lists the connections associated with your account.default ListConnectionsResponse
listConnections
(ListConnectionsRequest listConnectionsRequest) Lists the connections associated with your account.default ListConnectionsIterable
listConnectionsPaginator
(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.codestarconnections.model.ListConnectionsRequest)
operation.default ListConnectionsIterable
listConnectionsPaginator
(ListConnectionsRequest listConnectionsRequest) This is a variant oflistConnections(software.amazon.awssdk.services.codestarconnections.model.ListConnectionsRequest)
operation.default ListHostsResponse
listHosts
(Consumer<ListHostsRequest.Builder> listHostsRequest) Lists the hosts associated with your account.default ListHostsResponse
listHosts
(ListHostsRequest listHostsRequest) Lists the hosts associated with your account.default ListHostsIterable
listHostsPaginator
(Consumer<ListHostsRequest.Builder> listHostsRequest) This is a variant oflistHosts(software.amazon.awssdk.services.codestarconnections.model.ListHostsRequest)
operation.default ListHostsIterable
listHostsPaginator
(ListHostsRequest listHostsRequest) This is a variant oflistHosts(software.amazon.awssdk.services.codestarconnections.model.ListHostsRequest)
operation.default ListRepositoryLinksResponse
listRepositoryLinks
(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest) Lists the repository links created for connections in your account.default ListRepositoryLinksResponse
listRepositoryLinks
(ListRepositoryLinksRequest listRepositoryLinksRequest) Lists the repository links created for connections in your account.default ListRepositoryLinksIterable
listRepositoryLinksPaginator
(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest) This is a variant oflistRepositoryLinks(software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksRequest)
operation.default ListRepositoryLinksIterable
listRepositoryLinksPaginator
(ListRepositoryLinksRequest listRepositoryLinksRequest) This is a variant oflistRepositoryLinks(software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksRequest)
operation.listRepositorySyncDefinitions
(Consumer<ListRepositorySyncDefinitionsRequest.Builder> listRepositorySyncDefinitionsRequest) Lists the repository sync definitions for repository links in your account.listRepositorySyncDefinitions
(ListRepositorySyncDefinitionsRequest listRepositorySyncDefinitionsRequest) Lists the repository sync definitions for repository links in your account.default ListSyncConfigurationsResponse
listSyncConfigurations
(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest) Returns a list of sync configurations for a specified repository.default ListSyncConfigurationsResponse
listSyncConfigurations
(ListSyncConfigurationsRequest listSyncConfigurationsRequest) Returns a list of sync configurations for a specified repository.default ListSyncConfigurationsIterable
listSyncConfigurationsPaginator
(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest) This is a variant oflistSyncConfigurations(software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsRequest)
operation.default ListSyncConfigurationsIterable
listSyncConfigurationsPaginator
(ListSyncConfigurationsRequest listSyncConfigurationsRequest) This is a variant oflistSyncConfigurations(software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsRequest)
operation.default ListTagsForResourceResponse
listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Gets the set of key-value pairs (metadata) that are used to manage the resource.default ListTagsForResourceResponse
listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Gets the set of key-value pairs (metadata) that are used to manage the resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default TagResourceResponse
tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds to or modifies the tags of the given resource.default TagResourceResponse
tagResource
(TagResourceRequest tagResourceRequest) Adds to or modifies the tags of the given resource.default UntagResourceResponse
untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from an Amazon Web Services resource.default UntagResourceResponse
untagResource
(UntagResourceRequest untagResourceRequest) Removes tags from an Amazon Web Services resource.default UpdateHostResponse
updateHost
(Consumer<UpdateHostRequest.Builder> updateHostRequest) Updates a specified host with the provided configurations.default UpdateHostResponse
updateHost
(UpdateHostRequest updateHostRequest) Updates a specified host with the provided configurations.default UpdateRepositoryLinkResponse
updateRepositoryLink
(Consumer<UpdateRepositoryLinkRequest.Builder> updateRepositoryLinkRequest) Updates the association between your connection and a specified external Git repository.default UpdateRepositoryLinkResponse
updateRepositoryLink
(UpdateRepositoryLinkRequest updateRepositoryLinkRequest) Updates the association between your connection and a specified external Git repository.default UpdateSyncBlockerResponse
updateSyncBlocker
(Consumer<UpdateSyncBlockerRequest.Builder> updateSyncBlockerRequest) Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.default UpdateSyncBlockerResponse
updateSyncBlocker
(UpdateSyncBlockerRequest updateSyncBlockerRequest) Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.default UpdateSyncConfigurationResponse
updateSyncConfiguration
(Consumer<UpdateSyncConfigurationRequest.Builder> updateSyncConfigurationRequest) Updates the sync configuration for your connection and a specified external Git repository.default UpdateSyncConfigurationResponse
updateSyncConfiguration
(UpdateSyncConfigurationRequest updateSyncConfigurationRequest) Updates the sync configuration for your connection and a specified external Git repository.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
createConnection
default CreateConnectionResponse createConnection(CreateConnectionRequest createConnectionRequest) throws LimitExceededException, ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
createConnection
default CreateConnectionResponse createConnection(Consumer<CreateConnectionRequest.Builder> createConnectionRequest) throws LimitExceededException, ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaCreateConnectionRequest.builder()
- Parameters:
createConnectionRequest
- AConsumer
that will call methods onCreateConnectionRequest.Builder
to create a request.- Returns:
- Result of the CreateConnection operation returned by the service.
- See Also:
-
createHost
default CreateHostResponse createHost(CreateHostRequest createHostRequest) throws LimitExceededException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the CreateHost operation returned by the service.
- See Also:
-
createHost
default CreateHostResponse createHost(Consumer<CreateHostRequest.Builder> createHostRequest) throws LimitExceededException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaCreateHostRequest.builder()
- Parameters:
createHostRequest
- AConsumer
that will call methods onCreateHostRequest.Builder
to create a request.- Returns:
- Result of the CreateHost operation returned by the service.
- See Also:
-
createRepositoryLink
default CreateRepositoryLinkResponse createRepositoryLink(CreateRepositoryLinkRequest createRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the CreateRepositoryLink operation returned by the service.
- See Also:
-
createRepositoryLink
default CreateRepositoryLinkResponse createRepositoryLink(Consumer<CreateRepositoryLinkRequest.Builder> createRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaCreateRepositoryLinkRequest.builder()
- Parameters:
createRepositoryLinkRequest
- AConsumer
that will call methods onCreateRepositoryLinkRequest.Builder
to create a request.- Returns:
- Result of the CreateRepositoryLink operation returned by the service.
- See Also:
-
createSyncConfiguration
default CreateSyncConfigurationResponse createSyncConfiguration(CreateSyncConfigurationRequest createSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the CreateSyncConfiguration operation returned by the service.
- See Also:
-
createSyncConfiguration
default CreateSyncConfigurationResponse createSyncConfiguration(Consumer<CreateSyncConfigurationRequest.Builder> createSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaCreateSyncConfigurationRequest.builder()
- Parameters:
createSyncConfigurationRequest
- AConsumer
that will call methods onCreateSyncConfigurationRequest.Builder
to create a request.- Returns:
- Result of the CreateSyncConfiguration operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(DeleteConnectionRequest deleteConnectionRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException The connection to be deleted.
- Parameters:
deleteConnectionRequest
-- Returns:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
deleteConnection
default DeleteConnectionResponse deleteConnection(Consumer<DeleteConnectionRequest.Builder> deleteConnectionRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException The connection to be deleted.
This is a convenience which creates an instance of the
DeleteConnectionRequest.Builder
avoiding the need to create one manually viaDeleteConnectionRequest.builder()
- Parameters:
deleteConnectionRequest
- AConsumer
that will call methods onDeleteConnectionRequest.Builder
to create a request.- Returns:
- Result of the DeleteConnection operation returned by the service.
- See Also:
-
deleteHost
default DeleteHostResponse deleteHost(DeleteHostRequest deleteHostRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the DeleteHost operation returned by the service.
- See Also:
-
deleteHost
default DeleteHostResponse deleteHost(Consumer<DeleteHostRequest.Builder> deleteHostRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaDeleteHostRequest.builder()
- Parameters:
deleteHostRequest
- AConsumer
that will call methods onDeleteHostRequest.Builder
to create a request.- Returns:
- Result of the DeleteHost operation returned by the service.
- See Also:
-
deleteRepositoryLink
default DeleteRepositoryLinkResponse deleteRepositoryLink(DeleteRepositoryLinkRequest deleteRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, SyncConfigurationStillExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedProviderTypeException, AwsServiceException, SdkClientException, CodeStarConnectionsException Deletes the association between your connection and a specified external Git repository.
- Parameters:
deleteRepositoryLinkRequest
-- Returns:
- Result of the DeleteRepositoryLink operation returned by the service.
- See Also:
-
deleteRepositoryLink
default DeleteRepositoryLinkResponse deleteRepositoryLink(Consumer<DeleteRepositoryLinkRequest.Builder> deleteRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, SyncConfigurationStillExistsException, ResourceNotFoundException, ThrottlingException, UnsupportedProviderTypeException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaDeleteRepositoryLinkRequest.builder()
- Parameters:
deleteRepositoryLinkRequest
- AConsumer
that will call methods onDeleteRepositoryLinkRequest.Builder
to create a request.- Returns:
- Result of the DeleteRepositoryLink operation returned by the service.
- See Also:
-
deleteSyncConfiguration
default DeleteSyncConfigurationResponse deleteSyncConfiguration(DeleteSyncConfigurationRequest deleteSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Deletes the sync configuration for a specified repository and connection.
- Parameters:
deleteSyncConfigurationRequest
-- Returns:
- Result of the DeleteSyncConfiguration operation returned by the service.
- See Also:
-
deleteSyncConfiguration
default DeleteSyncConfigurationResponse deleteSyncConfiguration(Consumer<DeleteSyncConfigurationRequest.Builder> deleteSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, LimitExceededException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaDeleteSyncConfigurationRequest.builder()
- Parameters:
deleteSyncConfigurationRequest
- AConsumer
that will call methods onDeleteSyncConfigurationRequest.Builder
to create a request.- Returns:
- Result of the DeleteSyncConfiguration operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(GetConnectionRequest getConnectionRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException Returns the connection ARN and details such as status, owner, and provider type.
- Parameters:
getConnectionRequest
-- Returns:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getConnection
default GetConnectionResponse getConnection(Consumer<GetConnectionRequest.Builder> getConnectionRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetConnectionRequest.builder()
- Parameters:
getConnectionRequest
- AConsumer
that will call methods onGetConnectionRequest.Builder
to create a request.- Returns:
- Result of the GetConnection operation returned by the service.
- See Also:
-
getHost
default GetHostResponse getHost(GetHostRequest getHostRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException Returns the host ARN and details such as status, provider type, endpoint, and, if applicable, the VPC configuration.
- Parameters:
getHostRequest
-- Returns:
- Result of the GetHost operation returned by the service.
- See Also:
-
getHost
default GetHostResponse getHost(Consumer<GetHostRequest.Builder> getHostRequest) throws ResourceNotFoundException, ResourceUnavailableException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetHostRequest.builder()
- Parameters:
getHostRequest
- AConsumer
that will call methods onGetHostRequest.Builder
to create a request.- Returns:
- Result of the GetHost operation returned by the service.
- See Also:
-
getRepositoryLink
default GetRepositoryLinkResponse getRepositoryLink(GetRepositoryLinkRequest getRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the GetRepositoryLink operation returned by the service.
- See Also:
-
getRepositoryLink
default GetRepositoryLinkResponse getRepositoryLink(Consumer<GetRepositoryLinkRequest.Builder> getRepositoryLinkRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetRepositoryLinkRequest.builder()
- Parameters:
getRepositoryLinkRequest
- AConsumer
that will call methods onGetRepositoryLinkRequest.Builder
to create a request.- Returns:
- Result of the GetRepositoryLink operation returned by the service.
- See Also:
-
getRepositorySyncStatus
default GetRepositorySyncStatusResponse getRepositorySyncStatus(GetRepositorySyncStatusRequest getRepositorySyncStatusRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the GetRepositorySyncStatus operation returned by the service.
- See Also:
-
getRepositorySyncStatus
default GetRepositorySyncStatusResponse getRepositorySyncStatus(Consumer<GetRepositorySyncStatusRequest.Builder> getRepositorySyncStatusRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetRepositorySyncStatusRequest.builder()
- Parameters:
getRepositorySyncStatusRequest
- AConsumer
that will call methods onGetRepositorySyncStatusRequest.Builder
to create a request.- Returns:
- Result of the GetRepositorySyncStatus operation returned by the service.
- See Also:
-
getResourceSyncStatus
default GetResourceSyncStatusResponse getResourceSyncStatus(GetResourceSyncStatusRequest getResourceSyncStatusRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Returns the status of the sync with the Git repository for a specific Amazon Web Services resource.
- Parameters:
getResourceSyncStatusRequest
-- Returns:
- Result of the GetResourceSyncStatus operation returned by the service.
- See Also:
-
getResourceSyncStatus
default GetResourceSyncStatusResponse getResourceSyncStatus(Consumer<GetResourceSyncStatusRequest.Builder> getResourceSyncStatusRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetResourceSyncStatusRequest.builder()
- Parameters:
getResourceSyncStatusRequest
- AConsumer
that will call methods onGetResourceSyncStatusRequest.Builder
to create a request.- Returns:
- Result of the GetResourceSyncStatus operation returned by the service.
- See Also:
-
getSyncBlockerSummary
default GetSyncBlockerSummaryResponse getSyncBlockerSummary(GetSyncBlockerSummaryRequest getSyncBlockerSummaryRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Returns a list of the most recent sync blockers.
- Parameters:
getSyncBlockerSummaryRequest
-- Returns:
- Result of the GetSyncBlockerSummary operation returned by the service.
- See Also:
-
getSyncBlockerSummary
default GetSyncBlockerSummaryResponse getSyncBlockerSummary(Consumer<GetSyncBlockerSummaryRequest.Builder> getSyncBlockerSummaryRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetSyncBlockerSummaryRequest.builder()
- Parameters:
getSyncBlockerSummaryRequest
- AConsumer
that will call methods onGetSyncBlockerSummaryRequest.Builder
to create a request.- Returns:
- Result of the GetSyncBlockerSummary operation returned by the service.
- See Also:
-
getSyncConfiguration
default GetSyncConfigurationResponse getSyncConfiguration(GetSyncConfigurationRequest getSyncConfigurationRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the GetSyncConfiguration operation returned by the service.
- See Also:
-
getSyncConfiguration
default GetSyncConfigurationResponse getSyncConfiguration(Consumer<GetSyncConfigurationRequest.Builder> getSyncConfigurationRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaGetSyncConfigurationRequest.builder()
- Parameters:
getSyncConfigurationRequest
- AConsumer
that will call methods onGetSyncConfigurationRequest.Builder
to create a request.- Returns:
- Result of the GetSyncConfiguration operation returned by the service.
- See Also:
-
listConnections
default ListConnectionsResponse listConnections(ListConnectionsRequest listConnectionsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException Lists the connections associated with your account.
- Parameters:
listConnectionsRequest
-- Returns:
- Result of the ListConnections operation returned by the service.
- See Also:
-
listConnections
default ListConnectionsResponse listConnections(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListConnectionsRequest.builder()
- Parameters:
listConnectionsRequest
- AConsumer
that will call methods onListConnectionsRequest.Builder
to create a request.- Returns:
- Result of the ListConnections operation returned by the service.
- See Also:
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(ListConnectionsRequest listConnectionsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listConnections(software.amazon.awssdk.services.codestarconnections.model.ListConnectionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListConnectionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListConnectionsRequest)
operation.- Parameters:
listConnectionsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnectionsPaginator
default ListConnectionsIterable listConnectionsPaginator(Consumer<ListConnectionsRequest.Builder> listConnectionsRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listConnections(software.amazon.awssdk.services.codestarconnections.model.ListConnectionsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client .listConnectionsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListConnectionsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListConnectionsIterable responses = client.listConnectionsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListConnectionsRequest)
operation.
This is a convenience which creates an instance of the
ListConnectionsRequest.Builder
avoiding the need to create one manually viaListConnectionsRequest.builder()
- Parameters:
listConnectionsRequest
- AConsumer
that will call methods onListConnectionsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listHosts
default ListHostsResponse listHosts(ListHostsRequest listHostsRequest) throws AwsServiceException, SdkClientException, CodeStarConnectionsException Lists the hosts associated with your account.
- Parameters:
listHostsRequest
-- Returns:
- Result of the ListHosts operation returned by the service.
- See Also:
-
listHosts
default ListHostsResponse listHosts(Consumer<ListHostsRequest.Builder> listHostsRequest) throws AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListHostsRequest.builder()
- Parameters:
listHostsRequest
- AConsumer
that will call methods onListHostsRequest.Builder
to create a request.- Returns:
- Result of the ListHosts operation returned by the service.
- See Also:
-
listHostsPaginator
default ListHostsIterable listHostsPaginator(ListHostsRequest listHostsRequest) throws AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listHosts(software.amazon.awssdk.services.codestarconnections.model.ListHostsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client.listHostsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client .listHostsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListHostsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client.listHostsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListHostsRequest)
operation.- Parameters:
listHostsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listHostsPaginator
default ListHostsIterable listHostsPaginator(Consumer<ListHostsRequest.Builder> listHostsRequest) throws AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listHosts(software.amazon.awssdk.services.codestarconnections.model.ListHostsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client.listHostsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client .listHostsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListHostsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListHostsIterable responses = client.listHostsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListHostsRequest)
operation.
This is a convenience which creates an instance of the
ListHostsRequest.Builder
avoiding the need to create one manually viaListHostsRequest.builder()
- Parameters:
listHostsRequest
- AConsumer
that will call methods onListHostsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoryLinks
default ListRepositoryLinksResponse listRepositoryLinks(ListRepositoryLinksRequest listRepositoryLinksRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Lists the repository links created for connections in your account.
- Parameters:
listRepositoryLinksRequest
-- Returns:
- Result of the ListRepositoryLinks operation returned by the service.
- See Also:
-
listRepositoryLinks
default ListRepositoryLinksResponse listRepositoryLinks(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListRepositoryLinksRequest.builder()
- Parameters:
listRepositoryLinksRequest
- AConsumer
that will call methods onListRepositoryLinksRequest.Builder
to create a request.- Returns:
- Result of the ListRepositoryLinks operation returned by the service.
- See Also:
-
listRepositoryLinksPaginator
default ListRepositoryLinksIterable listRepositoryLinksPaginator(ListRepositoryLinksRequest listRepositoryLinksRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listRepositoryLinks(software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client.listRepositoryLinksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client .listRepositoryLinksPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client.listRepositoryLinksPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListRepositoryLinksRequest)
operation.- Parameters:
listRepositoryLinksRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositoryLinksPaginator
default ListRepositoryLinksIterable listRepositoryLinksPaginator(Consumer<ListRepositoryLinksRequest.Builder> listRepositoryLinksRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listRepositoryLinks(software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client.listRepositoryLinksPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client .listRepositoryLinksPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListRepositoryLinksResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListRepositoryLinksIterable responses = client.listRepositoryLinksPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListRepositoryLinksRequest)
operation.
This is a convenience which creates an instance of the
ListRepositoryLinksRequest.Builder
avoiding the need to create one manually viaListRepositoryLinksRequest.builder()
- Parameters:
listRepositoryLinksRequest
- AConsumer
that will call methods onListRepositoryLinksRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listRepositorySyncDefinitions
default ListRepositorySyncDefinitionsResponse listRepositorySyncDefinitions(ListRepositorySyncDefinitionsRequest listRepositorySyncDefinitionsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Lists the repository sync definitions for repository links in your account.
- Parameters:
listRepositorySyncDefinitionsRequest
-- Returns:
- Result of the ListRepositorySyncDefinitions operation returned by the service.
- See Also:
-
listRepositorySyncDefinitions
default ListRepositorySyncDefinitionsResponse listRepositorySyncDefinitions(Consumer<ListRepositorySyncDefinitionsRequest.Builder> listRepositorySyncDefinitionsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListRepositorySyncDefinitionsRequest.builder()
- Parameters:
listRepositorySyncDefinitionsRequest
- AConsumer
that will call methods onListRepositorySyncDefinitionsRequest.Builder
to create a request.- Returns:
- Result of the ListRepositorySyncDefinitions operation returned by the service.
- See Also:
-
listSyncConfigurations
default ListSyncConfigurationsResponse listSyncConfigurations(ListSyncConfigurationsRequest listSyncConfigurationsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Returns a list of sync configurations for a specified repository.
- Parameters:
listSyncConfigurationsRequest
-- Returns:
- Result of the ListSyncConfigurations operation returned by the service.
- See Also:
-
listSyncConfigurations
default ListSyncConfigurationsResponse listSyncConfigurations(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListSyncConfigurationsRequest.builder()
- Parameters:
listSyncConfigurationsRequest
- AConsumer
that will call methods onListSyncConfigurationsRequest.Builder
to create a request.- Returns:
- Result of the ListSyncConfigurations operation returned by the service.
- See Also:
-
listSyncConfigurationsPaginator
default ListSyncConfigurationsIterable listSyncConfigurationsPaginator(ListSyncConfigurationsRequest listSyncConfigurationsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listSyncConfigurations(software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client.listSyncConfigurationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client .listSyncConfigurationsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client.listSyncConfigurationsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListSyncConfigurationsRequest)
operation.- Parameters:
listSyncConfigurationsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSyncConfigurationsPaginator
default ListSyncConfigurationsIterable listSyncConfigurationsPaginator(Consumer<ListSyncConfigurationsRequest.Builder> listSyncConfigurationsRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException This is a variant of
listSyncConfigurations(software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsRequest)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Streamsoftware.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client.listSyncConfigurationsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client .listSyncConfigurationsPaginator(request); for (software.amazon.awssdk.services.codestarconnections.model.ListSyncConfigurationsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codestarconnections.paginators.ListSyncConfigurationsIterable responses = client.listSyncConfigurationsPaginator(request); responses.iterator().forEachRemaining(....);
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.codestarconnections.model.ListSyncConfigurationsRequest)
operation.
This is a convenience which creates an instance of the
ListSyncConfigurationsRequest.Builder
avoiding the need to create one manually viaListSyncConfigurationsRequest.builder()
- Parameters:
listSyncConfigurationsRequest
- AConsumer
that will call methods onListSyncConfigurationsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException Gets the set of key-value pairs (metadata) that are used to manage the resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, LimitExceededException, AwsServiceException, SdkClientException, CodeStarConnectionsException Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
- Parameters:
tagResourceRequest
-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, LimitExceededException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException Removes tags from an Amazon Web Services resource.
- Parameters:
untagResourceRequest
-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateHost
default UpdateHostResponse updateHost(UpdateHostRequest updateHostRequest) throws ConflictException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedOperationException, AwsServiceException, SdkClientException, CodeStarConnectionsException Updates a specified host with the provided configurations.
- Parameters:
updateHostRequest
-- Returns:
- Result of the UpdateHost operation returned by the service.
- See Also:
-
updateHost
default UpdateHostResponse updateHost(Consumer<UpdateHostRequest.Builder> updateHostRequest) throws ConflictException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedOperationException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaUpdateHostRequest.builder()
- Parameters:
updateHostRequest
- AConsumer
that will call methods onUpdateHostRequest.Builder
to create a request.- Returns:
- Result of the UpdateHost operation returned by the service.
- See Also:
-
updateRepositoryLink
default UpdateRepositoryLinkResponse updateRepositoryLink(UpdateRepositoryLinkRequest updateRepositoryLinkRequest) throws AccessDeniedException, ConditionalCheckFailedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, UpdateOutOfSyncException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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:
- Result of the UpdateRepositoryLink operation returned by the service.
- See Also:
-
updateRepositoryLink
default UpdateRepositoryLinkResponse updateRepositoryLink(Consumer<UpdateRepositoryLinkRequest.Builder> updateRepositoryLinkRequest) throws AccessDeniedException, ConditionalCheckFailedException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, UpdateOutOfSyncException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaUpdateRepositoryLinkRequest.builder()
- Parameters:
updateRepositoryLinkRequest
- AConsumer
that will call methods onUpdateRepositoryLinkRequest.Builder
to create a request.- Returns:
- Result of the UpdateRepositoryLink operation returned by the service.
- See Also:
-
updateSyncBlocker
default UpdateSyncBlockerResponse updateSyncBlocker(UpdateSyncBlockerRequest updateSyncBlockerRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, RetryLatestCommitFailedException, SyncBlockerDoesNotExistException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException Allows you to update the status of a sync blocker, resolving the blocker and allowing syncing to continue.
- Parameters:
updateSyncBlockerRequest
-- Returns:
- Result of the UpdateSyncBlocker operation returned by the service.
- See Also:
-
updateSyncBlocker
default UpdateSyncBlockerResponse updateSyncBlocker(Consumer<UpdateSyncBlockerRequest.Builder> updateSyncBlockerRequest) throws AccessDeniedException, InternalServerException, InvalidInputException, ResourceNotFoundException, RetryLatestCommitFailedException, SyncBlockerDoesNotExistException, ThrottlingException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaUpdateSyncBlockerRequest.builder()
- Parameters:
updateSyncBlockerRequest
- AConsumer
that will call methods onUpdateSyncBlockerRequest.Builder
to create a request.- Returns:
- Result of the UpdateSyncBlocker operation returned by the service.
- See Also:
-
updateSyncConfiguration
default UpdateSyncConfigurationResponse updateSyncConfiguration(UpdateSyncConfigurationRequest updateSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, UpdateOutOfSyncException, AwsServiceException, SdkClientException, CodeStarConnectionsException Updates the sync configuration for your connection and a specified external Git repository.
- Parameters:
updateSyncConfigurationRequest
-- Returns:
- Result of the UpdateSyncConfiguration operation returned by the service.
- See Also:
-
updateSyncConfiguration
default UpdateSyncConfigurationResponse updateSyncConfiguration(Consumer<UpdateSyncConfigurationRequest.Builder> updateSyncConfigurationRequest) throws AccessDeniedException, ConcurrentModificationException, InternalServerException, InvalidInputException, ResourceNotFoundException, ThrottlingException, UpdateOutOfSyncException, AwsServiceException, SdkClientException, CodeStarConnectionsException 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 viaUpdateSyncConfigurationRequest.builder()
- Parameters:
updateSyncConfigurationRequest
- AConsumer
that will call methods onUpdateSyncConfigurationRequest.Builder
to create a request.- Returns:
- Result of the UpdateSyncConfiguration operation returned by the service.
- See Also:
-
create
Create aCodeStarConnectionsClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCodeStarConnectionsClient
. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-