Overview ▹

Overview ▾

Package codebuild provides the client and types for making API
requests to AWS CodeBuild.

AWS CodeBuild is a fully managed build service in the cloud. AWS CodeBuild
compiles your source code, runs unit tests, and produces artifacts that are
ready to deploy. AWS 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 AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically
to meet peak build requests. You pay only for the build time you consume.
For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

* BatchDeleteBuilds: Deletes one or more builds.
* BatchGetProjects: Gets information about one or more build projects.
A build project defines how AWS CodeBuild runs a build. This includes
information such as where to get the source code to build, the build environment
to use, the build commands to run, and where to store the build output.
A build environment is a representation of operating system, programming
language runtime, and tools that AWS CodeBuild uses to run a build. You
can add tags to build projects to help manage your resources and costs.
* CreateProject: Creates a build project.
* CreateWebhook: For an existing AWS CodeBuild build project that has
its source code stored in a GitHub or Bitbucket repository, enables AWS
CodeBuild to start rebuilding the source code every time a code change
is pushed to the repository.
* UpdateWebhook: Changes the settings of an existing webhook.
* DeleteProject: Deletes a build project.
* DeleteWebhook: For an existing AWS CodeBuild build project that has
its source code stored in a GitHub or Bitbucket repository, stops AWS
CodeBuild from rebuilding the source code every time a code change is
pushed to the repository.
* ListProjects: Gets a list of build project names, with each build project
name representing a single build project.
* UpdateProject: Changes the settings of an existing build project.
* BatchGetBuilds: Gets information about one or more builds.
* ListBuilds: Gets a list of build IDs, with each build ID representing
a single build.
* ListBuildsForProject: Gets a list of build IDs for the specified build
project, with each build ID representing a single build.
* StartBuild: Starts running a build.
* StopBuild: Attempts to stop running a build.
* ListCuratedEnvironmentImages: Gets information about Docker images that
are managed by AWS CodeBuild.
* DeleteSourceCredentials: Deletes a set of GitHub, GitHub Enterprise,
or Bitbucket source credentials.
* ImportSourceCredentials: Imports the source repository credentials for
an AWS CodeBuild project that has its source code stored in a GitHub,
GitHub Enterprise, or Bitbucket repository.
* ListSourceCredentials: Returns a list of SourceCredentialsInfo objects.
Each SourceCredentialsInfo object includes the authentication type, token
ARN, and type of source provider for one set of credentials.

Examples ▹

Examples ▾

Internal call graph ▹

Internal call graph ▾

In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.

The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.

Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.

Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.

type Build struct {
// The Amazon Resource Name (ARN) of the build.
Arn *string `locationName:"arn" min:"1" type:"string"`
// Information about the output artifacts for the build.
Artifacts *BuildArtifacts `locationName:"artifacts" type:"structure"`
// Whether the build is complete. True if complete; otherwise, false.
BuildComplete *bool `locationName:"buildComplete" type:"boolean"`
// The current status of the build. Valid values include://// * FAILED: The build failed.//// * FAULT: The build faulted.//// * IN_PROGRESS: The build is still in progress.//// * STOPPED: The build stopped.//// * SUCCEEDED: The build succeeded.//// * TIMED_OUT: The build timed out.
BuildStatus *string `locationName:"buildStatus" type:"string" enum:"StatusType"`
// Information about the cache for the build.
Cache *ProjectCache `locationName:"cache" type:"structure"`
// The current build phase.
CurrentPhase *string `locationName:"currentPhase" type:"string"`
// The AWS Key Management Service (AWS KMS) customer master key (CMK) to be// used for encrypting the build output artifacts.//// This is expressed either as the Amazon Resource Name (ARN) of the CMK or,// if specified, the CMK's alias (using the format alias/alias-name).
EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`
// When the build process ended, expressed in Unix time format.
EndTime *time.Time `locationName:"endTime" type:"timestamp"`
// Information about the build environment for this build.
Environment *ProjectEnvironment `locationName:"environment" type:"structure"`
// The unique ID for the build.
Id *string `locationName:"id" min:"1" type:"string"`
// The entity that started the build. Valid values include://// * If AWS CodePipeline started the build, the pipeline's name (for example,// codepipeline/my-demo-pipeline).//// * If an AWS Identity and Access Management (IAM) user started the build,// the user's name (for example, MyUserName).//// * If the Jenkins plugin for AWS CodeBuild started the build, the string// CodeBuild-Jenkins-Plugin.
Initiator *string `locationName:"initiator" type:"string"`
// Information about the build's logs in Amazon CloudWatch Logs.
Logs *LogsLocation `locationName:"logs" type:"structure"`
// Describes a network interface.
NetworkInterface *NetworkInterface `locationName:"networkInterface" type:"structure"`
// Information about all previous build phases that are complete and information// about any current build phase that is not yet complete.
Phases []*BuildPhase `locationName:"phases" type:"list"`
// The name of the AWS CodeBuild project.
ProjectName *string `locationName:"projectName" min:"1" type:"string"`
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" type:"integer"`
// An identifier for the version of this build's source code.//// * For AWS CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit// ID.//// * For AWS CodePipeline, the source revision provided by AWS CodePipeline.////// * For Amazon Simple Storage Service (Amazon S3), this does not apply.
ResolvedSourceVersion *string `locationName:"resolvedSourceVersion" min:"1" type:"string"`
// An array of ProjectArtifacts objects.
SecondaryArtifacts []*BuildArtifacts `locationName:"secondaryArtifacts" type:"list"`
// An array of ProjectSourceVersion objects. Each ProjectSourceVersion must// be one of://// * For AWS CodeCommit: the commit ID to use.//// * 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 pr/pull-request-ID// (for example, pr/25). 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.//// * 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.//// * For Amazon Simple Storage Service (Amazon S3): the version ID of the// object that represents the build input ZIP file to use.
SecondarySourceVersions []*ProjectSourceVersion `locationName:"secondarySourceVersions" type:"list"`
// An array of ProjectSource objects.
SecondarySources []*ProjectSource `locationName:"secondarySources" type:"list"`
// The name of a service role used for this build.
ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`
// Information about the source code to be built.
Source *ProjectSource `locationName:"source" type:"structure"`
// Any version identifier for the version of the source code to be built.
SourceVersion *string `locationName:"sourceVersion" min:"1" type:"string"`
// When the build process started, expressed in Unix time format.
StartTime *time.Time `locationName:"startTime" type:"timestamp"`
// How long, in minutes, for AWS CodeBuild to wait before timing out this build// if it does not get marked as completed.
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" type:"integer"`
// If your AWS 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.
VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"`
// contains filtered or unexported fields
}

