/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the codebuild-2016-10-06.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CodeBuild.Model; using Amazon.CodeBuild.Model.Internal.MarshallTransformations; using Amazon.CodeBuild.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CodeBuild { /// /// Implementation for accessing CodeBuild /// /// CodeBuild /// /// CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source /// code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild /// eliminates the need to provision, manage, and scale your own build servers. It provides /// prepackaged build environments for the most popular programming languages and build /// tools, such as Apache Maven, Gradle, and more. You can also fully customize build /// environments in CodeBuild to use your own build tools. CodeBuild scales automatically /// to meet peak build requests. You pay only for the build time you consume. For more /// information about CodeBuild, see the CodeBuild /// User Guide. /// /// public partial class AmazonCodeBuildClient : AmazonServiceClient, IAmazonCodeBuild { private static IServiceMetadata serviceMetadata = new AmazonCodeBuildMetadata(); #region Constructors /// /// Constructs AmazonCodeBuildClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonCodeBuildClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeBuildConfig()) { } /// /// Constructs AmazonCodeBuildClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonCodeBuildClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCodeBuildConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeBuildClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonCodeBuildClient Configuration Object public AmazonCodeBuildClient(AmazonCodeBuildConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonCodeBuildClient with AWS Credentials /// /// AWS Credentials public AmazonCodeBuildClient(AWSCredentials credentials) : this(credentials, new AmazonCodeBuildConfig()) { } /// /// Constructs AmazonCodeBuildClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCodeBuildClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCodeBuildConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeBuildClient with AWS Credentials and an /// AmazonCodeBuildClient Configuration object. /// /// AWS Credentials /// The AmazonCodeBuildClient Configuration Object public AmazonCodeBuildClient(AWSCredentials credentials, AmazonCodeBuildConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeBuildConfig()) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCodeBuildConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeBuildClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCodeBuildClient Configuration Object public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCodeBuildConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeBuildConfig()) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCodeBuildConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCodeBuildClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCodeBuildClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCodeBuildClient Configuration Object public AmazonCodeBuildClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCodeBuildConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICodeBuildPaginatorFactory _paginators; /// /// Paginators for the service /// public ICodeBuildPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CodeBuildPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonCodeBuildEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region BatchDeleteBuilds internal virtual BatchDeleteBuildsResponse BatchDeleteBuilds(BatchDeleteBuildsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteBuildsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes one or more builds. /// /// Container for the necessary parameters to execute the BatchDeleteBuilds service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchDeleteBuilds service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchDeleteBuilds Operation public virtual Task BatchDeleteBuildsAsync(BatchDeleteBuildsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteBuildsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetBuildBatches internal virtual BatchGetBuildBatchesResponse BatchGetBuildBatches(BatchGetBuildBatchesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetBuildBatchesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetBuildBatchesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about one or more batch builds. /// /// Container for the necessary parameters to execute the BatchGetBuildBatches service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetBuildBatches service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchGetBuildBatches Operation public virtual Task BatchGetBuildBatchesAsync(BatchGetBuildBatchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetBuildBatchesRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetBuildBatchesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetBuilds internal virtual BatchGetBuildsResponse BatchGetBuilds(BatchGetBuildsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetBuildsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more builds. /// /// Container for the necessary parameters to execute the BatchGetBuilds service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetBuilds service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchGetBuilds Operation public virtual Task BatchGetBuildsAsync(BatchGetBuildsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetBuildsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetProjects internal virtual BatchGetProjectsResponse BatchGetProjects(BatchGetProjectsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetProjectsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about one or more build projects. /// /// Container for the necessary parameters to execute the BatchGetProjects service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetProjects service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchGetProjects Operation public virtual Task BatchGetProjectsAsync(BatchGetProjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetProjectsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetReportGroups internal virtual BatchGetReportGroupsResponse BatchGetReportGroups(BatchGetReportGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetReportGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an array of report groups. /// /// Container for the necessary parameters to execute the BatchGetReportGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetReportGroups service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchGetReportGroups Operation public virtual Task BatchGetReportGroupsAsync(BatchGetReportGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetReportGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchGetReports internal virtual BatchGetReportsResponse BatchGetReports(BatchGetReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetReportsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns an array of reports. /// /// Container for the necessary parameters to execute the BatchGetReports service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetReports service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for BatchGetReports Operation public virtual Task BatchGetReportsAsync(BatchGetReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetReportsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProject internal virtual CreateProjectResponse CreateProject(CreateProjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a build project. /// /// Container for the necessary parameters to execute the CreateProject service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProject service method, as returned by CodeBuild. /// /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services /// account. /// /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be created, because an Amazon Web /// Services resource with the same settings already exists. /// /// REST API Reference for CreateProject Operation public virtual Task CreateProjectAsync(CreateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateReportGroup internal virtual CreateReportGroupResponse CreateReportGroup(CreateReportGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReportGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a report group. A report group contains a collection of reports. /// /// Container for the necessary parameters to execute the CreateReportGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateReportGroup service method, as returned by CodeBuild. /// /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services /// account. /// /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be created, because an Amazon Web /// Services resource with the same settings already exists. /// /// REST API Reference for CreateReportGroup Operation public virtual Task CreateReportGroupAsync(CreateReportGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateReportGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateWebhook internal virtual CreateWebhookResponse CreateWebhook(CreateWebhookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWebhookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For an existing CodeBuild build project that has its source code stored in a GitHub /// or Bitbucket repository, enables CodeBuild to start rebuilding the source code every /// time a code change is pushed to the repository. /// /// /// /// If you enable webhooks for an CodeBuild project, and the project is used as a build /// step in CodePipeline, then two identical builds are created for each commit. One build /// is triggered through webhooks, and one through CodePipeline. Because billing is on /// a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, /// we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear /// the Webhook box. For more information, see step 5 in Change /// a Build Project's Settings. /// /// /// /// Container for the necessary parameters to execute the CreateWebhook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateWebhook service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// There was a problem with the underlying OAuth provider. /// /// /// The specified Amazon Web Services resource cannot be created, because an Amazon Web /// Services resource with the same settings already exists. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for CreateWebhook Operation public virtual Task CreateWebhookAsync(CreateWebhookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateWebhookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteBuildBatch internal virtual DeleteBuildBatchResponse DeleteBuildBatch(DeleteBuildBatchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBuildBatchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a batch build. /// /// Container for the necessary parameters to execute the DeleteBuildBatch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteBuildBatch service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DeleteBuildBatch Operation public virtual Task DeleteBuildBatchAsync(DeleteBuildBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteBuildBatchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteProject internal virtual DeleteProjectResponse DeleteProject(DeleteProjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a build project. When you delete a project, its builds are not deleted. /// /// Container for the necessary parameters to execute the DeleteProject service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteProject service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DeleteProject Operation public virtual Task DeleteProjectAsync(DeleteProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteReport internal virtual DeleteReportResponse DeleteReport(DeleteReportRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReportRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReportResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a report. /// /// Container for the necessary parameters to execute the DeleteReport service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteReport service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DeleteReport Operation public virtual Task DeleteReportAsync(DeleteReportRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReportRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReportResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteReportGroup internal virtual DeleteReportGroupResponse DeleteReportGroup(DeleteReportGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReportGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a report group. Before you delete a report group, you must delete its reports. /// /// Container for the necessary parameters to execute the DeleteReportGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteReportGroup service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DeleteReportGroup Operation public virtual Task DeleteReportGroupAsync(DeleteReportGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteReportGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteResourcePolicy internal virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a resource policy that is identified by its resource ARN. /// /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteResourcePolicy service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DeleteResourcePolicy Operation public virtual Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteSourceCredentials internal virtual DeleteSourceCredentialsResponse DeleteSourceCredentials(DeleteSourceCredentialsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSourceCredentialsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials. /// /// Container for the necessary parameters to execute the DeleteSourceCredentials service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteSourceCredentials service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for DeleteSourceCredentials Operation public virtual Task DeleteSourceCredentialsAsync(DeleteSourceCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSourceCredentialsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteWebhook internal virtual DeleteWebhookResponse DeleteWebhook(DeleteWebhookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWebhookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// Container for the necessary parameters to execute the DeleteWebhook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteWebhook service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// There was a problem with the underlying OAuth provider. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for DeleteWebhook Operation public virtual Task DeleteWebhookAsync(DeleteWebhookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWebhookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeCodeCoverages internal virtual DescribeCodeCoveragesResponse DescribeCodeCoverages(DescribeCodeCoveragesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeCoveragesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeCoveragesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves one or more code coverage reports. /// /// Container for the necessary parameters to execute the DescribeCodeCoverages service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeCodeCoverages service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for DescribeCodeCoverages Operation public virtual Task DescribeCodeCoveragesAsync(DescribeCodeCoveragesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCodeCoveragesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCodeCoveragesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeTestCases internal virtual DescribeTestCasesResponse DescribeTestCases(DescribeTestCasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTestCasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTestCasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of details about test cases for a report. /// /// Container for the necessary parameters to execute the DescribeTestCases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeTestCases service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for DescribeTestCases Operation public virtual Task DescribeTestCasesAsync(DescribeTestCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTestCasesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTestCasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetReportGroupTrend internal virtual GetReportGroupTrendResponse GetReportGroupTrend(GetReportGroupTrendRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetReportGroupTrendRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReportGroupTrendResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Analyzes and accumulates test report values for the specified test reports. /// /// Container for the necessary parameters to execute the GetReportGroupTrend service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetReportGroupTrend service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for GetReportGroupTrend Operation public virtual Task GetReportGroupTrendAsync(GetReportGroupTrendRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetReportGroupTrendRequestMarshaller.Instance; options.ResponseUnmarshaller = GetReportGroupTrendResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetResourcePolicy internal virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a resource policy that is identified by its resource ARN. /// /// Container for the necessary parameters to execute the GetResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourcePolicy service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for GetResourcePolicy Operation public virtual Task GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ImportSourceCredentials internal virtual ImportSourceCredentialsResponse ImportSourceCredentials(ImportSourceCredentialsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportSourceCredentialsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Imports the source repository credentials for an CodeBuild project that has its source /// code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. /// /// Container for the necessary parameters to execute the ImportSourceCredentials service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ImportSourceCredentials service method, as returned by CodeBuild. /// /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services /// account. /// /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be created, because an Amazon Web /// Services resource with the same settings already exists. /// /// REST API Reference for ImportSourceCredentials Operation public virtual Task ImportSourceCredentialsAsync(ImportSourceCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportSourceCredentialsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region InvalidateProjectCache internal virtual InvalidateProjectCacheResponse InvalidateProjectCache(InvalidateProjectCacheRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = InvalidateProjectCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = InvalidateProjectCacheResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Resets the cache for a project. /// /// Container for the necessary parameters to execute the InvalidateProjectCache service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the InvalidateProjectCache service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for InvalidateProjectCache Operation public virtual Task InvalidateProjectCacheAsync(InvalidateProjectCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = InvalidateProjectCacheRequestMarshaller.Instance; options.ResponseUnmarshaller = InvalidateProjectCacheResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBuildBatches internal virtual ListBuildBatchesResponse ListBuildBatches(ListBuildBatchesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildBatchesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildBatchesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the identifiers of your build batches in the current region. /// /// Container for the necessary parameters to execute the ListBuildBatches service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBuildBatches service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListBuildBatches Operation public virtual Task ListBuildBatchesAsync(ListBuildBatchesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildBatchesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildBatchesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBuildBatchesForProject internal virtual ListBuildBatchesForProjectResponse ListBuildBatchesForProject(ListBuildBatchesForProjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildBatchesForProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildBatchesForProjectResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the identifiers of the build batches for a specific project. /// /// Container for the necessary parameters to execute the ListBuildBatchesForProject service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBuildBatchesForProject service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for ListBuildBatchesForProject Operation public virtual Task ListBuildBatchesForProjectAsync(ListBuildBatchesForProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildBatchesForProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildBatchesForProjectResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBuilds internal virtual ListBuildsResponse ListBuilds(ListBuildsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of build IDs, with each build ID representing a single build. /// /// Container for the necessary parameters to execute the ListBuilds service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBuilds service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListBuilds Operation public virtual Task ListBuildsAsync(ListBuildsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListBuildsForProject internal virtual ListBuildsForProjectResponse ListBuildsForProject(ListBuildsForProjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildsForProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildsForProjectResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of build identifiers for the specified build project, with each build /// identifier representing a single build. /// /// Container for the necessary parameters to execute the ListBuildsForProject service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListBuildsForProject service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for ListBuildsForProject Operation public virtual Task ListBuildsForProjectAsync(ListBuildsForProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListBuildsForProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = ListBuildsForProjectResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCuratedEnvironmentImages internal virtual ListCuratedEnvironmentImagesResponse ListCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCuratedEnvironmentImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCuratedEnvironmentImagesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets information about Docker images that are managed by CodeBuild. /// /// Container for the necessary parameters to execute the ListCuratedEnvironmentImages service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCuratedEnvironmentImages service method, as returned by CodeBuild. /// REST API Reference for ListCuratedEnvironmentImages Operation public virtual Task ListCuratedEnvironmentImagesAsync(ListCuratedEnvironmentImagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCuratedEnvironmentImagesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCuratedEnvironmentImagesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProjects internal virtual ListProjectsResponse ListProjects(ListProjectsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of build project names, with each build project name representing a single /// build project. /// /// Container for the necessary parameters to execute the ListProjects service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListProjects service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListProjects Operation public virtual Task ListProjectsAsync(ListProjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListReportGroups internal virtual ListReportGroupsResponse ListReportGroups(ListReportGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list ARNs for the report groups in the current Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListReportGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListReportGroups service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListReportGroups Operation public virtual Task ListReportGroupsAsync(ListReportGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListReports internal virtual ListReportsResponse ListReports(ListReportsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of ARNs for the reports in the current Amazon Web Services account. /// /// Container for the necessary parameters to execute the ListReports service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListReports service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListReports Operation public virtual Task ListReportsAsync(ListReportsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListReportsForReportGroup internal virtual ListReportsForReportGroupResponse ListReportsForReportGroup(ListReportsForReportGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportsForReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportsForReportGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of ARNs for the reports that belong to a ReportGroup. /// /// Container for the necessary parameters to execute the ListReportsForReportGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListReportsForReportGroup service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for ListReportsForReportGroup Operation public virtual Task ListReportsForReportGroupAsync(ListReportsForReportGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListReportsForReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = ListReportsForReportGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSharedProjects internal virtual ListSharedProjectsResponse ListSharedProjects(ListSharedProjectsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSharedProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSharedProjectsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of projects that are shared with other Amazon Web Services accounts or /// users. /// /// Container for the necessary parameters to execute the ListSharedProjects service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSharedProjects service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListSharedProjects Operation public virtual Task ListSharedProjectsAsync(ListSharedProjectsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSharedProjectsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSharedProjectsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSharedReportGroups internal virtual ListSharedReportGroupsResponse ListSharedReportGroups(ListSharedReportGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSharedReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSharedReportGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets a list of report groups that are shared with other Amazon Web Services accounts /// or users. /// /// Container for the necessary parameters to execute the ListSharedReportGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSharedReportGroups service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListSharedReportGroups Operation public virtual Task ListSharedReportGroupsAsync(ListSharedReportGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSharedReportGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSharedReportGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSourceCredentials internal virtual ListSourceCredentialsResponse ListSourceCredentials(ListSourceCredentialsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceCredentialsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of SourceCredentialsInfo objects. /// /// Container for the necessary parameters to execute the ListSourceCredentials service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSourceCredentials service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// REST API Reference for ListSourceCredentials Operation public virtual Task ListSourceCredentialsAsync(ListSourceCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceCredentialsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutResourcePolicy internal virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stores a resource policy for the ARN of a Project or ReportGroup /// object. /// /// Container for the necessary parameters to execute the PutResourcePolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutResourcePolicy service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for PutResourcePolicy Operation public virtual Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RetryBuild internal virtual RetryBuildResponse RetryBuild(RetryBuildRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RetryBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = RetryBuildResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Restarts a build. /// /// Container for the necessary parameters to execute the RetryBuild service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RetryBuild service method, as returned by CodeBuild. /// /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services /// account. /// /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for RetryBuild Operation public virtual Task RetryBuildAsync(RetryBuildRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RetryBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = RetryBuildResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RetryBuildBatch internal virtual RetryBuildBatchResponse RetryBuildBatch(RetryBuildBatchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RetryBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = RetryBuildBatchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Restarts a failed batch build. Only batch builds that have failed can be retried. /// /// Container for the necessary parameters to execute the RetryBuildBatch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RetryBuildBatch service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for RetryBuildBatch Operation public virtual Task RetryBuildBatchAsync(RetryBuildBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RetryBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = RetryBuildBatchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartBuild internal virtual StartBuildResponse StartBuild(StartBuildRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBuildResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts running a build. /// /// Container for the necessary parameters to execute the StartBuild service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartBuild service method, as returned by CodeBuild. /// /// An Amazon Web Services service limit was exceeded for the calling Amazon Web Services /// account. /// /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for StartBuild Operation public virtual Task StartBuildAsync(StartBuildRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBuildResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartBuildBatch internal virtual StartBuildBatchResponse StartBuildBatch(StartBuildBatchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBuildBatchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a batch build for a project. /// /// Container for the necessary parameters to execute the StartBuildBatch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartBuildBatch service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for StartBuildBatch Operation public virtual Task StartBuildBatchAsync(StartBuildBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = StartBuildBatchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopBuild internal virtual StopBuildResponse StopBuild(StopBuildRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = StopBuildResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Attempts to stop running a build. /// /// Container for the necessary parameters to execute the StopBuild service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopBuild service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for StopBuild Operation public virtual Task StopBuildAsync(StopBuildRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopBuildRequestMarshaller.Instance; options.ResponseUnmarshaller = StopBuildResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopBuildBatch internal virtual StopBuildBatchResponse StopBuildBatch(StopBuildBatchRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = StopBuildBatchResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a running batch build. /// /// Container for the necessary parameters to execute the StopBuildBatch service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopBuildBatch service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for StopBuildBatch Operation public virtual Task StopBuildBatchAsync(StopBuildBatchRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopBuildBatchRequestMarshaller.Instance; options.ResponseUnmarshaller = StopBuildBatchResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateProject internal virtual UpdateProjectResponse UpdateProject(UpdateProjectRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the settings of a build project. /// /// Container for the necessary parameters to execute the UpdateProject service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateProject service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for UpdateProject Operation public virtual Task UpdateProjectAsync(UpdateProjectRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateProjectVisibility internal virtual UpdateProjectVisibilityResponse UpdateProjectVisibility(UpdateProjectVisibilityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProjectVisibilityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProjectVisibilityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Changes the public visibility for a project. The project's build results, logs, and /// artifacts are available to the general public. For more information, see Public /// build projects in the CodeBuild User Guide. /// /// /// /// The following should be kept in mind when making your projects public: /// ///
  • /// /// All of a project's build results, logs, and artifacts, including builds that were /// run when the project was private, are available to the general public. /// ///
  • /// /// All build logs and artifacts are available to the public. Environment variables, source /// code, and other sensitive information may have been output to the build logs and artifacts. /// You must be careful about what information is output to the build logs. Some best /// practice are: /// ///
    • /// /// Do not store sensitive values, especially Amazon Web Services access key IDs and secret /// access keys, in environment variables. We recommend that you use an Amazon EC2 Systems /// Manager Parameter Store or Secrets Manager to store sensitive values. /// ///
    • /// /// Follow Best /// practices for using webhooks in the CodeBuild User Guide to limit which /// entities can trigger a build, and do not store the buildspec in the project itself, /// to ensure that your webhooks are as secure as possible. /// ///
  • /// /// A malicious user can use public builds to distribute malicious artifacts. We recommend /// that you review all pull requests to verify that the pull request is a legitimate /// change. We also recommend that you validate any artifacts with their checksums to /// make sure that the correct artifacts are being downloaded. /// ///
///
/// Container for the necessary parameters to execute the UpdateProjectVisibility service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateProjectVisibility service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for UpdateProjectVisibility Operation public virtual Task UpdateProjectVisibilityAsync(UpdateProjectVisibilityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProjectVisibilityRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProjectVisibilityResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateReportGroup internal virtual UpdateReportGroupResponse UpdateReportGroup(UpdateReportGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReportGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a report group. /// /// Container for the necessary parameters to execute the UpdateReportGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateReportGroup service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for UpdateReportGroup Operation public virtual Task UpdateReportGroupAsync(UpdateReportGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateReportGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateReportGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWebhook internal virtual UpdateWebhookResponse UpdateWebhook(UpdateWebhookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWebhookResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the webhook associated with an CodeBuild build project. /// /// /// /// If you use Bitbucket for your repository, rotateSecret is ignored. /// /// /// /// Container for the necessary parameters to execute the UpdateWebhook service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWebhook service method, as returned by CodeBuild. /// /// The input value that was provided is not valid. /// /// /// There was a problem with the underlying OAuth provider. /// /// /// The specified Amazon Web Services resource cannot be found. /// /// REST API Reference for UpdateWebhook Operation public virtual Task UpdateWebhookAsync(UpdateWebhookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWebhookRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWebhookResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }