Struct aws_sdk_codebuild::client::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for AWS CodeBuild

Client for invoking operations on AWS CodeBuild. Each operation on AWS CodeBuild is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_codebuild::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_codebuild::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the CreateFleet operation has a Client::create_fleet, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.create_fleet()
    .name("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn batch_delete_builds(&self) -> BatchDeleteBuildsFluentBuilder

Constructs a fluent builder for the BatchDeleteBuilds operation.

source§

impl Client

source

pub fn batch_get_build_batches(&self) -> BatchGetBuildBatchesFluentBuilder

Constructs a fluent builder for the BatchGetBuildBatches operation.

source§

impl Client

source

pub fn batch_get_builds(&self) -> BatchGetBuildsFluentBuilder

Constructs a fluent builder for the BatchGetBuilds operation.

source§

impl Client

source

pub fn batch_get_fleets(&self) -> BatchGetFleetsFluentBuilder

Constructs a fluent builder for the BatchGetFleets operation.

source§

impl Client

source

pub fn batch_get_projects(&self) -> BatchGetProjectsFluentBuilder

Constructs a fluent builder for the BatchGetProjects operation.

source§

impl Client

source

pub fn batch_get_report_groups(&self) -> BatchGetReportGroupsFluentBuilder

Constructs a fluent builder for the BatchGetReportGroups operation.

source§

impl Client

source

pub fn batch_get_reports(&self) -> BatchGetReportsFluentBuilder

Constructs a fluent builder for the BatchGetReports operation.

source§

impl Client

source

pub fn create_fleet(&self) -> CreateFleetFluentBuilder

Constructs a fluent builder for the CreateFleet operation.

  • The fluent builder is configurable:
    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the compute fleet.


    • base_capacity(i32) / set_base_capacity(Option<i32>):
      required: true

      The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.


    • environment_type(EnvironmentType) / set_environment_type(Option<EnvironmentType>):
      required: true

      The environment type of the compute fleet.

      • The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).

      • The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).

      • The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      • The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).

      • The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).

      For more information, see Build environment compute types in the CodeBuild user guide.


    • compute_type(ComputeType) / set_compute_type(Option<ComputeType>):
      required: true

      Information about the compute resources the compute fleet uses. Available values include:

      • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

      • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

      • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

      • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

      • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

      If you use BUILD_GENERAL1_SMALL:

      • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

      • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

      If you use BUILD_GENERAL1_LARGE:

      • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

      • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

      For more information, see Build environment compute types in the CodeBuild User Guide.


    • scaling_configuration(ScalingConfigurationInput) / set_scaling_configuration(Option<ScalingConfigurationInput>):
      required: false

      The scaling configuration of the compute fleet.


    • overflow_behavior(FleetOverflowBehavior) / set_overflow_behavior(Option<FleetOverflowBehavior>):
      required: false

      The compute fleet overflow behavior.

      • For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance to become available.

      • For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tag key and value pairs associated with this compute fleet.

      These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.


  • On success, responds with CreateFleetOutput with field(s):
  • On failure, responds with SdkError<CreateFleetError>
source§

impl Client

source

pub fn create_project(&self) -> CreateProjectFluentBuilder

Constructs a fluent builder for the CreateProject operation.

source§

impl Client

source

pub fn create_report_group(&self) -> CreateReportGroupFluentBuilder

Constructs a fluent builder for the CreateReportGroup operation.

source§

impl Client

source

pub fn create_webhook(&self) -> CreateWebhookFluentBuilder

Constructs a fluent builder for the CreateWebhook operation.

source§

impl Client

source

pub fn delete_build_batch(&self) -> DeleteBuildBatchFluentBuilder

Constructs a fluent builder for the DeleteBuildBatch operation.

source§

impl Client

source

pub fn delete_fleet(&self) -> DeleteFleetFluentBuilder

Constructs a fluent builder for the DeleteFleet operation.

source§

impl Client

source

pub fn delete_project(&self) -> DeleteProjectFluentBuilder

Constructs a fluent builder for the DeleteProject operation.

source§

impl Client

source

pub fn delete_report(&self) -> DeleteReportFluentBuilder

Constructs a fluent builder for the DeleteReport operation.

source§

impl Client

source

pub fn delete_report_group(&self) -> DeleteReportGroupFluentBuilder

Constructs a fluent builder for the DeleteReportGroup operation.

source§

impl Client

source

pub fn delete_resource_policy(&self) -> DeleteResourcePolicyFluentBuilder

Constructs a fluent builder for the DeleteResourcePolicy operation.

source§

impl Client

source

pub fn delete_source_credentials(&self) -> DeleteSourceCredentialsFluentBuilder

Constructs a fluent builder for the DeleteSourceCredentials operation.

source§

impl Client

source