type BuildArtifacts struct {
// An identifier for this artifact definition.
ArtifactIdentifier *string `locationName:"artifactIdentifier" type:"string"`
// Information that tells you if encryption for build artifacts is disabled.
EncryptionDisabled *bool `locationName:"encryptionDisabled" type:"boolean"`
// Information about the location of the build artifacts.
Location *string `locationName:"location" type:"string"`
// The MD5 hash of the build artifact.//// You can use this hash along with a checksum tool to confirm file integrity// and authenticity.//// This value is available only if the build project's packaging value is set// to ZIP.
Md5sum *string `locationName:"md5sum" type:"string"`
// If this flag is set, a name specified in the build spec file overrides the// artifact name. The name specified in a build spec 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.
OverrideArtifactName *bool `locationName:"overrideArtifactName" type:"boolean"`
// The SHA-256 hash of the build artifact.//// You can use this hash along with a checksum tool to confirm file integrity// and authenticity.//// This value is available only if the build project's packaging value is set// to ZIP.
Sha256sum *string `locationName:"sha256sum" type:"string"`
// contains filtered or unexported fields
}

type CloudWatchLogsConfig struct {
// The group name of the logs in Amazon CloudWatch Logs. For more information,// see Working with Log Groups and Log Streams (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).
GroupName *string `locationName:"groupName" type:"string"`
// The current status of the logs in Amazon CloudWatch Logs for a build project.// Valid values are://// * ENABLED: Amazon CloudWatch Logs are enabled for this build project.//// * DISABLED: Amazon CloudWatch Logs are not enabled for this build project.//// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"LogsConfigStatusType"`
// The prefix of the stream name of the Amazon CloudWatch Logs. For more information,// see Working with Log Groups and Log Streams (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Working-with-log-groups-and-streams.html).
StreamName *string `locationName:"streamName" type:"string"`
// contains filtered or unexported fields
}

BatchDeleteBuildsRequest generates a "aws/request.Request" representing the
client's request for the BatchDeleteBuilds operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See BatchDeleteBuilds for more information on using the BatchDeleteBuilds
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

BatchDeleteBuildsWithContext is the same as BatchDeleteBuilds with the addition of
the ability to pass a context and additional request options.

See BatchDeleteBuilds for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

BatchGetBuildsRequest generates a "aws/request.Request" representing the
client's request for the BatchGetBuilds operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See BatchGetBuilds for more information on using the BatchGetBuilds
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

BatchGetBuildsWithContext is the same as BatchGetBuilds with the addition of
the ability to pass a context and additional request options.

See BatchGetBuilds for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

BatchGetProjectsRequest generates a "aws/request.Request" representing the
client's request for the BatchGetProjects operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See BatchGetProjects for more information on using the BatchGetProjects
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

BatchGetProjectsWithContext is the same as BatchGetProjects with the addition of
the ability to pass a context and additional request options.

See BatchGetProjects for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
The specified AWS resource cannot be created, because an AWS resource with
the same settings already exists.
* ErrCodeAccountLimitExceededException "AccountLimitExceededException"
An AWS service limit was exceeded for the calling AWS account.

CreateProjectRequest generates a "aws/request.Request" representing the
client's request for the CreateProject operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See CreateProject for more information on using the CreateProject
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

CreateProjectWithContext is the same as CreateProject with the addition of
the ability to pass a context and additional request options.

See CreateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

For an existing AWS CodeBuild build project that has its source code stored
in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding
the source code every time a code change is pushed to the repository.

If you enable webhooks for an AWS CodeBuild project, and the project is used
as a build step in AWS CodePipeline, then two identical builds are created
for each commit. One build is triggered through webhooks, and one through
AWS CodePipeline. Because billing is on a per-build basis, you are billed
for both builds. Therefore, if you are using AWS CodePipeline, we recommend
that you disable webhooks in AWS CodeBuild. In the AWS CodeBuild console,
clear the Webhook box. For more information, see step 5 in Change a Build
Project's Settings (https://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeOAuthProviderException "OAuthProviderException"
There was a problem with the underlying OAuth provider.
* ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException"
The specified AWS resource cannot be created, because an AWS resource with
the same settings already exists.
* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified AWS resource cannot be found.

CreateWebhookRequest generates a "aws/request.Request" representing the
client's request for the CreateWebhook operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See CreateWebhook for more information on using the CreateWebhook
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

CreateWebhookWithContext is the same as CreateWebhook with the addition of
the ability to pass a context and additional request options.

See CreateWebhook for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

DeleteProjectRequest generates a "aws/request.Request" representing the
client's request for the DeleteProject operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See DeleteProject for more information on using the DeleteProject
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

DeleteProjectWithContext is the same as DeleteProject with the addition of
the ability to pass a context and additional request options.

See DeleteProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

DeleteSourceCredentialsRequest generates a "aws/request.Request" representing the
client's request for the DeleteSourceCredentials operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See DeleteSourceCredentials for more information on using the DeleteSourceCredentials
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

DeleteSourceCredentialsWithContext is the same as DeleteSourceCredentials with the addition of
the ability to pass a context and additional request options.

See DeleteSourceCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

For an existing AWS CodeBuild build project that has its source code stored
in a GitHub or Bitbucket repository, stops AWS CodeBuild from rebuilding
the source code every time a code change is pushed to the repository.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions
with awserr.Error's Code and Message methods to get detailed information about
the error.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified AWS resource cannot be found.
* ErrCodeOAuthProviderException "OAuthProviderException"
There was a problem with the underlying OAuth provider.

