Interface CodeBuildClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. 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 Apache Maven, Gradle, and more. You can also fully customize build environments in CodeBuild to use your own build tools. CodeBuild scales automatically to meet peak build requests. You pay only for the build time you consume. For more information about CodeBuild, see the CodeBuild 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 TypeMethodDescriptiondefault BatchDeleteBuildsResponse
batchDeleteBuilds
(Consumer<BatchDeleteBuildsRequest.Builder> batchDeleteBuildsRequest) Deletes one or more builds.default BatchDeleteBuildsResponse
batchDeleteBuilds
(BatchDeleteBuildsRequest batchDeleteBuildsRequest) Deletes one or more builds.default BatchGetBuildBatchesResponse
batchGetBuildBatches
(Consumer<BatchGetBuildBatchesRequest.Builder> batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.default BatchGetBuildBatchesResponse
batchGetBuildBatches
(BatchGetBuildBatchesRequest batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.default BatchGetBuildsResponse
batchGetBuilds
(Consumer<BatchGetBuildsRequest.Builder> batchGetBuildsRequest) Gets information about one or more builds.default BatchGetBuildsResponse
batchGetBuilds
(BatchGetBuildsRequest batchGetBuildsRequest) Gets information about one or more builds.default BatchGetFleetsResponse
batchGetFleets
(Consumer<BatchGetFleetsRequest.Builder> batchGetFleetsRequest) Gets information about one or more compute fleets.default BatchGetFleetsResponse
batchGetFleets
(BatchGetFleetsRequest batchGetFleetsRequest) Gets information about one or more compute fleets.default BatchGetProjectsResponse
batchGetProjects
(Consumer<BatchGetProjectsRequest.Builder> batchGetProjectsRequest) Gets information about one or more build projects.default BatchGetProjectsResponse
batchGetProjects
(BatchGetProjectsRequest batchGetProjectsRequest) Gets information about one or more build projects.default BatchGetReportGroupsResponse
batchGetReportGroups
(Consumer<BatchGetReportGroupsRequest.Builder> batchGetReportGroupsRequest) Returns an array of report groups.default BatchGetReportGroupsResponse
batchGetReportGroups
(BatchGetReportGroupsRequest batchGetReportGroupsRequest) Returns an array of report groups.default BatchGetReportsResponse
batchGetReports
(Consumer<BatchGetReportsRequest.Builder> batchGetReportsRequest) Returns an array of reports.default BatchGetReportsResponse
batchGetReports
(BatchGetReportsRequest batchGetReportsRequest) Returns an array of reports.static CodeBuildClientBuilder
builder()
Create a builder that can be used to configure and create aCodeBuildClient
.static CodeBuildClient
create()
Create aCodeBuildClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CreateFleetResponse
createFleet
(Consumer<CreateFleetRequest.Builder> createFleetRequest) Creates a compute fleet.default CreateFleetResponse
createFleet
(CreateFleetRequest createFleetRequest) Creates a compute fleet.default CreateProjectResponse
createProject
(Consumer<CreateProjectRequest.Builder> createProjectRequest) Creates a build project.default CreateProjectResponse
createProject
(CreateProjectRequest createProjectRequest) Creates a build project.default CreateReportGroupResponse
createReportGroup
(Consumer<CreateReportGroupRequest.Builder> createReportGroupRequest) Creates a report group.default CreateReportGroupResponse
createReportGroup
(CreateReportGroupRequest createReportGroupRequest) Creates a report group.default CreateWebhookResponse
createWebhook
(Consumer<CreateWebhookRequest.Builder> createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.default CreateWebhookResponse
createWebhook
(CreateWebhookRequest createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.default DeleteBuildBatchResponse
deleteBuildBatch
(Consumer<DeleteBuildBatchRequest.Builder> deleteBuildBatchRequest) Deletes a batch build.default DeleteBuildBatchResponse
deleteBuildBatch
(DeleteBuildBatchRequest deleteBuildBatchRequest) Deletes a batch build.default DeleteFleetResponse
deleteFleet
(Consumer<DeleteFleetRequest.Builder> deleteFleetRequest) Deletes a compute fleet.default DeleteFleetResponse
deleteFleet
(DeleteFleetRequest deleteFleetRequest) Deletes a compute fleet.default DeleteProjectResponse
deleteProject
(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest) Deletes a build project.default DeleteProjectResponse
deleteProject
(DeleteProjectRequest deleteProjectRequest) Deletes a build project.default DeleteReportResponse
deleteReport
(Consumer<DeleteReportRequest.Builder> deleteReportRequest) Deletes a report.default DeleteReportResponse
deleteReport
(DeleteReportRequest deleteReportRequest) Deletes a report.default DeleteReportGroupResponse
deleteReportGroup
(Consumer<DeleteReportGroupRequest.Builder> deleteReportGroupRequest) Deletes a report group.default DeleteReportGroupResponse
deleteReportGroup
(DeleteReportGroupRequest deleteReportGroupRequest) Deletes a report group.default DeleteResourcePolicyResponse
deleteResourcePolicy
(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.default DeleteResourcePolicyResponse
deleteResourcePolicy
(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.default DeleteSourceCredentialsResponse
deleteSourceCredentials
(Consumer<DeleteSourceCredentialsRequest.Builder> deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.default DeleteSourceCredentialsResponse
deleteSourceCredentials
(DeleteSourceCredentialsRequest deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.default DeleteWebhookResponse
deleteWebhook
(Consumer<DeleteWebhookRequest.Builder> deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.default DeleteWebhookResponse
deleteWebhook
(DeleteWebhookRequest deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.default DescribeCodeCoveragesResponse
describeCodeCoverages
(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) Retrieves one or more code coverage reports.default DescribeCodeCoveragesResponse
describeCodeCoverages
(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) Retrieves one or more code coverage reports.default DescribeCodeCoveragesIterable
describeCodeCoveragesPaginator
(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) This is a variant ofdescribeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.default DescribeCodeCoveragesIterable
describeCodeCoveragesPaginator
(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) This is a variant ofdescribeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.default DescribeTestCasesResponse
describeTestCases
(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) Returns a list of details about test cases for a report.default DescribeTestCasesResponse
describeTestCases
(DescribeTestCasesRequest describeTestCasesRequest) Returns a list of details about test cases for a report.default DescribeTestCasesIterable
describeTestCasesPaginator
(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) This is a variant ofdescribeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.default DescribeTestCasesIterable
describeTestCasesPaginator
(DescribeTestCasesRequest describeTestCasesRequest) This is a variant ofdescribeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.default GetReportGroupTrendResponse
getReportGroupTrend
(Consumer<GetReportGroupTrendRequest.Builder> getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.default GetReportGroupTrendResponse
getReportGroupTrend
(GetReportGroupTrendRequest getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.default GetResourcePolicyResponse
getResourcePolicy
(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.default GetResourcePolicyResponse
getResourcePolicy
(GetResourcePolicyRequest getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.default ImportSourceCredentialsResponse
importSourceCredentials
(Consumer<ImportSourceCredentialsRequest.Builder> importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.default ImportSourceCredentialsResponse
importSourceCredentials
(ImportSourceCredentialsRequest importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.default InvalidateProjectCacheResponse
invalidateProjectCache
(Consumer<InvalidateProjectCacheRequest.Builder> invalidateProjectCacheRequest) Resets the cache for a project.default InvalidateProjectCacheResponse
invalidateProjectCache
(InvalidateProjectCacheRequest invalidateProjectCacheRequest) Resets the cache for a project.default ListBuildBatchesResponse
listBuildBatches
(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.default ListBuildBatchesResponse
listBuildBatches
(ListBuildBatchesRequest listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.listBuildBatchesForProject
(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.listBuildBatchesForProject
(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.listBuildBatchesForProjectPaginator
(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) This is a variant oflistBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.listBuildBatchesForProjectPaginator
(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) This is a variant oflistBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.default ListBuildBatchesIterable
listBuildBatchesPaginator
(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) This is a variant oflistBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.default ListBuildBatchesIterable
listBuildBatchesPaginator
(ListBuildBatchesRequest listBuildBatchesRequest) This is a variant oflistBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.default ListBuildsResponse
Gets a list of build IDs, with each build ID representing a single build.default ListBuildsResponse
listBuilds
(Consumer<ListBuildsRequest.Builder> listBuildsRequest) Gets a list of build IDs, with each build ID representing a single build.default ListBuildsResponse
listBuilds
(ListBuildsRequest listBuildsRequest) Gets a list of build IDs, with each build ID representing a single build.default ListBuildsForProjectResponse
listBuildsForProject
(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.default ListBuildsForProjectResponse
listBuildsForProject
(ListBuildsForProjectRequest listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.default ListBuildsForProjectIterable
listBuildsForProjectPaginator
(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.default ListBuildsForProjectIterable
listBuildsForProjectPaginator
(ListBuildsForProjectRequest listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.default ListBuildsIterable
This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.default ListBuildsIterable
listBuildsPaginator
(Consumer<ListBuildsRequest.Builder> listBuildsRequest) This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.default ListBuildsIterable
listBuildsPaginator
(ListBuildsRequest listBuildsRequest) This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.Gets information about Docker images that are managed by CodeBuild.listCuratedEnvironmentImages
(Consumer<ListCuratedEnvironmentImagesRequest.Builder> listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.listCuratedEnvironmentImages
(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.default ListFleetsResponse
listFleets
(Consumer<ListFleetsRequest.Builder> listFleetsRequest) Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.default ListFleetsResponse
listFleets
(ListFleetsRequest listFleetsRequest) Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.default ListFleetsIterable
listFleetsPaginator
(Consumer<ListFleetsRequest.Builder> listFleetsRequest) This is a variant oflistFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.default ListFleetsIterable
listFleetsPaginator
(ListFleetsRequest listFleetsRequest) This is a variant oflistFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.default ListProjectsResponse
Gets a list of build project names, with each build project name representing a single build project.default ListProjectsResponse
listProjects
(Consumer<ListProjectsRequest.Builder> listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.default ListProjectsResponse
listProjects
(ListProjectsRequest listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.default ListProjectsIterable
This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.default ListProjectsIterable
listProjectsPaginator
(Consumer<ListProjectsRequest.Builder> listProjectsRequest) This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.default ListProjectsIterable
listProjectsPaginator
(ListProjectsRequest listProjectsRequest) This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.default ListReportGroupsResponse
listReportGroups
(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.default ListReportGroupsResponse
listReportGroups
(ListReportGroupsRequest listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.default ListReportGroupsIterable
listReportGroupsPaginator
(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) This is a variant oflistReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.default ListReportGroupsIterable
listReportGroupsPaginator
(ListReportGroupsRequest listReportGroupsRequest) This is a variant oflistReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.default ListReportsResponse
listReports
(Consumer<ListReportsRequest.Builder> listReportsRequest) Returns a list of ARNs for the reports in the current Amazon Web Services account.default ListReportsResponse
listReports
(ListReportsRequest listReportsRequest) Returns a list of ARNs for the reports in the current Amazon Web Services account.listReportsForReportGroup
(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to aReportGroup
.listReportsForReportGroup
(ListReportsForReportGroupRequest listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to aReportGroup
.listReportsForReportGroupPaginator
(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) This is a variant oflistReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.listReportsForReportGroupPaginator
(ListReportsForReportGroupRequest listReportsForReportGroupRequest) This is a variant oflistReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.default ListReportsIterable
listReportsPaginator
(Consumer<ListReportsRequest.Builder> listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.default ListReportsIterable
listReportsPaginator
(ListReportsRequest listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.default ListSharedProjectsResponse
listSharedProjects
(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest) Gets a list of projects that are shared with other Amazon Web Services accounts or users.default ListSharedProjectsResponse
listSharedProjects
(ListSharedProjectsRequest listSharedProjectsRequest) Gets a list of projects that are shared with other Amazon Web Services accounts or users.default ListSharedProjectsIterable
listSharedProjectsPaginator
(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest) This is a variant oflistSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest)
operation.default ListSharedProjectsIterable
listSharedProjectsPaginator
(ListSharedProjectsRequest listSharedProjectsRequest) This is a variant oflistSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest)
operation.default ListSharedReportGroupsResponse
listSharedReportGroups
(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest) Gets a list of report groups that are shared with other Amazon Web Services accounts or users.default ListSharedReportGroupsResponse
listSharedReportGroups
(ListSharedReportGroupsRequest listSharedReportGroupsRequest) Gets a list of report groups that are shared with other Amazon Web Services accounts or users.default ListSharedReportGroupsIterable
listSharedReportGroupsPaginator
(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)
operation.default ListSharedReportGroupsIterable
listSharedReportGroupsPaginator
(ListSharedReportGroupsRequest listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)
operation.default ListSourceCredentialsResponse
Returns a list ofSourceCredentialsInfo
objects.default ListSourceCredentialsResponse
listSourceCredentials
(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfo
objects.default ListSourceCredentialsResponse
listSourceCredentials
(ListSourceCredentialsRequest listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfo
objects.default PutResourcePolicyResponse
putResourcePolicy
(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Stores a resource policy for the ARN of aProject
orReportGroup
object.default PutResourcePolicyResponse
putResourcePolicy
(PutResourcePolicyRequest putResourcePolicyRequest) Stores a resource policy for the ARN of aProject
orReportGroup
object.default RetryBuildResponse
retryBuild
(Consumer<RetryBuildRequest.Builder> retryBuildRequest) Restarts a build.default RetryBuildResponse
retryBuild
(RetryBuildRequest retryBuildRequest) Restarts a build.default RetryBuildBatchResponse
retryBuildBatch
(Consumer<RetryBuildBatchRequest.Builder> retryBuildBatchRequest) Restarts a failed batch build.default RetryBuildBatchResponse
retryBuildBatch
(RetryBuildBatchRequest retryBuildBatchRequest) Restarts a failed batch build.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadata
default StartBuildResponse
startBuild
(Consumer<StartBuildRequest.Builder> startBuildRequest) Starts running a build with the settings defined in the project.default StartBuildResponse
startBuild
(StartBuildRequest startBuildRequest) Starts running a build with the settings defined in the project.default StartBuildBatchResponse
startBuildBatch
(Consumer<StartBuildBatchRequest.Builder> startBuildBatchRequest) Starts a batch build for a project.default StartBuildBatchResponse
startBuildBatch
(StartBuildBatchRequest startBuildBatchRequest) Starts a batch build for a project.default StopBuildResponse
stopBuild
(Consumer<StopBuildRequest.Builder> stopBuildRequest) Attempts to stop running a build.default StopBuildResponse
stopBuild
(StopBuildRequest stopBuildRequest) Attempts to stop running a build.default StopBuildBatchResponse
stopBuildBatch
(Consumer<StopBuildBatchRequest.Builder> stopBuildBatchRequest) Stops a running batch build.default StopBuildBatchResponse
stopBuildBatch
(StopBuildBatchRequest stopBuildBatchRequest) Stops a running batch build.default UpdateFleetResponse
updateFleet
(Consumer<UpdateFleetRequest.Builder> updateFleetRequest) Updates a compute fleet.default UpdateFleetResponse
updateFleet
(UpdateFleetRequest updateFleetRequest) Updates a compute fleet.default UpdateProjectResponse
updateProject
(Consumer<UpdateProjectRequest.Builder> updateProjectRequest) Changes the settings of a build project.default UpdateProjectResponse
updateProject
(UpdateProjectRequest updateProjectRequest) Changes the settings of a build project.default UpdateProjectVisibilityResponse
updateProjectVisibility
(Consumer<UpdateProjectVisibilityRequest.Builder> updateProjectVisibilityRequest) Changes the public visibility for a project.default UpdateProjectVisibilityResponse
updateProjectVisibility
(UpdateProjectVisibilityRequest updateProjectVisibilityRequest) Changes the public visibility for a project.default UpdateReportGroupResponse
updateReportGroup
(Consumer<UpdateReportGroupRequest.Builder> updateReportGroupRequest) Updates a report group.default UpdateReportGroupResponse
updateReportGroup
(UpdateReportGroupRequest updateReportGroupRequest) Updates a report group.default UpdateWebhookResponse
updateWebhook
(Consumer<UpdateWebhookRequest.Builder> updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.default UpdateWebhookResponse
updateWebhook
(UpdateWebhookRequest updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.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
-
batchDeleteBuilds
default BatchDeleteBuildsResponse batchDeleteBuilds(BatchDeleteBuildsRequest batchDeleteBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes one or more builds.
- Parameters:
batchDeleteBuildsRequest
-- Returns:
- Result of the BatchDeleteBuilds operation returned by the service.
- See Also:
-
batchDeleteBuilds
default BatchDeleteBuildsResponse batchDeleteBuilds(Consumer<BatchDeleteBuildsRequest.Builder> batchDeleteBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes one or more builds.
This is a convenience which creates an instance of the
BatchDeleteBuildsRequest.Builder
avoiding the need to create one manually viaBatchDeleteBuildsRequest.builder()
- Parameters:
batchDeleteBuildsRequest
- AConsumer
that will call methods onBatchDeleteBuildsRequest.Builder
to create a request.- Returns:
- Result of the BatchDeleteBuilds operation returned by the service.
- See Also:
-
batchGetBuildBatches
default BatchGetBuildBatchesResponse batchGetBuildBatches(BatchGetBuildBatchesRequest batchGetBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves information about one or more batch builds.
- Parameters:
batchGetBuildBatchesRequest
-- Returns:
- Result of the BatchGetBuildBatches operation returned by the service.
- See Also:
-
batchGetBuildBatches
default BatchGetBuildBatchesResponse batchGetBuildBatches(Consumer<BatchGetBuildBatchesRequest.Builder> batchGetBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves information about one or more batch builds.
This is a convenience which creates an instance of the
BatchGetBuildBatchesRequest.Builder
avoiding the need to create one manually viaBatchGetBuildBatchesRequest.builder()
- Parameters:
batchGetBuildBatchesRequest
- AConsumer
that will call methods onBatchGetBuildBatchesRequest.Builder
to create a request.- Returns:
- Result of the BatchGetBuildBatches operation returned by the service.
- See Also:
-
batchGetBuilds
default BatchGetBuildsResponse batchGetBuilds(BatchGetBuildsRequest batchGetBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more builds.
- Parameters:
batchGetBuildsRequest
-- Returns:
- Result of the BatchGetBuilds operation returned by the service.
- See Also:
-
batchGetBuilds
default BatchGetBuildsResponse batchGetBuilds(Consumer<BatchGetBuildsRequest.Builder> batchGetBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more builds.
This is a convenience which creates an instance of the
BatchGetBuildsRequest.Builder
avoiding the need to create one manually viaBatchGetBuildsRequest.builder()
- Parameters:
batchGetBuildsRequest
- AConsumer
that will call methods onBatchGetBuildsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetBuilds operation returned by the service.
- See Also:
-
batchGetFleets
default BatchGetFleetsResponse batchGetFleets(BatchGetFleetsRequest batchGetFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more compute fleets.
- Parameters:
batchGetFleetsRequest
-- Returns:
- Result of the BatchGetFleets operation returned by the service.
- See Also:
-
batchGetFleets
default BatchGetFleetsResponse batchGetFleets(Consumer<BatchGetFleetsRequest.Builder> batchGetFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more compute fleets.
This is a convenience which creates an instance of the
BatchGetFleetsRequest.Builder
avoiding the need to create one manually viaBatchGetFleetsRequest.builder()
- Parameters:
batchGetFleetsRequest
- AConsumer
that will call methods onBatchGetFleetsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetFleets operation returned by the service.
- See Also:
-
batchGetProjects
default BatchGetProjectsResponse batchGetProjects(BatchGetProjectsRequest batchGetProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more build projects.
- Parameters:
batchGetProjectsRequest
-- Returns:
- Result of the BatchGetProjects operation returned by the service.
- See Also:
-
batchGetProjects
default BatchGetProjectsResponse batchGetProjects(Consumer<BatchGetProjectsRequest.Builder> batchGetProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets information about one or more build projects.
This is a convenience which creates an instance of the
BatchGetProjectsRequest.Builder
avoiding the need to create one manually viaBatchGetProjectsRequest.builder()
- Parameters:
batchGetProjectsRequest
- AConsumer
that will call methods onBatchGetProjectsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetProjects operation returned by the service.
- See Also:
-
batchGetReportGroups
default BatchGetReportGroupsResponse batchGetReportGroups(BatchGetReportGroupsRequest batchGetReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns an array of report groups.
- Parameters:
batchGetReportGroupsRequest
-- Returns:
- Result of the BatchGetReportGroups operation returned by the service.
- See Also:
-
batchGetReportGroups
default BatchGetReportGroupsResponse batchGetReportGroups(Consumer<BatchGetReportGroupsRequest.Builder> batchGetReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns an array of report groups.
This is a convenience which creates an instance of the
BatchGetReportGroupsRequest.Builder
avoiding the need to create one manually viaBatchGetReportGroupsRequest.builder()
- Parameters:
batchGetReportGroupsRequest
- AConsumer
that will call methods onBatchGetReportGroupsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetReportGroups operation returned by the service.
- See Also:
-
batchGetReports
default BatchGetReportsResponse batchGetReports(BatchGetReportsRequest batchGetReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns an array of reports.
- Parameters:
batchGetReportsRequest
-- Returns:
- Result of the BatchGetReports operation returned by the service.
- See Also:
-
batchGetReports
default BatchGetReportsResponse batchGetReports(Consumer<BatchGetReportsRequest.Builder> batchGetReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns an array of reports.
This is a convenience which creates an instance of the
BatchGetReportsRequest.Builder
avoiding the need to create one manually viaBatchGetReportsRequest.builder()
- Parameters:
batchGetReportsRequest
- AConsumer
that will call methods onBatchGetReportsRequest.Builder
to create a request.- Returns:
- Result of the BatchGetReports operation returned by the service.
- See Also:
-
createFleet
default CreateFleetResponse createFleet(CreateFleetRequest createFleetRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a compute fleet.
- Parameters:
createFleetRequest
-- Returns:
- Result of the CreateFleet operation returned by the service.
- See Also:
-
createFleet
default CreateFleetResponse createFleet(Consumer<CreateFleetRequest.Builder> createFleetRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a compute fleet.
This is a convenience which creates an instance of the
CreateFleetRequest.Builder
avoiding the need to create one manually viaCreateFleetRequest.builder()
- Parameters:
createFleetRequest
- AConsumer
that will call methods onCreateFleetRequest.Builder
to create a request.- Returns:
- Result of the CreateFleet operation returned by the service.
- See Also:
-
createProject
default CreateProjectResponse createProject(CreateProjectRequest createProjectRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a build project.
- Parameters:
createProjectRequest
-- Returns:
- Result of the CreateProject operation returned by the service.
- See Also:
-
createProject
default CreateProjectResponse createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a build project.
This is a convenience which creates an instance of the
CreateProjectRequest.Builder
avoiding the need to create one manually viaCreateProjectRequest.builder()
- Parameters:
createProjectRequest
- AConsumer
that will call methods onCreateProjectRequest.Builder
to create a request.- Returns:
- Result of the CreateProject operation returned by the service.
- See Also:
-
createReportGroup
default CreateReportGroupResponse createReportGroup(CreateReportGroupRequest createReportGroupRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a report group. A report group contains a collection of reports.
- Parameters:
createReportGroupRequest
-- Returns:
- Result of the CreateReportGroup operation returned by the service.
- See Also:
-
createReportGroup
default CreateReportGroupResponse createReportGroup(Consumer<CreateReportGroupRequest.Builder> createReportGroupRequest) throws InvalidInputException, ResourceAlreadyExistsException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Creates a report group. A report group contains a collection of reports.
This is a convenience which creates an instance of the
CreateReportGroupRequest.Builder
avoiding the need to create one manually viaCreateReportGroupRequest.builder()
- Parameters:
createReportGroupRequest
- AConsumer
that will call methods onCreateReportGroupRequest.Builder
to create a request.- Returns:
- Result of the CreateReportGroup operation returned by the service.
- See Also:
-
createWebhook
default CreateWebhookResponse createWebhook(CreateWebhookRequest createWebhookRequest) throws InvalidInputException, OAuthProviderException, ResourceAlreadyExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
- Parameters:
createWebhookRequest
-- Returns:
- Result of the CreateWebhook operation returned by the service.
- See Also:
-
createWebhook
default CreateWebhookResponse createWebhook(Consumer<CreateWebhookRequest.Builder> createWebhookRequest) throws InvalidInputException, OAuthProviderException, ResourceAlreadyExistsException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
This is a convenience which creates an instance of the
CreateWebhookRequest.Builder
avoiding the need to create one manually viaCreateWebhookRequest.builder()
- Parameters:
createWebhookRequest
- AConsumer
that will call methods onCreateWebhookRequest.Builder
to create a request.- Returns:
- Result of the CreateWebhook operation returned by the service.
- See Also:
-
deleteBuildBatch
default DeleteBuildBatchResponse deleteBuildBatch(DeleteBuildBatchRequest deleteBuildBatchRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a batch build.
- Parameters:
deleteBuildBatchRequest
-- Returns:
- Result of the DeleteBuildBatch operation returned by the service.
- See Also:
-
deleteBuildBatch
default DeleteBuildBatchResponse deleteBuildBatch(Consumer<DeleteBuildBatchRequest.Builder> deleteBuildBatchRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a batch build.
This is a convenience which creates an instance of the
DeleteBuildBatchRequest.Builder
avoiding the need to create one manually viaDeleteBuildBatchRequest.builder()
- Parameters:
deleteBuildBatchRequest
- AConsumer
that will call methods onDeleteBuildBatchRequest.Builder
to create a request.- Returns:
- Result of the DeleteBuildBatch operation returned by the service.
- See Also:
-
deleteFleet
default DeleteFleetResponse deleteFleet(DeleteFleetRequest deleteFleetRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.
- Parameters:
deleteFleetRequest
-- Returns:
- Result of the DeleteFleet operation returned by the service.
- See Also:
-
deleteFleet
default DeleteFleetResponse deleteFleet(Consumer<DeleteFleetRequest.Builder> deleteFleetRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.
This is a convenience which creates an instance of the
DeleteFleetRequest.Builder
avoiding the need to create one manually viaDeleteFleetRequest.builder()
- Parameters:
deleteFleetRequest
- AConsumer
that will call methods onDeleteFleetRequest.Builder
to create a request.- Returns:
- Result of the DeleteFleet operation returned by the service.
- See Also:
-
deleteProject
default DeleteProjectResponse deleteProject(DeleteProjectRequest deleteProjectRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a build project. When you delete a project, its builds are not deleted.
- Parameters:
deleteProjectRequest
-- Returns:
- Result of the DeleteProject operation returned by the service.
- See Also:
-
deleteProject
default DeleteProjectResponse deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a build project. When you delete a project, its builds are not deleted.
This is a convenience which creates an instance of the
DeleteProjectRequest.Builder
avoiding the need to create one manually viaDeleteProjectRequest.builder()
- Parameters:
deleteProjectRequest
- AConsumer
that will call methods onDeleteProjectRequest.Builder
to create a request.- Returns:
- Result of the DeleteProject operation returned by the service.
- See Also:
-
deleteReport
default DeleteReportResponse deleteReport(DeleteReportRequest deleteReportRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a report.
- Parameters:
deleteReportRequest
-- Returns:
- Result of the DeleteReport operation returned by the service.
- See Also:
-
deleteReport
default DeleteReportResponse deleteReport(Consumer<DeleteReportRequest.Builder> deleteReportRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a report.
This is a convenience which creates an instance of the
DeleteReportRequest.Builder
avoiding the need to create one manually viaDeleteReportRequest.builder()
- Parameters:
deleteReportRequest
- AConsumer
that will call methods onDeleteReportRequest.Builder
to create a request.- Returns:
- Result of the DeleteReport operation returned by the service.
- See Also:
-
deleteReportGroup
default DeleteReportGroupResponse deleteReportGroup(DeleteReportGroupRequest deleteReportGroupRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a report group. Before you delete a report group, you must delete its reports.
- Parameters:
deleteReportGroupRequest
-- Returns:
- Result of the DeleteReportGroup operation returned by the service.
- See Also:
-
deleteReportGroup
default DeleteReportGroupResponse deleteReportGroup(Consumer<DeleteReportGroupRequest.Builder> deleteReportGroupRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a report group. Before you delete a report group, you must delete its reports.
This is a convenience which creates an instance of the
DeleteReportGroupRequest.Builder
avoiding the need to create one manually viaDeleteReportGroupRequest.builder()
- Parameters:
deleteReportGroupRequest
- AConsumer
that will call methods onDeleteReportGroupRequest.Builder
to create a request.- Returns:
- Result of the DeleteReportGroup operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a resource policy that is identified by its resource ARN.
- Parameters:
deleteResourcePolicyRequest
-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Deletes a resource policy that is identified by its resource ARN.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builder
avoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()
- Parameters:
deleteResourcePolicyRequest
- AConsumer
that will call methods onDeleteResourcePolicyRequest.Builder
to create a request.- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- See Also:
-
deleteSourceCredentials
default DeleteSourceCredentialsResponse deleteSourceCredentials(DeleteSourceCredentialsRequest deleteSourceCredentialsRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
- Parameters:
deleteSourceCredentialsRequest
-- Returns:
- Result of the DeleteSourceCredentials operation returned by the service.
- See Also:
-
deleteSourceCredentials
default DeleteSourceCredentialsResponse deleteSourceCredentials(Consumer<DeleteSourceCredentialsRequest.Builder> deleteSourceCredentialsRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
This is a convenience which creates an instance of the
DeleteSourceCredentialsRequest.Builder
avoiding the need to create one manually viaDeleteSourceCredentialsRequest.builder()
- Parameters:
deleteSourceCredentialsRequest
- AConsumer
that will call methods onDeleteSourceCredentialsRequest.Builder
to create a request.- Returns:
- Result of the DeleteSourceCredentials operation returned by the service.
- See Also:
-
deleteWebhook
default DeleteWebhookResponse deleteWebhook(DeleteWebhookRequest deleteWebhookRequest) throws InvalidInputException, ResourceNotFoundException, OAuthProviderException, AwsServiceException, SdkClientException, CodeBuildException For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.
- Parameters:
deleteWebhookRequest
-- Returns:
- Result of the DeleteWebhook operation returned by the service.
- See Also:
-
deleteWebhook
default DeleteWebhookResponse deleteWebhook(Consumer<DeleteWebhookRequest.Builder> deleteWebhookRequest) throws InvalidInputException, ResourceNotFoundException, OAuthProviderException, AwsServiceException, SdkClientException, CodeBuildException For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.
This is a convenience which creates an instance of the
DeleteWebhookRequest.Builder
avoiding the need to create one manually viaDeleteWebhookRequest.builder()
- Parameters:
deleteWebhookRequest
- AConsumer
that will call methods onDeleteWebhookRequest.Builder
to create a request.- Returns:
- Result of the DeleteWebhook operation returned by the service.
- See Also:
-
describeCodeCoverages
default DescribeCodeCoveragesResponse describeCodeCoverages(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves one or more code coverage reports.
- Parameters:
describeCodeCoveragesRequest
-- Returns:
- Result of the DescribeCodeCoverages operation returned by the service.
- See Also:
-
describeCodeCoverages
default DescribeCodeCoveragesResponse describeCodeCoverages(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves one or more code coverage reports.
This is a convenience which creates an instance of the
DescribeCodeCoveragesRequest.Builder
avoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()
- Parameters:
describeCodeCoveragesRequest
- AConsumer
that will call methods onDescribeCodeCoveragesRequest.Builder
to create a request.- Returns:
- Result of the DescribeCodeCoverages operation returned by the service.
- See Also:
-
describeCodeCoveragesPaginator
default DescribeCodeCoveragesIterable describeCodeCoveragesPaginator(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
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.codebuild.paginators.DescribeCodeCoveragesIterable responses = client.describeCodeCoveragesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesIterable responses = client .describeCodeCoveragesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesIterable responses = client.describeCodeCoveragesPaginator(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
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.- Parameters:
describeCodeCoveragesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeCodeCoveragesPaginator
default DescribeCodeCoveragesIterable describeCodeCoveragesPaginator(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
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.codebuild.paginators.DescribeCodeCoveragesIterable responses = client.describeCodeCoveragesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesIterable responses = client .describeCodeCoveragesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesIterable responses = client.describeCodeCoveragesPaginator(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
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.
This is a convenience which creates an instance of the
DescribeCodeCoveragesRequest.Builder
avoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()
- Parameters:
describeCodeCoveragesRequest
- AConsumer
that will call methods onDescribeCodeCoveragesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeTestCases
default DescribeTestCasesResponse describeTestCases(DescribeTestCasesRequest describeTestCasesRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of details about test cases for a report.
- Parameters:
describeTestCasesRequest
-- Returns:
- Result of the DescribeTestCases operation returned by the service.
- See Also:
-
describeTestCases
default DescribeTestCasesResponse describeTestCases(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of details about test cases for a report.
This is a convenience which creates an instance of the
DescribeTestCasesRequest.Builder
avoiding the need to create one manually viaDescribeTestCasesRequest.builder()
- Parameters:
describeTestCasesRequest
- AConsumer
that will call methods onDescribeTestCasesRequest.Builder
to create a request.- Returns:
- Result of the DescribeTestCases operation returned by the service.
- See Also:
-
describeTestCasesPaginator
default DescribeTestCasesIterable describeTestCasesPaginator(DescribeTestCasesRequest describeTestCasesRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
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.codebuild.paginators.DescribeTestCasesIterable responses = client.describeTestCasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesIterable responses = client .describeTestCasesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesIterable responses = client.describeTestCasesPaginator(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
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.- Parameters:
describeTestCasesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
describeTestCasesPaginator
default DescribeTestCasesIterable describeTestCasesPaginator(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
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.codebuild.paginators.DescribeTestCasesIterable responses = client.describeTestCasesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesIterable responses = client .describeTestCasesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesIterable responses = client.describeTestCasesPaginator(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
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.
This is a convenience which creates an instance of the
DescribeTestCasesRequest.Builder
avoiding the need to create one manually viaDescribeTestCasesRequest.builder()
- Parameters:
describeTestCasesRequest
- AConsumer
that will call methods onDescribeTestCasesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
getReportGroupTrend
default GetReportGroupTrendResponse getReportGroupTrend(GetReportGroupTrendRequest getReportGroupTrendRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Analyzes and accumulates test report values for the specified test reports.
- Parameters:
getReportGroupTrendRequest
-- Returns:
- Result of the GetReportGroupTrend operation returned by the service.
- See Also:
-
getReportGroupTrend
default GetReportGroupTrendResponse getReportGroupTrend(Consumer<GetReportGroupTrendRequest.Builder> getReportGroupTrendRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Analyzes and accumulates test report values for the specified test reports.
This is a convenience which creates an instance of the
GetReportGroupTrendRequest.Builder
avoiding the need to create one manually viaGetReportGroupTrendRequest.builder()
- Parameters:
getReportGroupTrendRequest
- AConsumer
that will call methods onGetReportGroupTrendRequest.Builder
to create a request.- Returns:
- Result of the GetReportGroupTrend operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ResourceNotFoundException, InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a resource policy that is identified by its resource ARN.
- Parameters:
getResourcePolicyRequest
-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ResourceNotFoundException, InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a resource policy that is identified by its resource ARN.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builder
avoiding the need to create one manually viaGetResourcePolicyRequest.builder()
- Parameters:
getResourcePolicyRequest
- AConsumer
that will call methods onGetResourcePolicyRequest.Builder
to create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
importSourceCredentials
default ImportSourceCredentialsResponse importSourceCredentials(ImportSourceCredentialsRequest importSourceCredentialsRequest) throws InvalidInputException, AccountLimitExceededException, ResourceAlreadyExistsException, AwsServiceException, SdkClientException, CodeBuildException Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
- Parameters:
importSourceCredentialsRequest
-- Returns:
- Result of the ImportSourceCredentials operation returned by the service.
- See Also:
-
importSourceCredentials
default ImportSourceCredentialsResponse importSourceCredentials(Consumer<ImportSourceCredentialsRequest.Builder> importSourceCredentialsRequest) throws InvalidInputException, AccountLimitExceededException, ResourceAlreadyExistsException, AwsServiceException, SdkClientException, CodeBuildException Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
This is a convenience which creates an instance of the
ImportSourceCredentialsRequest.Builder
avoiding the need to create one manually viaImportSourceCredentialsRequest.builder()
- Parameters:
importSourceCredentialsRequest
- AConsumer
that will call methods onImportSourceCredentialsRequest.Builder
to create a request.- Returns:
- Result of the ImportSourceCredentials operation returned by the service.
- See Also:
-
invalidateProjectCache
default InvalidateProjectCacheResponse invalidateProjectCache(InvalidateProjectCacheRequest invalidateProjectCacheRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Resets the cache for a project.
- Parameters:
invalidateProjectCacheRequest
-- Returns:
- Result of the InvalidateProjectCache operation returned by the service.
- See Also:
-
invalidateProjectCache
default InvalidateProjectCacheResponse invalidateProjectCache(Consumer<InvalidateProjectCacheRequest.Builder> invalidateProjectCacheRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Resets the cache for a project.
This is a convenience which creates an instance of the
InvalidateProjectCacheRequest.Builder
avoiding the need to create one manually viaInvalidateProjectCacheRequest.builder()
- Parameters:
invalidateProjectCacheRequest
- AConsumer
that will call methods onInvalidateProjectCacheRequest.Builder
to create a request.- Returns:
- Result of the InvalidateProjectCache operation returned by the service.
- See Also:
-
listBuildBatches
default ListBuildBatchesResponse listBuildBatches(ListBuildBatchesRequest listBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves the identifiers of your build batches in the current region.
- Parameters:
listBuildBatchesRequest
-- Returns:
- Result of the ListBuildBatches operation returned by the service.
- See Also:
-
listBuildBatches
default ListBuildBatchesResponse listBuildBatches(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Retrieves the identifiers of your build batches in the current region.
This is a convenience which creates an instance of the
ListBuildBatchesRequest.Builder
avoiding the need to create one manually viaListBuildBatchesRequest.builder()
- Parameters:
listBuildBatchesRequest
- AConsumer
that will call methods onListBuildBatchesRequest.Builder
to create a request.- Returns:
- Result of the ListBuildBatches operation returned by the service.
- See Also:
-
listBuildBatchesPaginator
default ListBuildBatchesIterable listBuildBatchesPaginator(ListBuildBatchesRequest listBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
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.codebuild.paginators.ListBuildBatchesIterable responses = client.listBuildBatchesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesIterable responses = client .listBuildBatchesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesIterable responses = client.listBuildBatchesPaginator(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
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.- Parameters:
listBuildBatchesRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildBatchesPaginator
default ListBuildBatchesIterable listBuildBatchesPaginator(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
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.codebuild.paginators.ListBuildBatchesIterable responses = client.listBuildBatchesPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesIterable responses = client .listBuildBatchesPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesIterable responses = client.listBuildBatchesPaginator(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
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.
This is a convenience which creates an instance of the
ListBuildBatchesRequest.Builder
avoiding the need to create one manually viaListBuildBatchesRequest.builder()
- Parameters:
listBuildBatchesRequest
- AConsumer
that will call methods onListBuildBatchesRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildBatchesForProject
default ListBuildBatchesForProjectResponse listBuildBatchesForProject(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Retrieves the identifiers of the build batches for a specific project.
- Parameters:
listBuildBatchesForProjectRequest
-- Returns:
- Result of the ListBuildBatchesForProject operation returned by the service.
- See Also:
-
listBuildBatchesForProject
default ListBuildBatchesForProjectResponse listBuildBatchesForProject(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Retrieves the identifiers of the build batches for a specific project.
This is a convenience which creates an instance of the
ListBuildBatchesForProjectRequest.Builder
avoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()
- Parameters:
listBuildBatchesForProjectRequest
- AConsumer
that will call methods onListBuildBatchesForProjectRequest.Builder
to create a request.- Returns:
- Result of the ListBuildBatchesForProject operation returned by the service.
- See Also:
-
listBuildBatchesForProjectPaginator
default ListBuildBatchesForProjectIterable listBuildBatchesForProjectPaginator(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
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.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client.listBuildBatchesForProjectPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client .listBuildBatchesForProjectPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client.listBuildBatchesForProjectPaginator(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
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.- Parameters:
listBuildBatchesForProjectRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildBatchesForProjectPaginator
default ListBuildBatchesForProjectIterable listBuildBatchesForProjectPaginator(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
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.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client.listBuildBatchesForProjectPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client .listBuildBatchesForProjectPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectIterable responses = client.listBuildBatchesForProjectPaginator(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
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.
This is a convenience which creates an instance of the
ListBuildBatchesForProjectRequest.Builder
avoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()
- Parameters:
listBuildBatchesForProjectRequest
- AConsumer
that will call methods onListBuildBatchesForProjectRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuilds
default ListBuildsResponse listBuilds(ListBuildsRequest listBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build IDs, with each build ID representing a single build.
- Parameters:
listBuildsRequest
-- Returns:
- Result of the ListBuilds operation returned by the service.
- See Also:
-
listBuilds
default ListBuildsResponse listBuilds(Consumer<ListBuildsRequest.Builder> listBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build IDs, with each build ID representing a single build.
This is a convenience which creates an instance of the
ListBuildsRequest.Builder
avoiding the need to create one manually viaListBuildsRequest.builder()
- Parameters:
listBuildsRequest
- AConsumer
that will call methods onListBuildsRequest.Builder
to create a request.- Returns:
- Result of the ListBuilds operation returned by the service.
- See Also:
-
listBuilds
default ListBuildsResponse listBuilds() throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildExceptionGets a list of build IDs, with each build ID representing a single build.
- Returns:
- Result of the ListBuilds operation returned by the service.
- See Also:
-
listBuildsPaginator
default ListBuildsIterable listBuildsPaginator() throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildExceptionThis is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
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.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildsPaginator
default ListBuildsIterable listBuildsPaginator(ListBuildsRequest listBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
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.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.- Parameters:
listBuildsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildsPaginator
default ListBuildsIterable listBuildsPaginator(Consumer<ListBuildsRequest.Builder> listBuildsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
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.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsIterable responses = client.listBuildsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.
This is a convenience which creates an instance of the
ListBuildsRequest.Builder
avoiding the need to create one manually viaListBuildsRequest.builder()
- Parameters:
listBuildsRequest
- AConsumer
that will call methods onListBuildsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildsForProject
default ListBuildsForProjectResponse listBuildsForProject(ListBuildsForProjectRequest listBuildsForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
- Parameters:
listBuildsForProjectRequest
-- Returns:
- Result of the ListBuildsForProject operation returned by the service.
- See Also:
-
listBuildsForProject
default ListBuildsForProjectResponse listBuildsForProject(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
This is a convenience which creates an instance of the
ListBuildsForProjectRequest.Builder
avoiding the need to create one manually viaListBuildsForProjectRequest.builder()
- Parameters:
listBuildsForProjectRequest
- AConsumer
that will call methods onListBuildsForProjectRequest.Builder
to create a request.- Returns:
- Result of the ListBuildsForProject operation returned by the service.
- See Also:
-
listBuildsForProjectPaginator
default ListBuildsForProjectIterable listBuildsForProjectPaginator(ListBuildsForProjectRequest listBuildsForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
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.codebuild.paginators.ListBuildsForProjectIterable responses = client.listBuildsForProjectPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectIterable responses = client .listBuildsForProjectPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectIterable responses = client.listBuildsForProjectPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.- Parameters:
listBuildsForProjectRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listBuildsForProjectPaginator
default ListBuildsForProjectIterable listBuildsForProjectPaginator(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
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.codebuild.paginators.ListBuildsForProjectIterable responses = client.listBuildsForProjectPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectIterable responses = client .listBuildsForProjectPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectIterable responses = client.listBuildsForProjectPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.
This is a convenience which creates an instance of the
ListBuildsForProjectRequest.Builder
avoiding the need to create one manually viaListBuildsForProjectRequest.builder()
- Parameters:
listBuildsForProjectRequest
- AConsumer
that will call methods onListBuildsForProjectRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCuratedEnvironmentImages
default ListCuratedEnvironmentImagesResponse listCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest) throws AwsServiceException, SdkClientException, CodeBuildException Gets information about Docker images that are managed by CodeBuild.
- Parameters:
listCuratedEnvironmentImagesRequest
-- Returns:
- Result of the ListCuratedEnvironmentImages operation returned by the service.
- See Also:
-
listCuratedEnvironmentImages
default ListCuratedEnvironmentImagesResponse listCuratedEnvironmentImages(Consumer<ListCuratedEnvironmentImagesRequest.Builder> listCuratedEnvironmentImagesRequest) throws AwsServiceException, SdkClientException, CodeBuildException Gets information about Docker images that are managed by CodeBuild.
This is a convenience which creates an instance of the
ListCuratedEnvironmentImagesRequest.Builder
avoiding the need to create one manually viaListCuratedEnvironmentImagesRequest.builder()
- Parameters:
listCuratedEnvironmentImagesRequest
- AConsumer
that will call methods onListCuratedEnvironmentImagesRequest.Builder
to create a request.- Returns:
- Result of the ListCuratedEnvironmentImages operation returned by the service.
- See Also:
-
listCuratedEnvironmentImages
default ListCuratedEnvironmentImagesResponse listCuratedEnvironmentImages() throws AwsServiceException, SdkClientException, CodeBuildExceptionGets information about Docker images that are managed by CodeBuild.
- Returns:
- Result of the ListCuratedEnvironmentImages operation returned by the service.
- See Also:
-
listFleets
default ListFleetsResponse listFleets(ListFleetsRequest listFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
- Parameters:
listFleetsRequest
-- Returns:
- Result of the ListFleets operation returned by the service.
- See Also:
-
listFleets
default ListFleetsResponse listFleets(Consumer<ListFleetsRequest.Builder> listFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
This is a convenience which creates an instance of the
ListFleetsRequest.Builder
avoiding the need to create one manually viaListFleetsRequest.builder()
- Parameters:
listFleetsRequest
- AConsumer
that will call methods onListFleetsRequest.Builder
to create a request.- Returns:
- Result of the ListFleets operation returned by the service.
- See Also:
-
listFleetsPaginator
default ListFleetsIterable listFleetsPaginator(ListFleetsRequest listFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
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.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListFleetsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(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
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.- Parameters:
listFleetsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listFleetsPaginator
default ListFleetsIterable listFleetsPaginator(Consumer<ListFleetsRequest.Builder> listFleetsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
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.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListFleetsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsIterable responses = client.listFleetsPaginator(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
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.
This is a convenience which creates an instance of the
ListFleetsRequest.Builder
avoiding the need to create one manually viaListFleetsRequest.builder()
- Parameters:
listFleetsRequest
- AConsumer
that will call methods onListFleetsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProjects
default ListProjectsResponse listProjects(ListProjectsRequest listProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build project names, with each build project name representing a single build project.
- Parameters:
listProjectsRequest
-- Returns:
- Result of the ListProjects operation returned by the service.
- See Also:
-
listProjects
default ListProjectsResponse listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list of build project names, with each build project name representing a single build project.
This is a convenience which creates an instance of the
ListProjectsRequest.Builder
avoiding the need to create one manually viaListProjectsRequest.builder()
- Parameters:
listProjectsRequest
- AConsumer
that will call methods onListProjectsRequest.Builder
to create a request.- Returns:
- Result of the ListProjects operation returned by the service.
- See Also:
-
listProjects
default ListProjectsResponse listProjects() throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildExceptionGets a list of build project names, with each build project name representing a single build project.
- Returns:
- Result of the ListProjects operation returned by the service.
- See Also:
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator() throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildExceptionThis is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
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.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator(ListProjectsRequest listProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
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.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.- Parameters:
listProjectsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listProjectsPaginator
default ListProjectsIterable listProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
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.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsIterable responses = client.listProjectsPaginator(request); responses.iterator().forEachRemaining(....);
Please notice that the configuration of null 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
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.
This is a convenience which creates an instance of the
ListProjectsRequest.Builder
avoiding the need to create one manually viaListProjectsRequest.builder()
- Parameters:
listProjectsRequest
- AConsumer
that will call methods onListProjectsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportGroups
default ListReportGroupsResponse listReportGroups(ListReportGroupsRequest listReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list ARNs for the report groups in the current Amazon Web Services account.
- Parameters:
listReportGroupsRequest
-- Returns:
- Result of the ListReportGroups operation returned by the service.
- See Also:
-
listReportGroups
default ListReportGroupsResponse listReportGroups(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Gets a list ARNs for the report groups in the current Amazon Web Services account.
This is a convenience which creates an instance of the
ListReportGroupsRequest.Builder
avoiding the need to create one manually viaListReportGroupsRequest.builder()
- Parameters:
listReportGroupsRequest
- AConsumer
that will call methods onListReportGroupsRequest.Builder
to create a request.- Returns:
- Result of the ListReportGroups operation returned by the service.
- See Also:
-
listReportGroupsPaginator
default ListReportGroupsIterable listReportGroupsPaginator(ListReportGroupsRequest listReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
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.codebuild.paginators.ListReportGroupsIterable responses = client.listReportGroupsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsIterable responses = client .listReportGroupsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsIterable responses = client.listReportGroupsPaginator(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
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.- Parameters:
listReportGroupsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportGroupsPaginator
default ListReportGroupsIterable listReportGroupsPaginator(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
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.codebuild.paginators.ListReportGroupsIterable responses = client.listReportGroupsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsIterable responses = client .listReportGroupsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsIterable responses = client.listReportGroupsPaginator(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
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.
This is a convenience which creates an instance of the
ListReportGroupsRequest.Builder
avoiding the need to create one manually viaListReportGroupsRequest.builder()
- Parameters:
listReportGroupsRequest
- AConsumer
that will call methods onListReportGroupsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReports
default ListReportsResponse listReports(ListReportsRequest listReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of ARNs for the reports in the current Amazon Web Services account.
- Parameters:
listReportsRequest
-- Returns:
- Result of the ListReports operation returned by the service.
- See Also:
-
listReports
default ListReportsResponse listReports(Consumer<ListReportsRequest.Builder> listReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of ARNs for the reports in the current Amazon Web Services account.
This is a convenience which creates an instance of the
ListReportsRequest.Builder
avoiding the need to create one manually viaListReportsRequest.builder()
- Parameters:
listReportsRequest
- AConsumer
that will call methods onListReportsRequest.Builder
to create a request.- Returns:
- Result of the ListReports operation returned by the service.
- See Also:
-
listReportsPaginator
default ListReportsIterable listReportsPaginator(ListReportsRequest listReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
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.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(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
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.- Parameters:
listReportsRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportsPaginator
default ListReportsIterable listReportsPaginator(Consumer<ListReportsRequest.Builder> listReportsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
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.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportsResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportsIterable responses = client.listReportsPaginator(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
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.
This is a convenience which creates an instance of the
ListReportsRequest.Builder
avoiding the need to create one manually viaListReportsRequest.builder()
- Parameters:
listReportsRequest
- AConsumer
that will call methods onListReportsRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportsForReportGroup
default ListReportsForReportGroupResponse listReportsForReportGroup(ListReportsForReportGroupRequest listReportsForReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of ARNs for the reports that belong to a
ReportGroup
.- Parameters:
listReportsForReportGroupRequest
-- Returns:
- Result of the ListReportsForReportGroup operation returned by the service.
- See Also:
-
listReportsForReportGroup
default ListReportsForReportGroupResponse listReportsForReportGroup(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of ARNs for the reports that belong to a
ReportGroup
.
This is a convenience which creates an instance of the
ListReportsForReportGroupRequest.Builder
avoiding the need to create one manually viaListReportsForReportGroupRequest.builder()
- Parameters:
listReportsForReportGroupRequest
- AConsumer
that will call methods onListReportsForReportGroupRequest.Builder
to create a request.- Returns:
- Result of the ListReportsForReportGroup operation returned by the service.
- See Also:
-
listReportsForReportGroupPaginator
default ListReportsForReportGroupIterable listReportsForReportGroupPaginator(ListReportsForReportGroupRequest listReportsForReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
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.codebuild.paginators.ListReportsForReportGroupIterable responses = client.listReportsForReportGroupPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupIterable responses = client .listReportsForReportGroupPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupIterable responses = client.listReportsForReportGroupPaginator(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
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.- Parameters:
listReportsForReportGroupRequest
-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportsForReportGroupPaginator
default ListReportsForReportGroupIterable listReportsForReportGroupPaginator(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException This is a variant of
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
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.codebuild.paginators.ListReportsForReportGroupIterable responses = client.listReportsForReportGroupPaginator(request); responses.stream().forEach(....);
{ @code software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupIterable responses = client .listReportsForReportGroupPaginator(request); for (software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse response : responses) { // do something; } }
3) Use iterator directlysoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupIterable responses = client.listReportsForReportGroupPaginator(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
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.
This is a convenience which creates an instance of the
ListReportsForReportGroupRequest.Builder
avoiding the need to create one manually viaListReportsForReportGroupRequest.builder()
- Parameters:
listReportsForReportGroupRequest
- AConsumer
that will call methods onListReportsForReportGroupRequest.Builder
to create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listSourceCredentials
default ListSourceCredentialsResponse listSourceCredentials(ListSourceCredentialsRequest listSourceCredentialsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of
SourceCredentialsInfo
objects.- Parameters:
listSourceCredentialsRequest
-- Returns:
- Result of the ListSourceCredentials operation returned by the service.
- See Also:
-
listSourceCredentials
default ListSourceCredentialsResponse listSourceCredentials(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Returns a list of
SourceCredentialsInfo
objects.
This is a convenience which creates an instance of the
ListSourceCredentialsRequest.Builder
avoiding the need to create one manually viaListSourceCredentialsRequest.builder()
- Parameters:
listSourceCredentialsRequest
- AConsumer
that will call methods onListSourceCredentialsRequest.Builder
to create a request.- Returns:
- Result of the ListSourceCredentials operation returned by the service.
- See Also:
-
listSourceCredentials
default ListSourceCredentialsResponse listSourceCredentials() throws InvalidInputException, AwsServiceException, SdkClientException, CodeBuildExceptionReturns a list of
SourceCredentialsInfo
objects.- Returns:
- Result of the ListSourceCredentials operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws ResourceNotFoundException, InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Stores a resource policy for the ARN of a
Project
orReportGroup
object.- Parameters:
putResourcePolicyRequest
-- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws ResourceNotFoundException, InvalidInputException, AwsServiceException, SdkClientException, CodeBuildException Stores a resource policy for the ARN of a
Project
orReportGroup
object.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builder
avoiding the need to create one manually viaPutResourcePolicyRequest.builder()
- Parameters:
putResourcePolicyRequest
- AConsumer
that will call methods onPutResourcePolicyRequest.Builder
to create a request.- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- See Also:
-
retryBuild
default RetryBuildResponse retryBuild(RetryBuildRequest retryBuildRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Restarts a build.
- Parameters:
retryBuildRequest
-- Returns:
- Result of the RetryBuild operation returned by the service.
- See Also:
-
retryBuild
default RetryBuildResponse retryBuild(Consumer<RetryBuildRequest.Builder> retryBuildRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Restarts a build.
This is a convenience which creates an instance of the
RetryBuildRequest.Builder
avoiding the need to create one manually viaRetryBuildRequest.builder()
- Parameters:
retryBuildRequest
- AConsumer
that will call methods onRetryBuildRequest.Builder
to create a request.- Returns:
- Result of the RetryBuild operation returned by the service.
- See Also:
-
retryBuildBatch
default RetryBuildBatchResponse retryBuildBatch(RetryBuildBatchRequest retryBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Restarts a failed batch build. Only batch builds that have failed can be retried.
- Parameters:
retryBuildBatchRequest
-- Returns:
- Result of the RetryBuildBatch operation returned by the service.
- See Also:
-
retryBuildBatch
default RetryBuildBatchResponse retryBuildBatch(Consumer<RetryBuildBatchRequest.Builder> retryBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Restarts a failed batch build. Only batch builds that have failed can be retried.
This is a convenience which creates an instance of the
RetryBuildBatchRequest.Builder
avoiding the need to create one manually viaRetryBuildBatchRequest.builder()
- Parameters:
retryBuildBatchRequest
- AConsumer
that will call methods onRetryBuildBatchRequest.Builder
to create a request.- Returns:
- Result of the RetryBuildBatch operation returned by the service.
- See Also:
-
startBuild
default StartBuildResponse startBuild(StartBuildRequest startBuildRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.
You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.
- Parameters:
startBuildRequest
-- Returns:
- Result of the StartBuild operation returned by the service.
- See Also:
-
startBuild
default StartBuildResponse startBuild(Consumer<StartBuildRequest.Builder> startBuildRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.
You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.
This is a convenience which creates an instance of the
StartBuildRequest.Builder
avoiding the need to create one manually viaStartBuildRequest.builder()
- Parameters:
startBuildRequest
- AConsumer
that will call methods onStartBuildRequest.Builder
to create a request.- Returns:
- Result of the StartBuild operation returned by the service.
- See Also:
-
startBuildBatch
default StartBuildBatchResponse startBuildBatch(StartBuildBatchRequest startBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Starts a batch build for a project.
- Parameters:
startBuildBatchRequest
-- Returns:
- Result of the StartBuildBatch operation returned by the service.
- See Also:
-
startBuildBatch
default StartBuildBatchResponse startBuildBatch(Consumer<StartBuildBatchRequest.Builder> startBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Starts a batch build for a project.
This is a convenience which creates an instance of the
StartBuildBatchRequest.Builder
avoiding the need to create one manually viaStartBuildBatchRequest.builder()
- Parameters:
startBuildBatchRequest
- AConsumer
that will call methods onStartBuildBatchRequest.Builder
to create a request.- Returns:
- Result of the StartBuildBatch operation returned by the service.
- See Also:
-
stopBuild
default StopBuildResponse stopBuild(StopBuildRequest stopBuildRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Attempts to stop running a build.
- Parameters:
stopBuildRequest
-- Returns:
- Result of the StopBuild operation returned by the service.
- See Also:
-
stopBuild
default StopBuildResponse stopBuild(Consumer<StopBuildRequest.Builder> stopBuildRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Attempts to stop running a build.
This is a convenience which creates an instance of the
StopBuildRequest.Builder
avoiding the need to create one manually viaStopBuildRequest.builder()
- Parameters:
stopBuildRequest
- AConsumer
that will call methods onStopBuildRequest.Builder
to create a request.- Returns:
- Result of the StopBuild operation returned by the service.
- See Also:
-
stopBuildBatch
default StopBuildBatchResponse stopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Stops a running batch build.
- Parameters:
stopBuildBatchRequest
-- Returns:
- Result of the StopBuildBatch operation returned by the service.
- See Also:
-
stopBuildBatch
default StopBuildBatchResponse stopBuildBatch(Consumer<StopBuildBatchRequest.Builder> stopBuildBatchRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Stops a running batch build.
This is a convenience which creates an instance of the
StopBuildBatchRequest.Builder
avoiding the need to create one manually viaStopBuildBatchRequest.builder()
- Parameters:
stopBuildBatchRequest
- AConsumer
that will call methods onStopBuildBatchRequest.Builder
to create a request.- Returns:
- Result of the StopBuildBatch operation returned by the service.
- See Also:
-
updateFleet
default UpdateFleetResponse updateFleet(UpdateFleetRequest updateFleetRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Updates a compute fleet.
- Parameters:
updateFleetRequest
-- Returns:
- Result of the UpdateFleet operation returned by the service.
- See Also:
-
updateFleet
default UpdateFleetResponse updateFleet(Consumer<UpdateFleetRequest.Builder> updateFleetRequest) throws InvalidInputException, ResourceNotFoundException, AccountLimitExceededException, AwsServiceException, SdkClientException, CodeBuildException Updates a compute fleet.
This is a convenience which creates an instance of the
UpdateFleetRequest.Builder
avoiding the need to create one manually viaUpdateFleetRequest.builder()
- Parameters:
updateFleetRequest
- AConsumer
that will call methods onUpdateFleetRequest.Builder
to create a request.- Returns:
- Result of the UpdateFleet operation returned by the service.
- See Also:
-
updateProject
default UpdateProjectResponse updateProject(UpdateProjectRequest updateProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Changes the settings of a build project.
- Parameters:
updateProjectRequest
-- Returns:
- Result of the UpdateProject operation returned by the service.
- See Also:
-
updateProject
default UpdateProjectResponse updateProject(Consumer<UpdateProjectRequest.Builder> updateProjectRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Changes the settings of a build project.
This is a convenience which creates an instance of the
UpdateProjectRequest.Builder
avoiding the need to create one manually viaUpdateProjectRequest.builder()
- Parameters:
updateProjectRequest
- AConsumer
that will call methods onUpdateProjectRequest.Builder
to create a request.- Returns:
- Result of the UpdateProject operation returned by the service.
- See Also:
-
updateProjectVisibility
default UpdateProjectVisibilityResponse updateProjectVisibility(UpdateProjectVisibilityRequest updateProjectVisibilityRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
- Parameters:
updateProjectVisibilityRequest
-- Returns:
- Result of the UpdateProjectVisibility operation returned by the service.
- See Also:
-
-
updateProjectVisibility
default UpdateProjectVisibilityResponse updateProjectVisibility(Consumer<UpdateProjectVisibilityRequest.Builder> updateProjectVisibilityRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
This is a convenience which creates an instance of the
UpdateProjectVisibilityRequest.Builder
avoiding the need to create one manually viaUpdateProjectVisibilityRequest.builder()
- Parameters:
updateProjectVisibilityRequest
- AConsumer
that will call methods onUpdateProjectVisibilityRequest.Builder
to create a request.- Returns:
- Result of the UpdateProjectVisibility operation returned by the service.
- See Also:
-
-
updateReportGroup
default UpdateReportGroupResponse updateReportGroup(UpdateReportGroupRequest updateReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Updates a report group.
- Parameters:
updateReportGroupRequest
-- Returns:
- Result of the UpdateReportGroup operation returned by the service.
- See Also:
-
updateReportGroup
default UpdateReportGroupResponse updateReportGroup(Consumer<UpdateReportGroupRequest.Builder> updateReportGroupRequest) throws InvalidInputException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeBuildException Updates a report group.
This is a convenience which creates an instance of the
UpdateReportGroupRequest.Builder
avoiding the need to create one manually viaUpdateReportGroupRequest.builder()
- Parameters:
updateReportGroupRequest
- AConsumer
that will call methods onUpdateReportGroupRequest.Builder
to create a request.- Returns:
- Result of the UpdateReportGroup operation returned by the service.
- See Also:
-
updateWebhook
default UpdateWebhookResponse updateWebhook(UpdateWebhookRequest updateWebhookRequest) throws InvalidInputException, ResourceNotFoundException, OAuthProviderException, AwsServiceException, SdkClientException, CodeBuildException Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository,
rotateSecret
is ignored.- Parameters:
updateWebhookRequest
-- Returns:
- Result of the UpdateWebhook operation returned by the service.
- See Also:
-
updateWebhook
default UpdateWebhookResponse updateWebhook(Consumer<UpdateWebhookRequest.Builder> updateWebhookRequest) throws InvalidInputException, ResourceNotFoundException, OAuthProviderException, AwsServiceException, SdkClientException, CodeBuildException Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository,
rotateSecret
is ignored.
This is a convenience which creates an instance of the
UpdateWebhookRequest.Builder
avoiding the need to create one manually viaUpdateWebhookRequest.builder()
- Parameters:
updateWebhookRequest
- AConsumer
that will call methods onUpdateWebhookRequest.Builder
to create a request.- Returns:
- Result of the UpdateWebhook operation returned by the service.
- See Also:
-
create
Create aCodeBuildClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCodeBuildClient
. -
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
-