pub fn delete_webhook(&self) -> DeleteWebhookFluentBuilder

Constructs a fluent builder for the DeleteWebhook operation.

source§

impl Client

source

pub fn describe_code_coverages(&self) -> DescribeCodeCoveragesFluentBuilder

Constructs a fluent builder for the DescribeCodeCoverages operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_test_cases(&self) -> DescribeTestCasesFluentBuilder

Constructs a fluent builder for the DescribeTestCases operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
  • On success, responds with DescribeTestCasesOutput with field(s):
    • next_token(Option<String>):

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

    • test_cases(Option<Vec::<TestCase>>):

      The returned list of test cases.

  • On failure, responds with SdkError<DescribeTestCasesError>
source§

impl Client

source

pub fn get_report_group_trend(&self) -> GetReportGroupTrendFluentBuilder

Constructs a fluent builder for the GetReportGroupTrend operation.

source§

impl Client

source

pub fn get_resource_policy(&self) -> GetResourcePolicyFluentBuilder

Constructs a fluent builder for the GetResourcePolicy operation.

source§

impl Client

source

pub fn import_source_credentials(&self) -> ImportSourceCredentialsFluentBuilder

Constructs a fluent builder for the ImportSourceCredentials operation.

source§

impl Client

source

pub fn invalidate_project_cache(&self) -> InvalidateProjectCacheFluentBuilder

Constructs a fluent builder for the InvalidateProjectCache operation.

source§

impl Client

source

pub fn list_build_batches(&self) -> ListBuildBatchesFluentBuilder

Constructs a fluent builder for the ListBuildBatches operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_build_batches_for_project( &self ) -> ListBuildBatchesForProjectFluentBuilder

Constructs a fluent builder for the ListBuildBatchesForProject operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_builds(&self) -> ListBuildsFluentBuilder

Constructs a fluent builder for the ListBuilds operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order to list build IDs. Valid values include:

      • ASCENDING: List the build IDs in ascending order by build ID.

      • DESCENDING: List the build IDs in descending order by build ID.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


  • On success, responds with ListBuildsOutput with field(s):
    • ids(Option<Vec::<String>>):

      A list of build IDs, with each build ID representing a single build.

    • next_token(Option<String>):

      If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

  • On failure, responds with SdkError<ListBuildsError>
source§

impl Client

source

pub fn list_builds_for_project(&self) -> ListBuildsForProjectFluentBuilder

Constructs a fluent builder for the ListBuildsForProject operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • project_name(impl Into<String>) / set_project_name(Option<String>):
      required: true

      The name of the CodeBuild project.


    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order to sort the results in. The results are sorted by build number, not the build identifier. If this is not specified, the results are sorted in descending order.

      Valid values include:

      • ASCENDING: List the build identifiers in ascending order, by build number.

      • DESCENDING: List the build identifiers in descending order, by build number.

      If the project has more than 100 builds, setting the sort order will result in an error.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


  • On success, responds with ListBuildsForProjectOutput with field(s):
    • ids(Option<Vec::<String>>):

      A list of build identifiers for the specified build project, with each build ID representing a single build.

    • next_token(Option<String>):

      If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

  • On failure, responds with SdkError<ListBuildsForProjectError>
source§

impl Client

source

pub fn list_curated_environment_images( &self ) -> ListCuratedEnvironmentImagesFluentBuilder

Constructs a fluent builder for the ListCuratedEnvironmentImages operation.

source§

impl Client

source

pub fn list_fleets(&self) -> ListFleetsFluentBuilder

Constructs a fluent builder for the ListFleets operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of paginated compute fleets returned per response. Use nextToken to iterate pages in the list of returned compute fleets.


    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order in which to list compute fleets. Valid values include:

      • ASCENDING: List in ascending order.

      • DESCENDING: List in descending order.

      Use sortBy to specify the criterion to be used to list compute fleet names.


    • sort_by(FleetSortByType) / set_sort_by(Option<FleetSortByType>):
      required: false

      The criterion to be used to list compute fleet names. Valid values include:

      • CREATED_TIME: List based on when each compute fleet was created.

      • LAST_MODIFIED_TIME: List based on when information about each compute fleet was last changed.

      • NAME: List based on each compute fleet’s name.

      Use sortOrder to specify in what order to list the compute fleet names based on the preceding criteria.


  • On success, responds with ListFleetsOutput with field(s):
    • next_token(Option<String>):

      If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

    • fleets(Option<Vec::<String>>):

      The list of compute fleet names.

  • On failure, responds with SdkError<ListFleetsError>
source§

impl Client

source

pub fn list_projects(&self) -> ListProjectsFluentBuilder

