@ThreadSafe public class AWSCodeBuildClient extends AmazonWebServiceClient implements AWSCodeBuild
AWS CodeBuild is a fully-managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools such as Apach Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests, and you pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.
AWS CodeBuild supports these operations:
BatchGetProjects
: Gets information about one or more build projects. A build project defines how
AWS CodeBuild will run a build. This includes information such as where to get the source code to build, the build
environment to use, the build commands to run, and where to store the build output. A build environment
represents a combination of operating system, programming language runtime, and tools that AWS CodeBuild will use to
run a build. Also, you can add tags to build projects to help manage your resources and costs.
CreateProject
: Creates a build project.
DeleteProject
: Deletes a build project.
ListProjects
: Gets a list of build project names, with each build project name representing a single
build project.
UpdateProject
: Changes the settings of an existing build project.
BatchGetBuilds
: Gets information about one or more builds.
ListBuilds
: Gets a list of build IDs, with each build ID representing a single build.
ListBuildsForProject
: Gets a list of build IDs for the specified build project, with each build ID
representing a single build.
StartBuild
: Starts running a build.
StopBuild
: Attempts to stop running a build.
ListCuratedEnvironmentImages
: Gets information about Docker images that are managed by AWS CodeBuild.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSCodeBuildClient()
Constructs a new client to invoke service methods on AWS CodeBuild.
|
AWSCodeBuildClient(AWSCredentials awsCredentials)
Constructs a new client to invoke service methods on AWS CodeBuild using the specified AWS account credentials.
|
AWSCodeBuildClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS CodeBuild using the specified AWS account credentials
and client configuration options.
|
AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new client to invoke service methods on AWS CodeBuild using the specified AWS account credentials
provider.
|
AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS CodeBuild using the specified AWS account credentials
provider and client configuration options.
|
AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
RequestMetricCollector requestMetricCollector)
Constructs a new client to invoke service methods on AWS CodeBuild using the specified AWS account credentials
provider, client configuration options, and request metric collector.
|
AWSCodeBuildClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service methods on AWS CodeBuild.
|
Modifier and Type | Method and Description |
---|---|
BatchGetBuildsResult |
batchGetBuilds(BatchGetBuildsRequest batchGetBuildsRequest)
Gets information about one or more builds.
|
BatchGetProjectsResult |
batchGetProjects(BatchGetProjectsRequest batchGetProjectsRequest)
Gets information about one or more build projects.
|
CreateProjectResult |
createProject(CreateProjectRequest createProjectRequest)
Creates a build project.
|
DeleteProjectResult |
deleteProject(DeleteProjectRequest deleteProjectRequest)
Deletes a build project.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListBuildsResult |
listBuilds(ListBuildsRequest listBuildsRequest)
Gets a list of build IDs, with each build ID representing a single build.
|
ListBuildsForProjectResult |
listBuildsForProject(ListBuildsForProjectRequest listBuildsForProjectRequest)
Gets a list of build IDs for the specified build project, with each build ID representing a single build.
|
ListCuratedEnvironmentImagesResult |
listCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest)
Gets information about Docker images that are managed by AWS CodeBuild.
|
ListProjectsResult |
listProjects(ListProjectsRequest listProjectsRequest)
Gets a list of build project names, with each build project name representing a single build project.
|
StartBuildResult |
startBuild(StartBuildRequest startBuildRequest)
Starts running a build.
|
StopBuildResult |
stopBuild(StopBuildRequest stopBuildRequest)
Attempts to stop running a build.
|
UpdateProjectResult |
updateProject(UpdateProjectRequest updateProjectRequest)
Changes the settings of an existing build project.
|
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setEndpoint, setRegion, shutdown
public AWSCodeBuildClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChain
public AWSCodeBuildClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration
- The client configuration options controlling how this client connects to AWS CodeBuild (ex: proxy
settings, retry counts, etc.).DefaultAWSCredentialsProviderChain
public AWSCodeBuildClient(AWSCredentials awsCredentials)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.public AWSCodeBuildClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS CodeBuild (ex: proxy
settings, retry counts, etc.).public AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.public AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS CodeBuild (ex: proxy
settings, retry counts, etc.).public AWSCodeBuildClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, RequestMetricCollector requestMetricCollector)
All service calls made using this new client object are blocking, and will not return until the service call completes.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- The client configuration options controlling how this client connects to AWS CodeBuild (ex: proxy
settings, retry counts, etc.).requestMetricCollector
- optional request metric collectorpublic BatchGetBuildsResult batchGetBuilds(BatchGetBuildsRequest batchGetBuildsRequest)
Gets information about one or more builds.
batchGetBuilds
in interface AWSCodeBuild
batchGetBuildsRequest
- InvalidInputException
- The input value that was provided is not valid.public BatchGetProjectsResult batchGetProjects(BatchGetProjectsRequest batchGetProjectsRequest)
Gets information about one or more build projects.
batchGetProjects
in interface AWSCodeBuild
batchGetProjectsRequest
- InvalidInputException
- The input value that was provided is not valid.public CreateProjectResult createProject(CreateProjectRequest createProjectRequest)
Creates a build project.
createProject
in interface AWSCodeBuild
createProjectRequest
- InvalidInputException
- The input value that was provided is not valid.ResourceAlreadyExistsException
- The specified AWS resource cannot be created, because an AWS resource with the same settings already
exists.AccountLimitExceededException
- An AWS service limit was exceeded for the calling AWS account.public DeleteProjectResult deleteProject(DeleteProjectRequest deleteProjectRequest)
Deletes a build project.
deleteProject
in interface AWSCodeBuild
deleteProjectRequest
- InvalidInputException
- The input value that was provided is not valid.public ListBuildsResult listBuilds(ListBuildsRequest listBuildsRequest)
Gets a list of build IDs, with each build ID representing a single build.
listBuilds
in interface AWSCodeBuild
listBuildsRequest
- InvalidInputException
- The input value that was provided is not valid.public ListBuildsForProjectResult listBuildsForProject(ListBuildsForProjectRequest listBuildsForProjectRequest)
Gets a list of build IDs for the specified build project, with each build ID representing a single build.
listBuildsForProject
in interface AWSCodeBuild
listBuildsForProjectRequest
- InvalidInputException
- The input value that was provided is not valid.ResourceNotFoundException
- The specified AWS resource cannot be found.public ListCuratedEnvironmentImagesResult listCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest)
Gets information about Docker images that are managed by AWS CodeBuild.
listCuratedEnvironmentImages
in interface AWSCodeBuild
listCuratedEnvironmentImagesRequest
- public ListProjectsResult listProjects(ListProjectsRequest listProjectsRequest)
Gets a list of build project names, with each build project name representing a single build project.
listProjects
in interface AWSCodeBuild
listProjectsRequest
- InvalidInputException
- The input value that was provided is not valid.public StartBuildResult startBuild(StartBuildRequest startBuildRequest)
Starts running a build.
startBuild
in interface AWSCodeBuild
startBuildRequest
- InvalidInputException
- The input value that was provided is not valid.ResourceNotFoundException
- The specified AWS resource cannot be found.AccountLimitExceededException
- An AWS service limit was exceeded for the calling AWS account.public StopBuildResult stopBuild(StopBuildRequest stopBuildRequest)
Attempts to stop running a build.
Completed builds cannot be stopped.
stopBuild
in interface AWSCodeBuild
stopBuildRequest
- InvalidInputException
- The input value that was provided is not valid.ResourceNotFoundException
- The specified AWS resource cannot be found.public UpdateProjectResult updateProject(UpdateProjectRequest updateProjectRequest)
Changes the settings of an existing build project.
updateProject
in interface AWSCodeBuild
updateProjectRequest
- InvalidInputException
- The input value that was provided is not valid.ResourceNotFoundException
- The specified AWS resource cannot be found.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSCodeBuild
request
- The originally executed requestCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.