DeleteWebhookRequest generates a "aws/request.Request" representing the
client's request for the DeleteWebhook operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See DeleteWebhook for more information on using the DeleteWebhook
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

DeleteWebhookWithContext is the same as DeleteWebhook with the addition of
the ability to pass a context and additional request options.

See DeleteWebhook for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeAccountLimitExceededException "AccountLimitExceededException"
An AWS service limit was exceeded for the calling AWS account.

ImportSourceCredentialsRequest generates a "aws/request.Request" representing the
client's request for the ImportSourceCredentials operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ImportSourceCredentials for more information on using the ImportSourceCredentials
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ImportSourceCredentialsWithContext is the same as ImportSourceCredentials with the addition of
the ability to pass a context and additional request options.

See ImportSourceCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

InvalidateProjectCacheRequest generates a "aws/request.Request" representing the
client's request for the InvalidateProjectCache operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See InvalidateProjectCache for more information on using the InvalidateProjectCache
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

InvalidateProjectCacheWithContext is the same as InvalidateProjectCache with the addition of
the ability to pass a context and additional request options.

See InvalidateProjectCache for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

ListBuildsForProjectRequest generates a "aws/request.Request" representing the
client's request for the ListBuildsForProject operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ListBuildsForProject for more information on using the ListBuildsForProject
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ListBuildsForProjectWithContext is the same as ListBuildsForProject with the addition of
the ability to pass a context and additional request options.

See ListBuildsForProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

ListBuildsRequest generates a "aws/request.Request" representing the
client's request for the ListBuilds operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ListBuilds for more information on using the ListBuilds
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ListBuildsWithContext is the same as ListBuilds with the addition of
the ability to pass a context and additional request options.

See ListBuilds for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

ListCuratedEnvironmentImagesRequest generates a "aws/request.Request" representing the
client's request for the ListCuratedEnvironmentImages operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ListCuratedEnvironmentImages for more information on using the ListCuratedEnvironmentImages
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ListCuratedEnvironmentImagesWithContext is the same as ListCuratedEnvironmentImages with the addition of
the ability to pass a context and additional request options.

See ListCuratedEnvironmentImages for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

ListProjectsRequest generates a "aws/request.Request" representing the
client's request for the ListProjects operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ListProjects for more information on using the ListProjects
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ListProjectsWithContext is the same as ListProjects with the addition of
the ability to pass a context and additional request options.

See ListProjects for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

ListSourceCredentialsRequest generates a "aws/request.Request" representing the
client's request for the ListSourceCredentials operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See ListSourceCredentials for more information on using the ListSourceCredentials
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

ListSourceCredentialsWithContext is the same as ListSourceCredentials with the addition of
the ability to pass a context and additional request options.

See ListSourceCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified AWS resource cannot be found.
* ErrCodeAccountLimitExceededException "AccountLimitExceededException"
An AWS service limit was exceeded for the calling AWS account.

StartBuildRequest generates a "aws/request.Request" representing the
client's request for the StartBuild operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See StartBuild for more information on using the StartBuild
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

StartBuildWithContext is the same as StartBuild with the addition of
the ability to pass a context and additional request options.

See StartBuild for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

StopBuildRequest generates a "aws/request.Request" representing the
client's request for the StopBuild operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See StopBuild for more information on using the StopBuild
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

StopBuildWithContext is the same as StopBuild with the addition of
the ability to pass a context and additional request options.

See StopBuild for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

UpdateProjectRequest generates a "aws/request.Request" representing the
client's request for the UpdateProject operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See UpdateProject for more information on using the UpdateProject
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

UpdateProjectWithContext is the same as UpdateProject with the addition of
the ability to pass a context and additional request options.

See UpdateProject for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

* ErrCodeInvalidInputException "InvalidInputException"
The input value that was provided is not valid.
* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified AWS resource cannot be found.
* ErrCodeOAuthProviderException "OAuthProviderException"
There was a problem with the underlying OAuth provider.

UpdateWebhookRequest generates a "aws/request.Request" representing the
client's request for the UpdateWebhook operation. The "output" return
value will be populated with the request's response once the request completes
successfully.

Use "Send" method on the returned Request to send the API call to the service.
the "output" return value is not valid until after Send returns without error.

See UpdateWebhook for more information on using the UpdateWebhook
API call, and error handling.

This method is useful when you want to inject custom logic or configuration
into the SDK's request lifecycle. Such as custom headers, or retry logic.

UpdateWebhookWithContext is the same as UpdateWebhook with the addition of
the ability to pass a context and additional request options.

See UpdateWebhook for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If
the context is nil a panic will occur. In the future the SDK may create
sub-contexts for http.Requests. See https://golang.org/pkg/context/
for more information on using Contexts.

type CreateProjectInput struct {
// Information about the build output artifacts for the build project.//// Artifacts is a required field
Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure" required:"true"`
// Set this to true to generate a publicly accessible URL for your project's// build badge.
BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"`
// Stores recently used information so that it can be quickly accessed at a// later time.
Cache *ProjectCache `locationName:"cache" type:"structure"`
// A description that makes the build project easy to identify.
Description *string `locationName:"description" type:"string"`
// The AWS Key Management Service (AWS KMS) customer master key (CMK) to be// used for encrypting the build output artifacts.//// You can specify either the Amazon Resource Name (ARN) of the CMK or, if available,// the CMK's alias (using the format alias/alias-name).
EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`
// Information about the build environment for the build project.//// Environment is a required field
Environment *ProjectEnvironment `locationName:"environment" type:"structure" required:"true"`
// Information about logs for the build project. These can be logs in Amazon// CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.
LogsConfig *LogsConfig `locationName:"logsConfig" type:"structure"`
// The name of the build project.//// Name is a required field
Name *string `locationName:"name" min:"2" type:"string" required:"true"`
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" min:"5" type:"integer"`
// An array of ProjectArtifacts objects.
SecondaryArtifacts []*ProjectArtifacts `locationName:"secondaryArtifacts" type:"list"`
// An array of ProjectSource objects.
SecondarySources []*ProjectSource `locationName:"secondarySources" type:"list"`
// The ARN of the AWS Identity and Access Management (IAM) role that enables// AWS CodeBuild to interact with dependent AWS services on behalf of the AWS// account.//// ServiceRole is a required field
ServiceRole *string `locationName:"serviceRole" min:"1" type:"string" required:"true"`
// Information about the build input source code for the build project.//// Source is a required field
Source *ProjectSource `locationName:"source" type:"structure" required:"true"`
// A set of tags for this build project.//// These tags are available for use by AWS services that support AWS CodeBuild// build project tags.
Tags []*Tag `locationName:"tags" type:"list"`
// How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait// before it times out any build that has not been marked as completed. The// default is 60 minutes.
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
// VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"`
// contains filtered or unexported fields
}