Constructs a fluent builder for the ListProjects operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_by(ProjectSortByType) / set_sort_by(Option<ProjectSortByType>):
      required: false

      The criterion to be used to list build project names. Valid values include:

      • CREATED_TIME: List based on when each build project was created.

      • LAST_MODIFIED_TIME: List based on when information about each build project was last changed.

      • NAME: List based on each build project’s name.

      Use sortOrder to specify in what order to list the build project names based on the preceding criteria.


    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order in which to list build projects. Valid values include:

      • ASCENDING: List in ascending order.

      • DESCENDING: List in descending order.

      Use sortBy to specify the criterion to be used to list build project names.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


  • On success, responds with ListProjectsOutput with field(s):
    • next_token(Option<String>):

      If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call.

    • projects(Option<Vec::<String>>):

      The list of build project names, with each build project name representing a single build project.

  • On failure, responds with SdkError<ListProjectsError>
source§

impl Client

source

pub fn list_report_groups(&self) -> ListReportGroupsFluentBuilder

Constructs a fluent builder for the ListReportGroups operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      Used to specify the order to sort the list of returned report groups. Valid values are ASCENDING and DESCENDING.


    • sort_by(ReportGroupSortByType) / set_sort_by(Option<ReportGroupSortByType>):
      required: false

      The criterion to be used to list build report groups. Valid values include:

      • CREATED_TIME: List based on when each report group was created.

      • LAST_MODIFIED_TIME: List based on when each report group was last changed.

      • NAME: List based on each report group’s name.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of paginated report groups returned per response. Use nextToken to iterate pages in the list of returned ReportGroup objects. The default value is 100.


  • On success, responds with ListReportGroupsOutput with field(s):
    • next_token(Option<String>):

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

    • report_groups(Option<Vec::<String>>):

      The list of ARNs for the report groups in the current Amazon Web Services account.

  • On failure, responds with SdkError<ListReportGroupsError>
source§

impl Client

source

pub fn list_reports(&self) -> ListReportsFluentBuilder

Constructs a fluent builder for the ListReports operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      Specifies the sort order for the list of returned reports. Valid values are:

      • ASCENDING: return reports in chronological order based on their creation date.

      • DESCENDING: return reports in the reverse chronological order based on their creation date.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of paginated reports returned per response. Use nextToken to iterate pages in the list of returned Report objects. The default value is 100.


    • filter(ReportFilter) / set_filter(Option<ReportFilter>):
      required: false

      A ReportFilter object used to filter the returned reports.


  • On success, responds with ListReportsOutput with field(s):
    • next_token(Option<String>):

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

    • reports(Option<Vec::<String>>):

      The list of returned ARNs for the reports in the current Amazon Web Services account.

  • On failure, responds with SdkError<ListReportsError>
source§

impl Client

source

pub fn list_reports_for_report_group( &self ) -> ListReportsForReportGroupFluentBuilder

Constructs a fluent builder for the ListReportsForReportGroup operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_shared_projects(&self) -> ListSharedProjectsFluentBuilder

Constructs a fluent builder for the ListSharedProjects operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_by(SharedResourceSortByType) / set_sort_by(Option<SharedResourceSortByType>):
      required: false

      The criterion to be used to list build projects shared with the current Amazon Web Services account or user. Valid values include:

      • ARN: List based on the ARN.

      • MODIFIED_TIME: List based on when information about the shared project was last changed.


    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order in which to list shared build projects. Valid values include:

      • ASCENDING: List in ascending order.

      • DESCENDING: List in descending order.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of paginated shared build projects returned per response. Use nextToken to iterate pages in the list of returned Project objects. The default value is 100.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


  • On success, responds with ListSharedProjectsOutput with field(s):
    • next_token(Option<String>):

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

    • projects(Option<Vec::<String>>):

      The list of ARNs for the build projects shared with the current Amazon Web Services account or user.

  • On failure, responds with SdkError<ListSharedProjectsError>
source§

impl Client

source

pub fn list_shared_report_groups(&self) -> ListSharedReportGroupsFluentBuilder

Constructs a fluent builder for the ListSharedReportGroups operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • sort_order(SortOrderType) / set_sort_order(Option<SortOrderType>):
      required: false

      The order in which to list shared report groups. Valid values include:

      • ASCENDING: List in ascending order.

      • DESCENDING: List in descending order.


    • sort_by(SharedResourceSortByType) / set_sort_by(Option<SharedResourceSortByType>):
      required: false

      The criterion to be used to list report groups shared with the current Amazon Web Services account or user. Valid values include:

      • ARN: List based on the ARN.

      • MODIFIED_TIME: List based on when information about the shared report group was last changed.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of paginated shared report groups per response. Use nextToken to iterate pages in the list of returned ReportGroup objects. The default value is 100.


  • On success, responds with ListSharedReportGroupsOutput with field(s):
    • next_token(Option<String>):

      During a previous call, the maximum number of items that can be returned is the value specified in maxResults. If there more items in the list, then a unique string called a nextToken is returned. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.

    • report_groups(Option<Vec::<String>>):

      The list of ARNs for the report groups shared with the current Amazon Web Services account or user.

  • On failure, responds with SdkError<ListSharedReportGroupsError>
source§

impl Client

source

pub fn list_source_credentials(&self) -> ListSourceCredentialsFluentBuilder

Constructs a fluent builder for the ListSourceCredentials operation.

source§

impl Client

source

pub fn put_resource_policy(&self) -> PutResourcePolicyFluentBuilder

Constructs a fluent builder for the PutResourcePolicy operation.

source§

impl Client

source

pub fn retry_build(&self) -> RetryBuildFluentBuilder

Constructs a fluent builder for the RetryBuild operation.

source§

impl Client

source

pub fn retry_build_batch(&self) -> RetryBuildBatchFluentBuilder

Constructs a fluent builder for the RetryBuildBatch operation.

source§

impl Client

source

pub fn start_build(&self) -> StartBuildFluentBuilder

Constructs a fluent builder for the StartBuild operation.

source§

impl Client

source

pub fn start_build_batch(&self) -> StartBuildBatchFluentBuilder

Constructs a fluent builder for the StartBuildBatch operation.

source§

impl Client

source

pub fn stop_build(&self) -> StopBuildFluentBuilder

Constructs a fluent builder for the StopBuild operation.

source§

impl Client

source

pub fn stop_build_batch(&self) -> StopBuildBatchFluentBuilder

Constructs a fluent builder for the StopBuildBatch operation.

source§

impl Client

source

pub fn update_fleet(&self) -> UpdateFleetFluentBuilder

Constructs a fluent builder for the UpdateFleet operation.

  • The fluent builder is configurable:
    • arn(impl Into<String>) / set_arn(Option<String>):
      required: true

      The ARN of the compute fleet.


    • base_capacity(i32) / set_base_capacity(Option<i32>):
      required: false

      The initial number of machines allocated to the compute fleet, which defines the number of builds that can run in parallel.


    • environment_type(EnvironmentType) / set_environment_type(Option<EnvironmentType>):
      required: false

      The environment type of the compute fleet.

      • The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).

      • The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).

      • The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).

      • The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).

      • The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).

      For more information, see Build environment compute types in the CodeBuild user guide.


    • compute_type(ComputeType) / set_compute_type(Option<ComputeType>):
      required: false

      Information about the compute resources the compute fleet uses. Available values include:

      • BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.

      • BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.

      • BUILD_GENERAL1_LARGE: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.

      • BUILD_GENERAL1_XLARGE: Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.

      • BUILD_GENERAL1_2XLARGE: Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.

      If you use BUILD_GENERAL1_SMALL:

      • For environment type LINUX_CONTAINER, you can use up to 3 GB memory and 2 vCPUs for builds.

      • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.

      • For environment type ARM_CONTAINER, you can use up to 4 GB memory and 2 vCPUs on ARM-based processors for builds.

      If you use BUILD_GENERAL1_LARGE:

      • For environment type LINUX_CONTAINER, you can use up to 15 GB memory and 8 vCPUs for builds.

      • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.

      • For environment type ARM_CONTAINER, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.

      For more information, see Build environment compute types in the CodeBuild User Guide.


    • scaling_configuration(ScalingConfigurationInput) / set_scaling_configuration(Option<ScalingConfigurationInput>):
      required: false

      The scaling configuration of the compute fleet.


    • overflow_behavior(FleetOverflowBehavior) / set_overflow_behavior(Option<FleetOverflowBehavior>):
      required: false

      The compute fleet overflow behavior.

      • For overflow behavior QUEUE, your overflow builds need to wait on the existing fleet instance to become available.

      • For overflow behavior ON_DEMAND, your overflow builds run on CodeBuild on-demand.


    • tags(Tag) / set_tags(Option<Vec::<Tag>>):
      required: false

      A list of tag key and value pairs associated with this compute fleet.

      These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.


  • On success, responds with UpdateFleetOutput with field(s):
  • On failure, responds with SdkError<UpdateFleetError>
source§

impl Client

source

pub fn update_project(&self) -> UpdateProjectFluentBuilder

Constructs a fluent builder for the UpdateProject operation.

source§

impl Client

source

pub fn update_project_visibility(&self) -> UpdateProjectVisibilityFluentBuilder

Constructs a fluent builder for the UpdateProjectVisibility operation.

source§

impl Client

source

pub fn update_report_group(&self) -> UpdateReportGroupFluentBuilder

Constructs a fluent builder for the UpdateReportGroup operation.

source§

impl Client

source

pub fn update_webhook(&self) -> UpdateWebhookFluentBuilder

Constructs a fluent builder for the UpdateWebhook operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more