rusoto_codebuild/
generated.rs

1// =================================================================
2//
3//                           * WARNING *
4//
5//                    This file is generated!
6//
7//  Changes made to this file will be overwritten. If changes are
8//  required to the generated code, the service_crategen project
9//  must be updated to generate the changes.
10//
11// =================================================================
12
13use std::error::Error;
14use std::fmt;
15
16use async_trait::async_trait;
17use rusoto_core::credential::ProvideAwsCredentials;
18use rusoto_core::region;
19use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
20use rusoto_core::{Client, RusotoError};
21
22use rusoto_core::proto;
23use rusoto_core::request::HttpResponse;
24use rusoto_core::signature::SignedRequest;
25#[allow(unused_imports)]
26use serde::{Deserialize, Serialize};
27
28impl CodeBuildClient {
29    fn new_signed_request(&self, http_method: &str, request_uri: &str) -> SignedRequest {
30        let mut request = SignedRequest::new(http_method, "codebuild", &self.region, request_uri);
31
32        request.set_content_type("application/x-amz-json-1.1".to_owned());
33
34        request
35    }
36
37    async fn sign_and_dispatch<E>(
38        &self,
39        request: SignedRequest,
40        from_response: fn(BufferedHttpResponse) -> RusotoError<E>,
41    ) -> Result<HttpResponse, RusotoError<E>> {
42        let mut response = self.client.sign_and_dispatch(request).await?;
43        if !response.status.is_success() {
44            let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
45            return Err(from_response(response));
46        }
47
48        Ok(response)
49    }
50}
51
52use serde_json;
53#[derive(Clone, Debug, Default, PartialEq, Serialize)]
54#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
55pub struct BatchDeleteBuildsInput {
56    /// <p>The IDs of the builds to delete.</p>
57    #[serde(rename = "ids")]
58    pub ids: Vec<String>,
59}
60
61#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
62#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
63pub struct BatchDeleteBuildsOutput {
64    /// <p>The IDs of the builds that were successfully deleted.</p>
65    #[serde(rename = "buildsDeleted")]
66    #[serde(skip_serializing_if = "Option::is_none")]
67    pub builds_deleted: Option<Vec<String>>,
68    /// <p>Information about any builds that could not be successfully deleted.</p>
69    #[serde(rename = "buildsNotDeleted")]
70    #[serde(skip_serializing_if = "Option::is_none")]
71    pub builds_not_deleted: Option<Vec<BuildNotDeleted>>,
72}
73
74#[derive(Clone, Debug, Default, PartialEq, Serialize)]
75#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
76pub struct BatchGetBuildBatchesInput {
77    /// <p>An array that contains the batch build identifiers to retrieve.</p>
78    #[serde(rename = "ids")]
79    pub ids: Vec<String>,
80}
81
82#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
83#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
84pub struct BatchGetBuildBatchesOutput {
85    /// <p>An array of <code>BuildBatch</code> objects that represent the retrieved batch builds.</p>
86    #[serde(rename = "buildBatches")]
87    #[serde(skip_serializing_if = "Option::is_none")]
88    pub build_batches: Option<Vec<BuildBatch>>,
89    /// <p>An array that contains the identifiers of any batch builds that are not found.</p>
90    #[serde(rename = "buildBatchesNotFound")]
91    #[serde(skip_serializing_if = "Option::is_none")]
92    pub build_batches_not_found: Option<Vec<String>>,
93}
94
95#[derive(Clone, Debug, Default, PartialEq, Serialize)]
96#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
97pub struct BatchGetBuildsInput {
98    /// <p>The IDs of the builds.</p>
99    #[serde(rename = "ids")]
100    pub ids: Vec<String>,
101}
102
103#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
104#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
105pub struct BatchGetBuildsOutput {
106    /// <p>Information about the requested builds.</p>
107    #[serde(rename = "builds")]
108    #[serde(skip_serializing_if = "Option::is_none")]
109    pub builds: Option<Vec<Build>>,
110    /// <p>The IDs of builds for which information could not be found.</p>
111    #[serde(rename = "buildsNotFound")]
112    #[serde(skip_serializing_if = "Option::is_none")]
113    pub builds_not_found: Option<Vec<String>>,
114}
115
116#[derive(Clone, Debug, Default, PartialEq, Serialize)]
117#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
118pub struct BatchGetProjectsInput {
119    /// <p>The names or ARNs of the build projects. To get information about a project shared with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project using its name.</p>
120    #[serde(rename = "names")]
121    pub names: Vec<String>,
122}
123
124#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
125#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
126pub struct BatchGetProjectsOutput {
127    /// <p>Information about the requested build projects.</p>
128    #[serde(rename = "projects")]
129    #[serde(skip_serializing_if = "Option::is_none")]
130    pub projects: Option<Vec<Project>>,
131    /// <p>The names of build projects for which information could not be found.</p>
132    #[serde(rename = "projectsNotFound")]
133    #[serde(skip_serializing_if = "Option::is_none")]
134    pub projects_not_found: Option<Vec<String>>,
135}
136
137#[derive(Clone, Debug, Default, PartialEq, Serialize)]
138#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
139pub struct BatchGetReportGroupsInput {
140    /// <p> An array of report group ARNs that identify the report groups to return. </p>
141    #[serde(rename = "reportGroupArns")]
142    pub report_group_arns: Vec<String>,
143}
144
145#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
146#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
147pub struct BatchGetReportGroupsOutput {
148    /// <p> The array of report groups returned by <code>BatchGetReportGroups</code>. </p>
149    #[serde(rename = "reportGroups")]
150    #[serde(skip_serializing_if = "Option::is_none")]
151    pub report_groups: Option<Vec<ReportGroup>>,
152    /// <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not associated with a <code>ReportGroup</code>. </p>
153    #[serde(rename = "reportGroupsNotFound")]
154    #[serde(skip_serializing_if = "Option::is_none")]
155    pub report_groups_not_found: Option<Vec<String>>,
156}
157
158#[derive(Clone, Debug, Default, PartialEq, Serialize)]
159#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
160pub struct BatchGetReportsInput {
161    /// <p> An array of ARNs that identify the <code>Report</code> objects to return. </p>
162    #[serde(rename = "reportArns")]
163    pub report_arns: Vec<String>,
164}
165
166#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
167#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
168pub struct BatchGetReportsOutput {
169    /// <p> The array of <code>Report</code> objects returned by <code>BatchGetReports</code>. </p>
170    #[serde(rename = "reports")]
171    #[serde(skip_serializing_if = "Option::is_none")]
172    pub reports: Option<Vec<Report>>,
173    /// <p> An array of ARNs passed to <code>BatchGetReportGroups</code> that are not associated with a <code>Report</code>. </p>
174    #[serde(rename = "reportsNotFound")]
175    #[serde(skip_serializing_if = "Option::is_none")]
176    pub reports_not_found: Option<Vec<String>>,
177}
178
179/// <p>Specifies restrictions for the batch build.</p>
180#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
181pub struct BatchRestrictions {
182    /// <p>An array of strings that specify the compute types that are allowed for the batch build. See <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild User Guide</i> for these values. </p>
183    #[serde(rename = "computeTypesAllowed")]
184    #[serde(skip_serializing_if = "Option::is_none")]
185    pub compute_types_allowed: Option<Vec<String>>,
186    /// <p>Specifies the maximum number of builds allowed.</p>
187    #[serde(rename = "maximumBuildsAllowed")]
188    #[serde(skip_serializing_if = "Option::is_none")]
189    pub maximum_builds_allowed: Option<i64>,
190}
191
192/// <p>Information about a build.</p>
193#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
194#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
195pub struct Build {
196    /// <p>The Amazon Resource Name (ARN) of the build.</p>
197    #[serde(rename = "arn")]
198    #[serde(skip_serializing_if = "Option::is_none")]
199    pub arn: Option<String>,
200    /// <p>Information about the output artifacts for the build.</p>
201    #[serde(rename = "artifacts")]
202    #[serde(skip_serializing_if = "Option::is_none")]
203    pub artifacts: Option<BuildArtifacts>,
204    /// <p>The ARN of the batch build that this build is a member of, if applicable.</p>
205    #[serde(rename = "buildBatchArn")]
206    #[serde(skip_serializing_if = "Option::is_none")]
207    pub build_batch_arn: Option<String>,
208    /// <p>Whether the build is complete. True if complete; otherwise, false.</p>
209    #[serde(rename = "buildComplete")]
210    #[serde(skip_serializing_if = "Option::is_none")]
211    pub build_complete: Option<bool>,
212    /// <p>The number of the build. For each project, the <code>buildNumber</code> of its first build is <code>1</code>. The <code>buildNumber</code> of each subsequent build is incremented by <code>1</code>. If a build is deleted, the <code>buildNumber</code> of other builds does not change.</p>
213    #[serde(rename = "buildNumber")]
214    #[serde(skip_serializing_if = "Option::is_none")]
215    pub build_number: Option<i64>,
216    /// <p><p>The current status of the build. Valid values include:</p> <ul> <li> <p> <code>FAILED</code>: The build failed.</p> </li> <li> <p> <code>FAULT</code>: The build faulted.</p> </li> <li> <p> <code>IN<em>PROGRESS</code>: The build is still in progress.</p> </li> <li> <p> <code>STOPPED</code>: The build stopped.</p> </li> <li> <p> <code>SUCCEEDED</code>: The build succeeded.</p> </li> <li> <p> <code>TIMED</em>OUT</code>: The build timed out.</p> </li> </ul></p>
217    #[serde(rename = "buildStatus")]
218    #[serde(skip_serializing_if = "Option::is_none")]
219    pub build_status: Option<String>,
220    /// <p>Information about the cache for the build.</p>
221    #[serde(rename = "cache")]
222    #[serde(skip_serializing_if = "Option::is_none")]
223    pub cache: Option<ProjectCache>,
224    /// <p>The current build phase.</p>
225    #[serde(rename = "currentPhase")]
226    #[serde(skip_serializing_if = "Option::is_none")]
227    pub current_phase: Option<String>,
228    /// <p>Contains information about the debug session for this build.</p>
229    #[serde(rename = "debugSession")]
230    #[serde(skip_serializing_if = "Option::is_none")]
231    pub debug_session: Option<DebugSession>,
232    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>).</p>
233    #[serde(rename = "encryptionKey")]
234    #[serde(skip_serializing_if = "Option::is_none")]
235    pub encryption_key: Option<String>,
236    /// <p>When the build process ended, expressed in Unix time format.</p>
237    #[serde(rename = "endTime")]
238    #[serde(skip_serializing_if = "Option::is_none")]
239    pub end_time: Option<f64>,
240    /// <p>Information about the build environment for this build.</p>
241    #[serde(rename = "environment")]
242    #[serde(skip_serializing_if = "Option::is_none")]
243    pub environment: Option<ProjectEnvironment>,
244    /// <p>A list of exported environment variables for this build.</p> <p>Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working with variables</a> in the <i>CodePipeline User Guide</i>.</p>
245    #[serde(rename = "exportedEnvironmentVariables")]
246    #[serde(skip_serializing_if = "Option::is_none")]
247    pub exported_environment_variables: Option<Vec<ExportedEnvironmentVariable>>,
248    /// <p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>
249    #[serde(rename = "fileSystemLocations")]
250    #[serde(skip_serializing_if = "Option::is_none")]
251    pub file_system_locations: Option<Vec<ProjectFileSystemLocation>>,
252    /// <p>The unique ID for the build.</p>
253    #[serde(rename = "id")]
254    #[serde(skip_serializing_if = "Option::is_none")]
255    pub id: Option<String>,
256    /// <p><p>The entity that started the build. Valid values include:</p> <ul> <li> <p>If CodePipeline started the build, the pipeline&#39;s name (for example, <code>codepipeline/my-demo-pipeline</code>).</p> </li> <li> <p>If an Identity and Access Management user started the build, the user&#39;s name (for example, <code>MyUserName</code>).</p> </li> <li> <p>If the Jenkins plugin for CodeBuild started the build, the string <code>CodeBuild-Jenkins-Plugin</code>.</p> </li> </ul></p>
257    #[serde(rename = "initiator")]
258    #[serde(skip_serializing_if = "Option::is_none")]
259    pub initiator: Option<String>,
260    /// <p>Information about the build's logs in CloudWatch Logs.</p>
261    #[serde(rename = "logs")]
262    #[serde(skip_serializing_if = "Option::is_none")]
263    pub logs: Option<LogsLocation>,
264    /// <p>Describes a network interface.</p>
265    #[serde(rename = "networkInterface")]
266    #[serde(skip_serializing_if = "Option::is_none")]
267    pub network_interface: Option<NetworkInterface>,
268    /// <p>Information about all previous build phases that are complete and information about any current build phase that is not yet complete.</p>
269    #[serde(rename = "phases")]
270    #[serde(skip_serializing_if = "Option::is_none")]
271    pub phases: Option<Vec<BuildPhase>>,
272    /// <p>The name of the CodeBuild project.</p>
273    #[serde(rename = "projectName")]
274    #[serde(skip_serializing_if = "Option::is_none")]
275    pub project_name: Option<String>,
276    /// <p> The number of minutes a build is allowed to be queued before it times out. </p>
277    #[serde(rename = "queuedTimeoutInMinutes")]
278    #[serde(skip_serializing_if = "Option::is_none")]
279    pub queued_timeout_in_minutes: Option<i64>,
280    /// <p> An array of the ARNs associated with this build's reports. </p>
281    #[serde(rename = "reportArns")]
282    #[serde(skip_serializing_if = "Option::is_none")]
283    pub report_arns: Option<Vec<String>>,
284    /// <p><p> An identifier for the version of this build&#39;s source code. </p> <ul> <li> <p> For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. </p> </li> <li> <p> For CodePipeline, the source revision provided by CodePipeline. </p> </li> <li> <p> For Amazon S3, this does not apply. </p> </li> </ul></p>
285    #[serde(rename = "resolvedSourceVersion")]
286    #[serde(skip_serializing_if = "Option::is_none")]
287    pub resolved_source_version: Option<String>,
288    /// <p> An array of <code>ProjectArtifacts</code> objects. </p>
289    #[serde(rename = "secondaryArtifacts")]
290    #[serde(skip_serializing_if = "Option::is_none")]
291    pub secondary_artifacts: Option<Vec<BuildArtifacts>>,
292    /// <p><p> An array of <code>ProjectSourceVersion</code> objects. Each <code>ProjectSourceVersion</code> must be one of: </p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example, <code>pr/25</code>). If a branch name is specified, the branch&#39;s HEAD commit ID is used. If not specified, the default branch&#39;s HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch&#39;s HEAD commit ID is used. If not specified, the default branch&#39;s HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul></p>
293    #[serde(rename = "secondarySourceVersions")]
294    #[serde(skip_serializing_if = "Option::is_none")]
295    pub secondary_source_versions: Option<Vec<ProjectSourceVersion>>,
296    /// <p> An array of <code>ProjectSource</code> objects. </p>
297    #[serde(rename = "secondarySources")]
298    #[serde(skip_serializing_if = "Option::is_none")]
299    pub secondary_sources: Option<Vec<ProjectSource>>,
300    /// <p>The name of a service role used for this build.</p>
301    #[serde(rename = "serviceRole")]
302    #[serde(skip_serializing_if = "Option::is_none")]
303    pub service_role: Option<String>,
304    /// <p>Information about the source code to be built.</p>
305    #[serde(rename = "source")]
306    #[serde(skip_serializing_if = "Option::is_none")]
307    pub source: Option<ProjectSource>,
308    /// <p>Any version identifier for the version of the source code to be built. If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence. </p> <p> For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
309    #[serde(rename = "sourceVersion")]
310    #[serde(skip_serializing_if = "Option::is_none")]
311    pub source_version: Option<String>,
312    /// <p>When the build process started, expressed in Unix time format.</p>
313    #[serde(rename = "startTime")]
314    #[serde(skip_serializing_if = "Option::is_none")]
315    pub start_time: Option<f64>,
316    /// <p>How long, in minutes, for CodeBuild to wait before timing out this build if it does not get marked as completed.</p>
317    #[serde(rename = "timeoutInMinutes")]
318    #[serde(skip_serializing_if = "Option::is_none")]
319    pub timeout_in_minutes: Option<i64>,
320    /// <p>If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.</p>
321    #[serde(rename = "vpcConfig")]
322    #[serde(skip_serializing_if = "Option::is_none")]
323    pub vpc_config: Option<VpcConfig>,
324}
325
326/// <p>Information about build output artifacts.</p>
327#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
328#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
329pub struct BuildArtifacts {
330    /// <p> An identifier for this artifact definition. </p>
331    #[serde(rename = "artifactIdentifier")]
332    #[serde(skip_serializing_if = "Option::is_none")]
333    pub artifact_identifier: Option<String>,
334    /// <p> Information that tells you if encryption for build artifacts is disabled. </p>
335    #[serde(rename = "encryptionDisabled")]
336    #[serde(skip_serializing_if = "Option::is_none")]
337    pub encryption_disabled: Option<bool>,
338    /// <p>Information about the location of the build artifacts.</p>
339    #[serde(rename = "location")]
340    #[serde(skip_serializing_if = "Option::is_none")]
341    pub location: Option<String>,
342    /// <p><p>The MD5 hash of the build artifact.</p> <p>You can use this hash along with a checksum tool to confirm file integrity and authenticity.</p> <note> <p>This value is available only if the build project&#39;s <code>packaging</code> value is set to <code>ZIP</code>.</p> </note></p>
343    #[serde(rename = "md5sum")]
344    #[serde(skip_serializing_if = "Option::is_none")]
345    pub md_5sum: Option<String>,
346    /// <p> If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique. </p>
347    #[serde(rename = "overrideArtifactName")]
348    #[serde(skip_serializing_if = "Option::is_none")]
349    pub override_artifact_name: Option<bool>,
350    /// <p><p>The SHA-256 hash of the build artifact.</p> <p>You can use this hash along with a checksum tool to confirm file integrity and authenticity.</p> <note> <p>This value is available only if the build project&#39;s <code>packaging</code> value is set to <code>ZIP</code>.</p> </note></p>
351    #[serde(rename = "sha256sum")]
352    #[serde(skip_serializing_if = "Option::is_none")]
353    pub sha_25_6sum: Option<String>,
354}
355
356/// <p>Contains information about a batch build.</p>
357#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
358#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
359pub struct BuildBatch {
360    /// <p>The ARN of the batch build.</p>
361    #[serde(rename = "arn")]
362    #[serde(skip_serializing_if = "Option::is_none")]
363    pub arn: Option<String>,
364    /// <p>A <code>BuildArtifacts</code> object the defines the build artifacts for this batch build.</p>
365    #[serde(rename = "artifacts")]
366    #[serde(skip_serializing_if = "Option::is_none")]
367    pub artifacts: Option<BuildArtifacts>,
368    #[serde(rename = "buildBatchConfig")]
369    #[serde(skip_serializing_if = "Option::is_none")]
370    pub build_batch_config: Option<ProjectBuildBatchConfig>,
371    /// <p>The number of the batch build. For each project, the <code>buildBatchNumber</code> of its first batch build is <code>1</code>. The <code>buildBatchNumber</code> of each subsequent batch build is incremented by <code>1</code>. If a batch build is deleted, the <code>buildBatchNumber</code> of other batch builds does not change.</p>
372    #[serde(rename = "buildBatchNumber")]
373    #[serde(skip_serializing_if = "Option::is_none")]
374    pub build_batch_number: Option<i64>,
375    /// <p>The status of the batch build.</p>
376    #[serde(rename = "buildBatchStatus")]
377    #[serde(skip_serializing_if = "Option::is_none")]
378    pub build_batch_status: Option<String>,
379    /// <p>An array of <code>BuildGroup</code> objects that define the build groups for the batch build.</p>
380    #[serde(rename = "buildGroups")]
381    #[serde(skip_serializing_if = "Option::is_none")]
382    pub build_groups: Option<Vec<BuildGroup>>,
383    /// <p>Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.</p>
384    #[serde(rename = "buildTimeoutInMinutes")]
385    #[serde(skip_serializing_if = "Option::is_none")]
386    pub build_timeout_in_minutes: Option<i64>,
387    #[serde(rename = "cache")]
388    #[serde(skip_serializing_if = "Option::is_none")]
389    pub cache: Option<ProjectCache>,
390    /// <p>Indicates if the batch build is complete.</p>
391    #[serde(rename = "complete")]
392    #[serde(skip_serializing_if = "Option::is_none")]
393    pub complete: Option<bool>,
394    /// <p>The current phase of the batch build.</p>
395    #[serde(rename = "currentPhase")]
396    #[serde(skip_serializing_if = "Option::is_none")]
397    pub current_phase: Option<String>,
398    /// <p>Specifies if session debugging is enabled for this batch build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>. Batch session debugging is not supported for matrix batch builds.</p>
399    #[serde(rename = "debugSessionEnabled")]
400    #[serde(skip_serializing_if = "Option::is_none")]
401    pub debug_session_enabled: Option<bool>,
402    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>).</p>
403    #[serde(rename = "encryptionKey")]
404    #[serde(skip_serializing_if = "Option::is_none")]
405    pub encryption_key: Option<String>,
406    /// <p>The date and time that the batch build ended.</p>
407    #[serde(rename = "endTime")]
408    #[serde(skip_serializing_if = "Option::is_none")]
409    pub end_time: Option<f64>,
410    #[serde(rename = "environment")]
411    #[serde(skip_serializing_if = "Option::is_none")]
412    pub environment: Option<ProjectEnvironment>,
413    /// <p>An array of <code>ProjectFileSystemLocation</code> objects for the batch build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>
414    #[serde(rename = "fileSystemLocations")]
415    #[serde(skip_serializing_if = "Option::is_none")]
416    pub file_system_locations: Option<Vec<ProjectFileSystemLocation>>,
417    /// <p>The identifier of the batch build.</p>
418    #[serde(rename = "id")]
419    #[serde(skip_serializing_if = "Option::is_none")]
420    pub id: Option<String>,
421    /// <p><p>The entity that started the batch build. Valid values include:</p> <ul> <li> <p>If CodePipeline started the build, the pipeline&#39;s name (for example, <code>codepipeline/my-demo-pipeline</code>).</p> </li> <li> <p>If an Identity and Access Management user started the build, the user&#39;s name.</p> </li> <li> <p>If the Jenkins plugin for CodeBuild started the build, the string <code>CodeBuild-Jenkins-Plugin</code>.</p> </li> </ul></p>
422    #[serde(rename = "initiator")]
423    #[serde(skip_serializing_if = "Option::is_none")]
424    pub initiator: Option<String>,
425    #[serde(rename = "logConfig")]
426    #[serde(skip_serializing_if = "Option::is_none")]
427    pub log_config: Option<LogsConfig>,
428    /// <p>An array of <code>BuildBatchPhase</code> objects the specify the phases of the batch build.</p>
429    #[serde(rename = "phases")]
430    #[serde(skip_serializing_if = "Option::is_none")]
431    pub phases: Option<Vec<BuildBatchPhase>>,
432    /// <p>The name of the batch build project.</p>
433    #[serde(rename = "projectName")]
434    #[serde(skip_serializing_if = "Option::is_none")]
435    pub project_name: Option<String>,
436    /// <p>Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.</p>
437    #[serde(rename = "queuedTimeoutInMinutes")]
438    #[serde(skip_serializing_if = "Option::is_none")]
439    pub queued_timeout_in_minutes: Option<i64>,
440    /// <p><p>The identifier of the resolved version of this batch build&#39;s source code.</p> <ul> <li> <p>For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.</p> </li> <li> <p>For CodePipeline, the source revision provided by CodePipeline.</p> </li> <li> <p>For Amazon S3, this does not apply.</p> </li> </ul></p>
441    #[serde(rename = "resolvedSourceVersion")]
442    #[serde(skip_serializing_if = "Option::is_none")]
443    pub resolved_source_version: Option<String>,
444    /// <p>An array of <code>BuildArtifacts</code> objects the define the build artifacts for this batch build.</p>
445    #[serde(rename = "secondaryArtifacts")]
446    #[serde(skip_serializing_if = "Option::is_none")]
447    pub secondary_artifacts: Option<Vec<BuildArtifacts>>,
448    /// <p><p>An array of <code>ProjectSourceVersion</code> objects. Each <code>ProjectSourceVersion</code> must be one of: </p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example, <code>pr/25</code>). If a branch name is specified, the branch&#39;s HEAD commit ID is used. If not specified, the default branch&#39;s HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch&#39;s HEAD commit ID is used. If not specified, the default branch&#39;s HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul></p>
449    #[serde(rename = "secondarySourceVersions")]
450    #[serde(skip_serializing_if = "Option::is_none")]
451    pub secondary_source_versions: Option<Vec<ProjectSourceVersion>>,
452    /// <p>An array of <code>ProjectSource</code> objects that define the sources for the batch build.</p>
453    #[serde(rename = "secondarySources")]
454    #[serde(skip_serializing_if = "Option::is_none")]
455    pub secondary_sources: Option<Vec<ProjectSource>>,
456    /// <p>The name of a service role used for builds in the batch.</p>
457    #[serde(rename = "serviceRole")]
458    #[serde(skip_serializing_if = "Option::is_none")]
459    pub service_role: Option<String>,
460    #[serde(rename = "source")]
461    #[serde(skip_serializing_if = "Option::is_none")]
462    pub source: Option<ProjectSource>,
463    /// <p>The identifier of the version of the source code to be built.</p>
464    #[serde(rename = "sourceVersion")]
465    #[serde(skip_serializing_if = "Option::is_none")]
466    pub source_version: Option<String>,
467    /// <p>The date and time that the batch build started.</p>
468    #[serde(rename = "startTime")]
469    #[serde(skip_serializing_if = "Option::is_none")]
470    pub start_time: Option<f64>,
471    #[serde(rename = "vpcConfig")]
472    #[serde(skip_serializing_if = "Option::is_none")]
473    pub vpc_config: Option<VpcConfig>,
474}
475
476/// <p>Specifies filters when retrieving batch builds.</p>
477#[derive(Clone, Debug, Default, PartialEq, Serialize)]
478#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
479pub struct BuildBatchFilter {
480    /// <p>The status of the batch builds to retrieve. Only batch builds that have this status will be retrieved.</p>
481    #[serde(rename = "status")]
482    #[serde(skip_serializing_if = "Option::is_none")]
483    pub status: Option<String>,
484}
485
486/// <p>Contains information about a stage for a batch build.</p>
487#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
488#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
489pub struct BuildBatchPhase {
490    /// <p>Additional information about the batch build phase. Especially to help troubleshoot a failed batch build.</p>
491    #[serde(rename = "contexts")]
492    #[serde(skip_serializing_if = "Option::is_none")]
493    pub contexts: Option<Vec<PhaseContext>>,
494    /// <p>How long, in seconds, between the starting and ending times of the batch build's phase.</p>
495    #[serde(rename = "durationInSeconds")]
496    #[serde(skip_serializing_if = "Option::is_none")]
497    pub duration_in_seconds: Option<i64>,
498    /// <p>When the batch build phase ended, expressed in Unix time format.</p>
499    #[serde(rename = "endTime")]
500    #[serde(skip_serializing_if = "Option::is_none")]
501    pub end_time: Option<f64>,
502    /// <p><p>The current status of the batch build phase. Valid values include:</p> <dl> <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build phase faulted.</p> </dd> <dt>IN<em>PROGRESS</dt> <dd> <p>The build phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been submitted and is queued behind other submitted builds.</p> </dd> <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED</em>OUT</dt> <dd> <p>The build phase timed out.</p> </dd> </dl></p>
503    #[serde(rename = "phaseStatus")]
504    #[serde(skip_serializing_if = "Option::is_none")]
505    pub phase_status: Option<String>,
506    /// <p><p>The name of the batch build phase. Valid values include:</p> <dl> <dt>COMBINE<em>ARTIFACTS</dt> <dd> <p>Build output artifacts are being combined and uploaded to the output location.</p> </dd> <dt>DOWNLOAD</em>BATCHSPEC</dt> <dd> <p>The batch build specification is being downloaded.</p> </dd> <dt>FAILED</dt> <dd> <p>One or more of the builds failed.</p> </dd> <dt>IN_PROGRESS</dt> <dd> <p>The batch build is in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The batch build was stopped.</p> </dd> <dt>SUBMITTED</dt> <dd> <p>The btach build has been submitted.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The batch build succeeded.</p> </dd> </dl></p>
507    #[serde(rename = "phaseType")]
508    #[serde(skip_serializing_if = "Option::is_none")]
509    pub phase_type: Option<String>,
510    /// <p>When the batch build phase started, expressed in Unix time format.</p>
511    #[serde(rename = "startTime")]
512    #[serde(skip_serializing_if = "Option::is_none")]
513    pub start_time: Option<f64>,
514}
515
516/// <p>Contains information about a batch build build group. Build groups are used to combine builds that can run in parallel, while still being able to set dependencies on other build groups.</p>
517#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
518#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
519pub struct BuildGroup {
520    /// <p>A <code>BuildSummary</code> object that contains a summary of the current build group.</p>
521    #[serde(rename = "currentBuildSummary")]
522    #[serde(skip_serializing_if = "Option::is_none")]
523    pub current_build_summary: Option<BuildSummary>,
524    /// <p>An array of strings that contain the identifiers of the build groups that this build group depends on.</p>
525    #[serde(rename = "dependsOn")]
526    #[serde(skip_serializing_if = "Option::is_none")]
527    pub depends_on: Option<Vec<String>>,
528    /// <p>Contains the identifier of the build group.</p>
529    #[serde(rename = "identifier")]
530    #[serde(skip_serializing_if = "Option::is_none")]
531    pub identifier: Option<String>,
532    /// <p>Specifies if failures in this build group can be ignored.</p>
533    #[serde(rename = "ignoreFailure")]
534    #[serde(skip_serializing_if = "Option::is_none")]
535    pub ignore_failure: Option<bool>,
536    /// <p>An array of <code>BuildSummary</code> objects that contain summaries of previous build groups.</p>
537    #[serde(rename = "priorBuildSummaryList")]
538    #[serde(skip_serializing_if = "Option::is_none")]
539    pub prior_build_summary_list: Option<Vec<BuildSummary>>,
540}
541
542/// <p>Information about a build that could not be successfully deleted.</p>
543#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
544#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
545pub struct BuildNotDeleted {
546    /// <p>The ID of the build that could not be successfully deleted.</p>
547    #[serde(rename = "id")]
548    #[serde(skip_serializing_if = "Option::is_none")]
549    pub id: Option<String>,
550    /// <p>Additional information about the build that could not be successfully deleted.</p>
551    #[serde(rename = "statusCode")]
552    #[serde(skip_serializing_if = "Option::is_none")]
553    pub status_code: Option<String>,
554}
555
556/// <p>Information about a stage for a build.</p>
557#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
558#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
559pub struct BuildPhase {
560    /// <p>Additional information about a build phase, especially to help troubleshoot a failed build.</p>
561    #[serde(rename = "contexts")]
562    #[serde(skip_serializing_if = "Option::is_none")]
563    pub contexts: Option<Vec<PhaseContext>>,
564    /// <p>How long, in seconds, between the starting and ending times of the build's phase.</p>
565    #[serde(rename = "durationInSeconds")]
566    #[serde(skip_serializing_if = "Option::is_none")]
567    pub duration_in_seconds: Option<i64>,
568    /// <p>When the build phase ended, expressed in Unix time format.</p>
569    #[serde(rename = "endTime")]
570    #[serde(skip_serializing_if = "Option::is_none")]
571    pub end_time: Option<f64>,
572    /// <p><p>The current status of the build phase. Valid values include:</p> <dl> <dt>FAILED</dt> <dd> <p>The build phase failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build phase faulted.</p> </dd> <dt>IN<em>PROGRESS</dt> <dd> <p>The build phase is still in progress.</p> </dd> <dt>QUEUED</dt> <dd> <p>The build has been submitted and is queued behind other submitted builds.</p> </dd> <dt>STOPPED</dt> <dd> <p>The build phase stopped.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The build phase succeeded.</p> </dd> <dt>TIMED</em>OUT</dt> <dd> <p>The build phase timed out.</p> </dd> </dl></p>
573    #[serde(rename = "phaseStatus")]
574    #[serde(skip_serializing_if = "Option::is_none")]
575    pub phase_status: Option<String>,
576    /// <p><p>The name of the build phase. Valid values include:</p> <ul> <li> <p> <code>BUILD</code>: Core build activities typically occur in this build phase.</p> </li> <li> <p> <code>COMPLETED</code>: The build has been completed.</p> </li> <li> <p> <code>DOWNLOAD<em>SOURCE</code>: Source code is being downloaded in this build phase.</p> </li> <li> <p> <code>FINALIZING</code>: The build process is completing in this build phase.</p> </li> <li> <p> <code>INSTALL</code>: Installation activities typically occur in this build phase.</p> </li> <li> <p> <code>POST</em>BUILD</code>: Post-build activities typically occur in this build phase.</p> </li> <li> <p> <code>PRE<em>BUILD</code>: Pre-build activities typically occur in this build phase.</p> </li> <li> <p> <code>PROVISIONING</code>: The build environment is being set up.</p> </li> <li> <p> <code>QUEUED</code>: The build has been submitted and is queued behind other submitted builds.</p> </li> <li> <p> <code>SUBMITTED</code>: The build has been submitted.</p> </li> <li> <p> <code>UPLOAD</em>ARTIFACTS</code>: Build output artifacts are being uploaded to the output location.</p> </li> </ul></p>
577    #[serde(rename = "phaseType")]
578    #[serde(skip_serializing_if = "Option::is_none")]
579    pub phase_type: Option<String>,
580    /// <p>When the build phase started, expressed in Unix time format.</p>
581    #[serde(rename = "startTime")]
582    #[serde(skip_serializing_if = "Option::is_none")]
583    pub start_time: Option<f64>,
584}
585
586/// <p>Contains information that defines how the CodeBuild build project reports the build status to the source provider. </p>
587#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
588pub struct BuildStatusConfig {
589    /// <p><p>Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.</p> <dl> <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>name</code> parameter in the Bitbucket commit status. For more information, see <a href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a> in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise Server</dt> <dd> <p>This parameter is used for the <code>context</code> parameter in the GitHub commit status. For more information, see <a href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create a commit status</a> in the GitHub developer guide.</p> </dd> </dl></p>
590    #[serde(rename = "context")]
591    #[serde(skip_serializing_if = "Option::is_none")]
592    pub context: Option<String>,
593    /// <p><p>Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.</p> <dl> <dt>Bitbucket</dt> <dd> <p>This parameter is used for the <code>url</code> parameter in the Bitbucket commit status. For more information, see <a href="https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commit/%7Bnode%7D/statuses/build">build</a> in the Bitbucket API documentation.</p> </dd> <dt>GitHub/GitHub Enterprise Server</dt> <dd> <p>This parameter is used for the <code>target_url</code> parameter in the GitHub commit status. For more information, see <a href="https://developer.github.com/v3/repos/statuses/#create-a-commit-status">Create a commit status</a> in the GitHub developer guide.</p> </dd> </dl></p>
594    #[serde(rename = "targetUrl")]
595    #[serde(skip_serializing_if = "Option::is_none")]
596    pub target_url: Option<String>,
597}
598
599/// <p>Contains summary information about a batch build group.</p>
600#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
601#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
602pub struct BuildSummary {
603    /// <p>The batch build ARN.</p>
604    #[serde(rename = "arn")]
605    #[serde(skip_serializing_if = "Option::is_none")]
606    pub arn: Option<String>,
607    /// <p><p>The status of the build group.</p> <dl> <dt>FAILED</dt> <dd> <p>The build group failed.</p> </dd> <dt>FAULT</dt> <dd> <p>The build group faulted.</p> </dd> <dt>IN<em>PROGRESS</dt> <dd> <p>The build group is still in progress.</p> </dd> <dt>STOPPED</dt> <dd> <p>The build group stopped.</p> </dd> <dt>SUCCEEDED</dt> <dd> <p>The build group succeeded.</p> </dd> <dt>TIMED</em>OUT</dt> <dd> <p>The build group timed out.</p> </dd> </dl></p>
608    #[serde(rename = "buildStatus")]
609    #[serde(skip_serializing_if = "Option::is_none")]
610    pub build_status: Option<String>,
611    /// <p>A <code>ResolvedArtifact</code> object that represents the primary build artifacts for the build group.</p>
612    #[serde(rename = "primaryArtifact")]
613    #[serde(skip_serializing_if = "Option::is_none")]
614    pub primary_artifact: Option<ResolvedArtifact>,
615    /// <p>When the build was started, expressed in Unix time format.</p>
616    #[serde(rename = "requestedOn")]
617    #[serde(skip_serializing_if = "Option::is_none")]
618    pub requested_on: Option<f64>,
619    /// <p>An array of <code>ResolvedArtifact</code> objects that represents the secondary build artifacts for the build group.</p>
620    #[serde(rename = "secondaryArtifacts")]
621    #[serde(skip_serializing_if = "Option::is_none")]
622    pub secondary_artifacts: Option<Vec<ResolvedArtifact>>,
623}
624
625/// <p> Information about CloudWatch Logs for a build project. </p>
626#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
627pub struct CloudWatchLogsConfig {
628    /// <p> The group name of the logs in CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working with Log Groups and Log Streams</a>. </p>
629    #[serde(rename = "groupName")]
630    #[serde(skip_serializing_if = "Option::is_none")]
631    pub group_name: Option<String>,
632    /// <p><p>The current status of the logs in CloudWatch Logs for a build project. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: CloudWatch Logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: CloudWatch Logs are not enabled for this build project.</p> </li> </ul></p>
633    #[serde(rename = "status")]
634    pub status: String,
635    /// <p> The prefix of the stream name of the CloudWatch Logs. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html">Working with Log Groups and Log Streams</a>. </p>
636    #[serde(rename = "streamName")]
637    #[serde(skip_serializing_if = "Option::is_none")]
638    pub stream_name: Option<String>,
639}
640
641/// <p>Contains code coverage report information.</p> <p>Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.</p> <p>Branch coverage determines if your tests cover every possible branch of a control structure, such as an <code>if</code> or <code>case</code> statement.</p>
642#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
643#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
644pub struct CodeCoverage {
645    /// <p>The percentage of branches that are covered by your tests.</p>
646    #[serde(rename = "branchCoveragePercentage")]
647    #[serde(skip_serializing_if = "Option::is_none")]
648    pub branch_coverage_percentage: Option<f64>,
649    /// <p>The number of conditional branches that are covered by your tests.</p>
650    #[serde(rename = "branchesCovered")]
651    #[serde(skip_serializing_if = "Option::is_none")]
652    pub branches_covered: Option<i64>,
653    /// <p>The number of conditional branches that are not covered by your tests.</p>
654    #[serde(rename = "branchesMissed")]
655    #[serde(skip_serializing_if = "Option::is_none")]
656    pub branches_missed: Option<i64>,
657    /// <p>The date and time that the tests were run.</p>
658    #[serde(rename = "expired")]
659    #[serde(skip_serializing_if = "Option::is_none")]
660    pub expired: Option<f64>,
661    /// <p>The path of the test report file.</p>
662    #[serde(rename = "filePath")]
663    #[serde(skip_serializing_if = "Option::is_none")]
664    pub file_path: Option<String>,
665    /// <p>The identifier of the code coverage report.</p>
666    #[serde(rename = "id")]
667    #[serde(skip_serializing_if = "Option::is_none")]
668    pub id: Option<String>,
669    /// <p>The percentage of lines that are covered by your tests.</p>
670    #[serde(rename = "lineCoveragePercentage")]
671    #[serde(skip_serializing_if = "Option::is_none")]
672    pub line_coverage_percentage: Option<f64>,
673    /// <p>The number of lines that are covered by your tests.</p>
674    #[serde(rename = "linesCovered")]
675    #[serde(skip_serializing_if = "Option::is_none")]
676    pub lines_covered: Option<i64>,
677    /// <p>The number of lines that are not covered by your tests.</p>
678    #[serde(rename = "linesMissed")]
679    #[serde(skip_serializing_if = "Option::is_none")]
680    pub lines_missed: Option<i64>,
681    /// <p>The ARN of the report.</p>
682    #[serde(rename = "reportARN")]
683    #[serde(skip_serializing_if = "Option::is_none")]
684    pub report_arn: Option<String>,
685}
686
687/// <p>Contains a summary of a code coverage report.</p> <p>Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.</p> <p>Branch coverage determines if your tests cover every possible branch of a control structure, such as an <code>if</code> or <code>case</code> statement.</p>
688#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
689#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
690pub struct CodeCoverageReportSummary {
691    /// <p>The percentage of branches that are covered by your tests.</p>
692    #[serde(rename = "branchCoveragePercentage")]
693    #[serde(skip_serializing_if = "Option::is_none")]
694    pub branch_coverage_percentage: Option<f64>,
695    /// <p>The number of conditional branches that are covered by your tests.</p>
696    #[serde(rename = "branchesCovered")]
697    #[serde(skip_serializing_if = "Option::is_none")]
698    pub branches_covered: Option<i64>,
699    /// <p>The number of conditional branches that are not covered by your tests.</p>
700    #[serde(rename = "branchesMissed")]
701    #[serde(skip_serializing_if = "Option::is_none")]
702    pub branches_missed: Option<i64>,
703    /// <p>The percentage of lines that are covered by your tests.</p>
704    #[serde(rename = "lineCoveragePercentage")]
705    #[serde(skip_serializing_if = "Option::is_none")]
706    pub line_coverage_percentage: Option<f64>,
707    /// <p>The number of lines that are covered by your tests.</p>
708    #[serde(rename = "linesCovered")]
709    #[serde(skip_serializing_if = "Option::is_none")]
710    pub lines_covered: Option<i64>,
711    /// <p>The number of lines that are not covered by your tests.</p>
712    #[serde(rename = "linesMissed")]
713    #[serde(skip_serializing_if = "Option::is_none")]
714    pub lines_missed: Option<i64>,
715}
716
717#[derive(Clone, Debug, Default, PartialEq, Serialize)]
718#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
719pub struct CreateProjectInput {
720    /// <p>Information about the build output artifacts for the build project.</p>
721    #[serde(rename = "artifacts")]
722    pub artifacts: ProjectArtifacts,
723    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
724    #[serde(rename = "badgeEnabled")]
725    #[serde(skip_serializing_if = "Option::is_none")]
726    pub badge_enabled: Option<bool>,
727    /// <p>A <a>ProjectBuildBatchConfig</a> object that defines the batch build options for the project.</p>
728    #[serde(rename = "buildBatchConfig")]
729    #[serde(skip_serializing_if = "Option::is_none")]
730    pub build_batch_config: Option<ProjectBuildBatchConfig>,
731    /// <p>Stores recently used information so that it can be quickly accessed at a later time.</p>
732    #[serde(rename = "cache")]
733    #[serde(skip_serializing_if = "Option::is_none")]
734    pub cache: Option<ProjectCache>,
735    /// <p>The maximum number of concurrent builds that are allowed for this project.</p> <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>
736    #[serde(rename = "concurrentBuildLimit")]
737    #[serde(skip_serializing_if = "Option::is_none")]
738    pub concurrent_build_limit: Option<i64>,
739    /// <p>A description that makes the build project easy to identify.</p>
740    #[serde(rename = "description")]
741    #[serde(skip_serializing_if = "Option::is_none")]
742    pub description: Option<String>,
743    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>). </p>
744    #[serde(rename = "encryptionKey")]
745    #[serde(skip_serializing_if = "Option::is_none")]
746    pub encryption_key: Option<String>,
747    /// <p>Information about the build environment for the build project.</p>
748    #[serde(rename = "environment")]
749    pub environment: ProjectEnvironment,
750    /// <p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>
751    #[serde(rename = "fileSystemLocations")]
752    #[serde(skip_serializing_if = "Option::is_none")]
753    pub file_system_locations: Option<Vec<ProjectFileSystemLocation>>,
754    /// <p>Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both. </p>
755    #[serde(rename = "logsConfig")]
756    #[serde(skip_serializing_if = "Option::is_none")]
757    pub logs_config: Option<LogsConfig>,
758    /// <p>The name of the build project.</p>
759    #[serde(rename = "name")]
760    pub name: String,
761    /// <p>The number of minutes a build is allowed to be queued before it times out. </p>
762    #[serde(rename = "queuedTimeoutInMinutes")]
763    #[serde(skip_serializing_if = "Option::is_none")]
764    pub queued_timeout_in_minutes: Option<i64>,
765    /// <p>An array of <code>ProjectArtifacts</code> objects. </p>
766    #[serde(rename = "secondaryArtifacts")]
767    #[serde(skip_serializing_if = "Option::is_none")]
768    pub secondary_artifacts: Option<Vec<ProjectArtifacts>>,
769    /// <p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take precedence over these <code>secondarySourceVersions</code> (at the project level). </p>
770    #[serde(rename = "secondarySourceVersions")]
771    #[serde(skip_serializing_if = "Option::is_none")]
772    pub secondary_source_versions: Option<Vec<ProjectSourceVersion>>,
773    /// <p>An array of <code>ProjectSource</code> objects. </p>
774    #[serde(rename = "secondarySources")]
775    #[serde(skip_serializing_if = "Option::is_none")]
776    pub secondary_sources: Option<Vec<ProjectSource>>,
777    /// <p>The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
778    #[serde(rename = "serviceRole")]
779    pub service_role: String,
780    /// <p>Information about the build input source code for the build project.</p>
781    #[serde(rename = "source")]
782    pub source: ProjectSource,
783    /// <p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of: </p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level). </p> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
784    #[serde(rename = "sourceVersion")]
785    #[serde(skip_serializing_if = "Option::is_none")]
786    pub source_version: Option<String>,
787    /// <p>A list of tag key and value pairs associated with this build project.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
788    #[serde(rename = "tags")]
789    #[serde(skip_serializing_if = "Option::is_none")]
790    pub tags: Option<Vec<Tag>>,
791    /// <p>How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.</p>
792    #[serde(rename = "timeoutInMinutes")]
793    #[serde(skip_serializing_if = "Option::is_none")]
794    pub timeout_in_minutes: Option<i64>,
795    /// <p>VpcConfig enables CodeBuild to access resources in an Amazon VPC.</p>
796    #[serde(rename = "vpcConfig")]
797    #[serde(skip_serializing_if = "Option::is_none")]
798    pub vpc_config: Option<VpcConfig>,
799}
800
801#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
802#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
803pub struct CreateProjectOutput {
804    /// <p>Information about the build project that was created.</p>
805    #[serde(rename = "project")]
806    #[serde(skip_serializing_if = "Option::is_none")]
807    pub project: Option<Project>,
808}
809
810#[derive(Clone, Debug, Default, PartialEq, Serialize)]
811#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
812pub struct CreateReportGroupInput {
813    /// <p> A <code>ReportExportConfig</code> object that contains information about where the report group test results are exported. </p>
814    #[serde(rename = "exportConfig")]
815    pub export_config: ReportExportConfig,
816    /// <p> The name of the report group. </p>
817    #[serde(rename = "name")]
818    pub name: String,
819    /// <p> A list of tag key and value pairs associated with this report group. </p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.</p>
820    #[serde(rename = "tags")]
821    #[serde(skip_serializing_if = "Option::is_none")]
822    pub tags: Option<Vec<Tag>>,
823    /// <p> The type of report group. </p>
824    #[serde(rename = "type")]
825    pub type_: String,
826}
827
828#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
829#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
830pub struct CreateReportGroupOutput {
831    /// <p> Information about the report group that was created. </p>
832    #[serde(rename = "reportGroup")]
833    #[serde(skip_serializing_if = "Option::is_none")]
834    pub report_group: Option<ReportGroup>,
835}
836
837#[derive(Clone, Debug, Default, PartialEq, Serialize)]
838#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
839pub struct CreateWebhookInput {
840    /// <p><p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p>It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note></p>
841    #[serde(rename = "branchFilter")]
842    #[serde(skip_serializing_if = "Option::is_none")]
843    pub branch_filter: Option<String>,
844    /// <p>Specifies the type of build this webhook will trigger.</p>
845    #[serde(rename = "buildType")]
846    #[serde(skip_serializing_if = "Option::is_none")]
847    pub build_type: Option<String>,
848    /// <p>An array of arrays of <code>WebhookFilter</code> objects used to determine which webhooks are triggered. At least one <code>WebhookFilter</code> in the array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a build to be triggered, at least one filter group in the <code>filterGroups</code> array must pass. For a filter group to pass, each of its filters must pass. </p>
849    #[serde(rename = "filterGroups")]
850    #[serde(skip_serializing_if = "Option::is_none")]
851    pub filter_groups: Option<Vec<Vec<WebhookFilter>>>,
852    /// <p>The name of the CodeBuild project.</p>
853    #[serde(rename = "projectName")]
854    pub project_name: String,
855}
856
857#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
858#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
859pub struct CreateWebhookOutput {
860    /// <p>Information about a webhook that connects repository events to a build project in CodeBuild.</p>
861    #[serde(rename = "webhook")]
862    #[serde(skip_serializing_if = "Option::is_none")]
863    pub webhook: Option<Webhook>,
864}
865
866/// <p>Contains information about the debug session for a build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
867#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
868#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
869pub struct DebugSession {
870    /// <p>Specifies if session debugging is enabled for this build.</p>
871    #[serde(rename = "sessionEnabled")]
872    #[serde(skip_serializing_if = "Option::is_none")]
873    pub session_enabled: Option<bool>,
874    /// <p>Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.</p>
875    #[serde(rename = "sessionTarget")]
876    #[serde(skip_serializing_if = "Option::is_none")]
877    pub session_target: Option<String>,
878}
879
880#[derive(Clone, Debug, Default, PartialEq, Serialize)]
881#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
882pub struct DeleteBuildBatchInput {
883    /// <p>The identifier of the batch build to delete.</p>
884    #[serde(rename = "id")]
885    pub id: String,
886}
887
888#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
889#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
890pub struct DeleteBuildBatchOutput {
891    /// <p>An array of strings that contain the identifiers of the builds that were deleted.</p>
892    #[serde(rename = "buildsDeleted")]
893    #[serde(skip_serializing_if = "Option::is_none")]
894    pub builds_deleted: Option<Vec<String>>,
895    /// <p>An array of <code>BuildNotDeleted</code> objects that specify the builds that could not be deleted.</p>
896    #[serde(rename = "buildsNotDeleted")]
897    #[serde(skip_serializing_if = "Option::is_none")]
898    pub builds_not_deleted: Option<Vec<BuildNotDeleted>>,
899    /// <p>The status code.</p>
900    #[serde(rename = "statusCode")]
901    #[serde(skip_serializing_if = "Option::is_none")]
902    pub status_code: Option<String>,
903}
904
905#[derive(Clone, Debug, Default, PartialEq, Serialize)]
906#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
907pub struct DeleteProjectInput {
908    /// <p>The name of the build project.</p>
909    #[serde(rename = "name")]
910    pub name: String,
911}
912
913#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
914#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
915pub struct DeleteProjectOutput {}
916
917#[derive(Clone, Debug, Default, PartialEq, Serialize)]
918#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
919pub struct DeleteReportGroupInput {
920    /// <p>The ARN of the report group to delete. </p>
921    #[serde(rename = "arn")]
922    pub arn: String,
923    /// <p>If <code>true</code>, deletes any reports that belong to a report group before deleting the report group. </p> <p>If <code>false</code>, you must delete any reports in the report group. Use <a href="https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ListReportsForReportGroup.html">ListReportsForReportGroup</a> to get the reports in a report group. Use <a href="https://docs.aws.amazon.com/codebuild/latest/APIReference/API_DeleteReport.html">DeleteReport</a> to delete the reports. If you call <code>DeleteReportGroup</code> for a report group that contains one or more reports, an exception is thrown. </p>
924    #[serde(rename = "deleteReports")]
925    #[serde(skip_serializing_if = "Option::is_none")]
926    pub delete_reports: Option<bool>,
927}
928
929#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
930#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
931pub struct DeleteReportGroupOutput {}
932
933#[derive(Clone, Debug, Default, PartialEq, Serialize)]
934#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
935pub struct DeleteReportInput {
936    /// <p> The ARN of the report to delete. </p>
937    #[serde(rename = "arn")]
938    pub arn: String,
939}
940
941#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
942#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
943pub struct DeleteReportOutput {}
944
945#[derive(Clone, Debug, Default, PartialEq, Serialize)]
946#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
947pub struct DeleteResourcePolicyInput {
948    /// <p> The ARN of the resource that is associated with the resource policy. </p>
949    #[serde(rename = "resourceArn")]
950    pub resource_arn: String,
951}
952
953#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
954#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
955pub struct DeleteResourcePolicyOutput {}
956
957#[derive(Clone, Debug, Default, PartialEq, Serialize)]
958#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
959pub struct DeleteSourceCredentialsInput {
960    /// <p> The Amazon Resource Name (ARN) of the token.</p>
961    #[serde(rename = "arn")]
962    pub arn: String,
963}
964
965#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
966#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
967pub struct DeleteSourceCredentialsOutput {
968    /// <p> The Amazon Resource Name (ARN) of the token. </p>
969    #[serde(rename = "arn")]
970    #[serde(skip_serializing_if = "Option::is_none")]
971    pub arn: Option<String>,
972}
973
974#[derive(Clone, Debug, Default, PartialEq, Serialize)]
975#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
976pub struct DeleteWebhookInput {
977    /// <p>The name of the CodeBuild project.</p>
978    #[serde(rename = "projectName")]
979    pub project_name: String,
980}
981
982#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
983#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
984pub struct DeleteWebhookOutput {}
985
986#[derive(Clone, Debug, Default, PartialEq, Serialize)]
987#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
988pub struct DescribeCodeCoveragesInput {
989    /// <p>The maximum line coverage percentage to report.</p>
990    #[serde(rename = "maxLineCoveragePercentage")]
991    #[serde(skip_serializing_if = "Option::is_none")]
992    pub max_line_coverage_percentage: Option<f64>,
993    /// <p>The maximum number of results to return.</p>
994    #[serde(rename = "maxResults")]
995    #[serde(skip_serializing_if = "Option::is_none")]
996    pub max_results: Option<i64>,
997    /// <p>The minimum line coverage percentage to report.</p>
998    #[serde(rename = "minLineCoveragePercentage")]
999    #[serde(skip_serializing_if = "Option::is_none")]
1000    pub min_line_coverage_percentage: Option<f64>,
1001    /// <p>The <code>nextToken</code> value returned from a previous call to <code>DescribeCodeCoverages</code>. This specifies the next item to return. To return the beginning of the list, exclude this parameter.</p>
1002    #[serde(rename = "nextToken")]
1003    #[serde(skip_serializing_if = "Option::is_none")]
1004    pub next_token: Option<String>,
1005    /// <p> The ARN of the report for which test cases are returned. </p>
1006    #[serde(rename = "reportArn")]
1007    pub report_arn: String,
1008    /// <p><p>Specifies how the results are sorted. Possible values are:</p> <dl> <dt>FILE<em>PATH</dt> <dd> <p>The results are sorted by file path.</p> </dd> <dt>LINE</em>COVERAGE_PERCENTAGE</dt> <dd> <p>The results are sorted by the percentage of lines that are covered.</p> </dd> </dl></p>
1009    #[serde(rename = "sortBy")]
1010    #[serde(skip_serializing_if = "Option::is_none")]
1011    pub sort_by: Option<String>,
1012    /// <p>Specifies if the results are sorted in ascending or descending order.</p>
1013    #[serde(rename = "sortOrder")]
1014    #[serde(skip_serializing_if = "Option::is_none")]
1015    pub sort_order: Option<String>,
1016}
1017
1018#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1019#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1020pub struct DescribeCodeCoveragesOutput {
1021    /// <p>An array of <code>CodeCoverage</code> objects that contain the results.</p>
1022    #[serde(rename = "codeCoverages")]
1023    #[serde(skip_serializing_if = "Option::is_none")]
1024    pub code_coverages: Option<Vec<CodeCoverage>>,
1025    /// <p>If there are more items to return, this contains a token that is passed to a subsequent call to <code>DescribeCodeCoverages</code> to retrieve the next set of items.</p>
1026    #[serde(rename = "nextToken")]
1027    #[serde(skip_serializing_if = "Option::is_none")]
1028    pub next_token: Option<String>,
1029}
1030
1031#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1032#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1033pub struct DescribeTestCasesInput {
1034    /// <p> A <code>TestCaseFilter</code> object used to filter the returned reports. </p>
1035    #[serde(rename = "filter")]
1036    #[serde(skip_serializing_if = "Option::is_none")]
1037    pub filter: Option<TestCaseFilter>,
1038    /// <p> The maximum number of paginated test cases returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>TestCase</code> objects. The default value is 100. </p>
1039    #[serde(rename = "maxResults")]
1040    #[serde(skip_serializing_if = "Option::is_none")]
1041    pub max_results: Option<i64>,
1042    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1043    #[serde(rename = "nextToken")]
1044    #[serde(skip_serializing_if = "Option::is_none")]
1045    pub next_token: Option<String>,
1046    /// <p> The ARN of the report for which test cases are returned. </p>
1047    #[serde(rename = "reportArn")]
1048    pub report_arn: String,
1049}
1050
1051#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1052#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1053pub struct DescribeTestCasesOutput {
1054    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1055    #[serde(rename = "nextToken")]
1056    #[serde(skip_serializing_if = "Option::is_none")]
1057    pub next_token: Option<String>,
1058    /// <p> The returned list of test cases. </p>
1059    #[serde(rename = "testCases")]
1060    #[serde(skip_serializing_if = "Option::is_none")]
1061    pub test_cases: Option<Vec<TestCase>>,
1062}
1063
1064/// <p>Information about a Docker image that is managed by CodeBuild.</p>
1065#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1066#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1067pub struct EnvironmentImage {
1068    /// <p>The description of the Docker image.</p>
1069    #[serde(rename = "description")]
1070    #[serde(skip_serializing_if = "Option::is_none")]
1071    pub description: Option<String>,
1072    /// <p>The name of the Docker image.</p>
1073    #[serde(rename = "name")]
1074    #[serde(skip_serializing_if = "Option::is_none")]
1075    pub name: Option<String>,
1076    /// <p>A list of environment image versions.</p>
1077    #[serde(rename = "versions")]
1078    #[serde(skip_serializing_if = "Option::is_none")]
1079    pub versions: Option<Vec<String>>,
1080}
1081
1082/// <p>A set of Docker images that are related by programming language and are managed by CodeBuild.</p>
1083#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1084#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1085pub struct EnvironmentLanguage {
1086    /// <p>The list of Docker images that are related by the specified programming language.</p>
1087    #[serde(rename = "images")]
1088    #[serde(skip_serializing_if = "Option::is_none")]
1089    pub images: Option<Vec<EnvironmentImage>>,
1090    /// <p>The programming language for the Docker images.</p>
1091    #[serde(rename = "language")]
1092    #[serde(skip_serializing_if = "Option::is_none")]
1093    pub language: Option<String>,
1094}
1095
1096/// <p>A set of Docker images that are related by platform and are managed by CodeBuild.</p>
1097#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1098#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1099pub struct EnvironmentPlatform {
1100    /// <p>The list of programming languages that are available for the specified platform.</p>
1101    #[serde(rename = "languages")]
1102    #[serde(skip_serializing_if = "Option::is_none")]
1103    pub languages: Option<Vec<EnvironmentLanguage>>,
1104    /// <p>The platform's name.</p>
1105    #[serde(rename = "platform")]
1106    #[serde(skip_serializing_if = "Option::is_none")]
1107    pub platform: Option<String>,
1108}
1109
1110/// <p>Information about an environment variable for a build project or a build.</p>
1111#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1112pub struct EnvironmentVariable {
1113    /// <p>The name or key of the environment variable.</p>
1114    #[serde(rename = "name")]
1115    pub name: String,
1116    /// <p><p>The type of environment variable. Valid values include:</p> <ul> <li> <p> <code>PARAMETER<em>STORE</code>: An environment variable stored in Systems Manager Parameter Store. To learn how to specify a parameter store environment variable, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.parameter-store">env/parameter-store</a> in the <i>CodeBuild User Guide</i>.</p> </li> <li> <p> <code>PLAINTEXT</code>: An environment variable in plain text format. This is the default value.</p> </li> <li> <p> <code>SECRETS</em>MANAGER</code>: An environment variable stored in Secrets Manager. To learn how to specify a secrets manager environment variable, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec.env.secrets-manager">env/secrets-manager</a> in the <i>CodeBuild User Guide</i>.</p> </li> </ul></p>
1117    #[serde(rename = "type")]
1118    #[serde(skip_serializing_if = "Option::is_none")]
1119    pub type_: Option<String>,
1120    /// <p><p>The value of the environment variable.</p> <important> <p>We strongly discourage the use of <code>PLAINTEXT</code> environment variables to store sensitive values, especially Amazon Web Services secret key IDs and secret access keys. <code>PLAINTEXT</code> environment variables can be displayed in plain text using the CodeBuild console and the AWS Command Line Interface (AWS CLI). For sensitive values, we recommend you use an environment variable of type <code>PARAMETER<em>STORE</code> or <code>SECRETS</em>MANAGER</code>. </p> </important></p>
1121    #[serde(rename = "value")]
1122    pub value: String,
1123}
1124
1125/// <p><p>Contains information about an exported environment variable. </p> <p>Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see <a href="https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-variables.html">Working with variables</a> in the <i>CodePipeline User Guide</i>.</p> <note> <p> During a build, the value of a variable is available starting with the <code>install</code> phase. It can be updated between the start of the <code>install</code> phase and the end of the <code>post<em>build</code> phase. After the <code>post</em>build</code> phase ends, the value of exported variables cannot change.</p> </note></p>
1126#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1127#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1128pub struct ExportedEnvironmentVariable {
1129    /// <p>The name of the exported environment variable.</p>
1130    #[serde(rename = "name")]
1131    #[serde(skip_serializing_if = "Option::is_none")]
1132    pub name: Option<String>,
1133    /// <p>The value assigned to the exported environment variable.</p>
1134    #[serde(rename = "value")]
1135    #[serde(skip_serializing_if = "Option::is_none")]
1136    pub value: Option<String>,
1137}
1138
1139#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1140#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1141pub struct GetReportGroupTrendInput {
1142    /// <p>The number of reports to analyze. This operation always retrieves the most recent reports.</p> <p>If this parameter is omitted, the most recent 100 reports are analyzed.</p>
1143    #[serde(rename = "numOfReports")]
1144    #[serde(skip_serializing_if = "Option::is_none")]
1145    pub num_of_reports: Option<i64>,
1146    /// <p>The ARN of the report group that contains the reports to analyze.</p>
1147    #[serde(rename = "reportGroupArn")]
1148    pub report_group_arn: String,
1149    /// <p><p>The test report value to accumulate. This must be one of the following values:</p> <dl> <dt>Test reports:</dt> <dd> <dl> <dt>DURATION</dt> <dd> <p>Accumulate the test run times for the specified reports.</p> </dd> <dt>PASS<em>RATE</dt> <dd> <p>Accumulate the percentage of tests that passed for the specified test reports.</p> </dd> <dt>TOTAL</dt> <dd> <p>Accumulate the total number of tests for the specified test reports.</p> </dd> </dl> </dd> </dl> <dl> <dt>Code coverage reports:</dt> <dd> <dl> <dt>BRANCH</em>COVERAGE</dt> <dd> <p>Accumulate the branch coverage percentages for the specified test reports.</p> </dd> <dt>BRANCHES<em>COVERED</dt> <dd> <p>Accumulate the branches covered values for the specified test reports.</p> </dd> <dt>BRANCHES</em>MISSED</dt> <dd> <p>Accumulate the branches missed values for the specified test reports.</p> </dd> <dt>LINE<em>COVERAGE</dt> <dd> <p>Accumulate the line coverage percentages for the specified test reports.</p> </dd> <dt>LINES</em>COVERED</dt> <dd> <p>Accumulate the lines covered values for the specified test reports.</p> </dd> <dt>LINES_MISSED</dt> <dd> <p>Accumulate the lines not covered values for the specified test reports.</p> </dd> </dl> </dd> </dl></p>
1150    #[serde(rename = "trendField")]
1151    pub trend_field: String,
1152}
1153
1154#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1155#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1156pub struct GetReportGroupTrendOutput {
1157    /// <p>An array that contains the raw data for each report.</p>
1158    #[serde(rename = "rawData")]
1159    #[serde(skip_serializing_if = "Option::is_none")]
1160    pub raw_data: Option<Vec<ReportWithRawData>>,
1161    /// <p>Contains the accumulated trend data.</p>
1162    #[serde(rename = "stats")]
1163    #[serde(skip_serializing_if = "Option::is_none")]
1164    pub stats: Option<ReportGroupTrendStats>,
1165}
1166
1167#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1168#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1169pub struct GetResourcePolicyInput {
1170    /// <p> The ARN of the resource that is associated with the resource policy. </p>
1171    #[serde(rename = "resourceArn")]
1172    pub resource_arn: String,
1173}
1174
1175#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1176#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1177pub struct GetResourcePolicyOutput {
1178    /// <p> The resource policy for the resource identified by the input ARN parameter. </p>
1179    #[serde(rename = "policy")]
1180    #[serde(skip_serializing_if = "Option::is_none")]
1181    pub policy: Option<String>,
1182}
1183
1184/// <p> Information about the Git submodules configuration for an CodeBuild build project. </p>
1185#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1186pub struct GitSubmodulesConfig {
1187    /// <p> Set to true to fetch Git submodules for your CodeBuild build project. </p>
1188    #[serde(rename = "fetchSubmodules")]
1189    pub fetch_submodules: bool,
1190}
1191
1192#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1193#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1194pub struct ImportSourceCredentialsInput {
1195    /// <p> The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. </p>
1196    #[serde(rename = "authType")]
1197    pub auth_type: String,
1198    /// <p> The source provider used for this project. </p>
1199    #[serde(rename = "serverType")]
1200    pub server_type: String,
1201    /// <p> Set to <code>false</code> to prevent overwriting the repository source credentials. Set to <code>true</code> to overwrite the repository source credentials. The default value is <code>true</code>. </p>
1202    #[serde(rename = "shouldOverwrite")]
1203    #[serde(skip_serializing_if = "Option::is_none")]
1204    pub should_overwrite: Option<bool>,
1205    /// <p> For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password. </p>
1206    #[serde(rename = "token")]
1207    pub token: String,
1208    /// <p> The Bitbucket username when the <code>authType</code> is BASIC_AUTH. This parameter is not valid for other types of source providers or connections. </p>
1209    #[serde(rename = "username")]
1210    #[serde(skip_serializing_if = "Option::is_none")]
1211    pub username: Option<String>,
1212}
1213
1214#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1215#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1216pub struct ImportSourceCredentialsOutput {
1217    /// <p> The Amazon Resource Name (ARN) of the token. </p>
1218    #[serde(rename = "arn")]
1219    #[serde(skip_serializing_if = "Option::is_none")]
1220    pub arn: Option<String>,
1221}
1222
1223#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1224#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1225pub struct InvalidateProjectCacheInput {
1226    /// <p>The name of the CodeBuild build project that the cache is reset for.</p>
1227    #[serde(rename = "projectName")]
1228    pub project_name: String,
1229}
1230
1231#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1232#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1233pub struct InvalidateProjectCacheOutput {}
1234
1235#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1236#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1237pub struct ListBuildBatchesForProjectInput {
1238    /// <p>A <code>BuildBatchFilter</code> object that specifies the filters for the search.</p>
1239    #[serde(rename = "filter")]
1240    #[serde(skip_serializing_if = "Option::is_none")]
1241    pub filter: Option<BuildBatchFilter>,
1242    /// <p>The maximum number of results to return.</p>
1243    #[serde(rename = "maxResults")]
1244    #[serde(skip_serializing_if = "Option::is_none")]
1245    pub max_results: Option<i64>,
1246    /// <p>The <code>nextToken</code> value returned from a previous call to <code>ListBuildBatchesForProject</code>. This specifies the next item to return. To return the beginning of the list, exclude this parameter.</p>
1247    #[serde(rename = "nextToken")]
1248    #[serde(skip_serializing_if = "Option::is_none")]
1249    pub next_token: Option<String>,
1250    /// <p>The name of the project.</p>
1251    #[serde(rename = "projectName")]
1252    #[serde(skip_serializing_if = "Option::is_none")]
1253    pub project_name: Option<String>,
1254    /// <p><p>Specifies the sort order of the returned items. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List the batch build identifiers in descending order by identifier.</p> </li> </ul></p>
1255    #[serde(rename = "sortOrder")]
1256    #[serde(skip_serializing_if = "Option::is_none")]
1257    pub sort_order: Option<String>,
1258}
1259
1260#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1261#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1262pub struct ListBuildBatchesForProjectOutput {
1263    /// <p>An array of strings that contains the batch build identifiers.</p>
1264    #[serde(rename = "ids")]
1265    #[serde(skip_serializing_if = "Option::is_none")]
1266    pub ids: Option<Vec<String>>,
1267    /// <p>If there are more items to return, this contains a token that is passed to a subsequent call to <code>ListBuildBatchesForProject</code> to retrieve the next set of items.</p>
1268    #[serde(rename = "nextToken")]
1269    #[serde(skip_serializing_if = "Option::is_none")]
1270    pub next_token: Option<String>,
1271}
1272
1273#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1274#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1275pub struct ListBuildBatchesInput {
1276    /// <p>A <code>BuildBatchFilter</code> object that specifies the filters for the search.</p>
1277    #[serde(rename = "filter")]
1278    #[serde(skip_serializing_if = "Option::is_none")]
1279    pub filter: Option<BuildBatchFilter>,
1280    /// <p>The maximum number of results to return.</p>
1281    #[serde(rename = "maxResults")]
1282    #[serde(skip_serializing_if = "Option::is_none")]
1283    pub max_results: Option<i64>,
1284    /// <p>The <code>nextToken</code> value returned from a previous call to <code>ListBuildBatches</code>. This specifies the next item to return. To return the beginning of the list, exclude this parameter.</p>
1285    #[serde(rename = "nextToken")]
1286    #[serde(skip_serializing_if = "Option::is_none")]
1287    pub next_token: Option<String>,
1288    /// <p><p>Specifies the sort order of the returned items. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List the batch build identifiers in ascending order by identifier.</p> </li> <li> <p> <code>DESCENDING</code>: List the batch build identifiers in descending order by identifier.</p> </li> </ul></p>
1289    #[serde(rename = "sortOrder")]
1290    #[serde(skip_serializing_if = "Option::is_none")]
1291    pub sort_order: Option<String>,
1292}
1293
1294#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1295#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1296pub struct ListBuildBatchesOutput {
1297    /// <p>An array of strings that contains the batch build identifiers.</p>
1298    #[serde(rename = "ids")]
1299    #[serde(skip_serializing_if = "Option::is_none")]
1300    pub ids: Option<Vec<String>>,
1301    /// <p>If there are more items to return, this contains a token that is passed to a subsequent call to <code>ListBuildBatches</code> to retrieve the next set of items.</p>
1302    #[serde(rename = "nextToken")]
1303    #[serde(skip_serializing_if = "Option::is_none")]
1304    pub next_token: Option<String>,
1305}
1306
1307#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1308#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1309pub struct ListBuildsForProjectInput {
1310    /// <p>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 <i>nextToken</i>. 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.</p>
1311    #[serde(rename = "nextToken")]
1312    #[serde(skip_serializing_if = "Option::is_none")]
1313    pub next_token: Option<String>,
1314    /// <p>The name of the CodeBuild project.</p>
1315    #[serde(rename = "projectName")]
1316    pub project_name: String,
1317    /// <p>The order to list results in. The results are sorted by build number, not the build identifier.</p> <p>Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p> </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order by build ID.</p> </li> </ul> <p>If the project has more than 100 builds, setting the sort order will result in an error. </p>
1318    #[serde(rename = "sortOrder")]
1319    #[serde(skip_serializing_if = "Option::is_none")]
1320    pub sort_order: Option<String>,
1321}
1322
1323#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1324#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1325pub struct ListBuildsForProjectOutput {
1326    /// <p>A list of build IDs for the specified build project, with each build ID representing a single build.</p>
1327    #[serde(rename = "ids")]
1328    #[serde(skip_serializing_if = "Option::is_none")]
1329    pub ids: Option<Vec<String>>,
1330    /// <p>If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a <i>nextToken</i>. To get the next batch of items in the list, call this operation again, adding the next token to the call.</p>
1331    #[serde(rename = "nextToken")]
1332    #[serde(skip_serializing_if = "Option::is_none")]
1333    pub next_token: Option<String>,
1334}
1335
1336#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1337#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1338pub struct ListBuildsInput {
1339    /// <p>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 <i>nextToken</i>. 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.</p>
1340    #[serde(rename = "nextToken")]
1341    #[serde(skip_serializing_if = "Option::is_none")]
1342    pub next_token: Option<String>,
1343    /// <p><p>The order to list build IDs. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List the build IDs in ascending order by build ID.</p> </li> <li> <p> <code>DESCENDING</code>: List the build IDs in descending order by build ID.</p> </li> </ul></p>
1344    #[serde(rename = "sortOrder")]
1345    #[serde(skip_serializing_if = "Option::is_none")]
1346    pub sort_order: Option<String>,
1347}
1348
1349#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1350#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1351pub struct ListBuildsOutput {
1352    /// <p>A list of build IDs, with each build ID representing a single build.</p>
1353    #[serde(rename = "ids")]
1354    #[serde(skip_serializing_if = "Option::is_none")]
1355    pub ids: Option<Vec<String>>,
1356    /// <p>If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a <i>nextToken</i>. To get the next batch of items in the list, call this operation again, adding the next token to the call.</p>
1357    #[serde(rename = "nextToken")]
1358    #[serde(skip_serializing_if = "Option::is_none")]
1359    pub next_token: Option<String>,
1360}
1361
1362#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1363#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1364pub struct ListCuratedEnvironmentImagesInput {}
1365
1366#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1367#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1368pub struct ListCuratedEnvironmentImagesOutput {
1369    /// <p>Information about supported platforms for Docker images that are managed by CodeBuild.</p>
1370    #[serde(rename = "platforms")]
1371    #[serde(skip_serializing_if = "Option::is_none")]
1372    pub platforms: Option<Vec<EnvironmentPlatform>>,
1373}
1374
1375#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1376#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1377pub struct ListProjectsInput {
1378    /// <p>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 <i>nextToken</i>. 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.</p>
1379    #[serde(rename = "nextToken")]
1380    #[serde(skip_serializing_if = "Option::is_none")]
1381    pub next_token: Option<String>,
1382    /// <p>The criterion to be used to list build project names. Valid values include:</p> <ul> <li> <p> <code>CREATED_TIME</code>: List based on when each build project was created.</p> </li> <li> <p> <code>LAST_MODIFIED_TIME</code>: List based on when information about each build project was last changed.</p> </li> <li> <p> <code>NAME</code>: List based on each build project's name.</p> </li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the build project names based on the preceding criteria.</p>
1383    #[serde(rename = "sortBy")]
1384    #[serde(skip_serializing_if = "Option::is_none")]
1385    pub sort_by: Option<String>,
1386    /// <p>The order in which to list build projects. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p> <code>DESCENDING</code>: List in descending order.</p> </li> </ul> <p>Use <code>sortBy</code> to specify the criterion to be used to list build project names.</p>
1387    #[serde(rename = "sortOrder")]
1388    #[serde(skip_serializing_if = "Option::is_none")]
1389    pub sort_order: Option<String>,
1390}
1391
1392#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1393#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1394pub struct ListProjectsOutput {
1395    /// <p>If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a <i>nextToken</i>. To get the next batch of items in the list, call this operation again, adding the next token to the call.</p>
1396    #[serde(rename = "nextToken")]
1397    #[serde(skip_serializing_if = "Option::is_none")]
1398    pub next_token: Option<String>,
1399    /// <p>The list of build project names, with each build project name representing a single build project.</p>
1400    #[serde(rename = "projects")]
1401    #[serde(skip_serializing_if = "Option::is_none")]
1402    pub projects: Option<Vec<String>>,
1403}
1404
1405#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1406#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1407pub struct ListReportGroupsInput {
1408    /// <p> The maximum number of paginated report groups returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>ReportGroup</code> objects. The default value is 100. </p>
1409    #[serde(rename = "maxResults")]
1410    #[serde(skip_serializing_if = "Option::is_none")]
1411    pub max_results: Option<i64>,
1412    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1413    #[serde(rename = "nextToken")]
1414    #[serde(skip_serializing_if = "Option::is_none")]
1415    pub next_token: Option<String>,
1416    /// <p><p> The criterion to be used to list build report groups. Valid values include: </p> <ul> <li> <p> <code>CREATED<em>TIME</code>: List based on when each report group was created.</p> </li> <li> <p> <code>LAST</em>MODIFIED_TIME</code>: List based on when each report group was last changed.</p> </li> <li> <p> <code>NAME</code>: List based on each report group&#39;s name.</p> </li> </ul></p>
1417    #[serde(rename = "sortBy")]
1418    #[serde(skip_serializing_if = "Option::is_none")]
1419    pub sort_by: Option<String>,
1420    /// <p> Used to specify the order to sort the list of returned report groups. Valid values are <code>ASCENDING</code> and <code>DESCENDING</code>. </p>
1421    #[serde(rename = "sortOrder")]
1422    #[serde(skip_serializing_if = "Option::is_none")]
1423    pub sort_order: Option<String>,
1424}
1425
1426#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1427#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1428pub struct ListReportGroupsOutput {
1429    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1430    #[serde(rename = "nextToken")]
1431    #[serde(skip_serializing_if = "Option::is_none")]
1432    pub next_token: Option<String>,
1433    /// <p> The list of ARNs for the report groups in the current Amazon Web Services account. </p>
1434    #[serde(rename = "reportGroups")]
1435    #[serde(skip_serializing_if = "Option::is_none")]
1436    pub report_groups: Option<Vec<String>>,
1437}
1438
1439#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1440#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1441pub struct ListReportsForReportGroupInput {
1442    /// <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
1443    #[serde(rename = "filter")]
1444    #[serde(skip_serializing_if = "Option::is_none")]
1445    pub filter: Option<ReportFilter>,
1446    /// <p> The maximum number of paginated reports in this report group returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>Report</code> objects. The default value is 100. </p>
1447    #[serde(rename = "maxResults")]
1448    #[serde(skip_serializing_if = "Option::is_none")]
1449    pub max_results: Option<i64>,
1450    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1451    #[serde(rename = "nextToken")]
1452    #[serde(skip_serializing_if = "Option::is_none")]
1453    pub next_token: Option<String>,
1454    /// <p> The ARN of the report group for which you want to return report ARNs. </p>
1455    #[serde(rename = "reportGroupArn")]
1456    pub report_group_arn: String,
1457    /// <p> Use to specify whether the results are returned in ascending or descending order. </p>
1458    #[serde(rename = "sortOrder")]
1459    #[serde(skip_serializing_if = "Option::is_none")]
1460    pub sort_order: Option<String>,
1461}
1462
1463#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1464#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1465pub struct ListReportsForReportGroupOutput {
1466    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1467    #[serde(rename = "nextToken")]
1468    #[serde(skip_serializing_if = "Option::is_none")]
1469    pub next_token: Option<String>,
1470    /// <p> The list of report ARNs. </p>
1471    #[serde(rename = "reports")]
1472    #[serde(skip_serializing_if = "Option::is_none")]
1473    pub reports: Option<Vec<String>>,
1474}
1475
1476#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1477#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1478pub struct ListReportsInput {
1479    /// <p> A <code>ReportFilter</code> object used to filter the returned reports. </p>
1480    #[serde(rename = "filter")]
1481    #[serde(skip_serializing_if = "Option::is_none")]
1482    pub filter: Option<ReportFilter>,
1483    /// <p> The maximum number of paginated reports returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>Report</code> objects. The default value is 100. </p>
1484    #[serde(rename = "maxResults")]
1485    #[serde(skip_serializing_if = "Option::is_none")]
1486    pub max_results: Option<i64>,
1487    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1488    #[serde(rename = "nextToken")]
1489    #[serde(skip_serializing_if = "Option::is_none")]
1490    pub next_token: Option<String>,
1491    /// <p><p> Specifies the sort order for the list of returned reports. Valid values are: </p> <ul> <li> <p> <code>ASCENDING</code>: return reports in chronological order based on their creation date. </p> </li> <li> <p> <code>DESCENDING</code>: return reports in the reverse chronological order based on their creation date. </p> </li> </ul></p>
1492    #[serde(rename = "sortOrder")]
1493    #[serde(skip_serializing_if = "Option::is_none")]
1494    pub sort_order: Option<String>,
1495}
1496
1497#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1498#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1499pub struct ListReportsOutput {
1500    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1501    #[serde(rename = "nextToken")]
1502    #[serde(skip_serializing_if = "Option::is_none")]
1503    pub next_token: Option<String>,
1504    /// <p> The list of returned ARNs for the reports in the current Amazon Web Services account. </p>
1505    #[serde(rename = "reports")]
1506    #[serde(skip_serializing_if = "Option::is_none")]
1507    pub reports: Option<Vec<String>>,
1508}
1509
1510#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1511#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1512pub struct ListSharedProjectsInput {
1513    /// <p> The maximum number of paginated shared build projects returned per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>Project</code> objects. The default value is 100. </p>
1514    #[serde(rename = "maxResults")]
1515    #[serde(skip_serializing_if = "Option::is_none")]
1516    pub max_results: Option<i64>,
1517    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1518    #[serde(rename = "nextToken")]
1519    #[serde(skip_serializing_if = "Option::is_none")]
1520    pub next_token: Option<String>,
1521    /// <p><p> The criterion to be used to list build projects shared with the current Amazon Web Services account or user. Valid values include: </p> <ul> <li> <p> <code>ARN</code>: List based on the ARN. </p> </li> <li> <p> <code>MODIFIED_TIME</code>: List based on when information about the shared project was last changed. </p> </li> </ul></p>
1522    #[serde(rename = "sortBy")]
1523    #[serde(skip_serializing_if = "Option::is_none")]
1524    pub sort_by: Option<String>,
1525    /// <p><p>The order in which to list shared build projects. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p> <code>DESCENDING</code>: List in descending order.</p> </li> </ul></p>
1526    #[serde(rename = "sortOrder")]
1527    #[serde(skip_serializing_if = "Option::is_none")]
1528    pub sort_order: Option<String>,
1529}
1530
1531#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1532#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1533pub struct ListSharedProjectsOutput {
1534    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1535    #[serde(rename = "nextToken")]
1536    #[serde(skip_serializing_if = "Option::is_none")]
1537    pub next_token: Option<String>,
1538    /// <p> The list of ARNs for the build projects shared with the current Amazon Web Services account or user. </p>
1539    #[serde(rename = "projects")]
1540    #[serde(skip_serializing_if = "Option::is_none")]
1541    pub projects: Option<Vec<String>>,
1542}
1543
1544#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1545#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1546pub struct ListSharedReportGroupsInput {
1547    /// <p> The maximum number of paginated shared report groups per response. Use <code>nextToken</code> to iterate pages in the list of returned <code>ReportGroup</code> objects. The default value is 100. </p>
1548    #[serde(rename = "maxResults")]
1549    #[serde(skip_serializing_if = "Option::is_none")]
1550    pub max_results: Option<i64>,
1551    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1552    #[serde(rename = "nextToken")]
1553    #[serde(skip_serializing_if = "Option::is_none")]
1554    pub next_token: Option<String>,
1555    /// <p><p> The criterion to be used to list report groups shared with the current Amazon Web Services account or user. Valid values include: </p> <ul> <li> <p> <code>ARN</code>: List based on the ARN. </p> </li> <li> <p> <code>MODIFIED_TIME</code>: List based on when information about the shared report group was last changed. </p> </li> </ul></p>
1556    #[serde(rename = "sortBy")]
1557    #[serde(skip_serializing_if = "Option::is_none")]
1558    pub sort_by: Option<String>,
1559    /// <p><p>The order in which to list shared report groups. Valid values include:</p> <ul> <li> <p> <code>ASCENDING</code>: List in ascending order.</p> </li> <li> <p> <code>DESCENDING</code>: List in descending order.</p> </li> </ul></p>
1560    #[serde(rename = "sortOrder")]
1561    #[serde(skip_serializing_if = "Option::is_none")]
1562    pub sort_order: Option<String>,
1563}
1564
1565#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1566#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1567pub struct ListSharedReportGroupsOutput {
1568    /// <p> During a previous call, the maximum number of items that can be returned is the value specified in <code>maxResults</code>. If there more items in the list, then a unique string called a <i>nextToken</i> 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. </p>
1569    #[serde(rename = "nextToken")]
1570    #[serde(skip_serializing_if = "Option::is_none")]
1571    pub next_token: Option<String>,
1572    /// <p> The list of ARNs for the report groups shared with the current Amazon Web Services account or user. </p>
1573    #[serde(rename = "reportGroups")]
1574    #[serde(skip_serializing_if = "Option::is_none")]
1575    pub report_groups: Option<Vec<String>>,
1576}
1577
1578#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1579#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1580pub struct ListSourceCredentialsInput {}
1581
1582#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1583#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1584pub struct ListSourceCredentialsOutput {
1585    /// <p> A list of <code>SourceCredentialsInfo</code> objects. Each <code>SourceCredentialsInfo</code> object includes the authentication type, token ARN, and type of source provider for one set of credentials. </p>
1586    #[serde(rename = "sourceCredentialsInfos")]
1587    #[serde(skip_serializing_if = "Option::is_none")]
1588    pub source_credentials_infos: Option<Vec<SourceCredentialsInfo>>,
1589}
1590
1591/// <p> Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both. </p>
1592#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1593pub struct LogsConfig {
1594    /// <p> Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default. </p>
1595    #[serde(rename = "cloudWatchLogs")]
1596    #[serde(skip_serializing_if = "Option::is_none")]
1597    pub cloud_watch_logs: Option<CloudWatchLogsConfig>,
1598    /// <p> Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default. </p>
1599    #[serde(rename = "s3Logs")]
1600    #[serde(skip_serializing_if = "Option::is_none")]
1601    pub s_3_logs: Option<S3LogsConfig>,
1602}
1603
1604/// <p>Information about build logs in CloudWatch Logs.</p>
1605#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1606#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1607pub struct LogsLocation {
1608    /// <p> Information about CloudWatch Logs for a build project. </p>
1609    #[serde(rename = "cloudWatchLogs")]
1610    #[serde(skip_serializing_if = "Option::is_none")]
1611    pub cloud_watch_logs: Option<CloudWatchLogsConfig>,
1612    /// <p> The ARN of CloudWatch Logs for a build project. Its format is <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources Defined by CloudWatch Logs</a>. </p>
1613    #[serde(rename = "cloudWatchLogsArn")]
1614    #[serde(skip_serializing_if = "Option::is_none")]
1615    pub cloud_watch_logs_arn: Option<String>,
1616    /// <p>The URL to an individual build log in CloudWatch Logs.</p>
1617    #[serde(rename = "deepLink")]
1618    #[serde(skip_serializing_if = "Option::is_none")]
1619    pub deep_link: Option<String>,
1620    /// <p>The name of the CloudWatch Logs group for the build logs.</p>
1621    #[serde(rename = "groupName")]
1622    #[serde(skip_serializing_if = "Option::is_none")]
1623    pub group_name: Option<String>,
1624    /// <p> The URL to a build log in an S3 bucket. </p>
1625    #[serde(rename = "s3DeepLink")]
1626    #[serde(skip_serializing_if = "Option::is_none")]
1627    pub s_3_deep_link: Option<String>,
1628    /// <p> Information about S3 logs for a build project. </p>
1629    #[serde(rename = "s3Logs")]
1630    #[serde(skip_serializing_if = "Option::is_none")]
1631    pub s_3_logs: Option<S3LogsConfig>,
1632    /// <p> The ARN of S3 logs for a build project. Its format is <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources Defined by Amazon S3</a>. </p>
1633    #[serde(rename = "s3LogsArn")]
1634    #[serde(skip_serializing_if = "Option::is_none")]
1635    pub s_3_logs_arn: Option<String>,
1636    /// <p>The name of the CloudWatch Logs stream for the build logs.</p>
1637    #[serde(rename = "streamName")]
1638    #[serde(skip_serializing_if = "Option::is_none")]
1639    pub stream_name: Option<String>,
1640}
1641
1642/// <p>Describes a network interface.</p>
1643#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1644#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1645pub struct NetworkInterface {
1646    /// <p>The ID of the network interface.</p>
1647    #[serde(rename = "networkInterfaceId")]
1648    #[serde(skip_serializing_if = "Option::is_none")]
1649    pub network_interface_id: Option<String>,
1650    /// <p>The ID of the subnet.</p>
1651    #[serde(rename = "subnetId")]
1652    #[serde(skip_serializing_if = "Option::is_none")]
1653    pub subnet_id: Option<String>,
1654}
1655
1656/// <p>Additional information about a build phase that has an error. You can use this information for troubleshooting.</p>
1657#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1658#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1659pub struct PhaseContext {
1660    /// <p>An explanation of the build phase's context. This might include a command ID and an exit code.</p>
1661    #[serde(rename = "message")]
1662    #[serde(skip_serializing_if = "Option::is_none")]
1663    pub message: Option<String>,
1664    /// <p>The status code for the context of the build phase.</p>
1665    #[serde(rename = "statusCode")]
1666    #[serde(skip_serializing_if = "Option::is_none")]
1667    pub status_code: Option<String>,
1668}
1669
1670/// <p>Information about a build project.</p>
1671#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1672#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1673pub struct Project {
1674    /// <p>The Amazon Resource Name (ARN) of the build project.</p>
1675    #[serde(rename = "arn")]
1676    #[serde(skip_serializing_if = "Option::is_none")]
1677    pub arn: Option<String>,
1678    /// <p>Information about the build output artifacts for the build project.</p>
1679    #[serde(rename = "artifacts")]
1680    #[serde(skip_serializing_if = "Option::is_none")]
1681    pub artifacts: Option<ProjectArtifacts>,
1682    /// <p>Information about the build badge for the build project.</p>
1683    #[serde(rename = "badge")]
1684    #[serde(skip_serializing_if = "Option::is_none")]
1685    pub badge: Option<ProjectBadge>,
1686    /// <p>A <a>ProjectBuildBatchConfig</a> object that defines the batch build options for the project.</p>
1687    #[serde(rename = "buildBatchConfig")]
1688    #[serde(skip_serializing_if = "Option::is_none")]
1689    pub build_batch_config: Option<ProjectBuildBatchConfig>,
1690    /// <p>Information about the cache for the build project.</p>
1691    #[serde(rename = "cache")]
1692    #[serde(skip_serializing_if = "Option::is_none")]
1693    pub cache: Option<ProjectCache>,
1694    /// <p>The maximum number of concurrent builds that are allowed for this project.</p> <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>
1695    #[serde(rename = "concurrentBuildLimit")]
1696    #[serde(skip_serializing_if = "Option::is_none")]
1697    pub concurrent_build_limit: Option<i64>,
1698    /// <p>When the build project was created, expressed in Unix time format.</p>
1699    #[serde(rename = "created")]
1700    #[serde(skip_serializing_if = "Option::is_none")]
1701    pub created: Option<f64>,
1702    /// <p>A description that makes the build project easy to identify.</p>
1703    #[serde(rename = "description")]
1704    #[serde(skip_serializing_if = "Option::is_none")]
1705    pub description: Option<String>,
1706    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3). </p>
1707    #[serde(rename = "encryptionKey")]
1708    #[serde(skip_serializing_if = "Option::is_none")]
1709    pub encryption_key: Option<String>,
1710    /// <p>Information about the build environment for this build project.</p>
1711    #[serde(rename = "environment")]
1712    #[serde(skip_serializing_if = "Option::is_none")]
1713    pub environment: Option<ProjectEnvironment>,
1714    /// <p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>
1715    #[serde(rename = "fileSystemLocations")]
1716    #[serde(skip_serializing_if = "Option::is_none")]
1717    pub file_system_locations: Option<Vec<ProjectFileSystemLocation>>,
1718    /// <p>When the build project's settings were last modified, expressed in Unix time format.</p>
1719    #[serde(rename = "lastModified")]
1720    #[serde(skip_serializing_if = "Option::is_none")]
1721    pub last_modified: Option<f64>,
1722    /// <p>Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both. </p>
1723    #[serde(rename = "logsConfig")]
1724    #[serde(skip_serializing_if = "Option::is_none")]
1725    pub logs_config: Option<LogsConfig>,
1726    /// <p>The name of the build project.</p>
1727    #[serde(rename = "name")]
1728    #[serde(skip_serializing_if = "Option::is_none")]
1729    pub name: Option<String>,
1730    /// <p>The number of minutes a build is allowed to be queued before it times out. </p>
1731    #[serde(rename = "queuedTimeoutInMinutes")]
1732    #[serde(skip_serializing_if = "Option::is_none")]
1733    pub queued_timeout_in_minutes: Option<i64>,
1734    /// <p>An array of <code>ProjectArtifacts</code> objects. </p>
1735    #[serde(rename = "secondaryArtifacts")]
1736    #[serde(skip_serializing_if = "Option::is_none")]
1737    pub secondary_artifacts: Option<Vec<ProjectArtifacts>>,
1738    /// <p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take over these <code>secondarySourceVersions</code> (at the project level). </p>
1739    #[serde(rename = "secondarySourceVersions")]
1740    #[serde(skip_serializing_if = "Option::is_none")]
1741    pub secondary_source_versions: Option<Vec<ProjectSourceVersion>>,
1742    /// <p>An array of <code>ProjectSource</code> objects. </p>
1743    #[serde(rename = "secondarySources")]
1744    #[serde(skip_serializing_if = "Option::is_none")]
1745    pub secondary_sources: Option<Vec<ProjectSource>>,
1746    /// <p>The ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
1747    #[serde(rename = "serviceRole")]
1748    #[serde(skip_serializing_if = "Option::is_none")]
1749    pub service_role: Option<String>,
1750    /// <p>Information about the build input source code for this build project.</p>
1751    #[serde(rename = "source")]
1752    #[serde(skip_serializing_if = "Option::is_none")]
1753    pub source: Option<ProjectSource>,
1754    /// <p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level). </p> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
1755    #[serde(rename = "sourceVersion")]
1756    #[serde(skip_serializing_if = "Option::is_none")]
1757    pub source_version: Option<String>,
1758    /// <p>A list of tag key and value pairs associated with this build project.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
1759    #[serde(rename = "tags")]
1760    #[serde(skip_serializing_if = "Option::is_none")]
1761    pub tags: Option<Vec<Tag>>,
1762    /// <p>How long, in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.</p>
1763    #[serde(rename = "timeoutInMinutes")]
1764    #[serde(skip_serializing_if = "Option::is_none")]
1765    pub timeout_in_minutes: Option<i64>,
1766    /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
1767    #[serde(rename = "vpcConfig")]
1768    #[serde(skip_serializing_if = "Option::is_none")]
1769    pub vpc_config: Option<VpcConfig>,
1770    /// <p>Information about a webhook that connects repository events to a build project in CodeBuild.</p>
1771    #[serde(rename = "webhook")]
1772    #[serde(skip_serializing_if = "Option::is_none")]
1773    pub webhook: Option<Webhook>,
1774}
1775
1776/// <p>Information about the build output artifacts for the build project.</p>
1777#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1778pub struct ProjectArtifacts {
1779    /// <p> An identifier for this artifact definition. </p>
1780    #[serde(rename = "artifactIdentifier")]
1781    #[serde(skip_serializing_if = "Option::is_none")]
1782    pub artifact_identifier: Option<String>,
1783    /// <p> Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown. </p>
1784    #[serde(rename = "encryptionDisabled")]
1785    #[serde(skip_serializing_if = "Option::is_none")]
1786    pub encryption_disabled: Option<bool>,
1787    /// <p><p>Information about the build output artifact location:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the name of the output bucket.</p> </li> </ul></p>
1788    #[serde(rename = "location")]
1789    #[serde(skip_serializing_if = "Option::is_none")]
1790    pub location: Option<String>,
1791    /// <p><p>Along with <code>path</code> and <code>namespaceType</code>, the pattern that CodeBuild uses to name and store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO<em>ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the name of the output artifact object. If you set the name to be a forward slash (&quot;/&quot;), the artifact is stored in the root of the output bucket.</p> </li> </ul> <p>For example:</p> <ul> <li> <p> If <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD</em>ID</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, then the output artifact is stored in <code>MyArtifacts/&lt;build-ID&gt;/MyArtifact.zip</code>. </p> </li> <li> <p> If <code>path</code> is empty, <code>namespaceType</code> is set to <code>NONE</code>, and <code>name</code> is set to &quot;<code>/</code>&quot;, the output artifact is stored in the root of the output bucket. </p> </li> <li> <p> If <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD_ID</code>, and <code>name</code> is set to &quot;<code>/</code>&quot;, the output artifact is stored in <code>MyArtifacts/&lt;build-ID&gt;</code>. </p> </li> </ul></p>
1792    #[serde(rename = "name")]
1793    #[serde(skip_serializing_if = "Option::is_none")]
1794    pub name: Option<String>,
1795    /// <p>Along with <code>path</code> and <code>name</code>, the pattern that CodeBuild uses to determine the name and location to store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, valid values include:</p> <ul> <li> <p> <code>BUILD_ID</code>: Include the build ID in the location of the build output artifact.</p> </li> <li> <p> <code>NONE</code>: Do not include the build ID. This is the default if <code>namespaceType</code> is not specified.</p> </li> </ul> </li> </ul> <p>For example, if <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>BUILD_ID</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, the output artifact is stored in <code>MyArtifacts/&lt;build-ID&gt;/MyArtifact.zip</code>.</p>
1796    #[serde(rename = "namespaceType")]
1797    #[serde(skip_serializing_if = "Option::is_none")]
1798    pub namespace_type: Option<String>,
1799    /// <p> If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique. </p>
1800    #[serde(rename = "overrideArtifactName")]
1801    #[serde(skip_serializing_if = "Option::is_none")]
1802    pub override_artifact_name: Option<bool>,
1803    /// <p><p>The type of build output artifact to create:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, valid values include:</p> <ul> <li> <p> <code>NONE</code>: CodeBuild creates in the output bucket a folder that contains the build output. This is the default if <code>packaging</code> is not specified.</p> </li> <li> <p> <code>ZIP</code>: CodeBuild creates in the output bucket a ZIP file that contains the build output.</p> </li> </ul> </li> </ul></p>
1804    #[serde(rename = "packaging")]
1805    #[serde(skip_serializing_if = "Option::is_none")]
1806    pub packaging: Option<String>,
1807    /// <p>Along with <code>namespaceType</code> and <code>name</code>, the pattern that CodeBuild uses to name and store the output artifact:</p> <ul> <li> <p>If <code>type</code> is set to <code>CODEPIPELINE</code>, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of CodeBuild.</p> </li> <li> <p>If <code>type</code> is set to <code>NO_ARTIFACTS</code>, this value is ignored if specified, because no build output is produced.</p> </li> <li> <p>If <code>type</code> is set to <code>S3</code>, this is the path to the output artifact. If <code>path</code> is not specified, <code>path</code> is not used.</p> </li> </ul> <p>For example, if <code>path</code> is set to <code>MyArtifacts</code>, <code>namespaceType</code> is set to <code>NONE</code>, and <code>name</code> is set to <code>MyArtifact.zip</code>, the output artifact is stored in the output bucket at <code>MyArtifacts/MyArtifact.zip</code>.</p>
1808    #[serde(rename = "path")]
1809    #[serde(skip_serializing_if = "Option::is_none")]
1810    pub path: Option<String>,
1811    /// <p><p>The type of build output artifact. Valid values include:</p> <ul> <li> <p> <code>CODEPIPELINE</code>: The build project has build output generated through CodePipeline. </p> <note> <p>The <code>CODEPIPELINE</code> type is not supported for <code>secondaryArtifacts</code>.</p> </note> </li> <li> <p> <code>NO_ARTIFACTS</code>: The build project does not produce any build output.</p> </li> <li> <p> <code>S3</code>: The build project stores build output in Amazon S3.</p> </li> </ul></p>
1812    #[serde(rename = "type")]
1813    pub type_: String,
1814}
1815
1816/// <p>Information about the build badge for the build project.</p>
1817#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1818#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1819pub struct ProjectBadge {
1820    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
1821    #[serde(rename = "badgeEnabled")]
1822    #[serde(skip_serializing_if = "Option::is_none")]
1823    pub badge_enabled: Option<bool>,
1824    /// <p>The publicly-accessible URL through which you can access the build badge for your project. </p>
1825    #[serde(rename = "badgeRequestUrl")]
1826    #[serde(skip_serializing_if = "Option::is_none")]
1827    pub badge_request_url: Option<String>,
1828}
1829
1830/// <p>Contains configuration information about a batch build project.</p>
1831#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1832pub struct ProjectBuildBatchConfig {
1833    /// <p>Specifies if the build artifacts for the batch build should be combined into a single artifact location.</p>
1834    #[serde(rename = "combineArtifacts")]
1835    #[serde(skip_serializing_if = "Option::is_none")]
1836    pub combine_artifacts: Option<bool>,
1837    /// <p>A <code>BatchRestrictions</code> object that specifies the restrictions for the batch build.</p>
1838    #[serde(rename = "restrictions")]
1839    #[serde(skip_serializing_if = "Option::is_none")]
1840    pub restrictions: Option<BatchRestrictions>,
1841    /// <p>Specifies the service role ARN for the batch build project.</p>
1842    #[serde(rename = "serviceRole")]
1843    #[serde(skip_serializing_if = "Option::is_none")]
1844    pub service_role: Option<String>,
1845    /// <p>Specifies the maximum amount of time, in minutes, that the batch build must be completed in.</p>
1846    #[serde(rename = "timeoutInMins")]
1847    #[serde(skip_serializing_if = "Option::is_none")]
1848    pub timeout_in_mins: Option<i64>,
1849}
1850
1851/// <p>Information about the cache for the build project.</p>
1852#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1853pub struct ProjectCache {
1854    /// <p><p>Information about the cache location: </p> <ul> <li> <p> <code>NO_CACHE</code> or <code>LOCAL</code>: This value is ignored.</p> </li> <li> <p> <code>S3</code>: This is the S3 bucket name/prefix.</p> </li> </ul></p>
1855    #[serde(rename = "location")]
1856    #[serde(skip_serializing_if = "Option::is_none")]
1857    pub location: Option<String>,
1858    /// <p><p>An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for <code>LOCAL</code> cache types.</p> <p>Possible values are:</p> <dl> <dt>LOCAL<em>SOURCE</em>CACHE</dt> <dd> <p>Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored. </p> </dd> <dt>LOCAL<em>DOCKER</em>LAYER<em>CACHE</dt> <dd> <p>Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network. </p> <note> <ul> <li> <p>You can use a Docker layer cache in the Linux environment only. </p> </li> <li> <p>The <code>privileged</code> flag must be set so that your project has the required Docker permissions. </p> </li> <li> <p>You should consider the security implications before you use a Docker layer cache. </p> </li> </ul> </note> </dd> <dt>LOCAL</em>CUSTOM_CACHE</dt> <dd> <p>Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache: </p> <ul> <li> <p>Only directories can be specified for caching. You cannot specify individual files. </p> </li> <li> <p>Symlinks are used to reference cached directories. </p> </li> <li> <p>Cached directories are linked to your build before it downloads its project sources. Cached items are overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file. </p> </li> </ul> </dd> </dl></p>
1859    #[serde(rename = "modes")]
1860    #[serde(skip_serializing_if = "Option::is_none")]
1861    pub modes: Option<Vec<String>>,
1862    /// <p><p>The type of cache used by the build project. Valid values include:</p> <ul> <li> <p> <code>NO_CACHE</code>: The build project does not use any cache.</p> </li> <li> <p> <code>S3</code>: The build project reads and writes from and to S3.</p> </li> <li> <p> <code>LOCAL</code>: The build project stores a cache locally on a build host that is only available to that build host.</p> </li> </ul></p>
1863    #[serde(rename = "type")]
1864    pub type_: String,
1865}
1866
1867/// <p>Information about the build environment of the build project.</p>
1868#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1869pub struct ProjectEnvironment {
1870    /// <p>The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate">certificate</a> in the <i>CodeBuild User Guide</i>.</p>
1871    #[serde(rename = "certificate")]
1872    #[serde(skip_serializing_if = "Option::is_none")]
1873    pub certificate: Option<String>,
1874    /// <p>Information about the compute resources the build project uses. Available values include:</p> <ul> <li> <p> <code>BUILD_GENERAL1_SMALL</code>: Use up to 3 GB memory and 2 vCPUs for builds.</p> </li> <li> <p> <code>BUILD_GENERAL1_MEDIUM</code>: Use up to 7 GB memory and 4 vCPUs for builds.</p> </li> <li> <p> <code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.</p> </li> <li> <p> <code>BUILD_GENERAL1_2XLARGE</code>: 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.</p> </li> </ul> <p> If you use <code>BUILD_GENERAL1_LARGE</code>: </p> <ul> <li> <p> For environment type <code>LINUX_CONTAINER</code>, you can use up to 15 GB memory and 8 vCPUs for builds. </p> </li> <li> <p> For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p> </li> <li> <p> For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GB memory and 8 vCPUs on ARM-based processors for builds.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build Environment Compute Types</a> in the <i>CodeBuild User Guide.</i> </p>
1875    #[serde(rename = "computeType")]
1876    pub compute_type: String,
1877    /// <p>A set of environment variables to make available to builds for this build project.</p>
1878    #[serde(rename = "environmentVariables")]
1879    #[serde(skip_serializing_if = "Option::is_none")]
1880    pub environment_variables: Option<Vec<EnvironmentVariable>>,
1881    /// <p>The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats:</p> <ul> <li> <p>For an image tag: <code>&lt;registry&gt;/&lt;repository&gt;:&lt;tag&gt;</code>. For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be <code>aws/codebuild/standard:4.0</code>. </p> </li> <li> <p>For an image digest: <code>&lt;registry&gt;/&lt;repository&gt;@&lt;digest&gt;</code>. For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use <code>&lt;registry&gt;/&lt;repository&gt;@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf</code>.</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html">Docker images provided by CodeBuild</a> in the <i>CodeBuild user guide</i>.</p>
1882    #[serde(rename = "image")]
1883    pub image: String,
1884    /// <p> The type of credentials CodeBuild uses to pull images in your build. There are two valid values: </p> <ul> <li> <p> <code>CODEBUILD</code> specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild service principal. </p> </li> <li> <p> <code>SERVICE_ROLE</code> specifies that CodeBuild uses your build project's service role. </p> </li> </ul> <p> When you use a cross-account or private registry image, you must use SERVICE_ROLE credentials. When you use an CodeBuild curated image, you must use CODEBUILD credentials. </p>
1885    #[serde(rename = "imagePullCredentialsType")]
1886    #[serde(skip_serializing_if = "Option::is_none")]
1887    pub image_pull_credentials_type: Option<String>,
1888    /// <p>Enables running the Docker daemon inside a Docker container. Set to true only if the build project is used to build Docker images. Otherwise, a build that attempts to interact with the Docker daemon fails. The default setting is <code>false</code>.</p> <p>You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file:</p> <p>If the operating system's base image is Ubuntu Linux:</p> <p> <code>- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&amp;</code> </p> <p> <code>- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"</code> </p> <p>If the operating system's base image is Alpine Linux and the previous command does not work, add the <code>-t</code> argument to <code>timeout</code>:</p> <p> <code>- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay&amp;</code> </p> <p> <code>- timeout -t 15 sh -c "until docker info; do echo .; sleep 1; done"</code> </p>
1889    #[serde(rename = "privilegedMode")]
1890    #[serde(skip_serializing_if = "Option::is_none")]
1891    pub privileged_mode: Option<bool>,
1892    /// <p> The credentials for access to a private registry.</p>
1893    #[serde(rename = "registryCredential")]
1894    #[serde(skip_serializing_if = "Option::is_none")]
1895    pub registry_credential: Option<RegistryCredential>,
1896    /// <p>The type of build environment to use for related builds.</p> <ul> <li> <p>The environment type <code>ARM_CONTAINER</code> 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 (Sydney), and EU (Frankfurt).</p> </li> <li> <p>The environment type <code>LINUX_CONTAINER</code> with compute type <code>build.general1.2xlarge</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia).</p> </li> <li> <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia).</p> </li> </ul> <ul> <li> <p>The environment types <code>WINDOWS_CONTAINER</code> and <code>WINDOWS_SERVER_2019_CONTAINER</code> are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland).</p> </li> </ul> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
1897    #[serde(rename = "type")]
1898    pub type_: String,
1899}
1900
1901/// <p> Information about a file system created by Amazon Elastic File System (EFS). For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html">What Is Amazon Elastic File System?</a> </p>
1902#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1903pub struct ProjectFileSystemLocation {
1904    /// <p>The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the <code>identifier</code> in all capital letters to <code>CODEBUILD_</code>. For example, if you specify <code>my_efs</code> for <code>identifier</code>, a new environment variable is create named <code>CODEBUILD_MY_EFS</code>. </p> <p> The <code>identifier</code> is used to mount your file system. </p>
1905    #[serde(rename = "identifier")]
1906    #[serde(skip_serializing_if = "Option::is_none")]
1907    pub identifier: Option<String>,
1908    /// <p>A string that specifies the location of the file system created by Amazon EFS. Its format is <code>efs-dns-name:/directory-path</code>. You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is <code>fs-abcd1234.efs.us-west-2.amazonaws.com</code>, and its mount directory is <code>my-efs-mount-directory</code>, then the <code>location</code> is <code>fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory</code>. </p> <p>The directory path in the format <code>efs-dns-name:/directory-path</code> is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system. </p>
1909    #[serde(rename = "location")]
1910    #[serde(skip_serializing_if = "Option::is_none")]
1911    pub location: Option<String>,
1912    /// <p> The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are <code>nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2</code>. For more information, see <a href="https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-nfs-mount-settings.html">Recommended NFS Mount Options</a>. </p>
1913    #[serde(rename = "mountOptions")]
1914    #[serde(skip_serializing_if = "Option::is_none")]
1915    pub mount_options: Option<String>,
1916    /// <p>The location in the container where you mount the file system. </p>
1917    #[serde(rename = "mountPoint")]
1918    #[serde(skip_serializing_if = "Option::is_none")]
1919    pub mount_point: Option<String>,
1920    /// <p> The type of the file system. The one supported type is <code>EFS</code>. </p>
1921    #[serde(rename = "type")]
1922    #[serde(skip_serializing_if = "Option::is_none")]
1923    pub type_: Option<String>,
1924}
1925
1926/// <p>Information about the build input source code for the build project.</p>
1927#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1928pub struct ProjectSource {
1929    /// <p>Information about the authorization settings for CodeBuild to access the source code to be built.</p> <p>This information is for the CodeBuild console's use only. Your code should not get or set this information directly.</p>
1930    #[serde(rename = "auth")]
1931    #[serde(skip_serializing_if = "Option::is_none")]
1932    pub auth: Option<SourceAuth>,
1933    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
1934    #[serde(rename = "buildStatusConfig")]
1935    #[serde(skip_serializing_if = "Option::is_none")]
1936    pub build_status_config: Option<BuildStatusConfig>,
1937    /// <p>The buildspec file declaration to use for the builds in this build project.</p> <p> If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>. </p>
1938    #[serde(rename = "buildspec")]
1939    #[serde(skip_serializing_if = "Option::is_none")]
1940    pub buildspec: Option<String>,
1941    /// <p>Information about the Git clone depth for the build project.</p>
1942    #[serde(rename = "gitCloneDepth")]
1943    #[serde(skip_serializing_if = "Option::is_none")]
1944    pub git_clone_depth: Option<i64>,
1945    /// <p> Information about the Git submodules configuration for the build project. </p>
1946    #[serde(rename = "gitSubmodulesConfig")]
1947    #[serde(skip_serializing_if = "Option::is_none")]
1948    pub git_submodules_config: Option<GitSubmodulesConfig>,
1949    /// <p>Enable this flag to ignore SSL warnings while connecting to the project source code.</p>
1950    #[serde(rename = "insecureSsl")]
1951    #[serde(skip_serializing_if = "Option::is_none")]
1952    pub insecure_ssl: Option<bool>,
1953    /// <p>Information about the location of the source code to be built. Valid values include:</p> <ul> <li> <p>For source code settings that are specified in the source action of a pipeline in CodePipeline, <code>location</code> should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.</p> </li> <li> <p>For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, <code>https://git-codecommit.&lt;region-ID&gt;.amazonaws.com/v1/repos/&lt;repo-name&gt;</code>).</p> </li> <li> <p>For source code in an Amazon S3 input bucket, one of the following. </p> <ul> <li> <p>The path to the ZIP file that contains the source code (for example, <code>&lt;bucket-name&gt;/&lt;path&gt;/&lt;object-name&gt;.zip</code>). </p> </li> <li> <p>The path to the folder that contains the source code (for example, <code>&lt;bucket-name&gt;/&lt;path-to-source-code&gt;/&lt;folder&gt;/</code>). </p> </li> </ul> </li> <li> <p>For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your account to your GitHub account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub <b>Authorize application</b> page, for <b>Organization access</b>, choose <b>Request access</b> next to each repository you want to allow CodeBuild to have access to, and then choose <b>Authorize application</b>. (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the <code>source</code> object, set the <code>auth</code> object's <code>type</code> value to <code>OAUTH</code>.</p> </li> <li> <p>For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket <b>Confirm access to your account</b> page, choose <b>Grant access</b>. (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the <code>source</code> object, set the <code>auth</code> object's <code>type</code> value to <code>OAUTH</code>.</p> </li> </ul> <p> If you specify <code>CODEPIPELINE</code> for the <code>Type</code> property, don't specify this property. For all of the other types, you must specify <code>Location</code>. </p>
1954    #[serde(rename = "location")]
1955    #[serde(skip_serializing_if = "Option::is_none")]
1956    pub location: Option<String>,
1957    /// <p><p> Set to true to report the status of a build&#39;s start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source provider, an <code>invalidInputException</code> is thrown. </p> <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p> <note> <p> The status of a build triggered by a webhook is always reported to your source provider. </p> </note></p>
1958    #[serde(rename = "reportBuildStatus")]
1959    #[serde(skip_serializing_if = "Option::is_none")]
1960    pub report_build_status: Option<bool>,
1961    /// <p>An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>
1962    #[serde(rename = "sourceIdentifier")]
1963    #[serde(skip_serializing_if = "Option::is_none")]
1964    pub source_identifier: Option<String>,
1965    /// <p><p>The type of repository that contains the source code to be built. Valid values include:</p> <ul> <li> <p> <code>BITBUCKET</code>: The source code is in a Bitbucket repository.</p> </li> <li> <p> <code>CODECOMMIT</code>: The source code is in an CodeCommit repository.</p> </li> <li> <p> <code>CODEPIPELINE</code>: The source code settings are specified in the source action of a pipeline in CodePipeline.</p> </li> <li> <p> <code>GITHUB</code>: The source code is in a GitHub or GitHub Enterprise Cloud repository.</p> </li> <li> <p> <code>GITHUB<em>ENTERPRISE</code>: The source code is in a GitHub Enterprise Server repository.</p> </li> <li> <p> <code>NO</em>SOURCE</code>: The project does not have input source code.</p> </li> <li> <p> <code>S3</code>: The source code is in an Amazon S3 bucket.</p> </li> </ul></p>
1966    #[serde(rename = "type")]
1967    pub type_: String,
1968}
1969
1970/// <p> A source identifier and its corresponding version. </p>
1971#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
1972pub struct ProjectSourceVersion {
1973    /// <p>An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length. </p>
1974    #[serde(rename = "sourceIdentifier")]
1975    pub source_identifier: String,
1976    /// <p>The source version for the corresponding source identifier. If specified, must be one of:</p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example, <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p> For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
1977    #[serde(rename = "sourceVersion")]
1978    pub source_version: String,
1979}
1980
1981#[derive(Clone, Debug, Default, PartialEq, Serialize)]
1982#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
1983pub struct PutResourcePolicyInput {
1984    /// <p> A JSON-formatted resource policy. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share">Sharing a Project</a> and <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share">Sharing a Report Group</a> in the <i>CodeBuild User Guide</i>. </p>
1985    #[serde(rename = "policy")]
1986    pub policy: String,
1987    /// <p> The ARN of the <code>Project</code> or <code>ReportGroup</code> resource you want to associate with a resource policy. </p>
1988    #[serde(rename = "resourceArn")]
1989    pub resource_arn: String,
1990}
1991
1992#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
1993#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
1994pub struct PutResourcePolicyOutput {
1995    /// <p> The ARN of the <code>Project</code> or <code>ReportGroup</code> resource that is associated with a resource policy. </p>
1996    #[serde(rename = "resourceArn")]
1997    #[serde(skip_serializing_if = "Option::is_none")]
1998    pub resource_arn: Option<String>,
1999}
2000
2001/// <p> Information about credentials that provide access to a private Docker registry. When this is set: </p> <ul> <li> <p> <code>imagePullCredentialsType</code> must be set to <code>SERVICE_ROLE</code>. </p> </li> <li> <p> images cannot be curated or an Amazon ECR image.</p> </li> </ul> <p> For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-private-registry.html">Private Registry with Secrets Manager Sample for CodeBuild</a>. </p>
2002#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2003pub struct RegistryCredential {
2004    /// <p><p> The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager. </p> <note> <p> The <code>credential</code> can use the name of the credentials only if they exist in your current Region. </p> </note></p>
2005    #[serde(rename = "credential")]
2006    pub credential: String,
2007    /// <p> The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager. </p>
2008    #[serde(rename = "credentialProvider")]
2009    pub credential_provider: String,
2010}
2011
2012/// <p>Information about the results from running a series of test cases during the run of a build project. The test cases are specified in the buildspec for the build project using one or more paths to the test case files. You can specify any type of tests you want, such as unit tests, integration tests, and functional tests. </p>
2013#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2014#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2015pub struct Report {
2016    /// <p> The ARN of the report run. </p>
2017    #[serde(rename = "arn")]
2018    #[serde(skip_serializing_if = "Option::is_none")]
2019    pub arn: Option<String>,
2020    /// <p>A <code>CodeCoverageReportSummary</code> object that contains a code coverage summary for this report.</p>
2021    #[serde(rename = "codeCoverageSummary")]
2022    #[serde(skip_serializing_if = "Option::is_none")]
2023    pub code_coverage_summary: Option<CodeCoverageReportSummary>,
2024    /// <p> The date and time this report run occurred. </p>
2025    #[serde(rename = "created")]
2026    #[serde(skip_serializing_if = "Option::is_none")]
2027    pub created: Option<f64>,
2028    /// <p> The ARN of the build run that generated this report. </p>
2029    #[serde(rename = "executionId")]
2030    #[serde(skip_serializing_if = "Option::is_none")]
2031    pub execution_id: Option<String>,
2032    /// <p> The date and time a report expires. A report expires 30 days after it is created. An expired report is not available to view in CodeBuild. </p>
2033    #[serde(rename = "expired")]
2034    #[serde(skip_serializing_if = "Option::is_none")]
2035    pub expired: Option<f64>,
2036    /// <p> Information about where the raw data used to generate this report was exported. </p>
2037    #[serde(rename = "exportConfig")]
2038    #[serde(skip_serializing_if = "Option::is_none")]
2039    pub export_config: Option<ReportExportConfig>,
2040    /// <p> The name of the report that was run. </p>
2041    #[serde(rename = "name")]
2042    #[serde(skip_serializing_if = "Option::is_none")]
2043    pub name: Option<String>,
2044    /// <p> The ARN of the report group associated with this report. </p>
2045    #[serde(rename = "reportGroupArn")]
2046    #[serde(skip_serializing_if = "Option::is_none")]
2047    pub report_group_arn: Option<String>,
2048    /// <p> The status of this report. </p>
2049    #[serde(rename = "status")]
2050    #[serde(skip_serializing_if = "Option::is_none")]
2051    pub status: Option<String>,
2052    /// <p> A <code>TestReportSummary</code> object that contains information about this test report. </p>
2053    #[serde(rename = "testSummary")]
2054    #[serde(skip_serializing_if = "Option::is_none")]
2055    pub test_summary: Option<TestReportSummary>,
2056    /// <p> A boolean that specifies if this report run is truncated. The list of test cases is truncated after the maximum number of test cases is reached. </p>
2057    #[serde(rename = "truncated")]
2058    #[serde(skip_serializing_if = "Option::is_none")]
2059    pub truncated: Option<bool>,
2060    /// <p><p>The type of the report that was run.</p> <dl> <dt>CODE_COVERAGE</dt> <dd> <p>A code coverage report.</p> </dd> <dt>TEST</dt> <dd> <p>A test report.</p> </dd> </dl></p>
2061    #[serde(rename = "type")]
2062    #[serde(skip_serializing_if = "Option::is_none")]
2063    pub type_: Option<String>,
2064}
2065
2066/// <p> Information about the location where the run of a report is exported. </p>
2067#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2068pub struct ReportExportConfig {
2069    /// <p><p> The export configuration type. Valid values are: </p> <ul> <li> <p> <code>S3</code>: The report results are exported to an S3 bucket. </p> </li> <li> <p> <code>NO_EXPORT</code>: The report results are not exported. </p> </li> </ul></p>
2070    #[serde(rename = "exportConfigType")]
2071    #[serde(skip_serializing_if = "Option::is_none")]
2072    pub export_config_type: Option<String>,
2073    /// <p> A <code>S3ReportExportConfig</code> object that contains information about the S3 bucket where the run of a report is exported. </p>
2074    #[serde(rename = "s3Destination")]
2075    #[serde(skip_serializing_if = "Option::is_none")]
2076    pub s_3_destination: Option<S3ReportExportConfig>,
2077}
2078
2079/// <p> A filter used to return reports with the status specified by the input <code>status</code> parameter. </p>
2080#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2081#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2082pub struct ReportFilter {
2083    /// <p> The status used to filter reports. You can filter using one status only. </p>
2084    #[serde(rename = "status")]
2085    #[serde(skip_serializing_if = "Option::is_none")]
2086    pub status: Option<String>,
2087}
2088
2089/// <p>A series of reports. Each report contains information about the results from running a series of test cases. You specify the test cases for a report group in the buildspec for a build project using one or more paths to the test case files. </p>
2090#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2091#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2092pub struct ReportGroup {
2093    /// <p>The ARN of the <code>ReportGroup</code>. </p>
2094    #[serde(rename = "arn")]
2095    #[serde(skip_serializing_if = "Option::is_none")]
2096    pub arn: Option<String>,
2097    /// <p>The date and time this <code>ReportGroup</code> was created. </p>
2098    #[serde(rename = "created")]
2099    #[serde(skip_serializing_if = "Option::is_none")]
2100    pub created: Option<f64>,
2101    /// <p>Information about the destination where the raw data of this <code>ReportGroup</code> is exported. </p>
2102    #[serde(rename = "exportConfig")]
2103    #[serde(skip_serializing_if = "Option::is_none")]
2104    pub export_config: Option<ReportExportConfig>,
2105    /// <p>The date and time this <code>ReportGroup</code> was last modified. </p>
2106    #[serde(rename = "lastModified")]
2107    #[serde(skip_serializing_if = "Option::is_none")]
2108    pub last_modified: Option<f64>,
2109    /// <p>The name of the <code>ReportGroup</code>. </p>
2110    #[serde(rename = "name")]
2111    #[serde(skip_serializing_if = "Option::is_none")]
2112    pub name: Option<String>,
2113    /// <p><p>The status of the report group. This property is read-only.</p> <p>This can be one of the following values:</p> <dl> <dt>ACTIVE</dt> <dd> <p>The report group is active.</p> </dd> <dt>DELETING</dt> <dd> <p>The report group is in the process of being deleted.</p> </dd> </dl></p>
2114    #[serde(rename = "status")]
2115    #[serde(skip_serializing_if = "Option::is_none")]
2116    pub status: Option<String>,
2117    /// <p>A list of tag key and value pairs associated with this report group. </p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.</p>
2118    #[serde(rename = "tags")]
2119    #[serde(skip_serializing_if = "Option::is_none")]
2120    pub tags: Option<Vec<Tag>>,
2121    /// <p><p>The type of the <code>ReportGroup</code>. This can be one of the following values:</p> <dl> <dt>CODE_COVERAGE</dt> <dd> <p>The report group contains code coverage reports.</p> </dd> <dt>TEST</dt> <dd> <p>The report group contains test reports.</p> </dd> </dl></p>
2122    #[serde(rename = "type")]
2123    #[serde(skip_serializing_if = "Option::is_none")]
2124    pub type_: Option<String>,
2125}
2126
2127/// <p>Contains trend statistics for a set of reports. The actual values depend on the type of trend being collected. For more information, see .</p>
2128#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2129#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2130pub struct ReportGroupTrendStats {
2131    /// <p>Contains the average of all values analyzed.</p>
2132    #[serde(rename = "average")]
2133    #[serde(skip_serializing_if = "Option::is_none")]
2134    pub average: Option<String>,
2135    /// <p>Contains the maximum value analyzed.</p>
2136    #[serde(rename = "max")]
2137    #[serde(skip_serializing_if = "Option::is_none")]
2138    pub max: Option<String>,
2139    /// <p>Contains the minimum value analyzed.</p>
2140    #[serde(rename = "min")]
2141    #[serde(skip_serializing_if = "Option::is_none")]
2142    pub min: Option<String>,
2143}
2144
2145/// <p>Contains the unmodified data for the report. For more information, see .</p>
2146#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2147#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2148pub struct ReportWithRawData {
2149    /// <p>The value of the requested data field from the report.</p>
2150    #[serde(rename = "data")]
2151    #[serde(skip_serializing_if = "Option::is_none")]
2152    pub data: Option<String>,
2153    /// <p>The ARN of the report.</p>
2154    #[serde(rename = "reportArn")]
2155    #[serde(skip_serializing_if = "Option::is_none")]
2156    pub report_arn: Option<String>,
2157}
2158
2159/// <p>Represents a resolved build artifact. A resolve artifact is an artifact that is built and deployed to the destination, such as Amazon S3.</p>
2160#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2161#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2162pub struct ResolvedArtifact {
2163    /// <p>The identifier of the artifact.</p>
2164    #[serde(rename = "identifier")]
2165    #[serde(skip_serializing_if = "Option::is_none")]
2166    pub identifier: Option<String>,
2167    /// <p>The location of the artifact.</p>
2168    #[serde(rename = "location")]
2169    #[serde(skip_serializing_if = "Option::is_none")]
2170    pub location: Option<String>,
2171    /// <p>Specifies the type of artifact.</p>
2172    #[serde(rename = "type")]
2173    #[serde(skip_serializing_if = "Option::is_none")]
2174    pub type_: Option<String>,
2175}
2176
2177#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2178#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2179pub struct RetryBuildBatchInput {
2180    /// <p>Specifies the identifier of the batch build to restart.</p>
2181    #[serde(rename = "id")]
2182    #[serde(skip_serializing_if = "Option::is_none")]
2183    pub id: Option<String>,
2184    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>RetryBuildBatch</code> request. The token is included in the <code>RetryBuildBatch</code> request and is valid for five minutes. If you repeat the <code>RetryBuildBatch</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
2185    #[serde(rename = "idempotencyToken")]
2186    #[serde(skip_serializing_if = "Option::is_none")]
2187    pub idempotency_token: Option<String>,
2188    /// <p>Specifies the type of retry to perform.</p>
2189    #[serde(rename = "retryType")]
2190    #[serde(skip_serializing_if = "Option::is_none")]
2191    pub retry_type: Option<String>,
2192}
2193
2194#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2195#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2196pub struct RetryBuildBatchOutput {
2197    #[serde(rename = "buildBatch")]
2198    #[serde(skip_serializing_if = "Option::is_none")]
2199    pub build_batch: Option<BuildBatch>,
2200}
2201
2202#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2203#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2204pub struct RetryBuildInput {
2205    /// <p>Specifies the identifier of the build to restart.</p>
2206    #[serde(rename = "id")]
2207    #[serde(skip_serializing_if = "Option::is_none")]
2208    pub id: Option<String>,
2209    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>RetryBuild</code> request. The token is included in the <code>RetryBuild</code> request and is valid for five minutes. If you repeat the <code>RetryBuild</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
2210    #[serde(rename = "idempotencyToken")]
2211    #[serde(skip_serializing_if = "Option::is_none")]
2212    pub idempotency_token: Option<String>,
2213}
2214
2215#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2216#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2217pub struct RetryBuildOutput {
2218    #[serde(rename = "build")]
2219    #[serde(skip_serializing_if = "Option::is_none")]
2220    pub build: Option<Build>,
2221}
2222
2223/// <p> Information about S3 logs for a build project. </p>
2224#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2225pub struct S3LogsConfig {
2226    /// <p> Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted. </p>
2227    #[serde(rename = "encryptionDisabled")]
2228    #[serde(skip_serializing_if = "Option::is_none")]
2229    pub encryption_disabled: Option<bool>,
2230    /// <p> The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is <code>my-bucket</code>, and your path prefix is <code>build-log</code>, then acceptable formats are <code>my-bucket/build-log</code> or <code>arn:aws:s3:::my-bucket/build-log</code>. </p>
2231    #[serde(rename = "location")]
2232    #[serde(skip_serializing_if = "Option::is_none")]
2233    pub location: Option<String>,
2234    /// <p><p>The current status of the S3 build logs. Valid values are:</p> <ul> <li> <p> <code>ENABLED</code>: S3 build logs are enabled for this build project.</p> </li> <li> <p> <code>DISABLED</code>: S3 build logs are not enabled for this build project.</p> </li> </ul></p>
2235    #[serde(rename = "status")]
2236    pub status: String,
2237}
2238
2239/// <p> Information about the S3 bucket where the raw data of a report are exported. </p>
2240#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2241pub struct S3ReportExportConfig {
2242    /// <p> The name of the S3 bucket where the raw data of a report are exported. </p>
2243    #[serde(rename = "bucket")]
2244    #[serde(skip_serializing_if = "Option::is_none")]
2245    pub bucket: Option<String>,
2246    /// <p>The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket that is owned by an account other than the account running the build.</p>
2247    #[serde(rename = "bucketOwner")]
2248    #[serde(skip_serializing_if = "Option::is_none")]
2249    pub bucket_owner: Option<String>,
2250    /// <p> A boolean value that specifies if the results of a report are encrypted. </p>
2251    #[serde(rename = "encryptionDisabled")]
2252    #[serde(skip_serializing_if = "Option::is_none")]
2253    pub encryption_disabled: Option<bool>,
2254    /// <p> The encryption key for the report's encrypted raw data. </p>
2255    #[serde(rename = "encryptionKey")]
2256    #[serde(skip_serializing_if = "Option::is_none")]
2257    pub encryption_key: Option<String>,
2258    /// <p><p> The type of build output artifact to create. Valid values include: </p> <ul> <li> <p> <code>NONE</code>: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not specified. </p> </li> <li> <p> <code>ZIP</code>: CodeBuild creates a ZIP file with the raw data in the output bucket. </p> </li> </ul></p>
2259    #[serde(rename = "packaging")]
2260    #[serde(skip_serializing_if = "Option::is_none")]
2261    pub packaging: Option<String>,
2262    /// <p> The path to the exported report's raw data results. </p>
2263    #[serde(rename = "path")]
2264    #[serde(skip_serializing_if = "Option::is_none")]
2265    pub path: Option<String>,
2266}
2267
2268/// <p>Information about the authorization settings for CodeBuild to access the source code to be built.</p> <p>This information is for the CodeBuild console's use only. Your code should not get or set this information directly.</p>
2269#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2270pub struct SourceAuth {
2271    /// <p>The resource value that applies to the specified authorization type.</p>
2272    #[serde(rename = "resource")]
2273    #[serde(skip_serializing_if = "Option::is_none")]
2274    pub resource: Option<String>,
2275    /// <p><note> <p> This data type is deprecated and is no longer accurate or used. </p> </note> <p>The authorization type to use. The only valid value is <code>OAUTH</code>, which represents the OAuth authorization type.</p></p>
2276    #[serde(rename = "type")]
2277    pub type_: String,
2278}
2279
2280/// <p> Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository. </p>
2281#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2282#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2283pub struct SourceCredentialsInfo {
2284    /// <p> The Amazon Resource Name (ARN) of the token. </p>
2285    #[serde(rename = "arn")]
2286    #[serde(skip_serializing_if = "Option::is_none")]
2287    pub arn: Option<String>,
2288    /// <p> The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN. </p>
2289    #[serde(rename = "authType")]
2290    #[serde(skip_serializing_if = "Option::is_none")]
2291    pub auth_type: Option<String>,
2292    /// <p> The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET. </p>
2293    #[serde(rename = "serverType")]
2294    #[serde(skip_serializing_if = "Option::is_none")]
2295    pub server_type: Option<String>,
2296}
2297
2298#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2299#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2300pub struct StartBuildBatchInput {
2301    /// <p>An array of <code>ProjectArtifacts</code> objects that contains information about the build output artifact overrides for the build project.</p>
2302    #[serde(rename = "artifactsOverride")]
2303    #[serde(skip_serializing_if = "Option::is_none")]
2304    pub artifacts_override: Option<ProjectArtifacts>,
2305    /// <p>A <code>BuildBatchConfigOverride</code> object that contains batch build configuration overrides.</p>
2306    #[serde(rename = "buildBatchConfigOverride")]
2307    #[serde(skip_serializing_if = "Option::is_none")]
2308    pub build_batch_config_override: Option<ProjectBuildBatchConfig>,
2309    /// <p>Overrides the build timeout specified in the batch build project.</p>
2310    #[serde(rename = "buildTimeoutInMinutesOverride")]
2311    #[serde(skip_serializing_if = "Option::is_none")]
2312    pub build_timeout_in_minutes_override: Option<i64>,
2313    /// <p>A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.</p> <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>. </p>
2314    #[serde(rename = "buildspecOverride")]
2315    #[serde(skip_serializing_if = "Option::is_none")]
2316    pub buildspec_override: Option<String>,
2317    /// <p>A <code>ProjectCache</code> object that specifies cache overrides.</p>
2318    #[serde(rename = "cacheOverride")]
2319    #[serde(skip_serializing_if = "Option::is_none")]
2320    pub cache_override: Option<ProjectCache>,
2321    /// <p>The name of a certificate for this batch build that overrides the one specified in the batch build project.</p>
2322    #[serde(rename = "certificateOverride")]
2323    #[serde(skip_serializing_if = "Option::is_none")]
2324    pub certificate_override: Option<String>,
2325    /// <p>The name of a compute type for this batch build that overrides the one specified in the batch build project.</p>
2326    #[serde(rename = "computeTypeOverride")]
2327    #[serde(skip_serializing_if = "Option::is_none")]
2328    pub compute_type_override: Option<String>,
2329    /// <p>Specifies if session debugging is enabled for this batch build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>. Batch session debugging is not supported for matrix batch builds.</p>
2330    #[serde(rename = "debugSessionEnabled")]
2331    #[serde(skip_serializing_if = "Option::is_none")]
2332    pub debug_session_enabled: Option<bool>,
2333    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the build output artifacts.</p> <note> <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>).</p>
2334    #[serde(rename = "encryptionKeyOverride")]
2335    #[serde(skip_serializing_if = "Option::is_none")]
2336    pub encryption_key_override: Option<String>,
2337    /// <p>A container type for this batch build that overrides the one specified in the batch build project.</p>
2338    #[serde(rename = "environmentTypeOverride")]
2339    #[serde(skip_serializing_if = "Option::is_none")]
2340    pub environment_type_override: Option<String>,
2341    /// <p>An array of <code>EnvironmentVariable</code> objects that override, or add to, the environment variables defined in the batch build project.</p>
2342    #[serde(rename = "environmentVariablesOverride")]
2343    #[serde(skip_serializing_if = "Option::is_none")]
2344    pub environment_variables_override: Option<Vec<EnvironmentVariable>>,
2345    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.</p>
2346    #[serde(rename = "gitCloneDepthOverride")]
2347    #[serde(skip_serializing_if = "Option::is_none")]
2348    pub git_clone_depth_override: Option<i64>,
2349    /// <p>A <code>GitSubmodulesConfig</code> object that overrides the Git submodules configuration for this batch build.</p>
2350    #[serde(rename = "gitSubmodulesConfigOverride")]
2351    #[serde(skip_serializing_if = "Option::is_none")]
2352    pub git_submodules_config_override: Option<GitSubmodulesConfig>,
2353    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>StartBuildBatch</code> request. The token is included in the <code>StartBuildBatch</code> request and is valid for five minutes. If you repeat the <code>StartBuildBatch</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
2354    #[serde(rename = "idempotencyToken")]
2355    #[serde(skip_serializing_if = "Option::is_none")]
2356    pub idempotency_token: Option<String>,
2357    /// <p>The name of an image for this batch build that overrides the one specified in the batch build project.</p>
2358    #[serde(rename = "imageOverride")]
2359    #[serde(skip_serializing_if = "Option::is_none")]
2360    pub image_override: Option<String>,
2361    /// <p>The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values: </p> <dl> <dt>CODEBUILD</dt> <dd> <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p> </dd> <dt>SERVICE_ROLE</dt> <dd> <p>Specifies that CodeBuild uses your build project's service role. </p> </dd> </dl> <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials. </p>
2362    #[serde(rename = "imagePullCredentialsTypeOverride")]
2363    #[serde(skip_serializing_if = "Option::is_none")]
2364    pub image_pull_credentials_type_override: Option<String>,
2365    /// <p>Enable this flag to override the insecure SSL setting that is specified in the batch build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
2366    #[serde(rename = "insecureSslOverride")]
2367    #[serde(skip_serializing_if = "Option::is_none")]
2368    pub insecure_ssl_override: Option<bool>,
2369    /// <p>A <code>LogsConfig</code> object that override the log settings defined in the batch build project.</p>
2370    #[serde(rename = "logsConfigOverride")]
2371    #[serde(skip_serializing_if = "Option::is_none")]
2372    pub logs_config_override: Option<LogsConfig>,
2373    /// <p>Enable this flag to override privileged mode in the batch build project.</p>
2374    #[serde(rename = "privilegedModeOverride")]
2375    #[serde(skip_serializing_if = "Option::is_none")]
2376    pub privileged_mode_override: Option<bool>,
2377    /// <p>The name of the project.</p>
2378    #[serde(rename = "projectName")]
2379    pub project_name: String,
2380    /// <p>The number of minutes a batch build is allowed to be queued before it times out.</p>
2381    #[serde(rename = "queuedTimeoutInMinutesOverride")]
2382    #[serde(skip_serializing_if = "Option::is_none")]
2383    pub queued_timeout_in_minutes_override: Option<i64>,
2384    /// <p>A <code>RegistryCredential</code> object that overrides credentials for access to a private registry.</p>
2385    #[serde(rename = "registryCredentialOverride")]
2386    #[serde(skip_serializing_if = "Option::is_none")]
2387    pub registry_credential_override: Option<RegistryCredential>,
2388    /// <p><p>Set to <code>true</code> to report to your source provider the status of a batch build&#39;s start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown. </p> <note> <p>The status of a build triggered by a webhook is always reported to your source provider. </p> </note></p>
2389    #[serde(rename = "reportBuildBatchStatusOverride")]
2390    #[serde(skip_serializing_if = "Option::is_none")]
2391    pub report_build_batch_status_override: Option<bool>,
2392    /// <p>An array of <code>ProjectArtifacts</code> objects that override the secondary artifacts defined in the batch build project.</p>
2393    #[serde(rename = "secondaryArtifactsOverride")]
2394    #[serde(skip_serializing_if = "Option::is_none")]
2395    pub secondary_artifacts_override: Option<Vec<ProjectArtifacts>>,
2396    /// <p>An array of <code>ProjectSource</code> objects that override the secondary sources defined in the batch build project.</p>
2397    #[serde(rename = "secondarySourcesOverride")]
2398    #[serde(skip_serializing_if = "Option::is_none")]
2399    pub secondary_sources_override: Option<Vec<ProjectSource>>,
2400    /// <p>An array of <code>ProjectSourceVersion</code> objects that override the secondary source versions in the batch build project.</p>
2401    #[serde(rename = "secondarySourcesVersionOverride")]
2402    #[serde(skip_serializing_if = "Option::is_none")]
2403    pub secondary_sources_version_override: Option<Vec<ProjectSourceVersion>>,
2404    /// <p>The name of a service role for this batch build that overrides the one specified in the batch build project.</p>
2405    #[serde(rename = "serviceRoleOverride")]
2406    #[serde(skip_serializing_if = "Option::is_none")]
2407    pub service_role_override: Option<String>,
2408    /// <p>A <code>SourceAuth</code> object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.</p>
2409    #[serde(rename = "sourceAuthOverride")]
2410    #[serde(skip_serializing_if = "Option::is_none")]
2411    pub source_auth_override: Option<SourceAuth>,
2412    /// <p>A location that overrides, for this batch build, the source location defined in the batch build project.</p>
2413    #[serde(rename = "sourceLocationOverride")]
2414    #[serde(skip_serializing_if = "Option::is_none")]
2415    pub source_location_override: Option<String>,
2416    /// <p>The source input type that overrides the source input defined in the batch build project.</p>
2417    #[serde(rename = "sourceTypeOverride")]
2418    #[serde(skip_serializing_if = "Option::is_none")]
2419    pub source_type_override: Option<String>,
2420    /// <p>The version of the batch build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p> <dl> <dt>CodeCommit</dt> <dd> <p>The commit ID, branch, or Git tag to use.</p> </dd> <dt>GitHub</dt> <dd> <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </dd> <dt>Bitbucket</dt> <dd> <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </dd> <dt>Amazon S3</dt> <dd> <p>The version ID of the object that represents the build input ZIP file to use.</p> </dd> </dl> <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
2421    #[serde(rename = "sourceVersion")]
2422    #[serde(skip_serializing_if = "Option::is_none")]
2423    pub source_version: Option<String>,
2424}
2425
2426#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2427#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2428pub struct StartBuildBatchOutput {
2429    /// <p>A <code>BuildBatch</code> object that contains information about the batch build.</p>
2430    #[serde(rename = "buildBatch")]
2431    #[serde(skip_serializing_if = "Option::is_none")]
2432    pub build_batch: Option<BuildBatch>,
2433}
2434
2435#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2436#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2437pub struct StartBuildInput {
2438    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
2439    #[serde(rename = "artifactsOverride")]
2440    #[serde(skip_serializing_if = "Option::is_none")]
2441    pub artifacts_override: Option<ProjectArtifacts>,
2442    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
2443    #[serde(rename = "buildStatusConfigOverride")]
2444    #[serde(skip_serializing_if = "Option::is_none")]
2445    pub build_status_config_override: Option<BuildStatusConfig>,
2446    /// <p>A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.</p> <p> If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>. </p>
2447    #[serde(rename = "buildspecOverride")]
2448    #[serde(skip_serializing_if = "Option::is_none")]
2449    pub buildspec_override: Option<String>,
2450    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
2451    #[serde(rename = "cacheOverride")]
2452    #[serde(skip_serializing_if = "Option::is_none")]
2453    pub cache_override: Option<ProjectCache>,
2454    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
2455    #[serde(rename = "certificateOverride")]
2456    #[serde(skip_serializing_if = "Option::is_none")]
2457    pub certificate_override: Option<String>,
2458    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
2459    #[serde(rename = "computeTypeOverride")]
2460    #[serde(skip_serializing_if = "Option::is_none")]
2461    pub compute_type_override: Option<String>,
2462    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
2463    #[serde(rename = "debugSessionEnabled")]
2464    #[serde(skip_serializing_if = "Option::is_none")]
2465    pub debug_session_enabled: Option<bool>,
2466    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>).</p>
2467    #[serde(rename = "encryptionKeyOverride")]
2468    #[serde(skip_serializing_if = "Option::is_none")]
2469    pub encryption_key_override: Option<String>,
2470    /// <p>A container type for this build that overrides the one specified in the build project.</p>
2471    #[serde(rename = "environmentTypeOverride")]
2472    #[serde(skip_serializing_if = "Option::is_none")]
2473    pub environment_type_override: Option<String>,
2474    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
2475    #[serde(rename = "environmentVariablesOverride")]
2476    #[serde(skip_serializing_if = "Option::is_none")]
2477    pub environment_variables_override: Option<Vec<EnvironmentVariable>>,
2478    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
2479    #[serde(rename = "gitCloneDepthOverride")]
2480    #[serde(skip_serializing_if = "Option::is_none")]
2481    pub git_clone_depth_override: Option<i64>,
2482    /// <p> Information about the Git submodules configuration for this build of an CodeBuild build project. </p>
2483    #[serde(rename = "gitSubmodulesConfigOverride")]
2484    #[serde(skip_serializing_if = "Option::is_none")]
2485    pub git_submodules_config_override: Option<GitSubmodulesConfig>,
2486    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error. </p>
2487    #[serde(rename = "idempotencyToken")]
2488    #[serde(skip_serializing_if = "Option::is_none")]
2489    pub idempotency_token: Option<String>,
2490    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
2491    #[serde(rename = "imageOverride")]
2492    #[serde(skip_serializing_if = "Option::is_none")]
2493    pub image_override: Option<String>,
2494    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values: </p> <dl> <dt>CODEBUILD</dt> <dd> <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p> </dd> <dt>SERVICE_ROLE</dt> <dd> <p>Specifies that CodeBuild uses your build project's service role. </p> </dd> </dl> <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials. </p>
2495    #[serde(rename = "imagePullCredentialsTypeOverride")]
2496    #[serde(skip_serializing_if = "Option::is_none")]
2497    pub image_pull_credentials_type_override: Option<String>,
2498    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
2499    #[serde(rename = "insecureSslOverride")]
2500    #[serde(skip_serializing_if = "Option::is_none")]
2501    pub insecure_ssl_override: Option<bool>,
2502    /// <p> Log settings for this build that override the log settings defined in the build project. </p>
2503    #[serde(rename = "logsConfigOverride")]
2504    #[serde(skip_serializing_if = "Option::is_none")]
2505    pub logs_config_override: Option<LogsConfig>,
2506    /// <p>Enable this flag to override privileged mode in the build project.</p>
2507    #[serde(rename = "privilegedModeOverride")]
2508    #[serde(skip_serializing_if = "Option::is_none")]
2509    pub privileged_mode_override: Option<bool>,
2510    /// <p>The name of the CodeBuild build project to start running a build.</p>
2511    #[serde(rename = "projectName")]
2512    pub project_name: String,
2513    /// <p> The number of minutes a build is allowed to be queued before it times out. </p>
2514    #[serde(rename = "queuedTimeoutInMinutesOverride")]
2515    #[serde(skip_serializing_if = "Option::is_none")]
2516    pub queued_timeout_in_minutes_override: Option<i64>,
2517    /// <p> The credentials for access to a private registry. </p>
2518    #[serde(rename = "registryCredentialOverride")]
2519    #[serde(skip_serializing_if = "Option::is_none")]
2520    pub registry_credential_override: Option<RegistryCredential>,
2521    /// <p><p> Set to true to report to your source provider the status of a build&#39;s start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown. </p> <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p> <note> <p> The status of a build triggered by a webhook is always reported to your source provider. </p> </note></p>
2522    #[serde(rename = "reportBuildStatusOverride")]
2523    #[serde(skip_serializing_if = "Option::is_none")]
2524    pub report_build_status_override: Option<bool>,
2525    /// <p> An array of <code>ProjectArtifacts</code> objects. </p>
2526    #[serde(rename = "secondaryArtifactsOverride")]
2527    #[serde(skip_serializing_if = "Option::is_none")]
2528    pub secondary_artifacts_override: Option<Vec<ProjectArtifacts>>,
2529    /// <p> An array of <code>ProjectSource</code> objects. </p>
2530    #[serde(rename = "secondarySourcesOverride")]
2531    #[serde(skip_serializing_if = "Option::is_none")]
2532    pub secondary_sources_override: Option<Vec<ProjectSource>>,
2533    /// <p> An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only. </p>
2534    #[serde(rename = "secondarySourcesVersionOverride")]
2535    #[serde(skip_serializing_if = "Option::is_none")]
2536    pub secondary_sources_version_override: Option<Vec<ProjectSourceVersion>>,
2537    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
2538    #[serde(rename = "serviceRoleOverride")]
2539    #[serde(skip_serializing_if = "Option::is_none")]
2540    pub service_role_override: Option<String>,
2541    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket or GitHub.</p>
2542    #[serde(rename = "sourceAuthOverride")]
2543    #[serde(skip_serializing_if = "Option::is_none")]
2544    pub source_auth_override: Option<SourceAuth>,
2545    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
2546    #[serde(rename = "sourceLocationOverride")]
2547    #[serde(skip_serializing_if = "Option::is_none")]
2548    pub source_location_override: Option<String>,
2549    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
2550    #[serde(rename = "sourceTypeOverride")]
2551    #[serde(skip_serializing_if = "Option::is_none")]
2552    pub source_type_override: Option<String>,
2553    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p> <dl> <dt>CodeCommit</dt> <dd> <p>The commit ID, branch, or Git tag to use.</p> </dd> <dt>GitHub</dt> <dd> <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </dd> <dt>Bitbucket</dt> <dd> <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </dd> <dt>Amazon S3</dt> <dd> <p>The version ID of the object that represents the build input ZIP file to use.</p> </dd> </dl> <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence. </p> <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
2554    #[serde(rename = "sourceVersion")]
2555    #[serde(skip_serializing_if = "Option::is_none")]
2556    pub source_version: Option<String>,
2557    /// <p>The number of build timeout minutes, from 5 to 480 (8 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
2558    #[serde(rename = "timeoutInMinutesOverride")]
2559    #[serde(skip_serializing_if = "Option::is_none")]
2560    pub timeout_in_minutes_override: Option<i64>,
2561}
2562
2563#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2564#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2565pub struct StartBuildOutput {
2566    /// <p>Information about the build to be run.</p>
2567    #[serde(rename = "build")]
2568    #[serde(skip_serializing_if = "Option::is_none")]
2569    pub build: Option<Build>,
2570}
2571
2572#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2573#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2574pub struct StopBuildBatchInput {
2575    /// <p>The identifier of the batch build to stop.</p>
2576    #[serde(rename = "id")]
2577    pub id: String,
2578}
2579
2580#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2581#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2582pub struct StopBuildBatchOutput {
2583    #[serde(rename = "buildBatch")]
2584    #[serde(skip_serializing_if = "Option::is_none")]
2585    pub build_batch: Option<BuildBatch>,
2586}
2587
2588#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2589#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2590pub struct StopBuildInput {
2591    /// <p>The ID of the build.</p>
2592    #[serde(rename = "id")]
2593    pub id: String,
2594}
2595
2596#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2597#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2598pub struct StopBuildOutput {
2599    /// <p>Information about the build.</p>
2600    #[serde(rename = "build")]
2601    #[serde(skip_serializing_if = "Option::is_none")]
2602    pub build: Option<Build>,
2603}
2604
2605/// <p>A tag, consisting of a key and a value.</p> <p>This tag is available for use by Amazon Web Services services that support tags in CodeBuild.</p>
2606#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2607pub struct Tag {
2608    /// <p>The tag's key.</p>
2609    #[serde(rename = "key")]
2610    #[serde(skip_serializing_if = "Option::is_none")]
2611    pub key: Option<String>,
2612    /// <p>The tag's value.</p>
2613    #[serde(rename = "value")]
2614    #[serde(skip_serializing_if = "Option::is_none")]
2615    pub value: Option<String>,
2616}
2617
2618/// <p> Information about a test case created using a framework such as NUnit or Cucumber. A test case might be a unit test or a configuration test. </p>
2619#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2620#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2621pub struct TestCase {
2622    /// <p> The number of nanoseconds it took to run this test case. </p>
2623    #[serde(rename = "durationInNanoSeconds")]
2624    #[serde(skip_serializing_if = "Option::is_none")]
2625    pub duration_in_nano_seconds: Option<i64>,
2626    /// <p> The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild. </p>
2627    #[serde(rename = "expired")]
2628    #[serde(skip_serializing_if = "Option::is_none")]
2629    pub expired: Option<f64>,
2630    /// <p> A message associated with a test case. For example, an error message or stack trace. </p>
2631    #[serde(rename = "message")]
2632    #[serde(skip_serializing_if = "Option::is_none")]
2633    pub message: Option<String>,
2634    /// <p> The name of the test case. </p>
2635    #[serde(rename = "name")]
2636    #[serde(skip_serializing_if = "Option::is_none")]
2637    pub name: Option<String>,
2638    /// <p> A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests. </p>
2639    #[serde(rename = "prefix")]
2640    #[serde(skip_serializing_if = "Option::is_none")]
2641    pub prefix: Option<String>,
2642    /// <p> The ARN of the report to which the test case belongs. </p>
2643    #[serde(rename = "reportArn")]
2644    #[serde(skip_serializing_if = "Option::is_none")]
2645    pub report_arn: Option<String>,
2646    /// <p> The status returned by the test case after it was run. Valid statuses are <code>SUCCEEDED</code>, <code>FAILED</code>, <code>ERROR</code>, <code>SKIPPED</code>, and <code>UNKNOWN</code>. </p>
2647    #[serde(rename = "status")]
2648    #[serde(skip_serializing_if = "Option::is_none")]
2649    pub status: Option<String>,
2650    /// <p> The path to the raw data file that contains the test result. </p>
2651    #[serde(rename = "testRawDataPath")]
2652    #[serde(skip_serializing_if = "Option::is_none")]
2653    pub test_raw_data_path: Option<String>,
2654}
2655
2656/// <p>A filter used to return specific types of test cases. In order to pass the filter, the report must meet all of the filter properties.</p>
2657#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2658#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2659pub struct TestCaseFilter {
2660    /// <p>A keyword that is used to filter on the <code>name</code> or the <code>prefix</code> of the test cases. Only test cases where the keyword is a substring of the <code>name</code> or the <code>prefix</code> will be returned.</p>
2661    #[serde(rename = "keyword")]
2662    #[serde(skip_serializing_if = "Option::is_none")]
2663    pub keyword: Option<String>,
2664    /// <p><p>The status used to filter test cases. A <code>TestCaseFilter</code> can have one status. Valid values are:</p> <ul> <li> <p> <code>SUCCEEDED</code> </p> </li> <li> <p> <code>FAILED</code> </p> </li> <li> <p> <code>ERROR</code> </p> </li> <li> <p> <code>SKIPPED</code> </p> </li> <li> <p> <code>UNKNOWN</code> </p> </li> </ul></p>
2665    #[serde(rename = "status")]
2666    #[serde(skip_serializing_if = "Option::is_none")]
2667    pub status: Option<String>,
2668}
2669
2670/// <p> Information about a test report. </p>
2671#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2672#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2673pub struct TestReportSummary {
2674    /// <p> The number of nanoseconds it took to run all of the test cases in this report. </p>
2675    #[serde(rename = "durationInNanoSeconds")]
2676    pub duration_in_nano_seconds: i64,
2677    /// <p> A map that contains the number of each type of status returned by the test results in this <code>TestReportSummary</code>. </p>
2678    #[serde(rename = "statusCounts")]
2679    pub status_counts: ::std::collections::HashMap<String, i64>,
2680    /// <p> The number of test cases in this <code>TestReportSummary</code>. The total includes truncated test cases. </p>
2681    #[serde(rename = "total")]
2682    pub total: i64,
2683}
2684
2685#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2686#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2687pub struct UpdateProjectInput {
2688    /// <p>Information to be changed about the build output artifacts for the build project.</p>
2689    #[serde(rename = "artifacts")]
2690    #[serde(skip_serializing_if = "Option::is_none")]
2691    pub artifacts: Option<ProjectArtifacts>,
2692    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
2693    #[serde(rename = "badgeEnabled")]
2694    #[serde(skip_serializing_if = "Option::is_none")]
2695    pub badge_enabled: Option<bool>,
2696    #[serde(rename = "buildBatchConfig")]
2697    #[serde(skip_serializing_if = "Option::is_none")]
2698    pub build_batch_config: Option<ProjectBuildBatchConfig>,
2699    /// <p>Stores recently used information so that it can be quickly accessed at a later time.</p>
2700    #[serde(rename = "cache")]
2701    #[serde(skip_serializing_if = "Option::is_none")]
2702    pub cache: Option<ProjectCache>,
2703    /// <p>The maximum number of concurrent builds that are allowed for this project.</p> <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p> <p>To remove this limit, set this value to -1.</p>
2704    #[serde(rename = "concurrentBuildLimit")]
2705    #[serde(skip_serializing_if = "Option::is_none")]
2706    pub concurrent_build_limit: Option<i64>,
2707    /// <p>A new or replacement description of the build project.</p>
2708    #[serde(rename = "description")]
2709    #[serde(skip_serializing_if = "Option::is_none")]
2710    pub description: Option<String>,
2711    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p> <note> <p> You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key. </p> </note> <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/&lt;alias-name&gt;</code>). </p>
2712    #[serde(rename = "encryptionKey")]
2713    #[serde(skip_serializing_if = "Option::is_none")]
2714    pub encryption_key: Option<String>,
2715    /// <p>Information to be changed about the build environment for the build project.</p>
2716    #[serde(rename = "environment")]
2717    #[serde(skip_serializing_if = "Option::is_none")]
2718    pub environment: Option<ProjectEnvironment>,
2719    /// <p> An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System. </p>
2720    #[serde(rename = "fileSystemLocations")]
2721    #[serde(skip_serializing_if = "Option::is_none")]
2722    pub file_system_locations: Option<Vec<ProjectFileSystemLocation>>,
2723    /// <p> Information about logs for the build project. A project can create logs in CloudWatch Logs, logs in an S3 bucket, or both. </p>
2724    #[serde(rename = "logsConfig")]
2725    #[serde(skip_serializing_if = "Option::is_none")]
2726    pub logs_config: Option<LogsConfig>,
2727    /// <p><p>The name of the build project.</p> <note> <p>You cannot change a build project&#39;s name.</p> </note></p>
2728    #[serde(rename = "name")]
2729    pub name: String,
2730    /// <p> The number of minutes a build is allowed to be queued before it times out. </p>
2731    #[serde(rename = "queuedTimeoutInMinutes")]
2732    #[serde(skip_serializing_if = "Option::is_none")]
2733    pub queued_timeout_in_minutes: Option<i64>,
2734    /// <p> An array of <code>ProjectSource</code> objects. </p>
2735    #[serde(rename = "secondaryArtifacts")]
2736    #[serde(skip_serializing_if = "Option::is_none")]
2737    pub secondary_artifacts: Option<Vec<ProjectArtifacts>>,
2738    /// <p> An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take over these <code>secondarySourceVersions</code> (at the project level). </p>
2739    #[serde(rename = "secondarySourceVersions")]
2740    #[serde(skip_serializing_if = "Option::is_none")]
2741    pub secondary_source_versions: Option<Vec<ProjectSourceVersion>>,
2742    /// <p> An array of <code>ProjectSource</code> objects. </p>
2743    #[serde(rename = "secondarySources")]
2744    #[serde(skip_serializing_if = "Option::is_none")]
2745    pub secondary_sources: Option<Vec<ProjectSource>>,
2746    /// <p>The replacement ARN of the Identity and Access Management role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
2747    #[serde(rename = "serviceRole")]
2748    #[serde(skip_serializing_if = "Option::is_none")]
2749    pub service_role: Option<String>,
2750    /// <p>Information to be changed about the build input source code for the build project.</p>
2751    #[serde(rename = "source")]
2752    #[serde(skip_serializing_if = "Option::is_none")]
2753    pub source: Option<ProjectSource>,
2754    /// <p> A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of: </p> <ul> <li> <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p> </li> <li> <p>For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p> </li> <li> <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p> </li> </ul> <p> If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level). </p> <p> For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>. </p>
2755    #[serde(rename = "sourceVersion")]
2756    #[serde(skip_serializing_if = "Option::is_none")]
2757    pub source_version: Option<String>,
2758    /// <p>An updated list of tag key and value pairs associated with this build project.</p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
2759    #[serde(rename = "tags")]
2760    #[serde(skip_serializing_if = "Option::is_none")]
2761    pub tags: Option<Vec<Tag>>,
2762    /// <p>The replacement value in minutes, from 5 to 480 (8 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed.</p>
2763    #[serde(rename = "timeoutInMinutes")]
2764    #[serde(skip_serializing_if = "Option::is_none")]
2765    pub timeout_in_minutes: Option<i64>,
2766    /// <p>VpcConfig enables CodeBuild to access resources in an Amazon VPC.</p>
2767    #[serde(rename = "vpcConfig")]
2768    #[serde(skip_serializing_if = "Option::is_none")]
2769    pub vpc_config: Option<VpcConfig>,
2770}
2771
2772#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2773#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2774pub struct UpdateProjectOutput {
2775    /// <p>Information about the build project that was changed.</p>
2776    #[serde(rename = "project")]
2777    #[serde(skip_serializing_if = "Option::is_none")]
2778    pub project: Option<Project>,
2779}
2780
2781#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2782#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2783pub struct UpdateReportGroupInput {
2784    /// <p> The ARN of the report group to update. </p>
2785    #[serde(rename = "arn")]
2786    pub arn: String,
2787    /// <p><p> Used to specify an updated export type. Valid values are: </p> <ul> <li> <p> <code>S3</code>: The report results are exported to an S3 bucket. </p> </li> <li> <p> <code>NO_EXPORT</code>: The report results are not exported. </p> </li> </ul></p>
2788    #[serde(rename = "exportConfig")]
2789    #[serde(skip_serializing_if = "Option::is_none")]
2790    pub export_config: Option<ReportExportConfig>,
2791    /// <p> An updated list of tag key and value pairs associated with this report group. </p> <p>These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.</p>
2792    #[serde(rename = "tags")]
2793    #[serde(skip_serializing_if = "Option::is_none")]
2794    pub tags: Option<Vec<Tag>>,
2795}
2796
2797#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2798#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2799pub struct UpdateReportGroupOutput {
2800    /// <p> Information about the updated report group. </p>
2801    #[serde(rename = "reportGroup")]
2802    #[serde(skip_serializing_if = "Option::is_none")]
2803    pub report_group: Option<ReportGroup>,
2804}
2805
2806#[derive(Clone, Debug, Default, PartialEq, Serialize)]
2807#[cfg_attr(feature = "deserialize_structs", derive(Deserialize))]
2808pub struct UpdateWebhookInput {
2809    /// <p><p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p> It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note></p>
2810    #[serde(rename = "branchFilter")]
2811    #[serde(skip_serializing_if = "Option::is_none")]
2812    pub branch_filter: Option<String>,
2813    /// <p>Specifies the type of build this webhook will trigger.</p>
2814    #[serde(rename = "buildType")]
2815    #[serde(skip_serializing_if = "Option::is_none")]
2816    pub build_type: Option<String>,
2817    /// <p> An array of arrays of <code>WebhookFilter</code> objects used to determine if a webhook event can trigger a build. A filter group must contain at least one <code>EVENT</code> <code>WebhookFilter</code>. </p>
2818    #[serde(rename = "filterGroups")]
2819    #[serde(skip_serializing_if = "Option::is_none")]
2820    pub filter_groups: Option<Vec<Vec<WebhookFilter>>>,
2821    /// <p>The name of the CodeBuild project.</p>
2822    #[serde(rename = "projectName")]
2823    pub project_name: String,
2824    /// <p> A boolean value that specifies whether the associated GitHub repository's secret token should be updated. If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored. </p>
2825    #[serde(rename = "rotateSecret")]
2826    #[serde(skip_serializing_if = "Option::is_none")]
2827    pub rotate_secret: Option<bool>,
2828}
2829
2830#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2831#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2832pub struct UpdateWebhookOutput {
2833    /// <p> Information about a repository's webhook that is associated with a project in CodeBuild. </p>
2834    #[serde(rename = "webhook")]
2835    #[serde(skip_serializing_if = "Option::is_none")]
2836    pub webhook: Option<Webhook>,
2837}
2838
2839/// <p>Information about the VPC configuration that CodeBuild accesses.</p>
2840#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2841pub struct VpcConfig {
2842    /// <p>A list of one or more security groups IDs in your Amazon VPC.</p>
2843    #[serde(rename = "securityGroupIds")]
2844    #[serde(skip_serializing_if = "Option::is_none")]
2845    pub security_group_ids: Option<Vec<String>>,
2846    /// <p>A list of one or more subnet IDs in your Amazon VPC.</p>
2847    #[serde(rename = "subnets")]
2848    #[serde(skip_serializing_if = "Option::is_none")]
2849    pub subnets: Option<Vec<String>>,
2850    /// <p>The ID of the Amazon VPC.</p>
2851    #[serde(rename = "vpcId")]
2852    #[serde(skip_serializing_if = "Option::is_none")]
2853    pub vpc_id: Option<String>,
2854}
2855
2856/// <p>Information about a webhook that connects repository events to a build project in CodeBuild.</p>
2857#[derive(Clone, Debug, Default, Deserialize, PartialEq)]
2858#[cfg_attr(any(test, feature = "serialize_structs"), derive(Serialize))]
2859pub struct Webhook {
2860    /// <p><p>A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If <code>branchFilter</code> is empty, then all branches are built.</p> <note> <p>It is recommended that you use <code>filterGroups</code> instead of <code>branchFilter</code>. </p> </note></p>
2861    #[serde(rename = "branchFilter")]
2862    #[serde(skip_serializing_if = "Option::is_none")]
2863    pub branch_filter: Option<String>,
2864    /// <p>Specifies the type of build this webhook will trigger.</p>
2865    #[serde(rename = "buildType")]
2866    #[serde(skip_serializing_if = "Option::is_none")]
2867    pub build_type: Option<String>,
2868    /// <p>An array of arrays of <code>WebhookFilter</code> objects used to determine which webhooks are triggered. At least one <code>WebhookFilter</code> in the array must specify <code>EVENT</code> as its <code>type</code>. </p> <p>For a build to be triggered, at least one filter group in the <code>filterGroups</code> array must pass. For a filter group to pass, each of its filters must pass. </p>
2869    #[serde(rename = "filterGroups")]
2870    #[serde(skip_serializing_if = "Option::is_none")]
2871    pub filter_groups: Option<Vec<Vec<WebhookFilter>>>,
2872    /// <p>A timestamp that indicates the last time a repository's secret token was modified. </p>
2873    #[serde(rename = "lastModifiedSecret")]
2874    #[serde(skip_serializing_if = "Option::is_none")]
2875    pub last_modified_secret: Option<f64>,
2876    /// <p>The CodeBuild endpoint where webhook events are sent.</p>
2877    #[serde(rename = "payloadUrl")]
2878    #[serde(skip_serializing_if = "Option::is_none")]
2879    pub payload_url: Option<String>,
2880    /// <p><p>The secret token of the associated repository. </p> <note> <p>A Bitbucket webhook does not support <code>secret</code>. </p> </note></p>
2881    #[serde(rename = "secret")]
2882    #[serde(skip_serializing_if = "Option::is_none")]
2883    pub secret: Option<String>,
2884    /// <p>The URL to the webhook.</p>
2885    #[serde(rename = "url")]
2886    #[serde(skip_serializing_if = "Option::is_none")]
2887    pub url: Option<String>,
2888}
2889
2890/// <p> A filter used to determine which webhooks trigger a build. </p>
2891#[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)]
2892pub struct WebhookFilter {
2893    /// <p> Used to indicate that the <code>pattern</code> determines which webhook events do not trigger a build. If true, then a webhook event that does not match the <code>pattern</code> triggers a build. If false, then a webhook event that matches the <code>pattern</code> triggers a build. </p>
2894    #[serde(rename = "excludeMatchedPattern")]
2895    #[serde(skip_serializing_if = "Option::is_none")]
2896    pub exclude_matched_pattern: Option<bool>,
2897    /// <p> For a <code>WebHookFilter</code> that uses <code>EVENT</code> type, a comma-separated string that specifies one or more events. For example, the webhook filter <code>PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED</code> allows all push, pull request created, and pull request updated events to trigger a build. </p> <p> For a <code>WebHookFilter</code> that uses any of the other filter types, a regular expression pattern. For example, a <code>WebHookFilter</code> that uses <code>HEAD_REF</code> for its <code>type</code> and the pattern <code>^refs/heads/</code> triggers a build when the head reference is a branch with a reference name <code>refs/heads/branch-name</code>. </p>
2898    #[serde(rename = "pattern")]
2899    pub pattern: String,
2900    /// <p><p> The type of webhook filter. There are six webhook filter types: <code>EVENT</code>, <code>ACTOR<em>ACCOUNT</em>ID</code>, <code>HEAD<em>REF</code>, <code>BASE</em>REF</code>, <code>FILE<em>PATH</code>, and <code>COMMIT</em>MESSAGE</code>. </p> <dl> <dt> EVENT </dt> <dd> <p> A webhook event triggers a build when the provided <code>pattern</code> matches one of five event types: <code>PUSH</code>, <code>PULL<em>REQUEST</em>CREATED</code>, <code>PULL<em>REQUEST</em>UPDATED</code>, <code>PULL<em>REQUEST</em>REOPENED</code>, and <code>PULL<em>REQUEST</em>MERGED</code>. The <code>EVENT</code> patterns are specified as a comma-separated string. For example, <code>PUSH, PULL<em>REQUEST</em>CREATED, PULL<em>REQUEST</em>UPDATED</code> filters all push, pull request created, and pull request updated events. </p> <note> <p> The <code>PULL<em>REQUEST</em>REOPENED</code> works with GitHub and GitHub Enterprise only. </p> </note> </dd> <dt> ACTOR<em>ACCOUNT</em>ID </dt> <dd> <p> A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression <code>pattern</code>. </p> </dd> <dt> HEAD<em>REF </dt> <dd> <p> A webhook event triggers a build when the head reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code> and <code>refs/tags/tag-name</code>. </p> <p> Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. </p> </dd> <dt> BASE</em>REF </dt> <dd> <p> A webhook event triggers a build when the base reference matches the regular expression <code>pattern</code>. For example, <code>refs/heads/branch-name</code>. </p> <note> <p> Works with pull request events only. </p> </note> </dd> <dt> FILE<em>PATH </dt> <dd> <p> A webhook triggers a build when the path of a changed file matches the regular expression <code>pattern</code>. </p> <note> <p> Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. </p> </note> </dd> <dt>COMMIT</em>MESSAGE</dt> <dd> <p>A webhook triggers a build when the head commit message matches the regular expression <code>pattern</code>.</p> <note> <p> Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. </p> </note> </dd> </dl></p>
2901    #[serde(rename = "type")]
2902    pub type_: String,
2903}
2904
2905/// Errors returned by BatchDeleteBuilds
2906#[derive(Debug, PartialEq)]
2907pub enum BatchDeleteBuildsError {
2908    /// <p>The input value that was provided is not valid.</p>
2909    InvalidInput(String),
2910}
2911
2912impl BatchDeleteBuildsError {
2913    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchDeleteBuildsError> {
2914        if let Some(err) = proto::json::Error::parse(&res) {
2915            match err.typ.as_str() {
2916                "InvalidInputException" => {
2917                    return RusotoError::Service(BatchDeleteBuildsError::InvalidInput(err.msg))
2918                }
2919                "ValidationException" => return RusotoError::Validation(err.msg),
2920                _ => {}
2921            }
2922        }
2923        RusotoError::Unknown(res)
2924    }
2925}
2926impl fmt::Display for BatchDeleteBuildsError {
2927    #[allow(unused_variables)]
2928    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2929        match *self {
2930            BatchDeleteBuildsError::InvalidInput(ref cause) => write!(f, "{}", cause),
2931        }
2932    }
2933}
2934impl Error for BatchDeleteBuildsError {}
2935/// Errors returned by BatchGetBuildBatches
2936#[derive(Debug, PartialEq)]
2937pub enum BatchGetBuildBatchesError {
2938    /// <p>The input value that was provided is not valid.</p>
2939    InvalidInput(String),
2940}
2941
2942impl BatchGetBuildBatchesError {
2943    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetBuildBatchesError> {
2944        if let Some(err) = proto::json::Error::parse(&res) {
2945            match err.typ.as_str() {
2946                "InvalidInputException" => {
2947                    return RusotoError::Service(BatchGetBuildBatchesError::InvalidInput(err.msg))
2948                }
2949                "ValidationException" => return RusotoError::Validation(err.msg),
2950                _ => {}
2951            }
2952        }
2953        RusotoError::Unknown(res)
2954    }
2955}
2956impl fmt::Display for BatchGetBuildBatchesError {
2957    #[allow(unused_variables)]
2958    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2959        match *self {
2960            BatchGetBuildBatchesError::InvalidInput(ref cause) => write!(f, "{}", cause),
2961        }
2962    }
2963}
2964impl Error for BatchGetBuildBatchesError {}
2965/// Errors returned by BatchGetBuilds
2966#[derive(Debug, PartialEq)]
2967pub enum BatchGetBuildsError {
2968    /// <p>The input value that was provided is not valid.</p>
2969    InvalidInput(String),
2970}
2971
2972impl BatchGetBuildsError {
2973    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetBuildsError> {
2974        if let Some(err) = proto::json::Error::parse(&res) {
2975            match err.typ.as_str() {
2976                "InvalidInputException" => {
2977                    return RusotoError::Service(BatchGetBuildsError::InvalidInput(err.msg))
2978                }
2979                "ValidationException" => return RusotoError::Validation(err.msg),
2980                _ => {}
2981            }
2982        }
2983        RusotoError::Unknown(res)
2984    }
2985}
2986impl fmt::Display for BatchGetBuildsError {
2987    #[allow(unused_variables)]
2988    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
2989        match *self {
2990            BatchGetBuildsError::InvalidInput(ref cause) => write!(f, "{}", cause),
2991        }
2992    }
2993}
2994impl Error for BatchGetBuildsError {}
2995/// Errors returned by BatchGetProjects
2996#[derive(Debug, PartialEq)]
2997pub enum BatchGetProjectsError {
2998    /// <p>The input value that was provided is not valid.</p>
2999    InvalidInput(String),
3000}
3001
3002impl BatchGetProjectsError {
3003    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetProjectsError> {
3004        if let Some(err) = proto::json::Error::parse(&res) {
3005            match err.typ.as_str() {
3006                "InvalidInputException" => {
3007                    return RusotoError::Service(BatchGetProjectsError::InvalidInput(err.msg))
3008                }
3009                "ValidationException" => return RusotoError::Validation(err.msg),
3010                _ => {}
3011            }
3012        }
3013        RusotoError::Unknown(res)
3014    }
3015}
3016impl fmt::Display for BatchGetProjectsError {
3017    #[allow(unused_variables)]
3018    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3019        match *self {
3020            BatchGetProjectsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3021        }
3022    }
3023}
3024impl Error for BatchGetProjectsError {}
3025/// Errors returned by BatchGetReportGroups
3026#[derive(Debug, PartialEq)]
3027pub enum BatchGetReportGroupsError {
3028    /// <p>The input value that was provided is not valid.</p>
3029    InvalidInput(String),
3030}
3031
3032impl BatchGetReportGroupsError {
3033    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetReportGroupsError> {
3034        if let Some(err) = proto::json::Error::parse(&res) {
3035            match err.typ.as_str() {
3036                "InvalidInputException" => {
3037                    return RusotoError::Service(BatchGetReportGroupsError::InvalidInput(err.msg))
3038                }
3039                "ValidationException" => return RusotoError::Validation(err.msg),
3040                _ => {}
3041            }
3042        }
3043        RusotoError::Unknown(res)
3044    }
3045}
3046impl fmt::Display for BatchGetReportGroupsError {
3047    #[allow(unused_variables)]
3048    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3049        match *self {
3050            BatchGetReportGroupsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3051        }
3052    }
3053}
3054impl Error for BatchGetReportGroupsError {}
3055/// Errors returned by BatchGetReports
3056#[derive(Debug, PartialEq)]
3057pub enum BatchGetReportsError {
3058    /// <p>The input value that was provided is not valid.</p>
3059    InvalidInput(String),
3060}
3061
3062impl BatchGetReportsError {
3063    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetReportsError> {
3064        if let Some(err) = proto::json::Error::parse(&res) {
3065            match err.typ.as_str() {
3066                "InvalidInputException" => {
3067                    return RusotoError::Service(BatchGetReportsError::InvalidInput(err.msg))
3068                }
3069                "ValidationException" => return RusotoError::Validation(err.msg),
3070                _ => {}
3071            }
3072        }
3073        RusotoError::Unknown(res)
3074    }
3075}
3076impl fmt::Display for BatchGetReportsError {
3077    #[allow(unused_variables)]
3078    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3079        match *self {
3080            BatchGetReportsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3081        }
3082    }
3083}
3084impl Error for BatchGetReportsError {}
3085/// Errors returned by CreateProject
3086#[derive(Debug, PartialEq)]
3087pub enum CreateProjectError {
3088    /// <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
3089    AccountLimitExceeded(String),
3090    /// <p>The input value that was provided is not valid.</p>
3091    InvalidInput(String),
3092    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
3093    ResourceAlreadyExists(String),
3094}
3095
3096impl CreateProjectError {
3097    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateProjectError> {
3098        if let Some(err) = proto::json::Error::parse(&res) {
3099            match err.typ.as_str() {
3100                "AccountLimitExceededException" => {
3101                    return RusotoError::Service(CreateProjectError::AccountLimitExceeded(err.msg))
3102                }
3103                "InvalidInputException" => {
3104                    return RusotoError::Service(CreateProjectError::InvalidInput(err.msg))
3105                }
3106                "ResourceAlreadyExistsException" => {
3107                    return RusotoError::Service(CreateProjectError::ResourceAlreadyExists(err.msg))
3108                }
3109                "ValidationException" => return RusotoError::Validation(err.msg),
3110                _ => {}
3111            }
3112        }
3113        RusotoError::Unknown(res)
3114    }
3115}
3116impl fmt::Display for CreateProjectError {
3117    #[allow(unused_variables)]
3118    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3119        match *self {
3120            CreateProjectError::AccountLimitExceeded(ref cause) => write!(f, "{}", cause),
3121            CreateProjectError::InvalidInput(ref cause) => write!(f, "{}", cause),
3122            CreateProjectError::ResourceAlreadyExists(ref cause) => write!(f, "{}", cause),
3123        }
3124    }
3125}
3126impl Error for CreateProjectError {}
3127/// Errors returned by CreateReportGroup
3128#[derive(Debug, PartialEq)]
3129pub enum CreateReportGroupError {
3130    /// <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
3131    AccountLimitExceeded(String),
3132    /// <p>The input value that was provided is not valid.</p>
3133    InvalidInput(String),
3134    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
3135    ResourceAlreadyExists(String),
3136}
3137
3138impl CreateReportGroupError {
3139    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateReportGroupError> {
3140        if let Some(err) = proto::json::Error::parse(&res) {
3141            match err.typ.as_str() {
3142                "AccountLimitExceededException" => {
3143                    return RusotoError::Service(CreateReportGroupError::AccountLimitExceeded(
3144                        err.msg,
3145                    ))
3146                }
3147                "InvalidInputException" => {
3148                    return RusotoError::Service(CreateReportGroupError::InvalidInput(err.msg))
3149                }
3150                "ResourceAlreadyExistsException" => {
3151                    return RusotoError::Service(CreateReportGroupError::ResourceAlreadyExists(
3152                        err.msg,
3153                    ))
3154                }
3155                "ValidationException" => return RusotoError::Validation(err.msg),
3156                _ => {}
3157            }
3158        }
3159        RusotoError::Unknown(res)
3160    }
3161}
3162impl fmt::Display for CreateReportGroupError {
3163    #[allow(unused_variables)]
3164    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3165        match *self {
3166            CreateReportGroupError::AccountLimitExceeded(ref cause) => write!(f, "{}", cause),
3167            CreateReportGroupError::InvalidInput(ref cause) => write!(f, "{}", cause),
3168            CreateReportGroupError::ResourceAlreadyExists(ref cause) => write!(f, "{}", cause),
3169        }
3170    }
3171}
3172impl Error for CreateReportGroupError {}
3173/// Errors returned by CreateWebhook
3174#[derive(Debug, PartialEq)]
3175pub enum CreateWebhookError {
3176    /// <p>The input value that was provided is not valid.</p>
3177    InvalidInput(String),
3178    /// <p>There was a problem with the underlying OAuth provider.</p>
3179    OAuthProvider(String),
3180    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
3181    ResourceAlreadyExists(String),
3182    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3183    ResourceNotFound(String),
3184}
3185
3186impl CreateWebhookError {
3187    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateWebhookError> {
3188        if let Some(err) = proto::json::Error::parse(&res) {
3189            match err.typ.as_str() {
3190                "InvalidInputException" => {
3191                    return RusotoError::Service(CreateWebhookError::InvalidInput(err.msg))
3192                }
3193                "OAuthProviderException" => {
3194                    return RusotoError::Service(CreateWebhookError::OAuthProvider(err.msg))
3195                }
3196                "ResourceAlreadyExistsException" => {
3197                    return RusotoError::Service(CreateWebhookError::ResourceAlreadyExists(err.msg))
3198                }
3199                "ResourceNotFoundException" => {
3200                    return RusotoError::Service(CreateWebhookError::ResourceNotFound(err.msg))
3201                }
3202                "ValidationException" => return RusotoError::Validation(err.msg),
3203                _ => {}
3204            }
3205        }
3206        RusotoError::Unknown(res)
3207    }
3208}
3209impl fmt::Display for CreateWebhookError {
3210    #[allow(unused_variables)]
3211    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3212        match *self {
3213            CreateWebhookError::InvalidInput(ref cause) => write!(f, "{}", cause),
3214            CreateWebhookError::OAuthProvider(ref cause) => write!(f, "{}", cause),
3215            CreateWebhookError::ResourceAlreadyExists(ref cause) => write!(f, "{}", cause),
3216            CreateWebhookError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3217        }
3218    }
3219}
3220impl Error for CreateWebhookError {}
3221/// Errors returned by DeleteBuildBatch
3222#[derive(Debug, PartialEq)]
3223pub enum DeleteBuildBatchError {
3224    /// <p>The input value that was provided is not valid.</p>
3225    InvalidInput(String),
3226}
3227
3228impl DeleteBuildBatchError {
3229    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteBuildBatchError> {
3230        if let Some(err) = proto::json::Error::parse(&res) {
3231            match err.typ.as_str() {
3232                "InvalidInputException" => {
3233                    return RusotoError::Service(DeleteBuildBatchError::InvalidInput(err.msg))
3234                }
3235                "ValidationException" => return RusotoError::Validation(err.msg),
3236                _ => {}
3237            }
3238        }
3239        RusotoError::Unknown(res)
3240    }
3241}
3242impl fmt::Display for DeleteBuildBatchError {
3243    #[allow(unused_variables)]
3244    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3245        match *self {
3246            DeleteBuildBatchError::InvalidInput(ref cause) => write!(f, "{}", cause),
3247        }
3248    }
3249}
3250impl Error for DeleteBuildBatchError {}
3251/// Errors returned by DeleteProject
3252#[derive(Debug, PartialEq)]
3253pub enum DeleteProjectError {
3254    /// <p>The input value that was provided is not valid.</p>
3255    InvalidInput(String),
3256}
3257
3258impl DeleteProjectError {
3259    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteProjectError> {
3260        if let Some(err) = proto::json::Error::parse(&res) {
3261            match err.typ.as_str() {
3262                "InvalidInputException" => {
3263                    return RusotoError::Service(DeleteProjectError::InvalidInput(err.msg))
3264                }
3265                "ValidationException" => return RusotoError::Validation(err.msg),
3266                _ => {}
3267            }
3268        }
3269        RusotoError::Unknown(res)
3270    }
3271}
3272impl fmt::Display for DeleteProjectError {
3273    #[allow(unused_variables)]
3274    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3275        match *self {
3276            DeleteProjectError::InvalidInput(ref cause) => write!(f, "{}", cause),
3277        }
3278    }
3279}
3280impl Error for DeleteProjectError {}
3281/// Errors returned by DeleteReport
3282#[derive(Debug, PartialEq)]
3283pub enum DeleteReportError {
3284    /// <p>The input value that was provided is not valid.</p>
3285    InvalidInput(String),
3286}
3287
3288impl DeleteReportError {
3289    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReportError> {
3290        if let Some(err) = proto::json::Error::parse(&res) {
3291            match err.typ.as_str() {
3292                "InvalidInputException" => {
3293                    return RusotoError::Service(DeleteReportError::InvalidInput(err.msg))
3294                }
3295                "ValidationException" => return RusotoError::Validation(err.msg),
3296                _ => {}
3297            }
3298        }
3299        RusotoError::Unknown(res)
3300    }
3301}
3302impl fmt::Display for DeleteReportError {
3303    #[allow(unused_variables)]
3304    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3305        match *self {
3306            DeleteReportError::InvalidInput(ref cause) => write!(f, "{}", cause),
3307        }
3308    }
3309}
3310impl Error for DeleteReportError {}
3311/// Errors returned by DeleteReportGroup
3312#[derive(Debug, PartialEq)]
3313pub enum DeleteReportGroupError {
3314    /// <p>The input value that was provided is not valid.</p>
3315    InvalidInput(String),
3316}
3317
3318impl DeleteReportGroupError {
3319    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReportGroupError> {
3320        if let Some(err) = proto::json::Error::parse(&res) {
3321            match err.typ.as_str() {
3322                "InvalidInputException" => {
3323                    return RusotoError::Service(DeleteReportGroupError::InvalidInput(err.msg))
3324                }
3325                "ValidationException" => return RusotoError::Validation(err.msg),
3326                _ => {}
3327            }
3328        }
3329        RusotoError::Unknown(res)
3330    }
3331}
3332impl fmt::Display for DeleteReportGroupError {
3333    #[allow(unused_variables)]
3334    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3335        match *self {
3336            DeleteReportGroupError::InvalidInput(ref cause) => write!(f, "{}", cause),
3337        }
3338    }
3339}
3340impl Error for DeleteReportGroupError {}
3341/// Errors returned by DeleteResourcePolicy
3342#[derive(Debug, PartialEq)]
3343pub enum DeleteResourcePolicyError {
3344    /// <p>The input value that was provided is not valid.</p>
3345    InvalidInput(String),
3346}
3347
3348impl DeleteResourcePolicyError {
3349    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteResourcePolicyError> {
3350        if let Some(err) = proto::json::Error::parse(&res) {
3351            match err.typ.as_str() {
3352                "InvalidInputException" => {
3353                    return RusotoError::Service(DeleteResourcePolicyError::InvalidInput(err.msg))
3354                }
3355                "ValidationException" => return RusotoError::Validation(err.msg),
3356                _ => {}
3357            }
3358        }
3359        RusotoError::Unknown(res)
3360    }
3361}
3362impl fmt::Display for DeleteResourcePolicyError {
3363    #[allow(unused_variables)]
3364    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3365        match *self {
3366            DeleteResourcePolicyError::InvalidInput(ref cause) => write!(f, "{}", cause),
3367        }
3368    }
3369}
3370impl Error for DeleteResourcePolicyError {}
3371/// Errors returned by DeleteSourceCredentials
3372#[derive(Debug, PartialEq)]
3373pub enum DeleteSourceCredentialsError {
3374    /// <p>The input value that was provided is not valid.</p>
3375    InvalidInput(String),
3376    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3377    ResourceNotFound(String),
3378}
3379
3380impl DeleteSourceCredentialsError {
3381    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteSourceCredentialsError> {
3382        if let Some(err) = proto::json::Error::parse(&res) {
3383            match err.typ.as_str() {
3384                "InvalidInputException" => {
3385                    return RusotoError::Service(DeleteSourceCredentialsError::InvalidInput(
3386                        err.msg,
3387                    ))
3388                }
3389                "ResourceNotFoundException" => {
3390                    return RusotoError::Service(DeleteSourceCredentialsError::ResourceNotFound(
3391                        err.msg,
3392                    ))
3393                }
3394                "ValidationException" => return RusotoError::Validation(err.msg),
3395                _ => {}
3396            }
3397        }
3398        RusotoError::Unknown(res)
3399    }
3400}
3401impl fmt::Display for DeleteSourceCredentialsError {
3402    #[allow(unused_variables)]
3403    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3404        match *self {
3405            DeleteSourceCredentialsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3406            DeleteSourceCredentialsError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3407        }
3408    }
3409}
3410impl Error for DeleteSourceCredentialsError {}
3411/// Errors returned by DeleteWebhook
3412#[derive(Debug, PartialEq)]
3413pub enum DeleteWebhookError {
3414    /// <p>The input value that was provided is not valid.</p>
3415    InvalidInput(String),
3416    /// <p>There was a problem with the underlying OAuth provider.</p>
3417    OAuthProvider(String),
3418    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3419    ResourceNotFound(String),
3420}
3421
3422impl DeleteWebhookError {
3423    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteWebhookError> {
3424        if let Some(err) = proto::json::Error::parse(&res) {
3425            match err.typ.as_str() {
3426                "InvalidInputException" => {
3427                    return RusotoError::Service(DeleteWebhookError::InvalidInput(err.msg))
3428                }
3429                "OAuthProviderException" => {
3430                    return RusotoError::Service(DeleteWebhookError::OAuthProvider(err.msg))
3431                }
3432                "ResourceNotFoundException" => {
3433                    return RusotoError::Service(DeleteWebhookError::ResourceNotFound(err.msg))
3434                }
3435                "ValidationException" => return RusotoError::Validation(err.msg),
3436                _ => {}
3437            }
3438        }
3439        RusotoError::Unknown(res)
3440    }
3441}
3442impl fmt::Display for DeleteWebhookError {
3443    #[allow(unused_variables)]
3444    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3445        match *self {
3446            DeleteWebhookError::InvalidInput(ref cause) => write!(f, "{}", cause),
3447            DeleteWebhookError::OAuthProvider(ref cause) => write!(f, "{}", cause),
3448            DeleteWebhookError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3449        }
3450    }
3451}
3452impl Error for DeleteWebhookError {}
3453/// Errors returned by DescribeCodeCoverages
3454#[derive(Debug, PartialEq)]
3455pub enum DescribeCodeCoveragesError {
3456    /// <p>The input value that was provided is not valid.</p>
3457    InvalidInput(String),
3458}
3459
3460impl DescribeCodeCoveragesError {
3461    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeCodeCoveragesError> {
3462        if let Some(err) = proto::json::Error::parse(&res) {
3463            match err.typ.as_str() {
3464                "InvalidInputException" => {
3465                    return RusotoError::Service(DescribeCodeCoveragesError::InvalidInput(err.msg))
3466                }
3467                "ValidationException" => return RusotoError::Validation(err.msg),
3468                _ => {}
3469            }
3470        }
3471        RusotoError::Unknown(res)
3472    }
3473}
3474impl fmt::Display for DescribeCodeCoveragesError {
3475    #[allow(unused_variables)]
3476    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3477        match *self {
3478            DescribeCodeCoveragesError::InvalidInput(ref cause) => write!(f, "{}", cause),
3479        }
3480    }
3481}
3482impl Error for DescribeCodeCoveragesError {}
3483/// Errors returned by DescribeTestCases
3484#[derive(Debug, PartialEq)]
3485pub enum DescribeTestCasesError {
3486    /// <p>The input value that was provided is not valid.</p>
3487    InvalidInput(String),
3488    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3489    ResourceNotFound(String),
3490}
3491
3492impl DescribeTestCasesError {
3493    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeTestCasesError> {
3494        if let Some(err) = proto::json::Error::parse(&res) {
3495            match err.typ.as_str() {
3496                "InvalidInputException" => {
3497                    return RusotoError::Service(DescribeTestCasesError::InvalidInput(err.msg))
3498                }
3499                "ResourceNotFoundException" => {
3500                    return RusotoError::Service(DescribeTestCasesError::ResourceNotFound(err.msg))
3501                }
3502                "ValidationException" => return RusotoError::Validation(err.msg),
3503                _ => {}
3504            }
3505        }
3506        RusotoError::Unknown(res)
3507    }
3508}
3509impl fmt::Display for DescribeTestCasesError {
3510    #[allow(unused_variables)]
3511    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3512        match *self {
3513            DescribeTestCasesError::InvalidInput(ref cause) => write!(f, "{}", cause),
3514            DescribeTestCasesError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3515        }
3516    }
3517}
3518impl Error for DescribeTestCasesError {}
3519/// Errors returned by GetReportGroupTrend
3520#[derive(Debug, PartialEq)]
3521pub enum GetReportGroupTrendError {
3522    /// <p>The input value that was provided is not valid.</p>
3523    InvalidInput(String),
3524    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3525    ResourceNotFound(String),
3526}
3527
3528impl GetReportGroupTrendError {
3529    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetReportGroupTrendError> {
3530        if let Some(err) = proto::json::Error::parse(&res) {
3531            match err.typ.as_str() {
3532                "InvalidInputException" => {
3533                    return RusotoError::Service(GetReportGroupTrendError::InvalidInput(err.msg))
3534                }
3535                "ResourceNotFoundException" => {
3536                    return RusotoError::Service(GetReportGroupTrendError::ResourceNotFound(
3537                        err.msg,
3538                    ))
3539                }
3540                "ValidationException" => return RusotoError::Validation(err.msg),
3541                _ => {}
3542            }
3543        }
3544        RusotoError::Unknown(res)
3545    }
3546}
3547impl fmt::Display for GetReportGroupTrendError {
3548    #[allow(unused_variables)]
3549    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3550        match *self {
3551            GetReportGroupTrendError::InvalidInput(ref cause) => write!(f, "{}", cause),
3552            GetReportGroupTrendError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3553        }
3554    }
3555}
3556impl Error for GetReportGroupTrendError {}
3557/// Errors returned by GetResourcePolicy
3558#[derive(Debug, PartialEq)]
3559pub enum GetResourcePolicyError {
3560    /// <p>The input value that was provided is not valid.</p>
3561    InvalidInput(String),
3562    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3563    ResourceNotFound(String),
3564}
3565
3566impl GetResourcePolicyError {
3567    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetResourcePolicyError> {
3568        if let Some(err) = proto::json::Error::parse(&res) {
3569            match err.typ.as_str() {
3570                "InvalidInputException" => {
3571                    return RusotoError::Service(GetResourcePolicyError::InvalidInput(err.msg))
3572                }
3573                "ResourceNotFoundException" => {
3574                    return RusotoError::Service(GetResourcePolicyError::ResourceNotFound(err.msg))
3575                }
3576                "ValidationException" => return RusotoError::Validation(err.msg),
3577                _ => {}
3578            }
3579        }
3580        RusotoError::Unknown(res)
3581    }
3582}
3583impl fmt::Display for GetResourcePolicyError {
3584    #[allow(unused_variables)]
3585    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3586        match *self {
3587            GetResourcePolicyError::InvalidInput(ref cause) => write!(f, "{}", cause),
3588            GetResourcePolicyError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3589        }
3590    }
3591}
3592impl Error for GetResourcePolicyError {}
3593/// Errors returned by ImportSourceCredentials
3594#[derive(Debug, PartialEq)]
3595pub enum ImportSourceCredentialsError {
3596    /// <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
3597    AccountLimitExceeded(String),
3598    /// <p>The input value that was provided is not valid.</p>
3599    InvalidInput(String),
3600    /// <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.</p>
3601    ResourceAlreadyExists(String),
3602}
3603
3604impl ImportSourceCredentialsError {
3605    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ImportSourceCredentialsError> {
3606        if let Some(err) = proto::json::Error::parse(&res) {
3607            match err.typ.as_str() {
3608                "AccountLimitExceededException" => {
3609                    return RusotoError::Service(
3610                        ImportSourceCredentialsError::AccountLimitExceeded(err.msg),
3611                    )
3612                }
3613                "InvalidInputException" => {
3614                    return RusotoError::Service(ImportSourceCredentialsError::InvalidInput(
3615                        err.msg,
3616                    ))
3617                }
3618                "ResourceAlreadyExistsException" => {
3619                    return RusotoError::Service(
3620                        ImportSourceCredentialsError::ResourceAlreadyExists(err.msg),
3621                    )
3622                }
3623                "ValidationException" => return RusotoError::Validation(err.msg),
3624                _ => {}
3625            }
3626        }
3627        RusotoError::Unknown(res)
3628    }
3629}
3630impl fmt::Display for ImportSourceCredentialsError {
3631    #[allow(unused_variables)]
3632    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3633        match *self {
3634            ImportSourceCredentialsError::AccountLimitExceeded(ref cause) => write!(f, "{}", cause),
3635            ImportSourceCredentialsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3636            ImportSourceCredentialsError::ResourceAlreadyExists(ref cause) => {
3637                write!(f, "{}", cause)
3638            }
3639        }
3640    }
3641}
3642impl Error for ImportSourceCredentialsError {}
3643/// Errors returned by InvalidateProjectCache
3644#[derive(Debug, PartialEq)]
3645pub enum InvalidateProjectCacheError {
3646    /// <p>The input value that was provided is not valid.</p>
3647    InvalidInput(String),
3648    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3649    ResourceNotFound(String),
3650}
3651
3652impl InvalidateProjectCacheError {
3653    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<InvalidateProjectCacheError> {
3654        if let Some(err) = proto::json::Error::parse(&res) {
3655            match err.typ.as_str() {
3656                "InvalidInputException" => {
3657                    return RusotoError::Service(InvalidateProjectCacheError::InvalidInput(err.msg))
3658                }
3659                "ResourceNotFoundException" => {
3660                    return RusotoError::Service(InvalidateProjectCacheError::ResourceNotFound(
3661                        err.msg,
3662                    ))
3663                }
3664                "ValidationException" => return RusotoError::Validation(err.msg),
3665                _ => {}
3666            }
3667        }
3668        RusotoError::Unknown(res)
3669    }
3670}
3671impl fmt::Display for InvalidateProjectCacheError {
3672    #[allow(unused_variables)]
3673    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3674        match *self {
3675            InvalidateProjectCacheError::InvalidInput(ref cause) => write!(f, "{}", cause),
3676            InvalidateProjectCacheError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3677        }
3678    }
3679}
3680impl Error for InvalidateProjectCacheError {}
3681/// Errors returned by ListBuildBatches
3682#[derive(Debug, PartialEq)]
3683pub enum ListBuildBatchesError {
3684    /// <p>The input value that was provided is not valid.</p>
3685    InvalidInput(String),
3686}
3687
3688impl ListBuildBatchesError {
3689    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListBuildBatchesError> {
3690        if let Some(err) = proto::json::Error::parse(&res) {
3691            match err.typ.as_str() {
3692                "InvalidInputException" => {
3693                    return RusotoError::Service(ListBuildBatchesError::InvalidInput(err.msg))
3694                }
3695                "ValidationException" => return RusotoError::Validation(err.msg),
3696                _ => {}
3697            }
3698        }
3699        RusotoError::Unknown(res)
3700    }
3701}
3702impl fmt::Display for ListBuildBatchesError {
3703    #[allow(unused_variables)]
3704    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3705        match *self {
3706            ListBuildBatchesError::InvalidInput(ref cause) => write!(f, "{}", cause),
3707        }
3708    }
3709}
3710impl Error for ListBuildBatchesError {}
3711/// Errors returned by ListBuildBatchesForProject
3712#[derive(Debug, PartialEq)]
3713pub enum ListBuildBatchesForProjectError {
3714    /// <p>The input value that was provided is not valid.</p>
3715    InvalidInput(String),
3716    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3717    ResourceNotFound(String),
3718}
3719
3720impl ListBuildBatchesForProjectError {
3721    pub fn from_response(
3722        res: BufferedHttpResponse,
3723    ) -> RusotoError<ListBuildBatchesForProjectError> {
3724        if let Some(err) = proto::json::Error::parse(&res) {
3725            match err.typ.as_str() {
3726                "InvalidInputException" => {
3727                    return RusotoError::Service(ListBuildBatchesForProjectError::InvalidInput(
3728                        err.msg,
3729                    ))
3730                }
3731                "ResourceNotFoundException" => {
3732                    return RusotoError::Service(ListBuildBatchesForProjectError::ResourceNotFound(
3733                        err.msg,
3734                    ))
3735                }
3736                "ValidationException" => return RusotoError::Validation(err.msg),
3737                _ => {}
3738            }
3739        }
3740        RusotoError::Unknown(res)
3741    }
3742}
3743impl fmt::Display for ListBuildBatchesForProjectError {
3744    #[allow(unused_variables)]
3745    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3746        match *self {
3747            ListBuildBatchesForProjectError::InvalidInput(ref cause) => write!(f, "{}", cause),
3748            ListBuildBatchesForProjectError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3749        }
3750    }
3751}
3752impl Error for ListBuildBatchesForProjectError {}
3753/// Errors returned by ListBuilds
3754#[derive(Debug, PartialEq)]
3755pub enum ListBuildsError {
3756    /// <p>The input value that was provided is not valid.</p>
3757    InvalidInput(String),
3758}
3759
3760impl ListBuildsError {
3761    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListBuildsError> {
3762        if let Some(err) = proto::json::Error::parse(&res) {
3763            match err.typ.as_str() {
3764                "InvalidInputException" => {
3765                    return RusotoError::Service(ListBuildsError::InvalidInput(err.msg))
3766                }
3767                "ValidationException" => return RusotoError::Validation(err.msg),
3768                _ => {}
3769            }
3770        }
3771        RusotoError::Unknown(res)
3772    }
3773}
3774impl fmt::Display for ListBuildsError {
3775    #[allow(unused_variables)]
3776    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3777        match *self {
3778            ListBuildsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3779        }
3780    }
3781}
3782impl Error for ListBuildsError {}
3783/// Errors returned by ListBuildsForProject
3784#[derive(Debug, PartialEq)]
3785pub enum ListBuildsForProjectError {
3786    /// <p>The input value that was provided is not valid.</p>
3787    InvalidInput(String),
3788    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3789    ResourceNotFound(String),
3790}
3791
3792impl ListBuildsForProjectError {
3793    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListBuildsForProjectError> {
3794        if let Some(err) = proto::json::Error::parse(&res) {
3795            match err.typ.as_str() {
3796                "InvalidInputException" => {
3797                    return RusotoError::Service(ListBuildsForProjectError::InvalidInput(err.msg))
3798                }
3799                "ResourceNotFoundException" => {
3800                    return RusotoError::Service(ListBuildsForProjectError::ResourceNotFound(
3801                        err.msg,
3802                    ))
3803                }
3804                "ValidationException" => return RusotoError::Validation(err.msg),
3805                _ => {}
3806            }
3807        }
3808        RusotoError::Unknown(res)
3809    }
3810}
3811impl fmt::Display for ListBuildsForProjectError {
3812    #[allow(unused_variables)]
3813    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3814        match *self {
3815            ListBuildsForProjectError::InvalidInput(ref cause) => write!(f, "{}", cause),
3816            ListBuildsForProjectError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3817        }
3818    }
3819}
3820impl Error for ListBuildsForProjectError {}
3821/// Errors returned by ListCuratedEnvironmentImages
3822#[derive(Debug, PartialEq)]
3823pub enum ListCuratedEnvironmentImagesError {}
3824
3825impl ListCuratedEnvironmentImagesError {
3826    pub fn from_response(
3827        res: BufferedHttpResponse,
3828    ) -> RusotoError<ListCuratedEnvironmentImagesError> {
3829        if let Some(err) = proto::json::Error::parse(&res) {
3830            match err.typ.as_str() {
3831                "ValidationException" => return RusotoError::Validation(err.msg),
3832                _ => {}
3833            }
3834        }
3835        RusotoError::Unknown(res)
3836    }
3837}
3838impl fmt::Display for ListCuratedEnvironmentImagesError {
3839    #[allow(unused_variables)]
3840    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3841        match *self {}
3842    }
3843}
3844impl Error for ListCuratedEnvironmentImagesError {}
3845/// Errors returned by ListProjects
3846#[derive(Debug, PartialEq)]
3847pub enum ListProjectsError {
3848    /// <p>The input value that was provided is not valid.</p>
3849    InvalidInput(String),
3850}
3851
3852impl ListProjectsError {
3853    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListProjectsError> {
3854        if let Some(err) = proto::json::Error::parse(&res) {
3855            match err.typ.as_str() {
3856                "InvalidInputException" => {
3857                    return RusotoError::Service(ListProjectsError::InvalidInput(err.msg))
3858                }
3859                "ValidationException" => return RusotoError::Validation(err.msg),
3860                _ => {}
3861            }
3862        }
3863        RusotoError::Unknown(res)
3864    }
3865}
3866impl fmt::Display for ListProjectsError {
3867    #[allow(unused_variables)]
3868    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3869        match *self {
3870            ListProjectsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3871        }
3872    }
3873}
3874impl Error for ListProjectsError {}
3875/// Errors returned by ListReportGroups
3876#[derive(Debug, PartialEq)]
3877pub enum ListReportGroupsError {
3878    /// <p>The input value that was provided is not valid.</p>
3879    InvalidInput(String),
3880}
3881
3882impl ListReportGroupsError {
3883    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListReportGroupsError> {
3884        if let Some(err) = proto::json::Error::parse(&res) {
3885            match err.typ.as_str() {
3886                "InvalidInputException" => {
3887                    return RusotoError::Service(ListReportGroupsError::InvalidInput(err.msg))
3888                }
3889                "ValidationException" => return RusotoError::Validation(err.msg),
3890                _ => {}
3891            }
3892        }
3893        RusotoError::Unknown(res)
3894    }
3895}
3896impl fmt::Display for ListReportGroupsError {
3897    #[allow(unused_variables)]
3898    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3899        match *self {
3900            ListReportGroupsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3901        }
3902    }
3903}
3904impl Error for ListReportGroupsError {}
3905/// Errors returned by ListReports
3906#[derive(Debug, PartialEq)]
3907pub enum ListReportsError {
3908    /// <p>The input value that was provided is not valid.</p>
3909    InvalidInput(String),
3910}
3911
3912impl ListReportsError {
3913    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListReportsError> {
3914        if let Some(err) = proto::json::Error::parse(&res) {
3915            match err.typ.as_str() {
3916                "InvalidInputException" => {
3917                    return RusotoError::Service(ListReportsError::InvalidInput(err.msg))
3918                }
3919                "ValidationException" => return RusotoError::Validation(err.msg),
3920                _ => {}
3921            }
3922        }
3923        RusotoError::Unknown(res)
3924    }
3925}
3926impl fmt::Display for ListReportsError {
3927    #[allow(unused_variables)]
3928    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3929        match *self {
3930            ListReportsError::InvalidInput(ref cause) => write!(f, "{}", cause),
3931        }
3932    }
3933}
3934impl Error for ListReportsError {}
3935/// Errors returned by ListReportsForReportGroup
3936#[derive(Debug, PartialEq)]
3937pub enum ListReportsForReportGroupError {
3938    /// <p>The input value that was provided is not valid.</p>
3939    InvalidInput(String),
3940    /// <p>The specified Amazon Web Services resource cannot be found.</p>
3941    ResourceNotFound(String),
3942}
3943
3944impl ListReportsForReportGroupError {
3945    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListReportsForReportGroupError> {
3946        if let Some(err) = proto::json::Error::parse(&res) {
3947            match err.typ.as_str() {
3948                "InvalidInputException" => {
3949                    return RusotoError::Service(ListReportsForReportGroupError::InvalidInput(
3950                        err.msg,
3951                    ))
3952                }
3953                "ResourceNotFoundException" => {
3954                    return RusotoError::Service(ListReportsForReportGroupError::ResourceNotFound(
3955                        err.msg,
3956                    ))
3957                }
3958                "ValidationException" => return RusotoError::Validation(err.msg),
3959                _ => {}
3960            }
3961        }
3962        RusotoError::Unknown(res)
3963    }
3964}
3965impl fmt::Display for ListReportsForReportGroupError {
3966    #[allow(unused_variables)]
3967    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3968        match *self {
3969            ListReportsForReportGroupError::InvalidInput(ref cause) => write!(f, "{}", cause),
3970            ListReportsForReportGroupError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
3971        }
3972    }
3973}
3974impl Error for ListReportsForReportGroupError {}
3975/// Errors returned by ListSharedProjects
3976#[derive(Debug, PartialEq)]
3977pub enum ListSharedProjectsError {
3978    /// <p>The input value that was provided is not valid.</p>
3979    InvalidInput(String),
3980}
3981
3982impl ListSharedProjectsError {
3983    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSharedProjectsError> {
3984        if let Some(err) = proto::json::Error::parse(&res) {
3985            match err.typ.as_str() {
3986                "InvalidInputException" => {
3987                    return RusotoError::Service(ListSharedProjectsError::InvalidInput(err.msg))
3988                }
3989                "ValidationException" => return RusotoError::Validation(err.msg),
3990                _ => {}
3991            }
3992        }
3993        RusotoError::Unknown(res)
3994    }
3995}
3996impl fmt::Display for ListSharedProjectsError {
3997    #[allow(unused_variables)]
3998    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3999        match *self {
4000            ListSharedProjectsError::InvalidInput(ref cause) => write!(f, "{}", cause),
4001        }
4002    }
4003}
4004impl Error for ListSharedProjectsError {}
4005/// Errors returned by ListSharedReportGroups
4006#[derive(Debug, PartialEq)]
4007pub enum ListSharedReportGroupsError {
4008    /// <p>The input value that was provided is not valid.</p>
4009    InvalidInput(String),
4010}
4011
4012impl ListSharedReportGroupsError {
4013    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSharedReportGroupsError> {
4014        if let Some(err) = proto::json::Error::parse(&res) {
4015            match err.typ.as_str() {
4016                "InvalidInputException" => {
4017                    return RusotoError::Service(ListSharedReportGroupsError::InvalidInput(err.msg))
4018                }
4019                "ValidationException" => return RusotoError::Validation(err.msg),
4020                _ => {}
4021            }
4022        }
4023        RusotoError::Unknown(res)
4024    }
4025}
4026impl fmt::Display for ListSharedReportGroupsError {
4027    #[allow(unused_variables)]
4028    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4029        match *self {
4030            ListSharedReportGroupsError::InvalidInput(ref cause) => write!(f, "{}", cause),
4031        }
4032    }
4033}
4034impl Error for ListSharedReportGroupsError {}
4035/// Errors returned by ListSourceCredentials
4036#[derive(Debug, PartialEq)]
4037pub enum ListSourceCredentialsError {
4038    /// <p>The input value that was provided is not valid.</p>
4039    InvalidInput(String),
4040}
4041
4042impl ListSourceCredentialsError {
4043    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListSourceCredentialsError> {
4044        if let Some(err) = proto::json::Error::parse(&res) {
4045            match err.typ.as_str() {
4046                "InvalidInputException" => {
4047                    return RusotoError::Service(ListSourceCredentialsError::InvalidInput(err.msg))
4048                }
4049                "ValidationException" => return RusotoError::Validation(err.msg),
4050                _ => {}
4051            }
4052        }
4053        RusotoError::Unknown(res)
4054    }
4055}
4056impl fmt::Display for ListSourceCredentialsError {
4057    #[allow(unused_variables)]
4058    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4059        match *self {
4060            ListSourceCredentialsError::InvalidInput(ref cause) => write!(f, "{}", cause),
4061        }
4062    }
4063}
4064impl Error for ListSourceCredentialsError {}
4065/// Errors returned by PutResourcePolicy
4066#[derive(Debug, PartialEq)]
4067pub enum PutResourcePolicyError {
4068    /// <p>The input value that was provided is not valid.</p>
4069    InvalidInput(String),
4070    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4071    ResourceNotFound(String),
4072}
4073
4074impl PutResourcePolicyError {
4075    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutResourcePolicyError> {
4076        if let Some(err) = proto::json::Error::parse(&res) {
4077            match err.typ.as_str() {
4078                "InvalidInputException" => {
4079                    return RusotoError::Service(PutResourcePolicyError::InvalidInput(err.msg))
4080                }
4081                "ResourceNotFoundException" => {
4082                    return RusotoError::Service(PutResourcePolicyError::ResourceNotFound(err.msg))
4083                }
4084                "ValidationException" => return RusotoError::Validation(err.msg),
4085                _ => {}
4086            }
4087        }
4088        RusotoError::Unknown(res)
4089    }
4090}
4091impl fmt::Display for PutResourcePolicyError {
4092    #[allow(unused_variables)]
4093    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4094        match *self {
4095            PutResourcePolicyError::InvalidInput(ref cause) => write!(f, "{}", cause),
4096            PutResourcePolicyError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4097        }
4098    }
4099}
4100impl Error for PutResourcePolicyError {}
4101/// Errors returned by RetryBuild
4102#[derive(Debug, PartialEq)]
4103pub enum RetryBuildError {
4104    /// <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
4105    AccountLimitExceeded(String),
4106    /// <p>The input value that was provided is not valid.</p>
4107    InvalidInput(String),
4108    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4109    ResourceNotFound(String),
4110}
4111
4112impl RetryBuildError {
4113    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RetryBuildError> {
4114        if let Some(err) = proto::json::Error::parse(&res) {
4115            match err.typ.as_str() {
4116                "AccountLimitExceededException" => {
4117                    return RusotoError::Service(RetryBuildError::AccountLimitExceeded(err.msg))
4118                }
4119                "InvalidInputException" => {
4120                    return RusotoError::Service(RetryBuildError::InvalidInput(err.msg))
4121                }
4122                "ResourceNotFoundException" => {
4123                    return RusotoError::Service(RetryBuildError::ResourceNotFound(err.msg))
4124                }
4125                "ValidationException" => return RusotoError::Validation(err.msg),
4126                _ => {}
4127            }
4128        }
4129        RusotoError::Unknown(res)
4130    }
4131}
4132impl fmt::Display for RetryBuildError {
4133    #[allow(unused_variables)]
4134    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4135        match *self {
4136            RetryBuildError::AccountLimitExceeded(ref cause) => write!(f, "{}", cause),
4137            RetryBuildError::InvalidInput(ref cause) => write!(f, "{}", cause),
4138            RetryBuildError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4139        }
4140    }
4141}
4142impl Error for RetryBuildError {}
4143/// Errors returned by RetryBuildBatch
4144#[derive(Debug, PartialEq)]
4145pub enum RetryBuildBatchError {
4146    /// <p>The input value that was provided is not valid.</p>
4147    InvalidInput(String),
4148    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4149    ResourceNotFound(String),
4150}
4151
4152impl RetryBuildBatchError {
4153    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RetryBuildBatchError> {
4154        if let Some(err) = proto::json::Error::parse(&res) {
4155            match err.typ.as_str() {
4156                "InvalidInputException" => {
4157                    return RusotoError::Service(RetryBuildBatchError::InvalidInput(err.msg))
4158                }
4159                "ResourceNotFoundException" => {
4160                    return RusotoError::Service(RetryBuildBatchError::ResourceNotFound(err.msg))
4161                }
4162                "ValidationException" => return RusotoError::Validation(err.msg),
4163                _ => {}
4164            }
4165        }
4166        RusotoError::Unknown(res)
4167    }
4168}
4169impl fmt::Display for RetryBuildBatchError {
4170    #[allow(unused_variables)]
4171    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4172        match *self {
4173            RetryBuildBatchError::InvalidInput(ref cause) => write!(f, "{}", cause),
4174            RetryBuildBatchError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4175        }
4176    }
4177}
4178impl Error for RetryBuildBatchError {}
4179/// Errors returned by StartBuild
4180#[derive(Debug, PartialEq)]
4181pub enum StartBuildError {
4182    /// <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
4183    AccountLimitExceeded(String),
4184    /// <p>The input value that was provided is not valid.</p>
4185    InvalidInput(String),
4186    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4187    ResourceNotFound(String),
4188}
4189
4190impl StartBuildError {
4191    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartBuildError> {
4192        if let Some(err) = proto::json::Error::parse(&res) {
4193            match err.typ.as_str() {
4194                "AccountLimitExceededException" => {
4195                    return RusotoError::Service(StartBuildError::AccountLimitExceeded(err.msg))
4196                }
4197                "InvalidInputException" => {
4198                    return RusotoError::Service(StartBuildError::InvalidInput(err.msg))
4199                }
4200                "ResourceNotFoundException" => {
4201                    return RusotoError::Service(StartBuildError::ResourceNotFound(err.msg))
4202                }
4203                "ValidationException" => return RusotoError::Validation(err.msg),
4204                _ => {}
4205            }
4206        }
4207        RusotoError::Unknown(res)
4208    }
4209}
4210impl fmt::Display for StartBuildError {
4211    #[allow(unused_variables)]
4212    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4213        match *self {
4214            StartBuildError::AccountLimitExceeded(ref cause) => write!(f, "{}", cause),
4215            StartBuildError::InvalidInput(ref cause) => write!(f, "{}", cause),
4216            StartBuildError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4217        }
4218    }
4219}
4220impl Error for StartBuildError {}
4221/// Errors returned by StartBuildBatch
4222#[derive(Debug, PartialEq)]
4223pub enum StartBuildBatchError {
4224    /// <p>The input value that was provided is not valid.</p>
4225    InvalidInput(String),
4226    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4227    ResourceNotFound(String),
4228}
4229
4230impl StartBuildBatchError {
4231    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartBuildBatchError> {
4232        if let Some(err) = proto::json::Error::parse(&res) {
4233            match err.typ.as_str() {
4234                "InvalidInputException" => {
4235                    return RusotoError::Service(StartBuildBatchError::InvalidInput(err.msg))
4236                }
4237                "ResourceNotFoundException" => {
4238                    return RusotoError::Service(StartBuildBatchError::ResourceNotFound(err.msg))
4239                }
4240                "ValidationException" => return RusotoError::Validation(err.msg),
4241                _ => {}
4242            }
4243        }
4244        RusotoError::Unknown(res)
4245    }
4246}
4247impl fmt::Display for StartBuildBatchError {
4248    #[allow(unused_variables)]
4249    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4250        match *self {
4251            StartBuildBatchError::InvalidInput(ref cause) => write!(f, "{}", cause),
4252            StartBuildBatchError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4253        }
4254    }
4255}
4256impl Error for StartBuildBatchError {}
4257/// Errors returned by StopBuild
4258#[derive(Debug, PartialEq)]
4259pub enum StopBuildError {
4260    /// <p>The input value that was provided is not valid.</p>
4261    InvalidInput(String),
4262    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4263    ResourceNotFound(String),
4264}
4265
4266impl StopBuildError {
4267    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopBuildError> {
4268        if let Some(err) = proto::json::Error::parse(&res) {
4269            match err.typ.as_str() {
4270                "InvalidInputException" => {
4271                    return RusotoError::Service(StopBuildError::InvalidInput(err.msg))
4272                }
4273                "ResourceNotFoundException" => {
4274                    return RusotoError::Service(StopBuildError::ResourceNotFound(err.msg))
4275                }
4276                "ValidationException" => return RusotoError::Validation(err.msg),
4277                _ => {}
4278            }
4279        }
4280        RusotoError::Unknown(res)
4281    }
4282}
4283impl fmt::Display for StopBuildError {
4284    #[allow(unused_variables)]
4285    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4286        match *self {
4287            StopBuildError::InvalidInput(ref cause) => write!(f, "{}", cause),
4288            StopBuildError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4289        }
4290    }
4291}
4292impl Error for StopBuildError {}
4293/// Errors returned by StopBuildBatch
4294#[derive(Debug, PartialEq)]
4295pub enum StopBuildBatchError {
4296    /// <p>The input value that was provided is not valid.</p>
4297    InvalidInput(String),
4298    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4299    ResourceNotFound(String),
4300}
4301
4302impl StopBuildBatchError {
4303    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopBuildBatchError> {
4304        if let Some(err) = proto::json::Error::parse(&res) {
4305            match err.typ.as_str() {
4306                "InvalidInputException" => {
4307                    return RusotoError::Service(StopBuildBatchError::InvalidInput(err.msg))
4308                }
4309                "ResourceNotFoundException" => {
4310                    return RusotoError::Service(StopBuildBatchError::ResourceNotFound(err.msg))
4311                }
4312                "ValidationException" => return RusotoError::Validation(err.msg),
4313                _ => {}
4314            }
4315        }
4316        RusotoError::Unknown(res)
4317    }
4318}
4319impl fmt::Display for StopBuildBatchError {
4320    #[allow(unused_variables)]
4321    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4322        match *self {
4323            StopBuildBatchError::InvalidInput(ref cause) => write!(f, "{}", cause),
4324            StopBuildBatchError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4325        }
4326    }
4327}
4328impl Error for StopBuildBatchError {}
4329/// Errors returned by UpdateProject
4330#[derive(Debug, PartialEq)]
4331pub enum UpdateProjectError {
4332    /// <p>The input value that was provided is not valid.</p>
4333    InvalidInput(String),
4334    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4335    ResourceNotFound(String),
4336}
4337
4338impl UpdateProjectError {
4339    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateProjectError> {
4340        if let Some(err) = proto::json::Error::parse(&res) {
4341            match err.typ.as_str() {
4342                "InvalidInputException" => {
4343                    return RusotoError::Service(UpdateProjectError::InvalidInput(err.msg))
4344                }
4345                "ResourceNotFoundException" => {
4346                    return RusotoError::Service(UpdateProjectError::ResourceNotFound(err.msg))
4347                }
4348                "ValidationException" => return RusotoError::Validation(err.msg),
4349                _ => {}
4350            }
4351        }
4352        RusotoError::Unknown(res)
4353    }
4354}
4355impl fmt::Display for UpdateProjectError {
4356    #[allow(unused_variables)]
4357    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4358        match *self {
4359            UpdateProjectError::InvalidInput(ref cause) => write!(f, "{}", cause),
4360            UpdateProjectError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4361        }
4362    }
4363}
4364impl Error for UpdateProjectError {}
4365/// Errors returned by UpdateReportGroup
4366#[derive(Debug, PartialEq)]
4367pub enum UpdateReportGroupError {
4368    /// <p>The input value that was provided is not valid.</p>
4369    InvalidInput(String),
4370    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4371    ResourceNotFound(String),
4372}
4373
4374impl UpdateReportGroupError {
4375    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateReportGroupError> {
4376        if let Some(err) = proto::json::Error::parse(&res) {
4377            match err.typ.as_str() {
4378                "InvalidInputException" => {
4379                    return RusotoError::Service(UpdateReportGroupError::InvalidInput(err.msg))
4380                }
4381                "ResourceNotFoundException" => {
4382                    return RusotoError::Service(UpdateReportGroupError::ResourceNotFound(err.msg))
4383                }
4384                "ValidationException" => return RusotoError::Validation(err.msg),
4385                _ => {}
4386            }
4387        }
4388        RusotoError::Unknown(res)
4389    }
4390}
4391impl fmt::Display for UpdateReportGroupError {
4392    #[allow(unused_variables)]
4393    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4394        match *self {
4395            UpdateReportGroupError::InvalidInput(ref cause) => write!(f, "{}", cause),
4396            UpdateReportGroupError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4397        }
4398    }
4399}
4400impl Error for UpdateReportGroupError {}
4401/// Errors returned by UpdateWebhook
4402#[derive(Debug, PartialEq)]
4403pub enum UpdateWebhookError {
4404    /// <p>The input value that was provided is not valid.</p>
4405    InvalidInput(String),
4406    /// <p>There was a problem with the underlying OAuth provider.</p>
4407    OAuthProvider(String),
4408    /// <p>The specified Amazon Web Services resource cannot be found.</p>
4409    ResourceNotFound(String),
4410}
4411
4412impl UpdateWebhookError {
4413    pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateWebhookError> {
4414        if let Some(err) = proto::json::Error::parse(&res) {
4415            match err.typ.as_str() {
4416                "InvalidInputException" => {
4417                    return RusotoError::Service(UpdateWebhookError::InvalidInput(err.msg))
4418                }
4419                "OAuthProviderException" => {
4420                    return RusotoError::Service(UpdateWebhookError::OAuthProvider(err.msg))
4421                }
4422                "ResourceNotFoundException" => {
4423                    return RusotoError::Service(UpdateWebhookError::ResourceNotFound(err.msg))
4424                }
4425                "ValidationException" => return RusotoError::Validation(err.msg),
4426                _ => {}
4427            }
4428        }
4429        RusotoError::Unknown(res)
4430    }
4431}
4432impl fmt::Display for UpdateWebhookError {
4433    #[allow(unused_variables)]
4434    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
4435        match *self {
4436            UpdateWebhookError::InvalidInput(ref cause) => write!(f, "{}", cause),
4437            UpdateWebhookError::OAuthProvider(ref cause) => write!(f, "{}", cause),
4438            UpdateWebhookError::ResourceNotFound(ref cause) => write!(f, "{}", cause),
4439        }
4440    }
4441}
4442impl Error for UpdateWebhookError {}
4443/// Trait representing the capabilities of the AWS CodeBuild API. AWS CodeBuild clients implement this trait.
4444#[async_trait]
4445pub trait CodeBuild {
4446    /// <p>Deletes one or more builds.</p>
4447    async fn batch_delete_builds(
4448        &self,
4449        input: BatchDeleteBuildsInput,
4450    ) -> Result<BatchDeleteBuildsOutput, RusotoError<BatchDeleteBuildsError>>;
4451
4452    /// <p>Retrieves information about one or more batch builds.</p>
4453    async fn batch_get_build_batches(
4454        &self,
4455        input: BatchGetBuildBatchesInput,
4456    ) -> Result<BatchGetBuildBatchesOutput, RusotoError<BatchGetBuildBatchesError>>;
4457
4458    /// <p>Gets information about one or more builds.</p>
4459    async fn batch_get_builds(
4460        &self,
4461        input: BatchGetBuildsInput,
4462    ) -> Result<BatchGetBuildsOutput, RusotoError<BatchGetBuildsError>>;
4463
4464    /// <p>Gets information about one or more build projects.</p>
4465    async fn batch_get_projects(
4466        &self,
4467        input: BatchGetProjectsInput,
4468    ) -> Result<BatchGetProjectsOutput, RusotoError<BatchGetProjectsError>>;
4469
4470    /// <p> Returns an array of report groups. </p>
4471    async fn batch_get_report_groups(
4472        &self,
4473        input: BatchGetReportGroupsInput,
4474    ) -> Result<BatchGetReportGroupsOutput, RusotoError<BatchGetReportGroupsError>>;
4475
4476    /// <p> Returns an array of reports. </p>
4477    async fn batch_get_reports(
4478        &self,
4479        input: BatchGetReportsInput,
4480    ) -> Result<BatchGetReportsOutput, RusotoError<BatchGetReportsError>>;
4481
4482    /// <p>Creates a build project.</p>
4483    async fn create_project(
4484        &self,
4485        input: CreateProjectInput,
4486    ) -> Result<CreateProjectOutput, RusotoError<CreateProjectError>>;
4487
4488    /// <p> Creates a report group. A report group contains a collection of reports. </p>
4489    async fn create_report_group(
4490        &self,
4491        input: CreateReportGroupInput,
4492    ) -> Result<CreateReportGroupOutput, RusotoError<CreateReportGroupError>>;
4493
4494    /// <p><p>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.</p> <important> <p>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 <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console">Change a Build Project&#39;s Settings</a>.</p> </important></p>
4495    async fn create_webhook(
4496        &self,
4497        input: CreateWebhookInput,
4498    ) -> Result<CreateWebhookOutput, RusotoError<CreateWebhookError>>;
4499
4500    /// <p>Deletes a batch build.</p>
4501    async fn delete_build_batch(
4502        &self,
4503        input: DeleteBuildBatchInput,
4504    ) -> Result<DeleteBuildBatchOutput, RusotoError<DeleteBuildBatchError>>;
4505
4506    /// <p> Deletes a build project. When you delete a project, its builds are not deleted. </p>
4507    async fn delete_project(
4508        &self,
4509        input: DeleteProjectInput,
4510    ) -> Result<DeleteProjectOutput, RusotoError<DeleteProjectError>>;
4511
4512    /// <p> Deletes a report. </p>
4513    async fn delete_report(
4514        &self,
4515        input: DeleteReportInput,
4516    ) -> Result<DeleteReportOutput, RusotoError<DeleteReportError>>;
4517
4518    /// <p>Deletes a report group. Before you delete a report group, you must delete its reports. </p>
4519    async fn delete_report_group(
4520        &self,
4521        input: DeleteReportGroupInput,
4522    ) -> Result<DeleteReportGroupOutput, RusotoError<DeleteReportGroupError>>;
4523
4524    /// <p> Deletes a resource policy that is identified by its resource ARN. </p>
4525    async fn delete_resource_policy(
4526        &self,
4527        input: DeleteResourcePolicyInput,
4528    ) -> Result<DeleteResourcePolicyOutput, RusotoError<DeleteResourcePolicyError>>;
4529
4530    /// <p> Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials. </p>
4531    async fn delete_source_credentials(
4532        &self,
4533        input: DeleteSourceCredentialsInput,
4534    ) -> Result<DeleteSourceCredentialsOutput, RusotoError<DeleteSourceCredentialsError>>;
4535
4536    /// <p>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.</p>
4537    async fn delete_webhook(
4538        &self,
4539        input: DeleteWebhookInput,
4540    ) -> Result<DeleteWebhookOutput, RusotoError<DeleteWebhookError>>;
4541
4542    /// <p>Retrieves one or more code coverage reports.</p>
4543    async fn describe_code_coverages(
4544        &self,
4545        input: DescribeCodeCoveragesInput,
4546    ) -> Result<DescribeCodeCoveragesOutput, RusotoError<DescribeCodeCoveragesError>>;
4547
4548    /// <p> Returns a list of details about test cases for a report. </p>
4549    async fn describe_test_cases(
4550        &self,
4551        input: DescribeTestCasesInput,
4552    ) -> Result<DescribeTestCasesOutput, RusotoError<DescribeTestCasesError>>;
4553
4554    /// <p>Analyzes and accumulates test report values for the specified test reports.</p>
4555    async fn get_report_group_trend(
4556        &self,
4557        input: GetReportGroupTrendInput,
4558    ) -> Result<GetReportGroupTrendOutput, RusotoError<GetReportGroupTrendError>>;
4559
4560    /// <p> Gets a resource policy that is identified by its resource ARN. </p>
4561    async fn get_resource_policy(
4562        &self,
4563        input: GetResourcePolicyInput,
4564    ) -> Result<GetResourcePolicyOutput, RusotoError<GetResourcePolicyError>>;
4565
4566    /// <p> Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. </p>
4567    async fn import_source_credentials(
4568        &self,
4569        input: ImportSourceCredentialsInput,
4570    ) -> Result<ImportSourceCredentialsOutput, RusotoError<ImportSourceCredentialsError>>;
4571
4572    /// <p>Resets the cache for a project.</p>
4573    async fn invalidate_project_cache(
4574        &self,
4575        input: InvalidateProjectCacheInput,
4576    ) -> Result<InvalidateProjectCacheOutput, RusotoError<InvalidateProjectCacheError>>;
4577
4578    /// <p>Retrieves the identifiers of your build batches in the current region.</p>
4579    async fn list_build_batches(
4580        &self,
4581        input: ListBuildBatchesInput,
4582    ) -> Result<ListBuildBatchesOutput, RusotoError<ListBuildBatchesError>>;
4583
4584    /// <p>Retrieves the identifiers of the build batches for a specific project.</p>
4585    async fn list_build_batches_for_project(
4586        &self,
4587        input: ListBuildBatchesForProjectInput,
4588    ) -> Result<ListBuildBatchesForProjectOutput, RusotoError<ListBuildBatchesForProjectError>>;
4589
4590    /// <p>Gets a list of build IDs, with each build ID representing a single build.</p>
4591    async fn list_builds(
4592        &self,
4593        input: ListBuildsInput,
4594    ) -> Result<ListBuildsOutput, RusotoError<ListBuildsError>>;
4595
4596    /// <p>Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.</p>
4597    async fn list_builds_for_project(
4598        &self,
4599        input: ListBuildsForProjectInput,
4600    ) -> Result<ListBuildsForProjectOutput, RusotoError<ListBuildsForProjectError>>;
4601
4602    /// <p>Gets information about Docker images that are managed by CodeBuild.</p>
4603    async fn list_curated_environment_images(
4604        &self,
4605    ) -> Result<ListCuratedEnvironmentImagesOutput, RusotoError<ListCuratedEnvironmentImagesError>>;
4606
4607    /// <p>Gets a list of build project names, with each build project name representing a single build project.</p>
4608    async fn list_projects(
4609        &self,
4610        input: ListProjectsInput,
4611    ) -> Result<ListProjectsOutput, RusotoError<ListProjectsError>>;
4612
4613    /// <p> Gets a list ARNs for the report groups in the current Amazon Web Services account. </p>
4614    async fn list_report_groups(
4615        &self,
4616        input: ListReportGroupsInput,
4617    ) -> Result<ListReportGroupsOutput, RusotoError<ListReportGroupsError>>;
4618
4619    /// <p> Returns a list of ARNs for the reports in the current Amazon Web Services account. </p>
4620    async fn list_reports(
4621        &self,
4622        input: ListReportsInput,
4623    ) -> Result<ListReportsOutput, RusotoError<ListReportsError>>;
4624
4625    /// <p> Returns a list of ARNs for the reports that belong to a <code>ReportGroup</code>. </p>
4626    async fn list_reports_for_report_group(
4627        &self,
4628        input: ListReportsForReportGroupInput,
4629    ) -> Result<ListReportsForReportGroupOutput, RusotoError<ListReportsForReportGroupError>>;
4630
4631    /// <p> Gets a list of projects that are shared with other Amazon Web Services accounts or users. </p>
4632    async fn list_shared_projects(
4633        &self,
4634        input: ListSharedProjectsInput,
4635    ) -> Result<ListSharedProjectsOutput, RusotoError<ListSharedProjectsError>>;
4636
4637    /// <p> Gets a list of report groups that are shared with other Amazon Web Services accounts or users. </p>
4638    async fn list_shared_report_groups(
4639        &self,
4640        input: ListSharedReportGroupsInput,
4641    ) -> Result<ListSharedReportGroupsOutput, RusotoError<ListSharedReportGroupsError>>;
4642
4643    /// <p> Returns a list of <code>SourceCredentialsInfo</code> objects. </p>
4644    async fn list_source_credentials(
4645        &self,
4646    ) -> Result<ListSourceCredentialsOutput, RusotoError<ListSourceCredentialsError>>;
4647
4648    /// <p> Stores a resource policy for the ARN of a <code>Project</code> or <code>ReportGroup</code> object. </p>
4649    async fn put_resource_policy(
4650        &self,
4651        input: PutResourcePolicyInput,
4652    ) -> Result<PutResourcePolicyOutput, RusotoError<PutResourcePolicyError>>;
4653
4654    /// <p>Restarts a build.</p>
4655    async fn retry_build(
4656        &self,
4657        input: RetryBuildInput,
4658    ) -> Result<RetryBuildOutput, RusotoError<RetryBuildError>>;
4659
4660    /// <p>Restarts a failed batch build. Only batch builds that have failed can be retried.</p>
4661    async fn retry_build_batch(
4662        &self,
4663        input: RetryBuildBatchInput,
4664    ) -> Result<RetryBuildBatchOutput, RusotoError<RetryBuildBatchError>>;
4665
4666    /// <p>Starts running a build.</p>
4667    async fn start_build(
4668        &self,
4669        input: StartBuildInput,
4670    ) -> Result<StartBuildOutput, RusotoError<StartBuildError>>;
4671
4672    /// <p>Starts a batch build for a project.</p>
4673    async fn start_build_batch(
4674        &self,
4675        input: StartBuildBatchInput,
4676    ) -> Result<StartBuildBatchOutput, RusotoError<StartBuildBatchError>>;
4677
4678    /// <p>Attempts to stop running a build.</p>
4679    async fn stop_build(
4680        &self,
4681        input: StopBuildInput,
4682    ) -> Result<StopBuildOutput, RusotoError<StopBuildError>>;
4683
4684    /// <p>Stops a running batch build.</p>
4685    async fn stop_build_batch(
4686        &self,
4687        input: StopBuildBatchInput,
4688    ) -> Result<StopBuildBatchOutput, RusotoError<StopBuildBatchError>>;
4689
4690    /// <p>Changes the settings of a build project.</p>
4691    async fn update_project(
4692        &self,
4693        input: UpdateProjectInput,
4694    ) -> Result<UpdateProjectOutput, RusotoError<UpdateProjectError>>;
4695
4696    /// <p> Updates a report group. </p>
4697    async fn update_report_group(
4698        &self,
4699        input: UpdateReportGroupInput,
4700    ) -> Result<UpdateReportGroupOutput, RusotoError<UpdateReportGroupError>>;
4701
4702    /// <p><p> Updates the webhook associated with an CodeBuild build project. </p> <note> <p> If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored. </p> </note></p>
4703    async fn update_webhook(
4704        &self,
4705        input: UpdateWebhookInput,
4706    ) -> Result<UpdateWebhookOutput, RusotoError<UpdateWebhookError>>;
4707}
4708/// A client for the AWS CodeBuild API.
4709#[derive(Clone)]
4710pub struct CodeBuildClient {
4711    client: Client,
4712    region: region::Region,
4713}
4714
4715impl CodeBuildClient {
4716    /// Creates a client backed by the default tokio event loop.
4717    ///
4718    /// The client will use the default credentials provider and tls client.
4719    pub fn new(region: region::Region) -> CodeBuildClient {
4720        CodeBuildClient {
4721            client: Client::shared(),
4722            region,
4723        }
4724    }
4725
4726    pub fn new_with<P, D>(
4727        request_dispatcher: D,
4728        credentials_provider: P,
4729        region: region::Region,
4730    ) -> CodeBuildClient
4731    where
4732        P: ProvideAwsCredentials + Send + Sync + 'static,
4733        D: DispatchSignedRequest + Send + Sync + 'static,
4734    {
4735        CodeBuildClient {
4736            client: Client::new_with(credentials_provider, request_dispatcher),
4737            region,
4738        }
4739    }
4740
4741    pub fn new_with_client(client: Client, region: region::Region) -> CodeBuildClient {
4742        CodeBuildClient { client, region }
4743    }
4744}
4745
4746#[async_trait]
4747impl CodeBuild for CodeBuildClient {
4748    /// <p>Deletes one or more builds.</p>
4749    async fn batch_delete_builds(
4750        &self,
4751        input: BatchDeleteBuildsInput,
4752    ) -> Result<BatchDeleteBuildsOutput, RusotoError<BatchDeleteBuildsError>> {
4753        let mut request = self.new_signed_request("POST", "/");
4754        request.add_header("x-amz-target", "CodeBuild_20161006.BatchDeleteBuilds");
4755        let encoded = serde_json::to_string(&input).unwrap();
4756        request.set_payload(Some(encoded));
4757
4758        let response = self
4759            .sign_and_dispatch(request, BatchDeleteBuildsError::from_response)
4760            .await?;
4761        let mut response = response;
4762        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4763        proto::json::ResponsePayload::new(&response).deserialize::<BatchDeleteBuildsOutput, _>()
4764    }
4765
4766    /// <p>Retrieves information about one or more batch builds.</p>
4767    async fn batch_get_build_batches(
4768        &self,
4769        input: BatchGetBuildBatchesInput,
4770    ) -> Result<BatchGetBuildBatchesOutput, RusotoError<BatchGetBuildBatchesError>> {
4771        let mut request = self.new_signed_request("POST", "/");
4772        request.add_header("x-amz-target", "CodeBuild_20161006.BatchGetBuildBatches");
4773        let encoded = serde_json::to_string(&input).unwrap();
4774        request.set_payload(Some(encoded));
4775
4776        let response = self
4777            .sign_and_dispatch(request, BatchGetBuildBatchesError::from_response)
4778            .await?;
4779        let mut response = response;
4780        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4781        proto::json::ResponsePayload::new(&response).deserialize::<BatchGetBuildBatchesOutput, _>()
4782    }
4783
4784    /// <p>Gets information about one or more builds.</p>
4785    async fn batch_get_builds(
4786        &self,
4787        input: BatchGetBuildsInput,
4788    ) -> Result<BatchGetBuildsOutput, RusotoError<BatchGetBuildsError>> {
4789        let mut request = self.new_signed_request("POST", "/");
4790        request.add_header("x-amz-target", "CodeBuild_20161006.BatchGetBuilds");
4791        let encoded = serde_json::to_string(&input).unwrap();
4792        request.set_payload(Some(encoded));
4793
4794        let response = self
4795            .sign_and_dispatch(request, BatchGetBuildsError::from_response)
4796            .await?;
4797        let mut response = response;
4798        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4799        proto::json::ResponsePayload::new(&response).deserialize::<BatchGetBuildsOutput, _>()
4800    }
4801
4802    /// <p>Gets information about one or more build projects.</p>
4803    async fn batch_get_projects(
4804        &self,
4805        input: BatchGetProjectsInput,
4806    ) -> Result<BatchGetProjectsOutput, RusotoError<BatchGetProjectsError>> {
4807        let mut request = self.new_signed_request("POST", "/");
4808        request.add_header("x-amz-target", "CodeBuild_20161006.BatchGetProjects");
4809        let encoded = serde_json::to_string(&input).unwrap();
4810        request.set_payload(Some(encoded));
4811
4812        let response = self
4813            .sign_and_dispatch(request, BatchGetProjectsError::from_response)
4814            .await?;
4815        let mut response = response;
4816        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4817        proto::json::ResponsePayload::new(&response).deserialize::<BatchGetProjectsOutput, _>()
4818    }
4819
4820    /// <p> Returns an array of report groups. </p>
4821    async fn batch_get_report_groups(
4822        &self,
4823        input: BatchGetReportGroupsInput,
4824    ) -> Result<BatchGetReportGroupsOutput, RusotoError<BatchGetReportGroupsError>> {
4825        let mut request = self.new_signed_request("POST", "/");
4826        request.add_header("x-amz-target", "CodeBuild_20161006.BatchGetReportGroups");
4827        let encoded = serde_json::to_string(&input).unwrap();
4828        request.set_payload(Some(encoded));
4829
4830        let response = self
4831            .sign_and_dispatch(request, BatchGetReportGroupsError::from_response)
4832            .await?;
4833        let mut response = response;
4834        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4835        proto::json::ResponsePayload::new(&response).deserialize::<BatchGetReportGroupsOutput, _>()
4836    }
4837
4838    /// <p> Returns an array of reports. </p>
4839    async fn batch_get_reports(
4840        &self,
4841        input: BatchGetReportsInput,
4842    ) -> Result<BatchGetReportsOutput, RusotoError<BatchGetReportsError>> {
4843        let mut request = self.new_signed_request("POST", "/");
4844        request.add_header("x-amz-target", "CodeBuild_20161006.BatchGetReports");
4845        let encoded = serde_json::to_string(&input).unwrap();
4846        request.set_payload(Some(encoded));
4847
4848        let response = self
4849            .sign_and_dispatch(request, BatchGetReportsError::from_response)
4850            .await?;
4851        let mut response = response;
4852        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4853        proto::json::ResponsePayload::new(&response).deserialize::<BatchGetReportsOutput, _>()
4854    }
4855
4856    /// <p>Creates a build project.</p>
4857    async fn create_project(
4858        &self,
4859        input: CreateProjectInput,
4860    ) -> Result<CreateProjectOutput, RusotoError<CreateProjectError>> {
4861        let mut request = self.new_signed_request("POST", "/");
4862        request.add_header("x-amz-target", "CodeBuild_20161006.CreateProject");
4863        let encoded = serde_json::to_string(&input).unwrap();
4864        request.set_payload(Some(encoded));
4865
4866        let response = self
4867            .sign_and_dispatch(request, CreateProjectError::from_response)
4868            .await?;
4869        let mut response = response;
4870        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4871        proto::json::ResponsePayload::new(&response).deserialize::<CreateProjectOutput, _>()
4872    }
4873
4874    /// <p> Creates a report group. A report group contains a collection of reports. </p>
4875    async fn create_report_group(
4876        &self,
4877        input: CreateReportGroupInput,
4878    ) -> Result<CreateReportGroupOutput, RusotoError<CreateReportGroupError>> {
4879        let mut request = self.new_signed_request("POST", "/");
4880        request.add_header("x-amz-target", "CodeBuild_20161006.CreateReportGroup");
4881        let encoded = serde_json::to_string(&input).unwrap();
4882        request.set_payload(Some(encoded));
4883
4884        let response = self
4885            .sign_and_dispatch(request, CreateReportGroupError::from_response)
4886            .await?;
4887        let mut response = response;
4888        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4889        proto::json::ResponsePayload::new(&response).deserialize::<CreateReportGroupOutput, _>()
4890    }
4891
4892    /// <p><p>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.</p> <important> <p>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 <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console">Change a Build Project&#39;s Settings</a>.</p> </important></p>
4893    async fn create_webhook(
4894        &self,
4895        input: CreateWebhookInput,
4896    ) -> Result<CreateWebhookOutput, RusotoError<CreateWebhookError>> {
4897        let mut request = self.new_signed_request("POST", "/");
4898        request.add_header("x-amz-target", "CodeBuild_20161006.CreateWebhook");
4899        let encoded = serde_json::to_string(&input).unwrap();
4900        request.set_payload(Some(encoded));
4901
4902        let response = self
4903            .sign_and_dispatch(request, CreateWebhookError::from_response)
4904            .await?;
4905        let mut response = response;
4906        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4907        proto::json::ResponsePayload::new(&response).deserialize::<CreateWebhookOutput, _>()
4908    }
4909
4910    /// <p>Deletes a batch build.</p>
4911    async fn delete_build_batch(
4912        &self,
4913        input: DeleteBuildBatchInput,
4914    ) -> Result<DeleteBuildBatchOutput, RusotoError<DeleteBuildBatchError>> {
4915        let mut request = self.new_signed_request("POST", "/");
4916        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteBuildBatch");
4917        let encoded = serde_json::to_string(&input).unwrap();
4918        request.set_payload(Some(encoded));
4919
4920        let response = self
4921            .sign_and_dispatch(request, DeleteBuildBatchError::from_response)
4922            .await?;
4923        let mut response = response;
4924        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4925        proto::json::ResponsePayload::new(&response).deserialize::<DeleteBuildBatchOutput, _>()
4926    }
4927
4928    /// <p> Deletes a build project. When you delete a project, its builds are not deleted. </p>
4929    async fn delete_project(
4930        &self,
4931        input: DeleteProjectInput,
4932    ) -> Result<DeleteProjectOutput, RusotoError<DeleteProjectError>> {
4933        let mut request = self.new_signed_request("POST", "/");
4934        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteProject");
4935        let encoded = serde_json::to_string(&input).unwrap();
4936        request.set_payload(Some(encoded));
4937
4938        let response = self
4939            .sign_and_dispatch(request, DeleteProjectError::from_response)
4940            .await?;
4941        let mut response = response;
4942        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4943        proto::json::ResponsePayload::new(&response).deserialize::<DeleteProjectOutput, _>()
4944    }
4945
4946    /// <p> Deletes a report. </p>
4947    async fn delete_report(
4948        &self,
4949        input: DeleteReportInput,
4950    ) -> Result<DeleteReportOutput, RusotoError<DeleteReportError>> {
4951        let mut request = self.new_signed_request("POST", "/");
4952        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteReport");
4953        let encoded = serde_json::to_string(&input).unwrap();
4954        request.set_payload(Some(encoded));
4955
4956        let response = self
4957            .sign_and_dispatch(request, DeleteReportError::from_response)
4958            .await?;
4959        let mut response = response;
4960        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4961        proto::json::ResponsePayload::new(&response).deserialize::<DeleteReportOutput, _>()
4962    }
4963
4964    /// <p>Deletes a report group. Before you delete a report group, you must delete its reports. </p>
4965    async fn delete_report_group(
4966        &self,
4967        input: DeleteReportGroupInput,
4968    ) -> Result<DeleteReportGroupOutput, RusotoError<DeleteReportGroupError>> {
4969        let mut request = self.new_signed_request("POST", "/");
4970        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteReportGroup");
4971        let encoded = serde_json::to_string(&input).unwrap();
4972        request.set_payload(Some(encoded));
4973
4974        let response = self
4975            .sign_and_dispatch(request, DeleteReportGroupError::from_response)
4976            .await?;
4977        let mut response = response;
4978        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4979        proto::json::ResponsePayload::new(&response).deserialize::<DeleteReportGroupOutput, _>()
4980    }
4981
4982    /// <p> Deletes a resource policy that is identified by its resource ARN. </p>
4983    async fn delete_resource_policy(
4984        &self,
4985        input: DeleteResourcePolicyInput,
4986    ) -> Result<DeleteResourcePolicyOutput, RusotoError<DeleteResourcePolicyError>> {
4987        let mut request = self.new_signed_request("POST", "/");
4988        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteResourcePolicy");
4989        let encoded = serde_json::to_string(&input).unwrap();
4990        request.set_payload(Some(encoded));
4991
4992        let response = self
4993            .sign_and_dispatch(request, DeleteResourcePolicyError::from_response)
4994            .await?;
4995        let mut response = response;
4996        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
4997        proto::json::ResponsePayload::new(&response).deserialize::<DeleteResourcePolicyOutput, _>()
4998    }
4999
5000    /// <p> Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials. </p>
5001    async fn delete_source_credentials(
5002        &self,
5003        input: DeleteSourceCredentialsInput,
5004    ) -> Result<DeleteSourceCredentialsOutput, RusotoError<DeleteSourceCredentialsError>> {
5005        let mut request = self.new_signed_request("POST", "/");
5006        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteSourceCredentials");
5007        let encoded = serde_json::to_string(&input).unwrap();
5008        request.set_payload(Some(encoded));
5009
5010        let response = self
5011            .sign_and_dispatch(request, DeleteSourceCredentialsError::from_response)
5012            .await?;
5013        let mut response = response;
5014        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5015        proto::json::ResponsePayload::new(&response)
5016            .deserialize::<DeleteSourceCredentialsOutput, _>()
5017    }
5018
5019    /// <p>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.</p>
5020    async fn delete_webhook(
5021        &self,
5022        input: DeleteWebhookInput,
5023    ) -> Result<DeleteWebhookOutput, RusotoError<DeleteWebhookError>> {
5024        let mut request = self.new_signed_request("POST", "/");
5025        request.add_header("x-amz-target", "CodeBuild_20161006.DeleteWebhook");
5026        let encoded = serde_json::to_string(&input).unwrap();
5027        request.set_payload(Some(encoded));
5028
5029        let response = self
5030            .sign_and_dispatch(request, DeleteWebhookError::from_response)
5031            .await?;
5032        let mut response = response;
5033        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5034        proto::json::ResponsePayload::new(&response).deserialize::<DeleteWebhookOutput, _>()
5035    }
5036
5037    /// <p>Retrieves one or more code coverage reports.</p>
5038    async fn describe_code_coverages(
5039        &self,
5040        input: DescribeCodeCoveragesInput,
5041    ) -> Result<DescribeCodeCoveragesOutput, RusotoError<DescribeCodeCoveragesError>> {
5042        let mut request = self.new_signed_request("POST", "/");
5043        request.add_header("x-amz-target", "CodeBuild_20161006.DescribeCodeCoverages");
5044        let encoded = serde_json::to_string(&input).unwrap();
5045        request.set_payload(Some(encoded));
5046
5047        let response = self
5048            .sign_and_dispatch(request, DescribeCodeCoveragesError::from_response)
5049            .await?;
5050        let mut response = response;
5051        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5052        proto::json::ResponsePayload::new(&response).deserialize::<DescribeCodeCoveragesOutput, _>()
5053    }
5054
5055    /// <p> Returns a list of details about test cases for a report. </p>
5056    async fn describe_test_cases(
5057        &self,
5058        input: DescribeTestCasesInput,
5059    ) -> Result<DescribeTestCasesOutput, RusotoError<DescribeTestCasesError>> {
5060        let mut request = self.new_signed_request("POST", "/");
5061        request.add_header("x-amz-target", "CodeBuild_20161006.DescribeTestCases");
5062        let encoded = serde_json::to_string(&input).unwrap();
5063        request.set_payload(Some(encoded));
5064
5065        let response = self
5066            .sign_and_dispatch(request, DescribeTestCasesError::from_response)
5067            .await?;
5068        let mut response = response;
5069        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5070        proto::json::ResponsePayload::new(&response).deserialize::<DescribeTestCasesOutput, _>()
5071    }
5072
5073    /// <p>Analyzes and accumulates test report values for the specified test reports.</p>
5074    async fn get_report_group_trend(
5075        &self,
5076        input: GetReportGroupTrendInput,
5077    ) -> Result<GetReportGroupTrendOutput, RusotoError<GetReportGroupTrendError>> {
5078        let mut request = self.new_signed_request("POST", "/");
5079        request.add_header("x-amz-target", "CodeBuild_20161006.GetReportGroupTrend");
5080        let encoded = serde_json::to_string(&input).unwrap();
5081        request.set_payload(Some(encoded));
5082
5083        let response = self
5084            .sign_and_dispatch(request, GetReportGroupTrendError::from_response)
5085            .await?;
5086        let mut response = response;
5087        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5088        proto::json::ResponsePayload::new(&response).deserialize::<GetReportGroupTrendOutput, _>()
5089    }
5090
5091    /// <p> Gets a resource policy that is identified by its resource ARN. </p>
5092    async fn get_resource_policy(
5093        &self,
5094        input: GetResourcePolicyInput,
5095    ) -> Result<GetResourcePolicyOutput, RusotoError<GetResourcePolicyError>> {
5096        let mut request = self.new_signed_request("POST", "/");
5097        request.add_header("x-amz-target", "CodeBuild_20161006.GetResourcePolicy");
5098        let encoded = serde_json::to_string(&input).unwrap();
5099        request.set_payload(Some(encoded));
5100
5101        let response = self
5102            .sign_and_dispatch(request, GetResourcePolicyError::from_response)
5103            .await?;
5104        let mut response = response;
5105        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5106        proto::json::ResponsePayload::new(&response).deserialize::<GetResourcePolicyOutput, _>()
5107    }
5108
5109    /// <p> Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. </p>
5110    async fn import_source_credentials(
5111        &self,
5112        input: ImportSourceCredentialsInput,
5113    ) -> Result<ImportSourceCredentialsOutput, RusotoError<ImportSourceCredentialsError>> {
5114        let mut request = self.new_signed_request("POST", "/");
5115        request.add_header("x-amz-target", "CodeBuild_20161006.ImportSourceCredentials");
5116        let encoded = serde_json::to_string(&input).unwrap();
5117        request.set_payload(Some(encoded));
5118
5119        let response = self
5120            .sign_and_dispatch(request, ImportSourceCredentialsError::from_response)
5121            .await?;
5122        let mut response = response;
5123        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5124        proto::json::ResponsePayload::new(&response)
5125            .deserialize::<ImportSourceCredentialsOutput, _>()
5126    }
5127
5128    /// <p>Resets the cache for a project.</p>
5129    async fn invalidate_project_cache(
5130        &self,
5131        input: InvalidateProjectCacheInput,
5132    ) -> Result<InvalidateProjectCacheOutput, RusotoError<InvalidateProjectCacheError>> {
5133        let mut request = self.new_signed_request("POST", "/");
5134        request.add_header("x-amz-target", "CodeBuild_20161006.InvalidateProjectCache");
5135        let encoded = serde_json::to_string(&input).unwrap();
5136        request.set_payload(Some(encoded));
5137
5138        let response = self
5139            .sign_and_dispatch(request, InvalidateProjectCacheError::from_response)
5140            .await?;
5141        let mut response = response;
5142        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5143        proto::json::ResponsePayload::new(&response)
5144            .deserialize::<InvalidateProjectCacheOutput, _>()
5145    }
5146
5147    /// <p>Retrieves the identifiers of your build batches in the current region.</p>
5148    async fn list_build_batches(
5149        &self,
5150        input: ListBuildBatchesInput,
5151    ) -> Result<ListBuildBatchesOutput, RusotoError<ListBuildBatchesError>> {
5152        let mut request = self.new_signed_request("POST", "/");
5153        request.add_header("x-amz-target", "CodeBuild_20161006.ListBuildBatches");
5154        let encoded = serde_json::to_string(&input).unwrap();
5155        request.set_payload(Some(encoded));
5156
5157        let response = self
5158            .sign_and_dispatch(request, ListBuildBatchesError::from_response)
5159            .await?;
5160        let mut response = response;
5161        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5162        proto::json::ResponsePayload::new(&response).deserialize::<ListBuildBatchesOutput, _>()
5163    }
5164
5165    /// <p>Retrieves the identifiers of the build batches for a specific project.</p>
5166    async fn list_build_batches_for_project(
5167        &self,
5168        input: ListBuildBatchesForProjectInput,
5169    ) -> Result<ListBuildBatchesForProjectOutput, RusotoError<ListBuildBatchesForProjectError>>
5170    {
5171        let mut request = self.new_signed_request("POST", "/");
5172        request.add_header(
5173            "x-amz-target",
5174            "CodeBuild_20161006.ListBuildBatchesForProject",
5175        );
5176        let encoded = serde_json::to_string(&input).unwrap();
5177        request.set_payload(Some(encoded));
5178
5179        let response = self
5180            .sign_and_dispatch(request, ListBuildBatchesForProjectError::from_response)
5181            .await?;
5182        let mut response = response;
5183        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5184        proto::json::ResponsePayload::new(&response)
5185            .deserialize::<ListBuildBatchesForProjectOutput, _>()
5186    }
5187
5188    /// <p>Gets a list of build IDs, with each build ID representing a single build.</p>
5189    async fn list_builds(
5190        &self,
5191        input: ListBuildsInput,
5192    ) -> Result<ListBuildsOutput, RusotoError<ListBuildsError>> {
5193        let mut request = self.new_signed_request("POST", "/");
5194        request.add_header("x-amz-target", "CodeBuild_20161006.ListBuilds");
5195        let encoded = serde_json::to_string(&input).unwrap();
5196        request.set_payload(Some(encoded));
5197
5198        let response = self
5199            .sign_and_dispatch(request, ListBuildsError::from_response)
5200            .await?;
5201        let mut response = response;
5202        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5203        proto::json::ResponsePayload::new(&response).deserialize::<ListBuildsOutput, _>()
5204    }
5205
5206    /// <p>Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.</p>
5207    async fn list_builds_for_project(
5208        &self,
5209        input: ListBuildsForProjectInput,
5210    ) -> Result<ListBuildsForProjectOutput, RusotoError<ListBuildsForProjectError>> {
5211        let mut request = self.new_signed_request("POST", "/");
5212        request.add_header("x-amz-target", "CodeBuild_20161006.ListBuildsForProject");
5213        let encoded = serde_json::to_string(&input).unwrap();
5214        request.set_payload(Some(encoded));
5215
5216        let response = self
5217            .sign_and_dispatch(request, ListBuildsForProjectError::from_response)
5218            .await?;
5219        let mut response = response;
5220        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5221        proto::json::ResponsePayload::new(&response).deserialize::<ListBuildsForProjectOutput, _>()
5222    }
5223
5224    /// <p>Gets information about Docker images that are managed by CodeBuild.</p>
5225    async fn list_curated_environment_images(
5226        &self,
5227    ) -> Result<ListCuratedEnvironmentImagesOutput, RusotoError<ListCuratedEnvironmentImagesError>>
5228    {
5229        let mut request = self.new_signed_request("POST", "/");
5230        request.add_header(
5231            "x-amz-target",
5232            "CodeBuild_20161006.ListCuratedEnvironmentImages",
5233        );
5234        request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
5235
5236        let response = self
5237            .sign_and_dispatch(request, ListCuratedEnvironmentImagesError::from_response)
5238            .await?;
5239        let mut response = response;
5240        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5241        proto::json::ResponsePayload::new(&response)
5242            .deserialize::<ListCuratedEnvironmentImagesOutput, _>()
5243    }
5244
5245    /// <p>Gets a list of build project names, with each build project name representing a single build project.</p>
5246    async fn list_projects(
5247        &self,
5248        input: ListProjectsInput,
5249    ) -> Result<ListProjectsOutput, RusotoError<ListProjectsError>> {
5250        let mut request = self.new_signed_request("POST", "/");
5251        request.add_header("x-amz-target", "CodeBuild_20161006.ListProjects");
5252        let encoded = serde_json::to_string(&input).unwrap();
5253        request.set_payload(Some(encoded));
5254
5255        let response = self
5256            .sign_and_dispatch(request, ListProjectsError::from_response)
5257            .await?;
5258        let mut response = response;
5259        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5260        proto::json::ResponsePayload::new(&response).deserialize::<ListProjectsOutput, _>()
5261    }
5262
5263    /// <p> Gets a list ARNs for the report groups in the current Amazon Web Services account. </p>
5264    async fn list_report_groups(
5265        &self,
5266        input: ListReportGroupsInput,
5267    ) -> Result<ListReportGroupsOutput, RusotoError<ListReportGroupsError>> {
5268        let mut request = self.new_signed_request("POST", "/");
5269        request.add_header("x-amz-target", "CodeBuild_20161006.ListReportGroups");
5270        let encoded = serde_json::to_string(&input).unwrap();
5271        request.set_payload(Some(encoded));
5272
5273        let response = self
5274            .sign_and_dispatch(request, ListReportGroupsError::from_response)
5275            .await?;
5276        let mut response = response;
5277        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5278        proto::json::ResponsePayload::new(&response).deserialize::<ListReportGroupsOutput, _>()
5279    }
5280
5281    /// <p> Returns a list of ARNs for the reports in the current Amazon Web Services account. </p>
5282    async fn list_reports(
5283        &self,
5284        input: ListReportsInput,
5285    ) -> Result<ListReportsOutput, RusotoError<ListReportsError>> {
5286        let mut request = self.new_signed_request("POST", "/");
5287        request.add_header("x-amz-target", "CodeBuild_20161006.ListReports");
5288        let encoded = serde_json::to_string(&input).unwrap();
5289        request.set_payload(Some(encoded));
5290
5291        let response = self
5292            .sign_and_dispatch(request, ListReportsError::from_response)
5293            .await?;
5294        let mut response = response;
5295        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5296        proto::json::ResponsePayload::new(&response).deserialize::<ListReportsOutput, _>()
5297    }
5298
5299    /// <p> Returns a list of ARNs for the reports that belong to a <code>ReportGroup</code>. </p>
5300    async fn list_reports_for_report_group(
5301        &self,
5302        input: ListReportsForReportGroupInput,
5303    ) -> Result<ListReportsForReportGroupOutput, RusotoError<ListReportsForReportGroupError>> {
5304        let mut request = self.new_signed_request("POST", "/");
5305        request.add_header(
5306            "x-amz-target",
5307            "CodeBuild_20161006.ListReportsForReportGroup",
5308        );
5309        let encoded = serde_json::to_string(&input).unwrap();
5310        request.set_payload(Some(encoded));
5311
5312        let response = self
5313            .sign_and_dispatch(request, ListReportsForReportGroupError::from_response)
5314            .await?;
5315        let mut response = response;
5316        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5317        proto::json::ResponsePayload::new(&response)
5318            .deserialize::<ListReportsForReportGroupOutput, _>()
5319    }
5320
5321    /// <p> Gets a list of projects that are shared with other Amazon Web Services accounts or users. </p>
5322    async fn list_shared_projects(
5323        &self,
5324        input: ListSharedProjectsInput,
5325    ) -> Result<ListSharedProjectsOutput, RusotoError<ListSharedProjectsError>> {
5326        let mut request = self.new_signed_request("POST", "/");
5327        request.add_header("x-amz-target", "CodeBuild_20161006.ListSharedProjects");
5328        let encoded = serde_json::to_string(&input).unwrap();
5329        request.set_payload(Some(encoded));
5330
5331        let response = self
5332            .sign_and_dispatch(request, ListSharedProjectsError::from_response)
5333            .await?;
5334        let mut response = response;
5335        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5336        proto::json::ResponsePayload::new(&response).deserialize::<ListSharedProjectsOutput, _>()
5337    }
5338
5339    /// <p> Gets a list of report groups that are shared with other Amazon Web Services accounts or users. </p>
5340    async fn list_shared_report_groups(
5341        &self,
5342        input: ListSharedReportGroupsInput,
5343    ) -> Result<ListSharedReportGroupsOutput, RusotoError<ListSharedReportGroupsError>> {
5344        let mut request = self.new_signed_request("POST", "/");
5345        request.add_header("x-amz-target", "CodeBuild_20161006.ListSharedReportGroups");
5346        let encoded = serde_json::to_string(&input).unwrap();
5347        request.set_payload(Some(encoded));
5348
5349        let response = self
5350            .sign_and_dispatch(request, ListSharedReportGroupsError::from_response)
5351            .await?;
5352        let mut response = response;
5353        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5354        proto::json::ResponsePayload::new(&response)
5355            .deserialize::<ListSharedReportGroupsOutput, _>()
5356    }
5357
5358    /// <p> Returns a list of <code>SourceCredentialsInfo</code> objects. </p>
5359    async fn list_source_credentials(
5360        &self,
5361    ) -> Result<ListSourceCredentialsOutput, RusotoError<ListSourceCredentialsError>> {
5362        let mut request = self.new_signed_request("POST", "/");
5363        request.add_header("x-amz-target", "CodeBuild_20161006.ListSourceCredentials");
5364        request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
5365
5366        let response = self
5367            .sign_and_dispatch(request, ListSourceCredentialsError::from_response)
5368            .await?;
5369        let mut response = response;
5370        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5371        proto::json::ResponsePayload::new(&response).deserialize::<ListSourceCredentialsOutput, _>()
5372    }
5373
5374    /// <p> Stores a resource policy for the ARN of a <code>Project</code> or <code>ReportGroup</code> object. </p>
5375    async fn put_resource_policy(
5376        &self,
5377        input: PutResourcePolicyInput,
5378    ) -> Result<PutResourcePolicyOutput, RusotoError<PutResourcePolicyError>> {
5379        let mut request = self.new_signed_request("POST", "/");
5380        request.add_header("x-amz-target", "CodeBuild_20161006.PutResourcePolicy");
5381        let encoded = serde_json::to_string(&input).unwrap();
5382        request.set_payload(Some(encoded));
5383
5384        let response = self
5385            .sign_and_dispatch(request, PutResourcePolicyError::from_response)
5386            .await?;
5387        let mut response = response;
5388        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5389        proto::json::ResponsePayload::new(&response).deserialize::<PutResourcePolicyOutput, _>()
5390    }
5391
5392    /// <p>Restarts a build.</p>
5393    async fn retry_build(
5394        &self,
5395        input: RetryBuildInput,
5396    ) -> Result<RetryBuildOutput, RusotoError<RetryBuildError>> {
5397        let mut request = self.new_signed_request("POST", "/");
5398        request.add_header("x-amz-target", "CodeBuild_20161006.RetryBuild");
5399        let encoded = serde_json::to_string(&input).unwrap();
5400        request.set_payload(Some(encoded));
5401
5402        let response = self
5403            .sign_and_dispatch(request, RetryBuildError::from_response)
5404            .await?;
5405        let mut response = response;
5406        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5407        proto::json::ResponsePayload::new(&response).deserialize::<RetryBuildOutput, _>()
5408    }
5409
5410    /// <p>Restarts a failed batch build. Only batch builds that have failed can be retried.</p>
5411    async fn retry_build_batch(
5412        &self,
5413        input: RetryBuildBatchInput,
5414    ) -> Result<RetryBuildBatchOutput, RusotoError<RetryBuildBatchError>> {
5415        let mut request = self.new_signed_request("POST", "/");
5416        request.add_header("x-amz-target", "CodeBuild_20161006.RetryBuildBatch");
5417        let encoded = serde_json::to_string(&input).unwrap();
5418        request.set_payload(Some(encoded));
5419
5420        let response = self
5421            .sign_and_dispatch(request, RetryBuildBatchError::from_response)
5422            .await?;
5423        let mut response = response;
5424        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5425        proto::json::ResponsePayload::new(&response).deserialize::<RetryBuildBatchOutput, _>()
5426    }
5427
5428    /// <p>Starts running a build.</p>
5429    async fn start_build(
5430        &self,
5431        input: StartBuildInput,
5432    ) -> Result<StartBuildOutput, RusotoError<StartBuildError>> {
5433        let mut request = self.new_signed_request("POST", "/");
5434        request.add_header("x-amz-target", "CodeBuild_20161006.StartBuild");
5435        let encoded = serde_json::to_string(&input).unwrap();
5436        request.set_payload(Some(encoded));
5437
5438        let response = self
5439            .sign_and_dispatch(request, StartBuildError::from_response)
5440            .await?;
5441        let mut response = response;
5442        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5443        proto::json::ResponsePayload::new(&response).deserialize::<StartBuildOutput, _>()
5444    }
5445
5446    /// <p>Starts a batch build for a project.</p>
5447    async fn start_build_batch(
5448        &self,
5449        input: StartBuildBatchInput,
5450    ) -> Result<StartBuildBatchOutput, RusotoError<StartBuildBatchError>> {
5451        let mut request = self.new_signed_request("POST", "/");
5452        request.add_header("x-amz-target", "CodeBuild_20161006.StartBuildBatch");
5453        let encoded = serde_json::to_string(&input).unwrap();
5454        request.set_payload(Some(encoded));
5455
5456        let response = self
5457            .sign_and_dispatch(request, StartBuildBatchError::from_response)
5458            .await?;
5459        let mut response = response;
5460        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5461        proto::json::ResponsePayload::new(&response).deserialize::<StartBuildBatchOutput, _>()
5462    }
5463
5464    /// <p>Attempts to stop running a build.</p>
5465    async fn stop_build(
5466        &self,
5467        input: StopBuildInput,
5468    ) -> Result<StopBuildOutput, RusotoError<StopBuildError>> {
5469        let mut request = self.new_signed_request("POST", "/");
5470        request.add_header("x-amz-target", "CodeBuild_20161006.StopBuild");
5471        let encoded = serde_json::to_string(&input).unwrap();
5472        request.set_payload(Some(encoded));
5473
5474        let response = self
5475            .sign_and_dispatch(request, StopBuildError::from_response)
5476            .await?;
5477        let mut response = response;
5478        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5479        proto::json::ResponsePayload::new(&response).deserialize::<StopBuildOutput, _>()
5480    }
5481
5482    /// <p>Stops a running batch build.</p>
5483    async fn stop_build_batch(
5484        &self,
5485        input: StopBuildBatchInput,
5486    ) -> Result<StopBuildBatchOutput, RusotoError<StopBuildBatchError>> {
5487        let mut request = self.new_signed_request("POST", "/");
5488        request.add_header("x-amz-target", "CodeBuild_20161006.StopBuildBatch");
5489        let encoded = serde_json::to_string(&input).unwrap();
5490        request.set_payload(Some(encoded));
5491
5492        let response = self
5493            .sign_and_dispatch(request, StopBuildBatchError::from_response)
5494            .await?;
5495        let mut response = response;
5496        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5497        proto::json::ResponsePayload::new(&response).deserialize::<StopBuildBatchOutput, _>()
5498    }
5499
5500    /// <p>Changes the settings of a build project.</p>
5501    async fn update_project(
5502        &self,
5503        input: UpdateProjectInput,
5504    ) -> Result<UpdateProjectOutput, RusotoError<UpdateProjectError>> {
5505        let mut request = self.new_signed_request("POST", "/");
5506        request.add_header("x-amz-target", "CodeBuild_20161006.UpdateProject");
5507        let encoded = serde_json::to_string(&input).unwrap();
5508        request.set_payload(Some(encoded));
5509
5510        let response = self
5511            .sign_and_dispatch(request, UpdateProjectError::from_response)
5512            .await?;
5513        let mut response = response;
5514        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5515        proto::json::ResponsePayload::new(&response).deserialize::<UpdateProjectOutput, _>()
5516    }
5517
5518    /// <p> Updates a report group. </p>
5519    async fn update_report_group(
5520        &self,
5521        input: UpdateReportGroupInput,
5522    ) -> Result<UpdateReportGroupOutput, RusotoError<UpdateReportGroupError>> {
5523        let mut request = self.new_signed_request("POST", "/");
5524        request.add_header("x-amz-target", "CodeBuild_20161006.UpdateReportGroup");
5525        let encoded = serde_json::to_string(&input).unwrap();
5526        request.set_payload(Some(encoded));
5527
5528        let response = self
5529            .sign_and_dispatch(request, UpdateReportGroupError::from_response)
5530            .await?;
5531        let mut response = response;
5532        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5533        proto::json::ResponsePayload::new(&response).deserialize::<UpdateReportGroupOutput, _>()
5534    }
5535
5536    /// <p><p> Updates the webhook associated with an CodeBuild build project. </p> <note> <p> If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored. </p> </note></p>
5537    async fn update_webhook(
5538        &self,
5539        input: UpdateWebhookInput,
5540    ) -> Result<UpdateWebhookOutput, RusotoError<UpdateWebhookError>> {
5541        let mut request = self.new_signed_request("POST", "/");
5542        request.add_header("x-amz-target", "CodeBuild_20161006.UpdateWebhook");
5543        let encoded = serde_json::to_string(&input).unwrap();
5544        request.set_payload(Some(encoded));
5545
5546        let response = self
5547            .sign_and_dispatch(request, UpdateWebhookError::from_response)
5548            .await?;
5549        let mut response = response;
5550        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
5551        proto::json::ResponsePayload::new(&response).deserialize::<UpdateWebhookOutput, _>()
5552    }
5553}