type CreateWebhookInput struct {
// 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 branchFilter is empty, then all branches// are built.//// It is recommended that you use filterGroups instead of branchFilter.
BranchFilter *string `locationName:"branchFilter" type:"string"`
// An array of arrays of WebhookFilter objects used to determine which webhooks// are triggered. At least one WebhookFilter in the array must specify EVENT// as its type.//// For a build to be triggered, at least one filter group in the filterGroups// array must pass. For a filter group to pass, each of its filters must pass.
FilterGroups [][]*WebhookFilter `locationName:"filterGroups" type:"list"`
// The name of the AWS CodeBuild project.//// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"2" type:"string" required:"true"`
// contains filtered or unexported fields
}

type DeleteProjectInput struct {
// The name of the build project.//// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// contains filtered or unexported fields
}

type ImportSourceCredentialsInput struct {
// 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 AWS CodeBuild console.//// AuthType is a required field
AuthType *string `locationName:"authType" type:"string" required:"true" enum:"AuthType"`
// The source provider used for this project.//// ServerType is a required field
ServerType *string `locationName:"serverType" type:"string" required:"true" enum:"ServerType"`
// For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket,// this is the app password.//// Token is a required field
Token *string `locationName:"token" min:"1" type:"string" required:"true" sensitive:"true"`
// The Bitbucket username when the authType is BASIC_AUTH. This parameter is// not valid for other types of source providers or connections.
Username *string `locationName:"username" min:"1" type:"string"`
// contains filtered or unexported fields
}

type ListBuildsForProjectInput struct {
// 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 next// token. 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.
NextToken *string `locationName:"nextToken" type:"string"`
// The name of the AWS CodeBuild project.//// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`
// The order to list build IDs. Valid values include://// * ASCENDING: List the build IDs in ascending order by build ID.//// * DESCENDING: List the build IDs in descending order by build ID.
SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
// contains filtered or unexported fields
}

type ListBuildsForProjectOutput struct {
// A list of build IDs for the specified build project, with each build ID representing// a single build.
Ids []*string `locationName:"ids" min:"1" type:"list"`
// If there are more than 100 items in the list, only the first 100 items are// returned, along with a unique string called a next token. To get the next// batch of items in the list, call this operation again, adding the next token// to the call.
NextToken *string `locationName:"nextToken" type:"string"`
// contains filtered or unexported fields
}

type ListBuildsInput struct {
// 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 next// token. 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.
NextToken *string `locationName:"nextToken" type:"string"`
// The order to list build IDs. Valid values include://// * ASCENDING: List the build IDs in ascending order by build ID.//// * DESCENDING: List the build IDs in descending order by build ID.
SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
// contains filtered or unexported fields
}

type ListBuildsOutput struct {
// A list of build IDs, with each build ID representing a single build.
Ids []*string `locationName:"ids" min:"1" type:"list"`
// If there are more than 100 items in the list, only the first 100 items are// returned, along with a unique string called a next token. To get the next// batch of items in the list, call this operation again, adding the next token// to the call.
NextToken *string `locationName:"nextToken" type:"string"`
// contains filtered or unexported fields
}

type ListProjectsInput struct {
// 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 next// token. 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.
NextToken *string `locationName:"nextToken" min:"1" type:"string"`
// The criterion to be used to list build project names. Valid values include://// * CREATED_TIME: List based on when each build project was created.//// * LAST_MODIFIED_TIME: List based on when information about each build// project was last changed.//// * NAME: List based on each build project's name.//// Use sortOrder to specify in what order to list the build project names based// on the preceding criteria.
SortBy *string `locationName:"sortBy" type:"string" enum:"ProjectSortByType"`
// The order in which to list build projects. Valid values include://// * ASCENDING: List in ascending order.//// * DESCENDING: List in descending order.//// Use sortBy to specify the criterion to be used to list build project names.
SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
// contains filtered or unexported fields
}

type ListProjectsOutput struct {
// If there are more than 100 items in the list, only the first 100 items are// returned, along with a unique string called a next token. To get the next// batch of items in the list, call this operation again, adding the next token// to the call.
NextToken *string `locationName:"nextToken" type:"string"`
// The list of build project names, with each build project name representing// a single build project.
Projects []*string `locationName:"projects" min:"1" type:"list"`
// contains filtered or unexported fields
}

