CodeBuildClient#
Auto-generated documentation for CodeBuild type annotations stubs module types-boto3-codebuild.
CodeBuildClient#
Type annotations and code completion for boto3.client("codebuild")
.
boto3 documentation
# CodeBuildClient usage example
from boto3.session import Session
from types_boto3_codebuild.client import CodeBuildClient
def get_codebuild_client() -> CodeBuildClient:
return Session().client("codebuild")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("codebuild").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("codebuild")
try:
do_something(client)
except (
client.exceptions.AccountLimitExceededException,
client.exceptions.ClientError,
client.exceptions.InvalidInputException,
client.exceptions.OAuthProviderException,
client.exceptions.ResourceAlreadyExistsException,
client.exceptions.ResourceNotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from types_boto3_codebuild.client import Exceptions
def handle_error(exc: Exceptions.AccountLimitExceededException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("codebuild").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("codebuild").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
batch_delete_builds#
Deletes one or more builds.
Type annotations and code completion for boto3.client("codebuild").batch_delete_builds
method.
boto3 documentation
# batch_delete_builds method definition
def batch_delete_builds(
self,
*,
ids: Sequence[str],
) -> BatchDeleteBuildsOutputTypeDef: # (1)
...
# batch_delete_builds method usage example with argument unpacking
kwargs: BatchDeleteBuildsInputRequestTypeDef = { # (1)
"ids": ...,
}
parent.batch_delete_builds(**kwargs)
batch_get_build_batches#
Retrieves information about one or more batch builds.
Type annotations and code completion for boto3.client("codebuild").batch_get_build_batches
method.
boto3 documentation
# batch_get_build_batches method definition
def batch_get_build_batches(
self,
*,
ids: Sequence[str],
) -> BatchGetBuildBatchesOutputTypeDef: # (1)
...
# batch_get_build_batches method usage example with argument unpacking
kwargs: BatchGetBuildBatchesInputRequestTypeDef = { # (1)
"ids": ...,
}
parent.batch_get_build_batches(**kwargs)
batch_get_builds#
Gets information about one or more builds.
Type annotations and code completion for boto3.client("codebuild").batch_get_builds
method.
boto3 documentation
# batch_get_builds method definition
def batch_get_builds(
self,
*,
ids: Sequence[str],
) -> BatchGetBuildsOutputTypeDef: # (1)
...
# batch_get_builds method usage example with argument unpacking
kwargs: BatchGetBuildsInputRequestTypeDef = { # (1)
"ids": ...,
}
parent.batch_get_builds(**kwargs)
batch_get_fleets#
Gets information about one or more compute fleets.
Type annotations and code completion for boto3.client("codebuild").batch_get_fleets
method.
boto3 documentation
# batch_get_fleets method definition
def batch_get_fleets(
self,
*,
names: Sequence[str],
) -> BatchGetFleetsOutputTypeDef: # (1)
...
# batch_get_fleets method usage example with argument unpacking
kwargs: BatchGetFleetsInputRequestTypeDef = { # (1)
"names": ...,
}
parent.batch_get_fleets(**kwargs)
batch_get_projects#
Gets information about one or more build projects.
Type annotations and code completion for boto3.client("codebuild").batch_get_projects
method.
boto3 documentation
# batch_get_projects method definition
def batch_get_projects(
self,
*,
names: Sequence[str],
) -> BatchGetProjectsOutputTypeDef: # (1)
...
# batch_get_projects method usage example with argument unpacking
kwargs: BatchGetProjectsInputRequestTypeDef = { # (1)
"names": ...,
}
parent.batch_get_projects(**kwargs)
batch_get_report_groups#
Returns an array of report groups.
Type annotations and code completion for boto3.client("codebuild").batch_get_report_groups
method.
boto3 documentation
# batch_get_report_groups method definition
def batch_get_report_groups(
self,
*,
reportGroupArns: Sequence[str],
) -> BatchGetReportGroupsOutputTypeDef: # (1)
...
# batch_get_report_groups method usage example with argument unpacking
kwargs: BatchGetReportGroupsInputRequestTypeDef = { # (1)
"reportGroupArns": ...,
}
parent.batch_get_report_groups(**kwargs)
batch_get_reports#
Returns an array of reports.
Type annotations and code completion for boto3.client("codebuild").batch_get_reports
method.
boto3 documentation
# batch_get_reports method definition
def batch_get_reports(
self,
*,
reportArns: Sequence[str],
) -> BatchGetReportsOutputTypeDef: # (1)
...
# batch_get_reports method usage example with argument unpacking
kwargs: BatchGetReportsInputRequestTypeDef = { # (1)
"reportArns": ...,
}
parent.batch_get_reports(**kwargs)
create_fleet#
Creates a compute fleet.
Type annotations and code completion for boto3.client("codebuild").create_fleet
method.
boto3 documentation
# create_fleet method definition
def create_fleet(
self,
*,
name: str,
baseCapacity: int,
environmentType: EnvironmentTypeType, # (1)
computeType: ComputeTypeType, # (2)
computeConfiguration: ComputeConfigurationTypeDef = ..., # (3)
scalingConfiguration: ScalingConfigurationInputTypeDef = ..., # (4)
overflowBehavior: FleetOverflowBehaviorType = ..., # (5)
vpcConfig: VpcConfigTypeDef = ..., # (6)
proxyConfiguration: ProxyConfigurationTypeDef = ..., # (7)
imageId: str = ...,
fleetServiceRole: str = ...,
tags: Sequence[TagTypeDef] = ..., # (8)
) -> CreateFleetOutputTypeDef: # (9)
...
- See EnvironmentTypeType
- See ComputeTypeType
- See ComputeConfigurationTypeDef
- See ScalingConfigurationInputTypeDef
- See FleetOverflowBehaviorType
- See VpcConfigTypeDef
- See ProxyConfigurationTypeDef
- See TagTypeDef
- See CreateFleetOutputTypeDef
# create_fleet method usage example with argument unpacking
kwargs: CreateFleetInputRequestTypeDef = { # (1)
"name": ...,
"baseCapacity": ...,
"environmentType": ...,
"computeType": ...,
}
parent.create_fleet(**kwargs)
create_project#
Creates a build project.
Type annotations and code completion for boto3.client("codebuild").create_project
method.
boto3 documentation
# create_project method definition
def create_project(
self,
*,
name: str,
source: ProjectSourceTypeDef, # (1)
artifacts: ProjectArtifactsTypeDef, # (2)
environment: ProjectEnvironmentTypeDef, # (3)
serviceRole: str,
description: str = ...,
secondarySources: Sequence[ProjectSourceTypeDef] = ..., # (4)
sourceVersion: str = ...,
secondarySourceVersions: Sequence[ProjectSourceVersionTypeDef] = ..., # (5)
secondaryArtifacts: Sequence[ProjectArtifactsTypeDef] = ..., # (6)
cache: ProjectCacheTypeDef = ..., # (7)
timeoutInMinutes: int = ...,
queuedTimeoutInMinutes: int = ...,
encryptionKey: str = ...,
tags: Sequence[TagTypeDef] = ..., # (8)
vpcConfig: VpcConfigTypeDef = ..., # (9)
badgeEnabled: bool = ...,
logsConfig: LogsConfigTypeDef = ..., # (10)
fileSystemLocations: Sequence[ProjectFileSystemLocationTypeDef] = ..., # (11)
buildBatchConfig: ProjectBuildBatchConfigTypeDef = ..., # (12)
concurrentBuildLimit: int = ...,
autoRetryLimit: int = ...,
) -> CreateProjectOutputTypeDef: # (13)
...
- See ProjectSourceTypeDef
- See ProjectArtifactsTypeDef
- See ProjectEnvironmentTypeDef
- See ProjectSourceTypeDef
- See ProjectSourceVersionTypeDef
- See ProjectArtifactsTypeDef
- See ProjectCacheTypeDef
- See TagTypeDef
- See VpcConfigTypeDef
- See LogsConfigTypeDef
- See ProjectFileSystemLocationTypeDef
- See ProjectBuildBatchConfigTypeDef
- See CreateProjectOutputTypeDef
# create_project method usage example with argument unpacking
kwargs: CreateProjectInputRequestTypeDef = { # (1)
"name": ...,
"source": ...,
"artifacts": ...,
"environment": ...,
"serviceRole": ...,
}
parent.create_project(**kwargs)
create_report_group#
Creates a report group.
Type annotations and code completion for boto3.client("codebuild").create_report_group
method.
boto3 documentation
# create_report_group method definition
def create_report_group(
self,
*,
name: str,
type: ReportTypeType, # (1)
exportConfig: ReportExportConfigTypeDef, # (2)
tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateReportGroupOutputTypeDef: # (4)
...
# create_report_group method usage example with argument unpacking
kwargs: CreateReportGroupInputRequestTypeDef = { # (1)
"name": ...,
"type": ...,
"exportConfig": ...,
}
parent.create_report_group(**kwargs)
create_webhook#
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.
Type annotations and code completion for boto3.client("codebuild").create_webhook
method.
boto3 documentation
# create_webhook method definition
def create_webhook(
self,
*,
projectName: str,
branchFilter: str = ...,
filterGroups: Sequence[Sequence[WebhookFilterTypeDef]] = ..., # (1)
buildType: WebhookBuildTypeType = ..., # (2)
manualCreation: bool = ...,
scopeConfiguration: ScopeConfigurationTypeDef = ..., # (3)
) -> CreateWebhookOutputTypeDef: # (4)
...
- See WebhookFilterTypeDef
- See WebhookBuildTypeType
- See ScopeConfigurationTypeDef
- See CreateWebhookOutputTypeDef
# create_webhook method usage example with argument unpacking
kwargs: CreateWebhookInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.create_webhook(**kwargs)
delete_build_batch#
Deletes a batch build.
Type annotations and code completion for boto3.client("codebuild").delete_build_batch
method.
boto3 documentation
# delete_build_batch method definition
def delete_build_batch(
self,
*,
id: str,
) -> DeleteBuildBatchOutputTypeDef: # (1)
...
# delete_build_batch method usage example with argument unpacking
kwargs: DeleteBuildBatchInputRequestTypeDef = { # (1)
"id": ...,
}
parent.delete_build_batch(**kwargs)
delete_fleet#
Deletes a compute fleet.
Type annotations and code completion for boto3.client("codebuild").delete_fleet
method.
boto3 documentation
# delete_fleet method definition
def delete_fleet(
self,
*,
arn: str,
) -> dict[str, Any]:
...
# delete_fleet method usage example with argument unpacking
kwargs: DeleteFleetInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.delete_fleet(**kwargs)
delete_project#
Deletes a build project.
Type annotations and code completion for boto3.client("codebuild").delete_project
method.
boto3 documentation
# delete_project method definition
def delete_project(
self,
*,
name: str,
) -> dict[str, Any]:
...
# delete_project method usage example with argument unpacking
kwargs: DeleteProjectInputRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_project(**kwargs)
delete_report#
Deletes a report.
Type annotations and code completion for boto3.client("codebuild").delete_report
method.
boto3 documentation
# delete_report method definition
def delete_report(
self,
*,
arn: str,
) -> dict[str, Any]:
...
# delete_report method usage example with argument unpacking
kwargs: DeleteReportInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.delete_report(**kwargs)
delete_report_group#
Deletes a report group.
Type annotations and code completion for boto3.client("codebuild").delete_report_group
method.
boto3 documentation
# delete_report_group method definition
def delete_report_group(
self,
*,
arn: str,
deleteReports: bool = ...,
) -> dict[str, Any]:
...
# delete_report_group method usage example with argument unpacking
kwargs: DeleteReportGroupInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.delete_report_group(**kwargs)
delete_resource_policy#
Deletes a resource policy that is identified by its resource ARN.
Type annotations and code completion for boto3.client("codebuild").delete_resource_policy
method.
boto3 documentation
# delete_resource_policy method definition
def delete_resource_policy(
self,
*,
resourceArn: str,
) -> dict[str, Any]:
...
# delete_resource_policy method usage example with argument unpacking
kwargs: DeleteResourcePolicyInputRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.delete_resource_policy(**kwargs)
delete_source_credentials#
Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
Type annotations and code completion for boto3.client("codebuild").delete_source_credentials
method.
boto3 documentation
# delete_source_credentials method definition
def delete_source_credentials(
self,
*,
arn: str,
) -> DeleteSourceCredentialsOutputTypeDef: # (1)
...
# delete_source_credentials method usage example with argument unpacking
kwargs: DeleteSourceCredentialsInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.delete_source_credentials(**kwargs)
delete_webhook#
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.
Type annotations and code completion for boto3.client("codebuild").delete_webhook
method.
boto3 documentation
# delete_webhook method definition
def delete_webhook(
self,
*,
projectName: str,
) -> dict[str, Any]:
...
# delete_webhook method usage example with argument unpacking
kwargs: DeleteWebhookInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.delete_webhook(**kwargs)
describe_code_coverages#
Retrieves one or more code coverage reports.
Type annotations and code completion for boto3.client("codebuild").describe_code_coverages
method.
boto3 documentation
# describe_code_coverages method definition
def describe_code_coverages(
self,
*,
reportArn: str,
nextToken: str = ...,
maxResults: int = ...,
sortOrder: SortOrderTypeType = ..., # (1)
sortBy: ReportCodeCoverageSortByTypeType = ..., # (2)
minLineCoveragePercentage: float = ...,
maxLineCoveragePercentage: float = ...,
) -> DescribeCodeCoveragesOutputTypeDef: # (3)
...
# describe_code_coverages method usage example with argument unpacking
kwargs: DescribeCodeCoveragesInputRequestTypeDef = { # (1)
"reportArn": ...,
}
parent.describe_code_coverages(**kwargs)
describe_test_cases#
Returns a list of details about test cases for a report.
Type annotations and code completion for boto3.client("codebuild").describe_test_cases
method.
boto3 documentation
# describe_test_cases method definition
def describe_test_cases(
self,
*,
reportArn: str,
nextToken: str = ...,
maxResults: int = ...,
filter: TestCaseFilterTypeDef = ..., # (1)
) -> DescribeTestCasesOutputTypeDef: # (2)
...
# describe_test_cases method usage example with argument unpacking
kwargs: DescribeTestCasesInputRequestTypeDef = { # (1)
"reportArn": ...,
}
parent.describe_test_cases(**kwargs)
get_report_group_trend#
Analyzes and accumulates test report values for the specified test reports.
Type annotations and code completion for boto3.client("codebuild").get_report_group_trend
method.
boto3 documentation
# get_report_group_trend method definition
def get_report_group_trend(
self,
*,
reportGroupArn: str,
trendField: ReportGroupTrendFieldTypeType, # (1)
numOfReports: int = ...,
) -> GetReportGroupTrendOutputTypeDef: # (2)
...
# get_report_group_trend method usage example with argument unpacking
kwargs: GetReportGroupTrendInputRequestTypeDef = { # (1)
"reportGroupArn": ...,
"trendField": ...,
}
parent.get_report_group_trend(**kwargs)
get_resource_policy#
Gets a resource policy that is identified by its resource ARN.
Type annotations and code completion for boto3.client("codebuild").get_resource_policy
method.
boto3 documentation
# get_resource_policy method definition
def get_resource_policy(
self,
*,
resourceArn: str,
) -> GetResourcePolicyOutputTypeDef: # (1)
...
# get_resource_policy method usage example with argument unpacking
kwargs: GetResourcePolicyInputRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.get_resource_policy(**kwargs)
import_source_credentials#
Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.
Type annotations and code completion for boto3.client("codebuild").import_source_credentials
method.
boto3 documentation
# import_source_credentials method definition
def import_source_credentials(
self,
*,
token: str,
serverType: ServerTypeType, # (1)
authType: AuthTypeType, # (2)
username: str = ...,
shouldOverwrite: bool = ...,
) -> ImportSourceCredentialsOutputTypeDef: # (3)
...
# import_source_credentials method usage example with argument unpacking
kwargs: ImportSourceCredentialsInputRequestTypeDef = { # (1)
"token": ...,
"serverType": ...,
"authType": ...,
}
parent.import_source_credentials(**kwargs)
invalidate_project_cache#
Resets the cache for a project.
Type annotations and code completion for boto3.client("codebuild").invalidate_project_cache
method.
boto3 documentation
# invalidate_project_cache method definition
def invalidate_project_cache(
self,
*,
projectName: str,
) -> dict[str, Any]:
...
# invalidate_project_cache method usage example with argument unpacking
kwargs: InvalidateProjectCacheInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.invalidate_project_cache(**kwargs)
list_build_batches#
Retrieves the identifiers of your build batches in the current region.
Type annotations and code completion for boto3.client("codebuild").list_build_batches
method.
boto3 documentation
# list_build_batches method definition
def list_build_batches(
self,
*,
filter: BuildBatchFilterTypeDef = ..., # (1)
maxResults: int = ...,
sortOrder: SortOrderTypeType = ..., # (2)
nextToken: str = ...,
) -> ListBuildBatchesOutputTypeDef: # (3)
...
# list_build_batches method usage example with argument unpacking
kwargs: ListBuildBatchesInputRequestTypeDef = { # (1)
"filter": ...,
}
parent.list_build_batches(**kwargs)
list_build_batches_for_project#
Retrieves the identifiers of the build batches for a specific project.
Type annotations and code completion for boto3.client("codebuild").list_build_batches_for_project
method.
boto3 documentation
# list_build_batches_for_project method definition
def list_build_batches_for_project(
self,
*,
projectName: str = ...,
filter: BuildBatchFilterTypeDef = ..., # (1)
maxResults: int = ...,
sortOrder: SortOrderTypeType = ..., # (2)
nextToken: str = ...,
) -> ListBuildBatchesForProjectOutputTypeDef: # (3)
...
# list_build_batches_for_project method usage example with argument unpacking
kwargs: ListBuildBatchesForProjectInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.list_build_batches_for_project(**kwargs)
list_builds#
Gets a list of build IDs, with each build ID representing a single build.
Type annotations and code completion for boto3.client("codebuild").list_builds
method.
boto3 documentation
# list_builds method definition
def list_builds(
self,
*,
sortOrder: SortOrderTypeType = ..., # (1)
nextToken: str = ...,
) -> ListBuildsOutputTypeDef: # (2)
...
# list_builds method usage example with argument unpacking
kwargs: ListBuildsInputRequestTypeDef = { # (1)
"sortOrder": ...,
}
parent.list_builds(**kwargs)
list_builds_for_project#
Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
Type annotations and code completion for boto3.client("codebuild").list_builds_for_project
method.
boto3 documentation
# list_builds_for_project method definition
def list_builds_for_project(
self,
*,
projectName: str,
sortOrder: SortOrderTypeType = ..., # (1)
nextToken: str = ...,
) -> ListBuildsForProjectOutputTypeDef: # (2)
...
# list_builds_for_project method usage example with argument unpacking
kwargs: ListBuildsForProjectInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.list_builds_for_project(**kwargs)
list_curated_environment_images#
Gets information about Docker images that are managed by CodeBuild.
Type annotations and code completion for boto3.client("codebuild").list_curated_environment_images
method.
boto3 documentation
# list_curated_environment_images method definition
def list_curated_environment_images(
self,
) -> ListCuratedEnvironmentImagesOutputTypeDef: # (1)
...
list_fleets#
Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
Type annotations and code completion for boto3.client("codebuild").list_fleets
method.
boto3 documentation
# list_fleets method definition
def list_fleets(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
sortOrder: SortOrderTypeType = ..., # (1)
sortBy: FleetSortByTypeType = ..., # (2)
) -> ListFleetsOutputTypeDef: # (3)
...
# list_fleets method usage example with argument unpacking
kwargs: ListFleetsInputRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_fleets(**kwargs)
list_projects#
Gets a list of build project names, with each build project name representing a single build project.
Type annotations and code completion for boto3.client("codebuild").list_projects
method.
boto3 documentation
# list_projects method definition
def list_projects(
self,
*,
sortBy: ProjectSortByTypeType = ..., # (1)
sortOrder: SortOrderTypeType = ..., # (2)
nextToken: str = ...,
) -> ListProjectsOutputTypeDef: # (3)
...
# list_projects method usage example with argument unpacking
kwargs: ListProjectsInputRequestTypeDef = { # (1)
"sortBy": ...,
}
parent.list_projects(**kwargs)
list_report_groups#
Gets a list ARNs for the report groups in the current Amazon Web Services account.
Type annotations and code completion for boto3.client("codebuild").list_report_groups
method.
boto3 documentation
# list_report_groups method definition
def list_report_groups(
self,
*,
sortOrder: SortOrderTypeType = ..., # (1)
sortBy: ReportGroupSortByTypeType = ..., # (2)
nextToken: str = ...,
maxResults: int = ...,
) -> ListReportGroupsOutputTypeDef: # (3)
...
# list_report_groups method usage example with argument unpacking
kwargs: ListReportGroupsInputRequestTypeDef = { # (1)
"sortOrder": ...,
}
parent.list_report_groups(**kwargs)
list_reports#
Returns a list of ARNs for the reports in the current Amazon Web Services account.
Type annotations and code completion for boto3.client("codebuild").list_reports
method.
boto3 documentation
# list_reports method definition
def list_reports(
self,
*,
sortOrder: SortOrderTypeType = ..., # (1)
nextToken: str = ...,
maxResults: int = ...,
filter: ReportFilterTypeDef = ..., # (2)
) -> ListReportsOutputTypeDef: # (3)
...
# list_reports method usage example with argument unpacking
kwargs: ListReportsInputRequestTypeDef = { # (1)
"sortOrder": ...,
}
parent.list_reports(**kwargs)
list_reports_for_report_group#
Returns a list of ARNs for the reports that belong to a
ReportGroup
.
Type annotations and code completion for boto3.client("codebuild").list_reports_for_report_group
method.
boto3 documentation
# list_reports_for_report_group method definition
def list_reports_for_report_group(
self,
*,
reportGroupArn: str,
nextToken: str = ...,
sortOrder: SortOrderTypeType = ..., # (1)
maxResults: int = ...,
filter: ReportFilterTypeDef = ..., # (2)
) -> ListReportsForReportGroupOutputTypeDef: # (3)
...
# list_reports_for_report_group method usage example with argument unpacking
kwargs: ListReportsForReportGroupInputRequestTypeDef = { # (1)
"reportGroupArn": ...,
}
parent.list_reports_for_report_group(**kwargs)
list_shared_projects#
Gets a list of projects that are shared with other Amazon Web Services accounts or users.
Type annotations and code completion for boto3.client("codebuild").list_shared_projects
method.
boto3 documentation
# list_shared_projects method definition
def list_shared_projects(
self,
*,
sortBy: SharedResourceSortByTypeType = ..., # (1)
sortOrder: SortOrderTypeType = ..., # (2)
maxResults: int = ...,
nextToken: str = ...,
) -> ListSharedProjectsOutputTypeDef: # (3)
...
# list_shared_projects method usage example with argument unpacking
kwargs: ListSharedProjectsInputRequestTypeDef = { # (1)
"sortBy": ...,
}
parent.list_shared_projects(**kwargs)
list_shared_report_groups#
Gets a list of report groups that are shared with other Amazon Web Services accounts or users.
Type annotations and code completion for boto3.client("codebuild").list_shared_report_groups
method.
boto3 documentation
# list_shared_report_groups method definition
def list_shared_report_groups(
self,
*,
sortOrder: SortOrderTypeType = ..., # (1)
sortBy: SharedResourceSortByTypeType = ..., # (2)
nextToken: str = ...,
maxResults: int = ...,
) -> ListSharedReportGroupsOutputTypeDef: # (3)
...
# list_shared_report_groups method usage example with argument unpacking
kwargs: ListSharedReportGroupsInputRequestTypeDef = { # (1)
"sortOrder": ...,
}
parent.list_shared_report_groups(**kwargs)
list_source_credentials#
Returns a list of SourceCredentialsInfo
objects.
Type annotations and code completion for boto3.client("codebuild").list_source_credentials
method.
boto3 documentation
# list_source_credentials method definition
def list_source_credentials(
self,
) -> ListSourceCredentialsOutputTypeDef: # (1)
...
put_resource_policy#
Stores a resource policy for the ARN of a Project
or
ReportGroup
object.
Type annotations and code completion for boto3.client("codebuild").put_resource_policy
method.
boto3 documentation
# put_resource_policy method definition
def put_resource_policy(
self,
*,
policy: str,
resourceArn: str,
) -> PutResourcePolicyOutputTypeDef: # (1)
...
# put_resource_policy method usage example with argument unpacking
kwargs: PutResourcePolicyInputRequestTypeDef = { # (1)
"policy": ...,
"resourceArn": ...,
}
parent.put_resource_policy(**kwargs)
retry_build#
Restarts a build.
Type annotations and code completion for boto3.client("codebuild").retry_build
method.
boto3 documentation
# retry_build method definition
def retry_build(
self,
*,
id: str = ...,
idempotencyToken: str = ...,
) -> RetryBuildOutputTypeDef: # (1)
...
# retry_build method usage example with argument unpacking
kwargs: RetryBuildInputRequestTypeDef = { # (1)
"id": ...,
}
parent.retry_build(**kwargs)
retry_build_batch#
Restarts a failed batch build.
Type annotations and code completion for boto3.client("codebuild").retry_build_batch
method.
boto3 documentation
# retry_build_batch method definition
def retry_build_batch(
self,
*,
id: str = ...,
idempotencyToken: str = ...,
retryType: RetryBuildBatchTypeType = ..., # (1)
) -> RetryBuildBatchOutputTypeDef: # (2)
...
# retry_build_batch method usage example with argument unpacking
kwargs: RetryBuildBatchInputRequestTypeDef = { # (1)
"id": ...,
}
parent.retry_build_batch(**kwargs)
start_build#
Starts running a build with the settings defined in the project.
Type annotations and code completion for boto3.client("codebuild").start_build
method.
boto3 documentation
# start_build method definition
def start_build(
self,
*,
projectName: str,
secondarySourcesOverride: Sequence[ProjectSourceTypeDef] = ..., # (1)
secondarySourcesVersionOverride: Sequence[ProjectSourceVersionTypeDef] = ..., # (2)
sourceVersion: str = ...,
artifactsOverride: ProjectArtifactsTypeDef = ..., # (3)
secondaryArtifactsOverride: Sequence[ProjectArtifactsTypeDef] = ..., # (4)
environmentVariablesOverride: Sequence[EnvironmentVariableTypeDef] = ..., # (5)
sourceTypeOverride: SourceTypeType = ..., # (6)
sourceLocationOverride: str = ...,
sourceAuthOverride: SourceAuthTypeDef = ..., # (7)
gitCloneDepthOverride: int = ...,
gitSubmodulesConfigOverride: GitSubmodulesConfigTypeDef = ..., # (8)
buildspecOverride: str = ...,
insecureSslOverride: bool = ...,
reportBuildStatusOverride: bool = ...,
buildStatusConfigOverride: BuildStatusConfigTypeDef = ..., # (9)
environmentTypeOverride: EnvironmentTypeType = ..., # (10)
imageOverride: str = ...,
computeTypeOverride: ComputeTypeType = ..., # (11)
certificateOverride: str = ...,
cacheOverride: ProjectCacheTypeDef = ..., # (12)
serviceRoleOverride: str = ...,
privilegedModeOverride: bool = ...,
timeoutInMinutesOverride: int = ...,
queuedTimeoutInMinutesOverride: int = ...,
encryptionKeyOverride: str = ...,
idempotencyToken: str = ...,
logsConfigOverride: LogsConfigTypeDef = ..., # (13)
registryCredentialOverride: RegistryCredentialTypeDef = ..., # (14)
imagePullCredentialsTypeOverride: ImagePullCredentialsTypeType = ..., # (15)
debugSessionEnabled: bool = ...,
fleetOverride: ProjectFleetTypeDef = ..., # (16)
autoRetryLimitOverride: int = ...,
) -> StartBuildOutputTypeDef: # (17)
...
- See ProjectSourceTypeDef
- See ProjectSourceVersionTypeDef
- See ProjectArtifactsTypeDef
- See ProjectArtifactsTypeDef
- See EnvironmentVariableTypeDef
- See SourceTypeType
- See SourceAuthTypeDef
- See GitSubmodulesConfigTypeDef
- See BuildStatusConfigTypeDef
- See EnvironmentTypeType
- See ComputeTypeType
- See ProjectCacheTypeDef
- See LogsConfigTypeDef
- See RegistryCredentialTypeDef
- See ImagePullCredentialsTypeType
- See ProjectFleetTypeDef
- See StartBuildOutputTypeDef
# start_build method usage example with argument unpacking
kwargs: StartBuildInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.start_build(**kwargs)
start_build_batch#
Starts a batch build for a project.
Type annotations and code completion for boto3.client("codebuild").start_build_batch
method.
boto3 documentation
# start_build_batch method definition
def start_build_batch(
self,
*,
projectName: str,
secondarySourcesOverride: Sequence[ProjectSourceTypeDef] = ..., # (1)
secondarySourcesVersionOverride: Sequence[ProjectSourceVersionTypeDef] = ..., # (2)
sourceVersion: str = ...,
artifactsOverride: ProjectArtifactsTypeDef = ..., # (3)
secondaryArtifactsOverride: Sequence[ProjectArtifactsTypeDef] = ..., # (4)
environmentVariablesOverride: Sequence[EnvironmentVariableTypeDef] = ..., # (5)
sourceTypeOverride: SourceTypeType = ..., # (6)
sourceLocationOverride: str = ...,
sourceAuthOverride: SourceAuthTypeDef = ..., # (7)
gitCloneDepthOverride: int = ...,
gitSubmodulesConfigOverride: GitSubmodulesConfigTypeDef = ..., # (8)
buildspecOverride: str = ...,
insecureSslOverride: bool = ...,
reportBuildBatchStatusOverride: bool = ...,
environmentTypeOverride: EnvironmentTypeType = ..., # (9)
imageOverride: str = ...,
computeTypeOverride: ComputeTypeType = ..., # (10)
certificateOverride: str = ...,
cacheOverride: ProjectCacheTypeDef = ..., # (11)
serviceRoleOverride: str = ...,
privilegedModeOverride: bool = ...,
buildTimeoutInMinutesOverride: int = ...,
queuedTimeoutInMinutesOverride: int = ...,
encryptionKeyOverride: str = ...,
idempotencyToken: str = ...,
logsConfigOverride: LogsConfigTypeDef = ..., # (12)
registryCredentialOverride: RegistryCredentialTypeDef = ..., # (13)
imagePullCredentialsTypeOverride: ImagePullCredentialsTypeType = ..., # (14)
buildBatchConfigOverride: ProjectBuildBatchConfigTypeDef = ..., # (15)
debugSessionEnabled: bool = ...,
) -> StartBuildBatchOutputTypeDef: # (16)
...
- See ProjectSourceTypeDef
- See ProjectSourceVersionTypeDef
- See ProjectArtifactsTypeDef
- See ProjectArtifactsTypeDef
- See EnvironmentVariableTypeDef
- See SourceTypeType
- See SourceAuthTypeDef
- See GitSubmodulesConfigTypeDef
- See EnvironmentTypeType
- See ComputeTypeType
- See ProjectCacheTypeDef
- See LogsConfigTypeDef
- See RegistryCredentialTypeDef
- See ImagePullCredentialsTypeType
- See ProjectBuildBatchConfigTypeDef
- See StartBuildBatchOutputTypeDef
# start_build_batch method usage example with argument unpacking
kwargs: StartBuildBatchInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.start_build_batch(**kwargs)
stop_build#
Attempts to stop running a build.
Type annotations and code completion for boto3.client("codebuild").stop_build
method.
boto3 documentation
# stop_build method definition
def stop_build(
self,
*,
id: str,
) -> StopBuildOutputTypeDef: # (1)
...
# stop_build method usage example with argument unpacking
kwargs: StopBuildInputRequestTypeDef = { # (1)
"id": ...,
}
parent.stop_build(**kwargs)
stop_build_batch#
Stops a running batch build.
Type annotations and code completion for boto3.client("codebuild").stop_build_batch
method.
boto3 documentation
# stop_build_batch method definition
def stop_build_batch(
self,
*,
id: str,
) -> StopBuildBatchOutputTypeDef: # (1)
...
# stop_build_batch method usage example with argument unpacking
kwargs: StopBuildBatchInputRequestTypeDef = { # (1)
"id": ...,
}
parent.stop_build_batch(**kwargs)
update_fleet#
Updates a compute fleet.
Type annotations and code completion for boto3.client("codebuild").update_fleet
method.
boto3 documentation
# update_fleet method definition
def update_fleet(
self,
*,
arn: str,
baseCapacity: int = ...,
environmentType: EnvironmentTypeType = ..., # (1)
computeType: ComputeTypeType = ..., # (2)
computeConfiguration: ComputeConfigurationTypeDef = ..., # (3)
scalingConfiguration: ScalingConfigurationInputTypeDef = ..., # (4)
overflowBehavior: FleetOverflowBehaviorType = ..., # (5)
vpcConfig: VpcConfigTypeDef = ..., # (6)
proxyConfiguration: ProxyConfigurationTypeDef = ..., # (7)
imageId: str = ...,
fleetServiceRole: str = ...,
tags: Sequence[TagTypeDef] = ..., # (8)
) -> UpdateFleetOutputTypeDef: # (9)
...
- See EnvironmentTypeType
- See ComputeTypeType
- See ComputeConfigurationTypeDef
- See ScalingConfigurationInputTypeDef
- See FleetOverflowBehaviorType
- See VpcConfigTypeDef
- See ProxyConfigurationTypeDef
- See TagTypeDef
- See UpdateFleetOutputTypeDef
# update_fleet method usage example with argument unpacking
kwargs: UpdateFleetInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.update_fleet(**kwargs)
update_project#
Changes the settings of a build project.
Type annotations and code completion for boto3.client("codebuild").update_project
method.
boto3 documentation
# update_project method definition
def update_project(
self,
*,
name: str,
description: str = ...,
source: ProjectSourceTypeDef = ..., # (1)
secondarySources: Sequence[ProjectSourceTypeDef] = ..., # (2)
sourceVersion: str = ...,
secondarySourceVersions: Sequence[ProjectSourceVersionTypeDef] = ..., # (3)
artifacts: ProjectArtifactsTypeDef = ..., # (4)
secondaryArtifacts: Sequence[ProjectArtifactsTypeDef] = ..., # (5)
cache: ProjectCacheTypeDef = ..., # (6)
environment: ProjectEnvironmentTypeDef = ..., # (7)
serviceRole: str = ...,
timeoutInMinutes: int = ...,
queuedTimeoutInMinutes: int = ...,
encryptionKey: str = ...,
tags: Sequence[TagTypeDef] = ..., # (8)
vpcConfig: VpcConfigTypeDef = ..., # (9)
badgeEnabled: bool = ...,
logsConfig: LogsConfigTypeDef = ..., # (10)
fileSystemLocations: Sequence[ProjectFileSystemLocationTypeDef] = ..., # (11)
buildBatchConfig: ProjectBuildBatchConfigTypeDef = ..., # (12)
concurrentBuildLimit: int = ...,
autoRetryLimit: int = ...,
) -> UpdateProjectOutputTypeDef: # (13)
...
- See ProjectSourceTypeDef
- See ProjectSourceTypeDef
- See ProjectSourceVersionTypeDef
- See ProjectArtifactsTypeDef
- See ProjectArtifactsTypeDef
- See ProjectCacheTypeDef
- See ProjectEnvironmentTypeDef
- See TagTypeDef
- See VpcConfigTypeDef
- See LogsConfigTypeDef
- See ProjectFileSystemLocationTypeDef
- See ProjectBuildBatchConfigTypeDef
- See UpdateProjectOutputTypeDef
# update_project method usage example with argument unpacking
kwargs: UpdateProjectInputRequestTypeDef = { # (1)
"name": ...,
}
parent.update_project(**kwargs)
update_project_visibility#
Changes the public visibility for a project.
Type annotations and code completion for boto3.client("codebuild").update_project_visibility
method.
boto3 documentation
# update_project_visibility method definition
def update_project_visibility(
self,
*,
projectArn: str,
projectVisibility: ProjectVisibilityTypeType, # (1)
resourceAccessRole: str = ...,
) -> UpdateProjectVisibilityOutputTypeDef: # (2)
...
# update_project_visibility method usage example with argument unpacking
kwargs: UpdateProjectVisibilityInputRequestTypeDef = { # (1)
"projectArn": ...,
"projectVisibility": ...,
}
parent.update_project_visibility(**kwargs)
update_report_group#
Updates a report group.
Type annotations and code completion for boto3.client("codebuild").update_report_group
method.
boto3 documentation
# update_report_group method definition
def update_report_group(
self,
*,
arn: str,
exportConfig: ReportExportConfigTypeDef = ..., # (1)
tags: Sequence[TagTypeDef] = ..., # (2)
) -> UpdateReportGroupOutputTypeDef: # (3)
...
# update_report_group method usage example with argument unpacking
kwargs: UpdateReportGroupInputRequestTypeDef = { # (1)
"arn": ...,
}
parent.update_report_group(**kwargs)
update_webhook#
Updates the webhook associated with an CodeBuild build project.
Type annotations and code completion for boto3.client("codebuild").update_webhook
method.
boto3 documentation
# update_webhook method definition
def update_webhook(
self,
*,
projectName: str,
branchFilter: str = ...,
rotateSecret: bool = ...,
filterGroups: Sequence[Sequence[WebhookFilterTypeDef]] = ..., # (1)
buildType: WebhookBuildTypeType = ..., # (2)
) -> UpdateWebhookOutputTypeDef: # (3)
...
# update_webhook method usage example with argument unpacking
kwargs: UpdateWebhookInputRequestTypeDef = { # (1)
"projectName": ...,
}
parent.update_webhook(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("codebuild").get_paginator
method with overloads.
client.get_paginator("describe_code_coverages")
-> DescribeCodeCoveragesPaginatorclient.get_paginator("describe_test_cases")
-> DescribeTestCasesPaginatorclient.get_paginator("list_build_batches_for_project")
-> ListBuildBatchesForProjectPaginatorclient.get_paginator("list_build_batches")
-> ListBuildBatchesPaginatorclient.get_paginator("list_builds_for_project")
-> ListBuildsForProjectPaginatorclient.get_paginator("list_builds")
-> ListBuildsPaginatorclient.get_paginator("list_projects")
-> ListProjectsPaginatorclient.get_paginator("list_report_groups")
-> ListReportGroupsPaginatorclient.get_paginator("list_reports_for_report_group")
-> ListReportsForReportGroupPaginatorclient.get_paginator("list_reports")
-> ListReportsPaginatorclient.get_paginator("list_shared_projects")
-> ListSharedProjectsPaginatorclient.get_paginator("list_shared_report_groups")
-> ListSharedReportGroupsPaginator