type ProjectArtifacts struct {
// An identifier for this artifact definition.
ArtifactIdentifier *string `locationName:"artifactIdentifier" type:"string"`
// Set to true if you do not want your output artifacts encrypted. This option// is valid only if your artifacts type is Amazon Simple Storage Service (Amazon// S3). If this is set with another artifacts type, an invalidInputException// is thrown.
EncryptionDisabled *bool `locationName:"encryptionDisabled" type:"boolean"`
// Information about the build output artifact location://// * If type is set to CODEPIPELINE, AWS CodePipeline ignores this value// if specified. This is because AWS CodePipeline manages its build output// locations instead of AWS CodeBuild.//// * If type is set to NO_ARTIFACTS, this value is ignored if specified,// because no build output is produced.//// * If type is set to S3, this is the name of the output bucket.
Location *string `locationName:"location" type:"string"`
// Along with path and namespaceType, the pattern that AWS CodeBuild uses to// name and store the output artifact://// * If type is set to CODEPIPELINE, AWS CodePipeline ignores this value// if specified. This is because AWS CodePipeline manages its build output// names instead of AWS CodeBuild.//// * If type is set to NO_ARTIFACTS, this value is ignored if specified,// because no build output is produced.//// * If type is set to S3, this is the name of the output artifact object.// If you set the name to be a forward slash ("/"), the artifact is stored// in the root of the output bucket.//// For example://// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and// name is set to MyArtifact.zip, then the output artifact is stored in MyArtifacts/build-ID/MyArtifact.zip.////// * If path is empty, namespaceType is set to NONE, and name is set to// "/", the output artifact is stored in the root of the output bucket.//// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and// name is set to "/", the output artifact is stored in MyArtifacts/build-ID.
Name *string `locationName:"name" type:"string"`
// Along with path and name, the pattern that AWS CodeBuild uses to determine// the name and location to store the output artifact://// * If type is set to CODEPIPELINE, AWS CodePipeline ignores this value// if specified. This is because AWS CodePipeline manages its build output// names instead of AWS CodeBuild.//// * If type is set to NO_ARTIFACTS, this value is ignored if specified,// because no build output is produced.//// * If type is set to S3, valid values include://// BUILD_ID: Include the build ID in the location of the build output artifact.//// NONE: Do not include the build ID. This is the default if namespaceType is// not specified.//// For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID,// and name is set to MyArtifact.zip, the output artifact is stored in MyArtifacts/build-ID/MyArtifact.zip.
NamespaceType *string `locationName:"namespaceType" type:"string" enum:"ArtifactNamespace"`
// If this flag is set, a name specified in the build spec file overrides the// artifact name. The name specified in a build spec 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.
OverrideArtifactName *bool `locationName:"overrideArtifactName" type:"boolean"`
// The type of build output artifact to create://// * If type is set to CODEPIPELINE, AWS CodePipeline ignores this value// if specified. This is because AWS CodePipeline manages its build output// artifacts instead of AWS CodeBuild.//// * If type is set to NO_ARTIFACTS, this value is ignored if specified,// because no build output is produced.//// * If type is set to S3, valid values include://// NONE: AWS CodeBuild creates in the output bucket a folder that contains the// build output. This is the default if packaging is not specified.//// ZIP: AWS CodeBuild creates in the output bucket a ZIP file that contains// the build output.
Packaging *string `locationName:"packaging" type:"string" enum:"ArtifactPackaging"`
// Along with namespaceType and name, the pattern that AWS CodeBuild uses to// name and store the output artifact://// * If type is set to CODEPIPELINE, AWS CodePipeline ignores this value// if specified. This is because AWS CodePipeline manages its build output// names instead of AWS CodeBuild.//// * If type is set to NO_ARTIFACTS, this value is ignored if specified,// because no build output is produced.//// * If type is set to S3, this is the path to the output artifact. If path// is not specified, path is not used.//// For example, if path is set to MyArtifacts, namespaceType is set to NONE,// and name is set to MyArtifact.zip, the output artifact is stored in the output// bucket at MyArtifacts/MyArtifact.zip.
Path *string `locationName:"path" type:"string"`
// The type of build output artifact. Valid values include://// * CODEPIPELINE: The build project has build output generated through AWS// CodePipeline.//// * NO_ARTIFACTS: The build project does not produce any build output.//// * S3: The build project stores build output in Amazon Simple Storage Service// (Amazon S3).//// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactsType"`
// contains filtered or unexported fields
}

type ProjectBadge struct {
// Set this to true to generate a publicly accessible URL for your project's// build badge.
BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"`
// The publicly-accessible URL through which you can access the build badge// for your project.//// The publicly accessible URL through which you can access the build badge// for your project.
BadgeRequestUrl *string `locationName:"badgeRequestUrl" type:"string"`
// contains filtered or unexported fields
}

type ProjectCache struct {
// Information about the cache location://// * NO_CACHE or LOCAL: This value is ignored.//// * S3: This is the S3 bucket name/prefix.
Location *string `locationName:"location" type:"string"`
// If you use a LOCAL cache, the local cache mode. You can use one or more local// cache modes at the same time.//// * LOCAL_SOURCE_CACHE mode 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 your// project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket)// and you choose this option, then it is ignored.//// * LOCAL_DOCKER_LAYER_CACHE mode caches existing Docker layers. This mode// is a good choice for projects that build or pull large Docker images.// It can prevent the performance hit that would be caused by pulling large// Docker images down from the network.//// You can only use a Docker layer cache in the Linux enviornment.//// The privileged flag must be set so that your project has the necessary Docker// privileges.//// You should consider the security implications before using a Docker layer// cache.//// * LOCAL_CUSTOM_CACHE mode caches directories you specify in the buildspec// file. This mode is a good choice if your build scenario does not match// one that works well with one of the other three local cache modes. If// you use a custom cache://// Only directories can be specified for caching. You cannot specify individual// files.//// Symlinks are used to reference cached directories.//// Cached directories are linked to your build before it downloads its project// sources. Cached items are overriden if a source item has the same name.// Directories are specified using cache paths in the buildspec file.
Modes []*string `locationName:"modes" type:"list"`
// The type of cache used by the build project. Valid values include://// * NO_CACHE: The build project does not use any cache.//// * S3: The build project reads and writes from and to S3.//// * LOCAL: The build project stores a cache locally on a build host that// is only available to that build host.//// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"CacheType"`
// contains filtered or unexported fields
}

type ProjectEnvironment struct {
// The certificate to use with this build project.
Certificate *string `locationName:"certificate" type:"string"`
// Information about the compute resources the build project uses. Available// values include://// * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.//// * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.//// * BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds.//// ComputeType is a required field
ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"`
// A set of environment variables to make available to builds for this build// project.
EnvironmentVariables []*EnvironmentVariable `locationName:"environmentVariables" type:"list"`
// The image tag or image digest that identifies the Docker image to use for// this build project. Use the following formats://// * For an image tag: registry/repository:tag. For example, to specify an// image with the tag "latest," use registry/repository:latest.//// * For an image digest: registry/repository@digest. For example, to specify// an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf,"// use registry/repository@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf.//// Image is a required field
Image *string `locationName:"image" min:"1" type:"string" required:"true"`
// The type of credentials AWS CodeBuild uses to pull images in your build.// There are two valid values://// * CODEBUILD specifies that AWS CodeBuild uses its own credentials. This// requires that you modify your ECR repository policy to trust AWS CodeBuild's// service principal.//// * SERVICE_ROLE specifies that AWS CodeBuild uses your build project's// service role.//// When you use a cross-account or private registry image, you must use SERVICE_ROLE// credentials. When you use an AWS CodeBuild curated image, you must use CODEBUILD// credentials.
ImagePullCredentialsType *string `locationName:"imagePullCredentialsType" type:"string" enum:"ImagePullCredentialsType"`
// Enables running the Docker daemon inside a Docker container. Set to true// only if the build project is be used to build Docker images, and the specified// build environment image is not provided by AWS CodeBuild with Docker support.// Otherwise, all associated builds that attempt to interact with the Docker// daemon fail. You must also start the Docker daemon so that builds can interact// with it. One way to do this is to initialize the Docker daemon during the// install phase of your build spec by running the following build commands.// (Do not run these commands if the specified build environment image is provided// by AWS CodeBuild with Docker support.)//// If the operating system's base image is Ubuntu Linux://// - nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375// --storage-driver=overlay& - timeout 15 sh -c "until docker info; do echo// .; sleep 1; done"//// If the operating system's base image is Alpine Linux, add the -t argument// to timeout://// - nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375// --storage-driver=overlay& - timeout 15 -t sh -c "until docker info; do echo// .; sleep 1; done"
PrivilegedMode *bool `locationName:"privilegedMode" type:"boolean"`
// The credentials for access to a private registry.
RegistryCredential *RegistryCredential `locationName:"registryCredential" type:"structure"`
// The type of build environment to use for related builds.//// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"EnvironmentType"`
// contains filtered or unexported fields
}

type ProjectSource struct {
// Information about the authorization settings for AWS CodeBuild to access// the source code to be built.//// This information is for the AWS CodeBuild console's use only. Your code should// not get or set this information directly.
Auth *SourceAuth `locationName:"auth" type:"structure"`
// The build spec declaration to use for the builds in this build project.//// If this value is not specified, a build spec must be included along with// the source code to be built.
Buildspec *string `locationName:"buildspec" type:"string"`
// Information about the git clone depth for the build project.
GitCloneDepth *int64 `locationName:"gitCloneDepth" type:"integer"`
// Enable this flag to ignore SSL warnings while connecting to the project source// code.
InsecureSsl *bool `locationName:"insecureSsl" type:"boolean"`
// Information about the location of the source code to be built. Valid values// include://// * For source code settings that are specified in the source action of// a pipeline in AWS CodePipeline, location should not be specified. If it// is specified, AWS CodePipeline ignores it. This is because AWS CodePipeline// uses the settings in a pipeline's source action instead of this value.//// * For source code in an AWS CodeCommit repository, the HTTPS clone URL// to the repository that contains the source code and the build spec (for// example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name).//// * For source code in an Amazon Simple Storage Service (Amazon S3) input// bucket, one of the following.//// The path to the ZIP file that contains the source code (for example, bucket-name/path/to/object-name.zip).////// The path to the folder that contains the source code (for example, bucket-name/path/to/source-code/folder/).////// * For source code in a GitHub repository, the HTTPS clone URL to the repository// that contains the source and the build spec. You must connect your AWS// account to your GitHub account. Use the AWS CodeBuild console to start// creating a build project. When you use the console to connect (or reconnect)// with GitHub, on the GitHub Authorize application page, for Organization// access, choose Request access next to each repository you want to allow// AWS CodeBuild to have access to, and then choose Authorize application.// (After you have connected to your GitHub account, you do not need to finish// creating the build project. You can leave the AWS CodeBuild console.)// To instruct AWS CodeBuild to use this connection, in the source object,// set the auth object's type value to OAUTH.//// * For source code in a Bitbucket repository, the HTTPS clone URL to the// repository that contains the source and the build spec. You must connect// your AWS account to your Bitbucket account. Use the AWS CodeBuild console// to start creating a build project. When you use the console to connect// (or reconnect) with Bitbucket, on the Bitbucket Confirm access to your// account page, choose Grant access. (After you have connected to your Bitbucket// account, you do not need to finish creating the build project. You can// leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this// connection, in the source object, set the auth object's type value to// OAUTH.
Location *string `locationName:"location" type:"string"`
// Set to true to report the status of a build'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 invalidInputException is thrown.
ReportBuildStatus *bool `locationName:"reportBuildStatus" type:"boolean"`
// An identifier for this project source.
SourceIdentifier *string `locationName:"sourceIdentifier" type:"string"`
// The type of repository that contains the source code to be built. Valid values// include://// * BITBUCKET: The source code is in a Bitbucket repository.//// * CODECOMMIT: The source code is in an AWS CodeCommit repository.//// * CODEPIPELINE: The source code settings are specified in the source action// of a pipeline in AWS CodePipeline.//// * GITHUB: The source code is in a GitHub repository.//// * NO_SOURCE: The project does not have input source code.//// * S3: The source code is in an Amazon Simple Storage Service (Amazon S3)// input bucket.//// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"SourceType"`
// contains filtered or unexported fields
}

type ProjectSourceVersion struct {
// An identifier for a source in the build project.//// SourceIdentifier is a required field
SourceIdentifier *string `locationName:"sourceIdentifier" type:"string" required:"true"`
// The source version for the corresponding source identifier. If specified,// must be one of://// * For AWS CodeCommit: the commit ID to use.//// * 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 pr/pull-request-ID// (for example, pr/25). 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.//// * 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.//// * For Amazon Simple Storage Service (Amazon S3): the version ID of the// object that represents the build input ZIP file to use.//// SourceVersion is a required field
SourceVersion *string `locationName:"sourceVersion" type:"string" required:"true"`
// contains filtered or unexported fields
}

type RegistryCredential struct {
// The Amazon Resource Name (ARN) or name of credentials created using AWS Secrets// Manager.//// The credential can use the name of the credentials only if they exist in// your current region.//// Credential is a required field
Credential *string `locationName:"credential" min:"1" type:"string" required:"true"`
// The service that created the credentials to access a private Docker registry.// The valid value, SECRETS_MANAGER, is for AWS Secrets Manager.//// CredentialProvider is a required field
CredentialProvider *string `locationName:"credentialProvider" type:"string" required:"true" enum:"CredentialProviderType"`
// contains filtered or unexported fields
}

Information about credentials that provide access to a private Docker registry.
When this is set:

* imagePullCredentialsType must be set to SERVICE_ROLE.
* images cannot be curated or an Amazon ECR image.

type StartBuildInput struct {
// Build output artifact settings that override, for this build only, the latest// ones already defined in the build project.
ArtifactsOverride *ProjectArtifacts `locationName:"artifactsOverride" type:"structure"`
// A build spec declaration that overrides, for this build only, the latest// one already defined in the build project.
BuildspecOverride *string `locationName:"buildspecOverride" type:"string"`
// A ProjectCache object specified for this build that overrides the one defined// in the build project.
CacheOverride *ProjectCache `locationName:"cacheOverride" type:"structure"`
// The name of a certificate for this build that overrides the one specified// in the build project.
CertificateOverride *string `locationName:"certificateOverride" type:"string"`
// The name of a compute type for this build that overrides the one specified// in the build project.
ComputeTypeOverride *string `locationName:"computeTypeOverride" type:"string" enum:"ComputeType"`
// A container type for this build that overrides the one specified in the build// project.
EnvironmentTypeOverride *string `locationName:"environmentTypeOverride" type:"string" enum:"EnvironmentType"`
// A set of environment variables that overrides, for this build only, the latest// ones already defined in the build project.
EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"`
// 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.
GitCloneDepthOverride *int64 `locationName:"gitCloneDepthOverride" type:"integer"`
// 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 12 hours. If you repeat the StartBuild request with the// same token, but change a parameter, AWS CodeBuild returns a parameter mismatch// error.
IdempotencyToken *string `locationName:"idempotencyToken" type:"string"`
// The name of an image for this build that overrides the one specified in the// build project.
ImageOverride *string `locationName:"imageOverride" min:"1" type:"string"`
// The type of credentials AWS CodeBuild uses to pull images in your build.// There are two valid values://// * CODEBUILD specifies that AWS CodeBuild uses its own credentials. This// requires that you modify your ECR repository policy to trust AWS CodeBuild's// service principal.//// * SERVICE_ROLE specifies that AWS CodeBuild uses your build project's// service role.//// When using a cross-account or private registry image, you must use SERVICE_ROLE// credentials. When using an AWS CodeBuild curated image, you must use CODEBUILD// credentials.
ImagePullCredentialsTypeOverride *string `locationName:"imagePullCredentialsTypeOverride" type:"string" enum:"ImagePullCredentialsType"`
// 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.
InsecureSslOverride *bool `locationName:"insecureSslOverride" type:"boolean"`
// Log settings for this build that override the log settings defined in the// build project.
LogsConfigOverride *LogsConfig `locationName:"logsConfigOverride" type:"structure"`
// Enable this flag to override privileged mode in the build project.
PrivilegedModeOverride *bool `locationName:"privilegedModeOverride" type:"boolean"`
// The name of the AWS CodeBuild build project to start running a build.//// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutesOverride *int64 `locationName:"queuedTimeoutInMinutesOverride" min:"5" type:"integer"`
// The credentials for access to a private registry.
RegistryCredentialOverride *RegistryCredential `locationName:"registryCredentialOverride" type:"structure"`
// Set to true to report to your source provider the status of a build's start// and completion. If you use this option with a source provider other than// GitHub, GitHub Enterprise, or Bitbucket, an invalidInputException is thrown.
ReportBuildStatusOverride *bool `locationName:"reportBuildStatusOverride" type:"boolean"`
// An array of ProjectArtifacts objects.
SecondaryArtifactsOverride []*ProjectArtifacts `locationName:"secondaryArtifactsOverride" type:"list"`
// An array of ProjectSource objects.
SecondarySourcesOverride []*ProjectSource `locationName:"secondarySourcesOverride" type:"list"`
// An array of ProjectSourceVersion objects that specify one or more versions// of the project's secondary sources to be used for this build only.
SecondarySourcesVersionOverride []*ProjectSourceVersion `locationName:"secondarySourcesVersionOverride" type:"list"`
// The name of a service role for this build that overrides the one specified// in the build project.
ServiceRoleOverride *string `locationName:"serviceRoleOverride" min:"1" type:"string"`
// 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.
SourceAuthOverride *SourceAuth `locationName:"sourceAuthOverride" type:"structure"`
// A location that overrides, for this build, the source location for the one// defined in the build project.
SourceLocationOverride *string `locationName:"sourceLocationOverride" type:"string"`
// A source input type, for this build, that overrides the source input defined// in the build project.
SourceTypeOverride *string `locationName:"sourceTypeOverride" type:"string" enum:"SourceType"`
// A version of the build input to be built, for this build only. If not specified,// the latest version is used. If specified, must be one of://// * For AWS CodeCommit: the commit ID to use.//// * 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 pr/pull-request-ID// (for example pr/25). 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.//// * 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.//// * For Amazon Simple Storage Service (Amazon S3): the version ID of the// object that represents the build input ZIP file to use.
SourceVersion *string `locationName:"sourceVersion" type:"string"`
// 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.
TimeoutInMinutesOverride *int64 `locationName:"timeoutInMinutesOverride" min:"5" type:"integer"`
// contains filtered or unexported fields
}

type UpdateProjectInput struct {
// Information to be changed about the build output artifacts for the build// project.
Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"`
// Set this to true to generate a publicly accessible URL for your project's// build badge.
BadgeEnabled *bool `locationName:"badgeEnabled" type:"boolean"`
// Stores recently used information so that it can be quickly accessed at a// later time.
Cache *ProjectCache `locationName:"cache" type:"structure"`
// A new or replacement description of the build project.
Description *string `locationName:"description" type:"string"`
// The replacement AWS Key Management Service (AWS KMS) customer master key// (CMK) to be used for encrypting the build output artifacts.//// You can specify either the Amazon Resource Name (ARN)of the CMK or, if available,// the CMK's alias (using the format alias/alias-name).
EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`
// Information to be changed about the build environment for the build project.
Environment *ProjectEnvironment `locationName:"environment" type:"structure"`
// Information about logs for the build project. A project can create logs in// Amazon CloudWatch Logs, logs in an S3 bucket, or both.
LogsConfig *LogsConfig `locationName:"logsConfig" type:"structure"`
// The name of the build project.//// You cannot change a build project's name.//// Name is a required field
Name *string `locationName:"name" min:"1" type:"string" required:"true"`
// The number of minutes a build is allowed to be queued before it times out.
QueuedTimeoutInMinutes *int64 `locationName:"queuedTimeoutInMinutes" min:"5" type:"integer"`
// An array of ProjectSource objects.
SecondaryArtifacts []*ProjectArtifacts `locationName:"secondaryArtifacts" type:"list"`
// An array of ProjectSource objects.
SecondarySources []*ProjectSource `locationName:"secondarySources" type:"list"`
// The replacement ARN of the AWS Identity and Access Management (IAM) role// that enables AWS CodeBuild to interact with dependent AWS services on behalf// of the AWS account.
ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`
// Information to be changed about the build input source code for the build// project.
Source *ProjectSource `locationName:"source" type:"structure"`
// The replacement set of tags for this build project.//// These tags are available for use by AWS services that support AWS CodeBuild// build project tags.
Tags []*Tag `locationName:"tags" type:"list"`
// The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild// to wait before timing out any related build that did not get marked as completed.
TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"5" type:"integer"`
// VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
VpcConfig *VpcConfig `locationName:"vpcConfig" type:"structure"`
// contains filtered or unexported fields
}

type UpdateWebhookInput struct {
// 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 branchFilter is empty, then all branches// are built.//// It is recommended that you use filterGroups instead of branchFilter.
BranchFilter *string `locationName:"branchFilter" type:"string"`
// An array of arrays of WebhookFilter objects used to determine if a webhook// event can trigger a build. A filter group must pcontain at least one EVENTWebhookFilter.
FilterGroups [][]*WebhookFilter `locationName:"filterGroups" type:"list"`
// The name of the AWS CodeBuild project.//// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"2" type:"string" required:"true"`
// A boolean value that specifies whether the associated GitHub repository's// secret token should be updated. If you use Bitbucket for your repository,// rotateSecret is ignored.
RotateSecret *bool `locationName:"rotateSecret" type:"boolean"`
// contains filtered or unexported fields
}

type Webhook struct {
// 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 branchFilter is empty, then all branches// are built.//// It is recommended that you use filterGroups instead of branchFilter.
BranchFilter *string `locationName:"branchFilter" type:"string"`
// An array of arrays of WebhookFilter objects used to determine which webhooks// are triggered. At least one WebhookFilter in the array must specify EVENT// as its type.//// For a build to be triggered, at least one filter group in the filterGroups// array must pass. For a filter group to pass, each of its filters must pass.
FilterGroups [][]*WebhookFilter `locationName:"filterGroups" type:"list"`
// A timestamp that indicates the last time a repository's secret token was// modified.
LastModifiedSecret *time.Time `locationName:"lastModifiedSecret" type:"timestamp"`
// The AWS CodeBuild endpoint where webhook events are sent.
PayloadUrl *string `locationName:"payloadUrl" min:"1" type:"string"`
// The secret token of the associated repository.//// A Bitbucket webhook does not support secret.
Secret *string `locationName:"secret" min:"1" type:"string"`
// The URL to the webhook.
Url *string `locationName:"url" min:"1" type:"string"`
// contains filtered or unexported fields
}

Information about a webhook that connects repository events to a build project
in AWS CodeBuild.

type WebhookFilter struct {
// Used to indicate that the pattern determines which webhook events do not// trigger a build. If true, then a webhook event that does not match the pattern// triggers a build. If false, then a webhook event that matches the pattern// triggers a build.
ExcludeMatchedPattern *bool `locationName:"excludeMatchedPattern" type:"boolean"`
// For a WebHookFilter that uses EVENT type, a comma-separated string that specifies// one or more events. For example, the webhook filter PUSH, PULL_REQUEST_CREATED,// PULL_REQUEST_UPDATED allows all push, pull request created, and pull request// updated events to trigger a build.//// For a WebHookFilter that uses any of the other filter types, a regular expression// pattern. For example, a WebHookFilter that uses HEAD_REF for its type and// the pattern ^refs/heads/ triggers a build when the head reference is a branch// with a reference name refs/heads/branch-name.//// Pattern is a required field
Pattern *string `locationName:"pattern" type:"string" required:"true"`
// The type of webhook filter. There are five webhook filter types: EVENT, ACTOR_ACCOUNT_ID,// HEAD_REF, BASE_REF, and FILE_PATH.//// EVENT A webhook event triggers a build when the provided pattern matches// one of four event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED,// and PULL_REQUEST_REOPENED. The EVENT patterns are specified as a comma-separated// string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED filters// all push, pull request created, and pull request updated events.//// The PULL_REQUEST_REOPENED works with GitHub and GitHub Enterprise only.//// ACTOR_ACCOUNT_ID A webhook event triggers a build when a GitHub, GitHub// Enterprise, or Bitbucket account ID matches the regular expression pattern.//// HEAD_REF A webhook event triggers a build when the head reference matches// the regular expression pattern. For example, refs/heads/branch-name and refs/tags/tag-name.//// Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise// pull request, Bitbucket push, and Bitbucket pull request events.//// BASE_REF A webhook event triggers a build when the base reference matches// the regular expression pattern. For example, refs/heads/branch-name.//// Works with pull request events only.//// FILE_PATH A webhook triggers a build when the path of a changed file matches// the regular expression pattern.//// Works with GitHub and GitHub Enterprise push events only.//// Type is a required field
Type *string `locationName:"type" type:"string" required:"true" enum:"WebhookFilterType"`
// contains filtered or unexported fields
}