Module Smaws_Client_CodeBuild.Types

type nonrec wrapper_long = Smaws_Lib.CoreTypes.Int64.t
type nonrec wrapper_int = int
type nonrec wrapper_double = float
type nonrec wrapper_boolean = bool
type nonrec webhook_status =
  1. | DELETING
  2. | ACTIVE
  3. | CREATE_FAILED
  4. | CREATING
type nonrec webhook_scope_type =
  1. | GITLAB_GROUP
  2. | GITHUB_GLOBAL
  3. | GITHUB_ORGANIZATION
type nonrec webhook_filter_type =
  1. | ORGANIZATION_NAME
  2. | REPOSITORY_NAME
  3. | RELEASE_NAME
  4. | TAG_NAME
  5. | WORKFLOW_NAME
  6. | COMMIT_MESSAGE
  7. | FILE_PATH
  8. | ACTOR_ACCOUNT_ID
  9. | HEAD_REF
  10. | BASE_REF
  11. | EVENT
type nonrec string_ = string
type nonrec webhook_filter = {
  1. exclude_matched_pattern : wrapper_boolean option;
    (*

    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.

    *)
  2. pattern : string_;
    (*

    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.

    *)
  3. type_ : webhook_filter_type;
    (*

    The type of webhook filter. There are 11 webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, RELEASE_NAME, REPOSITORY_NAME, ORGANIZATION_NAME, and WORKFLOW_NAME.

    • EVENT

      • A webhook event triggers a build when the provided pattern matches one of nine event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_CLOSED, PULL_REQUEST_REOPENED, PULL_REQUEST_MERGED, RELEASED, PRERELEASED, and WORKFLOW_JOB_QUEUED. 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.

        Types PULL_REQUEST_REOPENED and WORKFLOW_JOB_QUEUED work with GitHub and GitHub Enterprise only. Types RELEASED and PRERELEASED work with GitHub 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 push and pull request events only.

    • COMMIT_MESSAGE

      • A webhook triggers a build when the head commit message matches the regular expression pattern.

        Works with push and pull request events only.

    • TAG_NAME

      • A webhook triggers a build when the tag name of the release matches the regular expression pattern.

        Works with RELEASED and PRERELEASED events only.

    • RELEASE_NAME

      • A webhook triggers a build when the release name matches the regular expression pattern.

        Works with RELEASED and PRERELEASED events only.

    • REPOSITORY_NAME

      • A webhook triggers a build when the repository name matches the regular expression pattern.

        Works with GitHub global or organization webhooks only.

    • ORGANIZATION_NAME

      • A webhook triggers a build when the organization name matches the regular expression pattern.

        Works with GitHub global webhooks only.

    • WORKFLOW_NAME

      • A webhook triggers a build when the workflow name matches the regular expression pattern.

        Works with WORKFLOW_JOB_QUEUED events only.

        For CodeBuild-hosted Buildkite runner builds, WORKFLOW_NAME filters will filter by pipeline name.

    *)
}

A filter used to determine which webhooks trigger a build.

type nonrec webhook_build_type =
  1. | RUNNER_BUILDKITE_BUILD
  2. | BUILD_BATCH
  3. | BUILD
type nonrec non_empty_string = string
type nonrec filter_group = webhook_filter list
type nonrec filter_groups = filter_group list
type nonrec timestamp = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec scope_configuration = {
  1. scope : webhook_scope_type;
    (*

    The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION.

    *)
  2. domain : string_ option;
    (*

    The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED.

    *)
  3. name : string_;
    (*

    The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook.

    *)
}

Contains configuration information about the scope for a webhook.

type nonrec pull_request_build_comment_approval =
  1. | FORK_PULL_REQUESTS
  2. | ALL_PULL_REQUESTS
  3. | DISABLED
type nonrec pull_request_build_approver_role =
  1. | BITBUCKET_ADMIN
  2. | BITBUCKET_WRITE
  3. | BITBUCKET_READ
  4. | GITLAB_OWNER
  5. | GITLAB_MAINTAINER
  6. | GITLAB_DEVELOPER
  7. | GITLAB_REPORTER
  8. | GITLAB_PLANNER
  9. | GITLAB_GUEST
  10. | GITHUB_ADMIN
  11. | GITHUB_MAINTAIN
  12. | GITHUB_WRITE
  13. | GITHUB_TRIAGE
  14. | GITHUB_READ
type nonrec pull_request_build_approver_roles = pull_request_build_approver_role list
type nonrec pull_request_build_policy = {
  1. approver_roles : pull_request_build_approver_roles option;
    (*

    List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED.

    *)
  2. requires_comment_approval : pull_request_build_comment_approval;
    (*

    Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments.

    • DISABLED: Builds trigger automatically without requiring comment approval
    • ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles)
    • FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)
    *)
}

A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

type nonrec webhook = {
  1. pull_request_build_policy : pull_request_build_policy option;
  2. status_message : string_ option;
    (*

    A message associated with the status of a webhook.

    *)
  3. status : webhook_status option;
    (*

    The status of the webhook. Valid values include:

    • CREATING: The webhook is being created.
    • CREATE_FAILED: The webhook has failed to create.
    • ACTIVE: The webhook has succeeded and is active.
    • DELETING: The webhook is being deleted.
    *)
  4. scope_configuration : scope_configuration option;
    (*

    The scope configuration for global or organization webhooks.

    Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.

    *)
  5. last_modified_secret : timestamp option;
    (*

    A timestamp that indicates the last time a repository's secret token was modified.

    *)
  6. manual_creation : wrapper_boolean option;
    (*

    If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

    manualCreation is only available for GitHub webhooks.

    *)
  7. build_type : webhook_build_type option;
    (*

    Specifies the type of build this webhook will trigger.

    RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

    *)
  8. filter_groups : filter_groups option;
    (*

    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.

    *)
  9. branch_filter : string_ option;
    (*

    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.

    *)
  10. secret : non_empty_string option;
    (*

    The secret token of the associated repository.

    A Bitbucket webhook does not support secret.

    *)
  11. payload_url : non_empty_string option;
    (*

    The CodeBuild endpoint where webhook events are sent.

    *)
  12. url : non_empty_string option;
    (*

    The URL to the webhook.

    *)
}

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

type nonrec subnets = non_empty_string list
type nonrec security_group_ids = non_empty_string list
type nonrec vpc_config = {
  1. security_group_ids : security_group_ids option;
    (*

    A list of one or more security groups IDs in your Amazon VPC.

    *)
  2. subnets : subnets option;
    (*

    A list of one or more subnet IDs in your Amazon VPC.

    *)
  3. vpc_id : non_empty_string option;
    (*

    The ID of the Amazon VPC.

    *)
}

Information about the VPC configuration that CodeBuild accesses.

type nonrec value_input = string
type nonrec update_webhook_output = {
  1. webhook : webhook option;
    (*

    Information about a repository's webhook that is associated with a project in CodeBuild.

    *)
}
type nonrec project_name = string
type nonrec boolean_ = bool
type nonrec update_webhook_input = {
  1. pull_request_build_policy : pull_request_build_policy option;
    (*

    A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

    *)
  2. build_type : webhook_build_type option;
    (*

    Specifies the type of build this webhook will trigger.

    RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

    *)
  3. filter_groups : filter_groups option;
    (*

    An array of arrays of WebhookFilter objects used to determine if a webhook event can trigger a build. A filter group must contain at least one EVENT WebhookFilter.

    *)
  4. rotate_secret : boolean_ option;
    (*

    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.

    *)
  5. branch_filter : string_ option;
    (*

    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.

    *)
  6. project_name : project_name;
    (*

    The name of the CodeBuild project.

    *)
}
type nonrec resource_not_found_exception = {
  1. message : string_ option;
}

The specified Amazon Web Services resource cannot be found.

type nonrec o_auth_provider_exception = {
  1. message : string_ option;
}

There was a problem with the underlying OAuth provider.

type nonrec invalid_input_exception = {
  1. message : string_ option;
}

The input value that was provided is not valid.

type nonrec report_group_name = string
type nonrec report_type =
  1. | CODE_COVERAGE
  2. | TEST
type nonrec report_export_config_type =
  1. | NO_EXPORT
  2. | S3
type nonrec report_packaging_type =
  1. | NONE
  2. | ZIP
type nonrec s3_report_export_config = {
  1. encryption_disabled : wrapper_boolean option;
    (*

    A boolean value that specifies if the results of a report are encrypted.

    *)
  2. encryption_key : non_empty_string option;
    (*

    The encryption key for the report's encrypted raw data.

    *)
  3. packaging : report_packaging_type option;
    (*

    The type of build output artifact to create. Valid values include:

    • NONE: CodeBuild creates the raw data in the output bucket. This is the default if packaging is not specified.
    • ZIP: CodeBuild creates a ZIP file with the raw data in the output bucket.
    *)
  4. path : string_ option;
    (*

    The path to the exported report's raw data results.

    *)
  5. bucket_owner : string_ option;
    (*

    The Amazon Web Services account identifier of the owner of the Amazon S3 bucket. This allows report data to be exported to an Amazon S3 bucket that is owned by an account other than the account running the build.

    *)
  6. bucket : non_empty_string option;
    (*

    The name of the S3 bucket where the raw data of a report are exported.

    *)
}

Information about the S3 bucket where the raw data of a report are exported.

type nonrec report_export_config = {
  1. s3_destination : s3_report_export_config option;
    (*

    A S3ReportExportConfig object that contains information about the S3 bucket where the run of a report is exported.

    *)
  2. export_config_type : report_export_config_type option;
    (*

    The export configuration type. Valid values are:

    • S3: The report results are exported to an S3 bucket.
    • NO_EXPORT: The report results are not exported.
    *)
}

Information about the location where the run of a report is exported.

type nonrec key_input = string
type nonrec tag = {
  1. value : value_input option;
    (*

    The tag's value.

    *)
  2. key : key_input option;
    (*

    The tag's key.

    *)
}

A tag, consisting of a key and a value.

This tag is available for use by Amazon Web Services services that support tags in CodeBuild.

type nonrec tag_list = tag list
type nonrec report_group_status_type =
  1. | DELETING
  2. | ACTIVE
type nonrec report_group = {
  1. status : report_group_status_type option;
    (*

    The status of the report group. This property is read-only.

    This can be one of the following values:

    ACTIVE The report group is active.

    DELETING The report group is in the process of being deleted.

    *)
  2. tags : tag_list option;
    (*

    A list of tag key and value pairs associated with this report group.

    These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

    *)
  3. last_modified : timestamp option;
    (*

    The date and time this ReportGroup was last modified.

    *)
  4. created : timestamp option;
    (*

    The date and time this ReportGroup was created.

    *)
  5. export_config : report_export_config option;
    (*

    Information about the destination where the raw data of this ReportGroup is exported.

    *)
  6. type_ : report_type option;
    (*

    The type of the ReportGroup. This can be one of the following values:

    CODE_COVERAGE The report group contains code coverage reports.

    TEST The report group contains test reports.

    *)
  7. name : report_group_name option;
    (*

    The name of the ReportGroup.

    *)
  8. arn : non_empty_string option;
    (*

    The ARN of the ReportGroup.

    *)
}

A series of reports. Each report contains information about the results from running a series of test cases. You specify the test cases for a report group in the buildspec for a build project using one or more paths to the test case files.

type nonrec update_report_group_output = {
  1. report_group : report_group option;
    (*

    Information about the updated report group.

    *)
}
type nonrec update_report_group_input = {
  1. tags : tag_list option;
    (*

    An updated list of tag key and value pairs associated with this report group.

    These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

    *)
  2. export_config : report_export_config option;
    (*

    Used to specify an updated export type. Valid values are:

    • S3: The report results are exported to an S3 bucket.
    • NO_EXPORT: The report results are not exported.
    *)
  3. arn : non_empty_string;
    (*

    The ARN of the report group to update.

    *)
}
type nonrec project_visibility_type =
  1. | PRIVATE
  2. | PUBLIC_READ

Specifies the visibility of the project's builds. Possible values are:

PUBLIC_READ The project builds are visible to the public.

PRIVATE The project builds are not visible to the public.

type nonrec update_project_visibility_output = {
  1. project_visibility : project_visibility_type option;
  2. public_project_alias : non_empty_string option;
    (*

    Contains the project identifier used with the public build APIs.

    *)
  3. project_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the build project.

    *)
}
type nonrec update_project_visibility_input = {
  1. resource_access_role : non_empty_string option;
    (*

    The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.

    *)
  2. project_visibility : project_visibility_type;
  3. project_arn : non_empty_string;
    (*

    The Amazon Resource Name (ARN) of the build project.

    *)
}
type nonrec project_description = string
type nonrec source_type =
  1. | NO_SOURCE
  2. | GITHUB_ENTERPRISE
  3. | BITBUCKET
  4. | S3
  5. | GITLAB_SELF_MANAGED
  6. | GITLAB
  7. | GITHUB
  8. | CODEPIPELINE
  9. | CODECOMMIT
type nonrec git_clone_depth = int
type nonrec git_submodules_config = {
  1. fetch_submodules : wrapper_boolean;
    (*

    Set to true to fetch Git submodules for your CodeBuild build project.

    *)
}

Information about the Git submodules configuration for an CodeBuild build project.

type nonrec source_auth_type =
  1. | SECRETS_MANAGER
  2. | CODECONNECTIONS
  3. | OAUTH
type nonrec source_auth = {
  1. resource : string_ option;
    (*

    The resource value that applies to the specified authorization type.

    *)
  2. type_ : source_auth_type;
    (*

    The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.

    *)
}

Information about the authorization settings for CodeBuild to access the source code to be built.

type nonrec build_status_config = {
  1. target_url : string_ option;
    (*

    Specifies the target url of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.

    Bitbucket This parameter is used for the url parameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation.

    GitHub/GitHub Enterprise Server This parameter is used for the target_url parameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.

    *)
  2. context : string_ option;
    (*

    Specifies the context of the build status CodeBuild sends to the source provider. The usage of this parameter depends on the source provider.

    Bitbucket This parameter is used for the name parameter in the Bitbucket commit status. For more information, see build in the Bitbucket API documentation.

    GitHub/GitHub Enterprise Server This parameter is used for the context parameter in the GitHub commit status. For more information, see Create a commit status in the GitHub developer guide.

    *)
}

Contains information that defines how the CodeBuild build project reports the build status to the source provider.

type nonrec project_source = {
  1. source_identifier : string_ option;
    (*

    An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.

    *)
  2. insecure_ssl : wrapper_boolean option;
    (*

    Enable this flag to ignore SSL warnings while connecting to the project source code.

    *)
  3. build_status_config : build_status_config option;
    (*

    Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

    *)
  4. report_build_status : wrapper_boolean option;
    (*

    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, GitLab, GitLab Self Managed, GitLab, GitLab Self Managed, or Bitbucket. If this is set and you use a different source provider, an invalidInputException is thrown.

    To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

    The status of a build triggered by a webhook is always reported to your source provider.

    If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this property to take effect.

    *)
  5. auth : source_auth option;
    (*

    Information about the authorization settings for CodeBuild to access the source code to be built.

    *)
  6. buildspec : string_ option;
    (*

    The buildspec file declaration to use for the builds in this build project.

    If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

    *)
  7. git_submodules_config : git_submodules_config option;
    (*

    Information about the Git submodules configuration for the build project.

    *)
  8. git_clone_depth : git_clone_depth option;
    (*

    Information about the Git clone depth for the build project.

    *)
  9. location : string_ option;
    (*

    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 CodePipeline, location should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value.
    • For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example,

      https://git-codecommit..amazonaws.com/v1/repos/

      ).

    • For source code in an Amazon S3 input bucket, one of the following.

      • The path to the ZIP file that contains the source code (for example,

        //.zip

        ).

      • The path to the folder that contains the source code (for example,

        ///

        ).

    • For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub Authorize application page, for Organization access, choose Request access next to each repository you want to allow 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 CodeBuild console.) To instruct CodeBuild to use this connection, in the source object, set the auth object's type value to OAUTH.
    • For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your GitLab account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections Authorize application page, choose Authorize. Then on the CodeConnections Create GitLab connection page, choose Connect to GitLab. (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to override the default connection and use this connection instead, set the auth object's type value to CODECONNECTIONS in the source object.
    • For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket 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 CodeBuild console.) To instruct CodeBuild to use this connection, in the source object, set the auth object's type value to OAUTH.

    If you specify CODEPIPELINE for the Type property, don't specify this property. For all of the other types, you must specify Location.

    *)
  10. type_ : source_type;
    (*

    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 CodeCommit repository.
    • CODEPIPELINE: The source code settings are specified in the source action of a pipeline in CodePipeline.
    • GITHUB: The source code is in a GitHub repository.
    • GITHUB_ENTERPRISE: The source code is in a GitHub Enterprise Server repository.
    • GITLAB: The source code is in a GitLab repository.
    • GITLAB_SELF_MANAGED: The source code is in a self-managed GitLab repository.
    • NO_SOURCE: The project does not have input source code.
    • S3: The source code is in an Amazon S3 bucket.
    *)
}

Information about the build input source code for the build project.

type nonrec project_sources = project_source list
type nonrec project_source_version = {
  1. source_version : string_;
    (*

    The source version for the corresponding source identifier. If specified, must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
    • 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 S3: the version ID of the object that represents the build input ZIP file to use.

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  2. source_identifier : string_;
    (*

    An identifier for a source in the build project. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.

    *)
}

A source identifier and its corresponding version.

type nonrec project_secondary_source_versions = project_source_version list
type nonrec artifacts_type =
  1. | NO_ARTIFACTS
  2. | S3
  3. | CODEPIPELINE
type nonrec artifact_namespace =
  1. | BUILD_ID
  2. | NONE
type nonrec artifact_packaging =
  1. | ZIP
  2. | NONE
type nonrec bucket_owner_access =
  1. | FULL
  2. | READ_ONLY
  3. | NONE

Specifies the bucket owner's access for objects that another account uploads to their Amazon S3 bucket. By default, only the account that uploads the objects to the bucket has access to these objects. This property allows you to give the bucket owner access to these objects.

To use this property, your CodeBuild service role must have the s3:PutBucketAcl permission. This permission allows CodeBuild to modify the access control list for the bucket.

This property can be one of the following values:

NONE The bucket owner does not have access to the objects. This is the default.

READ_ONLY The bucket owner has read-only access to the objects. The uploading account retains ownership of the objects.

FULL The bucket owner has full access to the objects. Object ownership is determined by the following criteria:

  • If the bucket is configured with the Bucket owner preferred setting, the bucket owner owns the objects. The uploading account will have object access as specified by the bucket's policy.
  • Otherwise, the uploading account retains ownership of the objects.

For more information about Amazon S3 object ownership, see Controlling ownership of uploaded objects using S3 Object Ownership in the Amazon Simple Storage Service User Guide.

type nonrec project_artifacts = {
  1. bucket_owner_access : bucket_owner_access option;
  2. artifact_identifier : string_ option;
    (*

    An identifier for this artifact definition.

    *)
  3. encryption_disabled : wrapper_boolean option;
    (*

    Set to true if you do not want your output artifacts encrypted. This option is valid only if your artifacts type is Amazon S3. If this is set with another artifacts type, an invalidInputException is thrown.

    *)
  4. override_artifact_name : wrapper_boolean option;
    (*

    If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

    *)
  5. packaging : artifact_packaging option;
    (*

    The type of build output artifact to create:

    • If type is set to CODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output artifacts instead of 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: CodeBuild creates in the output bucket a folder that contains the build output. This is the default if packaging is not specified.
      • ZIP: CodeBuild creates in the output bucket a ZIP file that contains the build output.
    *)
  6. name : string_ option;
    (*

    Along with path and namespaceType, the pattern that CodeBuild uses to name and store the output artifact:

    • If type is set to CODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of 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//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/

      .

    *)
  7. namespace_type : artifact_namespace option;
    (*

    Along with path and name, the pattern that CodeBuild uses to determine the name and location to store the output artifact:

    • If type is set to CODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of 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//MyArtifact.zip

    .

    *)
  8. path : string_ option;
    (*

    Along with namespaceType and name, the pattern that CodeBuild uses to name and store the output artifact:

    • If type is set to CODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output names instead of 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.

    *)
  9. location : string_ option;
    (*

    Information about the build output artifact location:

    • If type is set to CODEPIPELINE, CodePipeline ignores this value if specified. This is because CodePipeline manages its build output locations instead of 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.
    *)
  10. type_ : artifacts_type;
    (*

    The type of build output artifact. Valid values include:

    • CODEPIPELINE: The build project has build output generated through CodePipeline.

      The CODEPIPELINE type is not supported for secondaryArtifacts.

    • NO_ARTIFACTS: The build project does not produce any build output.
    • S3: The build project stores build output in Amazon S3.
    *)
}

Information about the build output artifacts for the build project.

type nonrec project_artifacts_list = project_artifacts list
type nonrec cache_type =
  1. | LOCAL
  2. | S3
  3. | NO_CACHE
type nonrec cache_mode =
  1. | LOCAL_CUSTOM_CACHE
  2. | LOCAL_SOURCE_CACHE
  3. | LOCAL_DOCKER_LAYER_CACHE
type nonrec project_cache_modes = cache_mode list
type nonrec project_cache = {
  1. cache_namespace : string_ option;
    (*

    Defines the scope of the cache. You can use this namespace to share a cache across multiple projects. For more information, see Cache sharing between projects in the CodeBuild User Guide.

    *)
  2. modes : project_cache_modes option;
    (*

    An array of strings that specify the local cache modes. You can use one or more local cache modes at the same time. This is only used for LOCAL cache types.

    Possible values are:

    LOCAL_SOURCE_CACHE Caches Git metadata for primary and secondary sources. After the cache is created, subsequent builds pull only the change between commits. This mode is a good choice for projects with a clean working directory and a source that is a large Git repository. If you choose this option and your project does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the option is ignored.

    LOCAL_DOCKER_LAYER_CACHE Caches existing Docker layers. This mode is a good choice for projects that build or pull large Docker images. It can prevent the performance issues caused by pulling large Docker images down from the network.

    • You can use a Docker layer cache in the Linux environment only.
    • The privileged flag must be set so that your project has the required Docker permissions.
    • You should consider the security implications before you use a Docker layer cache.

    LOCAL_CUSTOM_CACHE Caches directories you specify in the buildspec file. This mode is a good choice if your build scenario is not suited to one of the other three local cache modes. If you use a custom cache:

    • 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 overridden if a source item has the same name. Directories are specified using cache paths in the buildspec file.
    *)
  3. location : string_ option;
    (*

    Information about the cache location:

    • NO_CACHE or LOCAL: This value is ignored.
    • S3: This is the S3 bucket name/prefix.
    *)
  4. type_ : cache_type;
    (*

    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.
    *)
}

Information about the cache for the build project.

type nonrec environment_type =
  1. | MAC_ARM
  2. | WINDOWS_EC2
  3. | ARM_EC2
  4. | LINUX_EC2
  5. | ARM_LAMBDA_CONTAINER
  6. | LINUX_LAMBDA_CONTAINER
  7. | WINDOWS_SERVER_2022_CONTAINER
  8. | WINDOWS_SERVER_2019_CONTAINER
  9. | ARM_CONTAINER
  10. | LINUX_GPU_CONTAINER
  11. | LINUX_CONTAINER
  12. | WINDOWS_CONTAINER
type nonrec compute_type =
  1. | CUSTOM_INSTANCE_TYPE
  2. | ATTRIBUTE_BASED_COMPUTE
  3. | BUILD_LAMBDA_10GB
  4. | BUILD_LAMBDA_8GB
  5. | BUILD_LAMBDA_4GB
  6. | BUILD_LAMBDA_2GB
  7. | BUILD_LAMBDA_1GB
  8. | BUILD_GENERAL1_2XLARGE
  9. | BUILD_GENERAL1_XLARGE
  10. | BUILD_GENERAL1_LARGE
  11. | BUILD_GENERAL1_MEDIUM
  12. | BUILD_GENERAL1_SMALL
type nonrec machine_type =
  1. | NVME
  2. | GENERAL
type nonrec compute_configuration = {
  1. instance_type : non_empty_string option;
    (*

    The EC2 instance type to be launched in your fleet.

    *)
  2. machine_type : machine_type option;
    (*

    The machine type of the instance type included in your fleet.

    *)
  3. disk : wrapper_long option;
    (*

    The amount of disk space of the instance type included in your fleet.

    *)
  4. memory : wrapper_long option;
    (*

    The amount of memory of the instance type included in your fleet.

    *)
  5. v_cpu : wrapper_long option;
    (*

    The number of vCPUs of the instance type included in your fleet.

    *)
}

Contains compute attributes. These attributes only need be specified when your project's or fleet's computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE.

type nonrec project_fleet = {
  1. fleet_arn : string_ option;
    (*

    Specifies the compute fleet ARN for the build project.

    *)
}

Information about the compute fleet of the build project. For more information, see Working with reserved capacity in CodeBuild.

type nonrec environment_variable_type =
  1. | SECRETS_MANAGER
  2. | PARAMETER_STORE
  3. | PLAINTEXT
type nonrec environment_variable = {
  1. type_ : environment_variable_type option;
    (*

    The type of environment variable. Valid values include:

    • PARAMETER_STORE: An environment variable stored in Systems Manager Parameter Store. For environment variables of this type, specify the name of the parameter as the value of the EnvironmentVariable. The parameter value will be substituted for the name at runtime. You can also define Parameter Store environment variables in the buildspec. To learn how to do so, see env/parameter-store in the CodeBuild User Guide.
    • PLAINTEXT: An environment variable in plain text format. This is the default value.
    • SECRETS_MANAGER: An environment variable stored in Secrets Manager. For environment variables of this type, specify the name of the secret as the value of the EnvironmentVariable. The secret value will be substituted for the name at runtime. You can also define Secrets Manager environment variables in the buildspec. To learn how to do so, see env/secrets-manager in the CodeBuild User Guide.
    *)
  2. value : string_;
    (*

    The value of the environment variable.

    We strongly discourage the use of PLAINTEXT environment variables to store sensitive values, especially Amazon Web Services secret key IDs. PLAINTEXT environment variables can be displayed in plain text using the CodeBuild console and the CLI. For sensitive values, we recommend you use an environment variable of type PARAMETER_STORE or SECRETS_MANAGER.

    *)
  3. name : non_empty_string;
    (*

    The name or key of the environment variable.

    *)
}

Information about an environment variable for a build project or a build.

type nonrec environment_variables = environment_variable list
type nonrec credential_provider_type =
  1. | SECRETS_MANAGER
type nonrec registry_credential = {
  1. credential_provider : credential_provider_type;
    (*

    The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager.

    *)
  2. credential : non_empty_string;
    (*

    The Amazon Resource Name (ARN) or name of credentials created using Secrets Manager.

    The credential can use the name of the credentials only if they exist in your current Amazon Web Services Region.

    *)
}

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.

For more information, see Private Registry with Secrets Manager Sample for CodeBuild.

type nonrec image_pull_credentials_type =
  1. | SERVICE_ROLE
  2. | CODEBUILD
type nonrec docker_server_status = {
  1. message : string_ option;
    (*

    A message associated with the status of a docker server.

    *)
  2. status : string_ option;
    (*

    The status of the docker server.

    *)
}

Contains information about the status of the docker server.

type nonrec docker_server = {
  1. status : docker_server_status option;
    (*

    A DockerServerStatus object to use for this docker server.

    Note that status is only an output and cannot be passed in as an input.

    *)
  2. security_group_ids : security_group_ids option;
    (*

    A list of one or more security groups IDs.

    Security groups configured for Docker servers should allow ingress network traffic from the VPC configured in the project. They should allow ingress on port 9876.

    *)
  3. compute_type : compute_type;
    (*

    Information about the compute resources the docker server uses. Available values include:

    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for your docker server.
    • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for your docker server.
    • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for your docker server.
    • BUILD_GENERAL1_XLARGE: Use up to 64 GiB memory and 32 vCPUs for your docker server.
    • BUILD_GENERAL1_2XLARGE: Use up to 128 GiB memory and 64 vCPUs for your docker server.
    *)
}

Contains docker server information.

type nonrec host_kernel =
  1. | LINUX_KERNEL_LATEST
  2. | LINUX_KERNEL_6
  3. | LINUX_KERNEL_4
type nonrec project_environment = {
  1. host_kernel : host_kernel option;
    (*

    The host operating system kernel used for on-demand builds in the build project. The host kernel does not affect the build environment operating system, which is determined by the image you specify. Valid values are:

    • LINUX_KERNEL_4: Runs on an Amazon Linux 2 host (kernel 4.x).
    • LINUX_KERNEL_6: Runs on an Amazon Linux 2023 host (kernel 6.x).
    • LINUX_KERNEL_LATEST: Runs on the latest supported host kernel.

    This setting applies to the LINUX_CONTAINER, ARM_CONTAINER, LINUX_EC2, and ARM_EC2 environment types. It is not applicable to Windows, Lambda, or Mac environment types.

    *)
  2. docker_server : docker_server option;
    (*

    A DockerServer object to use for this build project.

    *)
  3. image_pull_credentials_type : image_pull_credentials_type option;
    (*

    The type of credentials CodeBuild uses to pull images in your build. There are two valid values:

    • CODEBUILD specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild service principal.
    • SERVICE_ROLE specifies that 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 CodeBuild curated image, you must use CODEBUILD credentials.

    *)
  4. registry_credential : registry_credential option;
    (*

    The credentials for access to a private registry.

    *)
  5. certificate : string_ option;
    (*

    The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see certificate in the CodeBuild User Guide.

    *)
  6. privileged_mode : wrapper_boolean option;
    (*

    Enables running the Docker daemon inside a Docker container. Set to true only if the build project is used to build Docker images. Otherwise, a build that attempts to interact with the Docker daemon fails. The default setting is false.

    You can initialize the Docker daemon during the install phase of your build by adding one of the following sets of commands to the install phase of your buildspec file:

    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 and the previous command does not work, 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 -t 15 sh -c "until docker info; do echo .; sleep 1; done"

    *)
  7. environment_variables : environment_variables option;
    (*

    A set of environment variables to make available to builds for this build project.

    *)
  8. fleet : project_fleet option;
    (*

    A ProjectFleet object to use for this build project.

    *)
  9. compute_configuration : compute_configuration option;
    (*

    The compute configuration of the build project. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE.

    *)
  10. compute_type : compute_type;
    (*

    Information about the compute resources the build project uses. Available values include:

    • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

      If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.
    • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.
    • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
    • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    If you use BUILD_GENERAL1_SMALL:

    • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
    • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

    If you use BUILD_GENERAL1_LARGE:

    • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
    • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

    For more information, see On-demand environment types in the CodeBuild User Guide.

    *)
  11. image : non_empty_string;
    (*

    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:

      /:

      . For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be aws/codebuild/standard:4.0.

    • For an image digest:

      /\@

      . For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use

      /\@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf

      .

    For more information, see Docker images provided by CodeBuild in the CodeBuild user guide.

    *)
  12. type_ : environment_type;
    (*

    The type of build environment to use for related builds.

    If you're using compute fleets during project creation, type will be ignored.

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

    *)
}

Information about the build environment of the build project.

type nonrec build_time_out = int
type nonrec time_out = int
type nonrec project_badge = {
  1. badge_request_url : string_ option;
    (*

    The publicly-accessible URL through which you can access the build badge for your project.

    *)
  2. badge_enabled : boolean_ option;
    (*

    Set this to true to generate a publicly accessible URL for your project's build badge.

    *)
}

Information about the build badge for the build project.

type nonrec logs_config_status_type =
  1. | DISABLED
  2. | ENABLED
type nonrec cloud_watch_logs_config = {
  1. stream_name : string_ option;
    (*

    The prefix of the stream name of the CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

    *)
  2. group_name : string_ option;
    (*

    The group name of the logs in CloudWatch Logs. For more information, see Working with Log Groups and Log Streams.

    *)
  3. status : logs_config_status_type;
    (*

    The current status of the logs in CloudWatch Logs for a build project. Valid values are:

    • ENABLED: CloudWatch Logs are enabled for this build project.
    • DISABLED: CloudWatch Logs are not enabled for this build project.
    *)
}

Information about CloudWatch Logs for a build project.

type nonrec s3_logs_config = {
  1. bucket_owner_access : bucket_owner_access option;
  2. encryption_disabled : wrapper_boolean option;
    (*

    Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted.

    *)
  3. location : string_ option;
    (*

    The ARN of an S3 bucket and the path prefix for S3 logs. If your Amazon S3 bucket name is my-bucket, and your path prefix is build-log, then acceptable formats are my-bucket/build-log or arn:aws:s3:::my-bucket/build-log.

    *)
  4. status : logs_config_status_type;
    (*

    The current status of the S3 build logs. Valid values are:

    • ENABLED: S3 build logs are enabled for this build project.
    • DISABLED: S3 build logs are not enabled for this build project.
    *)
}

Information about S3 logs for a build project.

type nonrec logs_config = {
  1. s3_logs : s3_logs_config option;
    (*

    Information about logs built to an S3 bucket for a build project. S3 logs are not enabled by default.

    *)
  2. cloud_watch_logs : cloud_watch_logs_config option;
    (*

    Information about CloudWatch Logs for a build project. CloudWatch Logs are enabled by default.

    *)
}

Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.

type nonrec file_system_type =
  1. | EFS
type nonrec project_file_system_location = {
  1. mount_options : string_ option;
    (*

    The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild are nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2. For more information, see Recommended NFS Mount Options.

    *)
  2. identifier : string_ option;
    (*

    The name used to access a file system created by Amazon EFS. CodeBuild creates an environment variable by appending the identifier in all capital letters to CODEBUILD_. For example, if you specify my_efs for identifier, a new environment variable is create named CODEBUILD_MY_EFS.

    The identifier is used to mount your file system.

    *)
  3. mount_point : string_ option;
    (*

    The location in the container where you mount the file system.

    *)
  4. location : string_ option;
    (*

    A string that specifies the location of the file system created by Amazon EFS. Its format is efs-dns-name:/directory-path. You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system is fs-abcd1234.efs.us-west-2.amazonaws.com, and its mount directory is my-efs-mount-directory, then the location is fs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory.

    The directory path in the format efs-dns-name:/directory-path is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system.

    *)
  5. type_ : file_system_type option;
    (*

    The type of the file system. The one supported type is EFS.

    *)
}

Information about a file system created by Amazon Elastic File System (EFS). For more information, see What Is Amazon Elastic File System?

type nonrec project_file_system_locations = project_file_system_location list
type nonrec compute_types_allowed = non_empty_string list
type nonrec fleets_allowed = non_empty_string list
type nonrec batch_restrictions = {
  1. fleets_allowed : fleets_allowed option;
    (*

    An array of strings that specify the fleets that are allowed for the batch build. See Run builds on reserved capacity fleets in the CodeBuild User Guide for more information.

    *)
  2. compute_types_allowed : compute_types_allowed option;
    (*

    An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.

    *)
  3. maximum_builds_allowed : wrapper_int option;
    (*

    Specifies the maximum number of builds allowed.

    *)
}

Specifies restrictions for the batch build.

type nonrec batch_report_mode_type =
  1. | REPORT_AGGREGATED_BATCH
  2. | REPORT_INDIVIDUAL_BUILDS
type nonrec project_build_batch_config = {
  1. batch_report_mode : batch_report_mode_type option;
    (*

    Specifies how build status reports are sent to the source provider for the batch build. This property is only used when the source provider for your project is Bitbucket, GitHub, or GitHub Enterprise, and your project is configured to report build statuses to the source provider.

    REPORT_AGGREGATED_BATCH (Default) Aggregate all of the build statuses into a single status report.

    REPORT_INDIVIDUAL_BUILDS Send a separate status report for each individual build.

    *)
  2. timeout_in_mins : wrapper_int option;
    (*

    Specifies the maximum amount of time, in minutes, that the batch build must be completed in.

    *)
  3. restrictions : batch_restrictions option;
    (*

    A BatchRestrictions object that specifies the restrictions for the batch build.

    *)
  4. combine_artifacts : wrapper_boolean option;
    (*

    Specifies if the build artifacts for the batch build should be combined into a single artifact location.

    *)
  5. service_role : non_empty_string option;
    (*

    Specifies the service role ARN for the batch build project.

    *)
}

Contains configuration information about a batch build project.

type nonrec project = {
  1. auto_retry_limit : wrapper_int option;
    (*

    The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

    *)
  2. resource_access_role : non_empty_string option;
    (*

    The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.

    *)
  3. public_project_alias : non_empty_string option;
    (*

    Contains the project identifier used with the public build APIs.

    *)
  4. project_visibility : project_visibility_type option;
  5. concurrent_build_limit : wrapper_int option;
    (*

    The maximum number of concurrent builds that are allowed for this project.

    New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

    *)
  6. build_batch_config : project_build_batch_config option;
    (*

    A ProjectBuildBatchConfig object that defines the batch build options for the project.

    *)
  7. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  8. logs_config : logs_config option;
    (*

    Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.

    *)
  9. badge : project_badge option;
    (*

    Information about the build badge for the build project.

    *)
  10. vpc_config : vpc_config option;
    (*

    Information about the VPC configuration that CodeBuild accesses.

    *)
  11. webhook : webhook option;
    (*

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

    *)
  12. last_modified : timestamp option;
    (*

    When the build project's settings were last modified, expressed in Unix time format.

    *)
  13. created : timestamp option;
    (*

    When the build project was created, expressed in Unix time format.

    *)
  14. tags : tag_list option;
    (*

    A list of tag key and value pairs associated with this build project.

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

    *)
  15. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).

    *)
  16. queued_timeout_in_minutes : time_out option;
    (*

    The number of minutes a build is allowed to be queued before it times out.

    *)
  17. timeout_in_minutes : build_time_out option;
    (*

    How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.

    *)
  18. service_role : non_empty_string option;
    (*

    The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

    *)
  19. environment : project_environment option;
    (*

    Information about the build environment for this build project.

    *)
  20. cache : project_cache option;
    (*

    Information about the cache for the build project.

    *)
  21. secondary_artifacts : project_artifacts_list option;
    (*

    An array of ProjectArtifacts objects.

    *)
  22. artifacts : project_artifacts option;
    (*

    Information about the build output artifacts for the build project.

    *)
  23. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).

    *)
  24. source_version : string_ option;
    (*

    A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
    • 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 S3: the version ID of the object that represents the build input ZIP file to use.

    If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  25. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  26. source : project_source option;
    (*

    Information about the build input source code for this build project.

    *)
  27. description : project_description option;
    (*

    A description that makes the build project easy to identify.

    *)
  28. arn : string_ option;
    (*

    The Amazon Resource Name (ARN) of the build project.

    *)
  29. name : project_name option;
    (*

    The name of the build project.

    *)
}

Information about a build project.

type nonrec update_project_output = {
  1. project : project option;
    (*

    Information about the build project that was changed.

    *)
}
type nonrec update_project_input = {
  1. auto_retry_limit : wrapper_int option;
    (*

    The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

    *)
  2. concurrent_build_limit : wrapper_int option;
    (*

    The maximum number of concurrent builds that are allowed for this project.

    New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

    To remove this limit, set this value to -1.

    *)
  3. build_batch_config : project_build_batch_config option;
  4. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  5. logs_config : logs_config option;
    (*

    Information about logs for the build project. A project can create logs in CloudWatch Logs, logs in an S3 bucket, or both.

    *)
  6. badge_enabled : wrapper_boolean option;
    (*

    Set this to true to generate a publicly accessible URL for your project's build badge.

    *)
  7. vpc_config : vpc_config option;
    (*

    VpcConfig enables CodeBuild to access resources in an Amazon VPC.

    *)
  8. tags : tag_list option;
    (*

    An updated list of tag key and value pairs associated with this build project.

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

    *)
  9. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  10. queued_timeout_in_minutes : time_out option;
    (*

    The number of minutes a build is allowed to be queued before it times out.

    *)
  11. timeout_in_minutes : build_time_out option;
    (*

    The replacement value in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed.

    *)
  12. service_role : non_empty_string option;
    (*

    The replacement ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

    *)
  13. environment : project_environment option;
    (*

    Information to be changed about the build environment for the build project.

    *)
  14. cache : project_cache option;
    (*

    Stores recently used information so that it can be quickly accessed at a later time.

    *)
  15. secondary_artifacts : project_artifacts_list option;
    (*

    An array of ProjectArtifact objects.

    *)
  16. artifacts : project_artifacts option;
    (*

    Information to be changed about the build output artifacts for the build project.

    *)
  17. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level).

    *)
  18. source_version : string_ option;
    (*

    A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
    • 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 S3: the version ID of the object that represents the build input ZIP file to use.

    If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  19. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  20. source : project_source option;
    (*

    Information to be changed about the build input source code for the build project.

    *)
  21. description : project_description option;
    (*

    A new or replacement description of the build project.

    *)
  22. name : non_empty_string;
    (*

    The name of the build project.

    You cannot change a build project's name.

    *)
}
type nonrec fleet_name = string
type nonrec fleet_status_code =
  1. | ACTIVE
  2. | UPDATE_ROLLBACK_FAILED
  3. | CREATE_FAILED
  4. | DELETING
  5. | PENDING_DELETION
  6. | ROTATING
  7. | UPDATING
  8. | CREATING
type nonrec fleet_context_code =
  1. | INSUFFICIENT_CAPACITY
  2. | PENDING_DELETION
  3. | ACTION_REQUIRED
  4. | UPDATE_FAILED
  5. | CREATE_FAILED
type nonrec fleet_status = {
  1. message : string_ option;
    (*

    A message associated with the status of a compute fleet.

    *)
  2. context : fleet_context_code option;
    (*

    Additional information about a compute fleet. Valid values include:

    • CREATE_FAILED: The compute fleet has failed to create.
    • UPDATE_FAILED: The compute fleet has failed to update.
    *)
  3. status_code : fleet_status_code option;
    (*

    The status code of the compute fleet. Valid values include:

    • CREATING: The compute fleet is being created.
    • UPDATING: The compute fleet is being updated.
    • ROTATING: The compute fleet is being rotated.
    • PENDING_DELETION: The compute fleet is pending deletion.
    • DELETING: The compute fleet is being deleted.
    • CREATE_FAILED: The compute fleet has failed to create.
    • UPDATE_ROLLBACK_FAILED: The compute fleet has failed to update and could not rollback to previous state.
    • ACTIVE: The compute fleet has succeeded and is active.
    *)
}

The status of the compute fleet.

type nonrec fleet_capacity = int
type nonrec fleet_scaling_type =
  1. | TARGET_TRACKING_SCALING
type nonrec fleet_scaling_metric_type =
  1. | FLEET_UTILIZATION_RATE
type nonrec target_tracking_scaling_configuration = {
  1. target_value : wrapper_double option;
    (*

    The value of metricType when to start scaling.

    *)
  2. metric_type : fleet_scaling_metric_type option;
    (*

    The metric type to determine auto-scaling.

    *)
}

Defines when a new instance is auto-scaled into the compute fleet.

type nonrec target_tracking_scaling_configurations = target_tracking_scaling_configuration list
type nonrec scaling_configuration_output = {
  1. desired_capacity : fleet_capacity option;
    (*

    The desired number of instances in the fleet when auto-scaling.

    *)
  2. max_capacity : fleet_capacity option;
    (*

    The maximum number of instances in the fleet when auto-scaling.

    *)
  3. target_tracking_scaling_configs : target_tracking_scaling_configurations option;
    (*

    A list of TargetTrackingScalingConfiguration objects.

    *)
  4. scaling_type : fleet_scaling_type option;
    (*

    The scaling type for a compute fleet.

    *)
}

The scaling configuration output of a compute fleet.

type nonrec fleet_overflow_behavior =
  1. | ON_DEMAND
  2. | QUEUE
type nonrec fleet_proxy_rule_behavior =
  1. | DENY_ALL
  2. | ALLOW_ALL
type nonrec fleet_proxy_rule_type =
  1. | IP
  2. | DOMAIN
type nonrec fleet_proxy_rule_effect_type =
  1. | DENY
  2. | ALLOW
type nonrec fleet_proxy_rule_entities = string_ list
type nonrec fleet_proxy_rule = {
  1. entities : fleet_proxy_rule_entities;
    (*

    The destination of the proxy rule.

    *)
  2. effect_ : fleet_proxy_rule_effect_type;
    (*

    The behavior of the proxy rule.

    *)
  3. type_ : fleet_proxy_rule_type;
    (*

    The type of proxy rule.

    *)
}

Information about the proxy rule for your reserved capacity instances.

type nonrec fleet_proxy_rules = fleet_proxy_rule list
type nonrec proxy_configuration = {
  1. ordered_proxy_rules : fleet_proxy_rules option;
    (*

    An array of FleetProxyRule objects that represent the specified destination domains or IPs to allow or deny network access control to.

    *)
  2. default_behavior : fleet_proxy_rule_behavior option;
    (*

    The default behavior of outgoing traffic.

    *)
}

Information about the proxy configurations that apply network access control to your reserved capacity instances.

type nonrec fleet = {
  1. tags : tag_list option;
    (*

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

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

    *)
  2. fleet_service_role : non_empty_string option;
    (*

    The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide.

    *)
  3. image_id : non_empty_string option;
    (*

    The Amazon Machine Image (AMI) of the compute fleet.

    *)
  4. proxy_configuration : proxy_configuration option;
    (*

    The proxy configuration of the compute fleet.

    *)
  5. vpc_config : vpc_config option;
  6. overflow_behavior : fleet_overflow_behavior option;
    (*

    The compute fleet overflow behavior.

    *)
  7. scaling_configuration : scaling_configuration_output option;
    (*

    The scaling configuration of the compute fleet.

    *)
  8. compute_configuration : compute_configuration option;
    (*

    The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE.

    *)
  9. compute_type : compute_type option;
    (*

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

    • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

      If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

    • CUSTOM_INSTANCE_TYPE: Specify the instance type for your compute fleet. For a list of supported instance types, see Supported instance families in the CodeBuild User Guide.
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.
    • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.
    • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
    • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    If you use BUILD_GENERAL1_SMALL:

    • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
    • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

    If you use BUILD_GENERAL1_LARGE:

    • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
    • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

    For more information, see On-demand environment types in the CodeBuild User Guide.

    *)
  10. environment_type : environment_type option;
    (*

    The environment type of the compute fleet.

    • The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
    • The environment type ARM_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
    • The environment type MAC_ARM is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)
    • The environment type MAC_ARM is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).
    • The environment type WINDOWS_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
    • The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).

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

    *)
  11. base_capacity : fleet_capacity option;
    (*

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

    *)
  12. status : fleet_status option;
    (*

    The status of the compute fleet.

    *)
  13. last_modified : timestamp option;
    (*

    The time at which the compute fleet was last modified.

    *)
  14. created : timestamp option;
    (*

    The time at which the compute fleet was created.

    *)
  15. id : non_empty_string option;
    (*

    The ID of the compute fleet.

    *)
  16. name : fleet_name option;
    (*

    The name of the compute fleet.

    *)
  17. arn : non_empty_string option;
    (*

    The ARN of the compute fleet.

    *)
}

A set of dedicated instances for your build environment.

type nonrec update_fleet_output = {
  1. fleet : fleet option;
    (*

    A Fleet object.

    *)
}
type nonrec scaling_configuration_input = {
  1. max_capacity : fleet_capacity option;
    (*

    The maximum number of instances in the fleet when auto-scaling.

    *)
  2. target_tracking_scaling_configs : target_tracking_scaling_configurations option;
    (*

    A list of TargetTrackingScalingConfiguration objects.

    *)
  3. scaling_type : fleet_scaling_type option;
    (*

    The scaling type for a compute fleet.

    *)
}

The scaling configuration input of a compute fleet.

type nonrec update_fleet_input = {
  1. tags : tag_list option;
    (*

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

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

    *)
  2. fleet_service_role : non_empty_string option;
    (*

    The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide.

    *)
  3. image_id : non_empty_string option;
    (*

    The Amazon Machine Image (AMI) of the compute fleet.

    *)
  4. proxy_configuration : proxy_configuration option;
    (*

    The proxy configuration of the compute fleet.

    *)
  5. vpc_config : vpc_config option;
  6. overflow_behavior : fleet_overflow_behavior option;
    (*

    The compute fleet overflow behavior.

    *)
  7. scaling_configuration : scaling_configuration_input option;
    (*

    The scaling configuration of the compute fleet.

    *)
  8. compute_configuration : compute_configuration option;
    (*

    The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE.

    *)
  9. compute_type : compute_type option;
    (*

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

    • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

      If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

    • CUSTOM_INSTANCE_TYPE: Specify the instance type for your compute fleet. For a list of supported instance types, see Supported instance families in the CodeBuild User Guide.
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.
    • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.
    • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
    • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    If you use BUILD_GENERAL1_SMALL:

    • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
    • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

    If you use BUILD_GENERAL1_LARGE:

    • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
    • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

    For more information, see On-demand environment types in the CodeBuild User Guide.

    *)
  10. environment_type : environment_type option;
    (*

    The environment type of the compute fleet.

    • The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
    • The environment type ARM_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
    • The environment type MAC_ARM is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)
    • The environment type MAC_ARM is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).
    • The environment type WINDOWS_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
    • The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).

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

    *)
  11. base_capacity : fleet_capacity option;
    (*

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

    *)
  12. arn : non_empty_string;
    (*

    The ARN of the compute fleet.

    *)
}
type nonrec account_limit_exceeded_exception = {
  1. message : string_ option;
}

An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.

type nonrec report_status_counts = (string_ * wrapper_int) list
type nonrec test_report_summary = {
  1. duration_in_nano_seconds : wrapper_long;
    (*

    The number of nanoseconds it took to run all of the test cases in this report.

    *)
  2. status_counts : report_status_counts;
    (*

    A map that contains the number of each type of status returned by the test results in this TestReportSummary.

    *)
  3. total : wrapper_int;
    (*

    The number of test cases in this TestReportSummary. The total includes truncated test cases.

    *)
}

Information about a test report.

type nonrec test_case = {
  1. test_suite_name : string_ option;
    (*

    The name of the test suite that the test case is a part of.

    *)
  2. expired : timestamp option;
    (*

    The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild.

    *)
  3. message : string_ option;
    (*

    A message associated with a test case. For example, an error message or stack trace.

    *)
  4. duration_in_nano_seconds : wrapper_long option;
    (*

    The number of nanoseconds it took to run this test case.

    *)
  5. status : string_ option;
    (*

    The status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN.

    *)
  6. name : string_ option;
    (*

    The name of the test case.

    *)
  7. prefix : string_ option;
    (*

    A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests.

    *)
  8. test_raw_data_path : string_ option;
    (*

    The path to the raw data file that contains the test result.

    *)
  9. report_arn : non_empty_string option;
    (*

    The ARN of the report to which the test case belongs.

    *)
}

Information about a test case created using a framework such as NUnit or Cucumber. A test case might be a unit test or a configuration test.

type nonrec test_cases = test_case list
type nonrec test_case_filter = {
  1. keyword : string_ option;
    (*

    A keyword that is used to filter on the name or the prefix of the test cases. Only test cases where the keyword is a substring of the name or the prefix will be returned.

    *)
  2. status : string_ option;
    (*

    The status used to filter test cases. A TestCaseFilter can have one status. Valid values are:

    • SUCCEEDED
    • FAILED
    • ERROR
    • SKIPPED
    • UNKNOWN
    *)
}

A filter used to return specific types of test cases. In order to pass the filter, the report must meet all of the filter properties.

type nonrec status_type =
  1. | STOPPED
  2. | IN_PROGRESS
  3. | TIMED_OUT
  4. | FAULT
  5. | FAILED
  6. | SUCCEEDED
type nonrec phase_context = {
  1. message : string_ option;
    (*

    An explanation of the build phase's context. This might include a command ID and an exit code.

    *)
  2. status_code : string_ option;
    (*

    The status code for the context of the build phase.

    *)
}

Additional information about a build phase that has an error. You can use this information for troubleshooting.

type nonrec phase_contexts = phase_context list
type nonrec sandbox_session_phase = {
  1. contexts : phase_contexts option;
    (*

    An array of PhaseContext objects.

    *)
  2. duration_in_seconds : wrapper_long option;
    (*

    How long, in seconds, between the starting and ending times of the sandbox's phase.

    *)
  3. end_time : timestamp option;
    (*

    When the sandbox phase ended, expressed in Unix time format.

    *)
  4. start_time : timestamp option;
    (*

    When the sandbox phase started, expressed in Unix time format.

    *)
  5. phase_status : status_type option;
    (*

    The current status of the sandbox phase. Valid values include:

    FAILED The sandbox phase failed.

    FAULT The sandbox phase faulted.

    IN_PROGRESS The sandbox phase is still in progress.

    STOPPED The sandbox phase stopped.

    SUCCEEDED The sandbox phase succeeded.

    TIMED_OUT The sandbox phase timed out.

    *)
  6. phase_type : string_ option;
    (*

    The name of the sandbox phase.

    *)
}

Contains information about the sandbox phase.

type nonrec sandbox_session_phases = sandbox_session_phase list
type nonrec logs_location = {
  1. s3_logs : s3_logs_config option;
    (*

    Information about S3 logs for a build project.

    *)
  2. cloud_watch_logs : cloud_watch_logs_config option;
    (*

    Information about CloudWatch Logs for a build project.

    *)
  3. s3_logs_arn : string_ option;
    (*

    The ARN of S3 logs for a build project. Its format is arn:${Partition}:s3:::${BucketName}/${ObjectName}. For more information, see Resources Defined by Amazon S3.

    *)
  4. cloud_watch_logs_arn : string_ option;
    (*

    The ARN of the CloudWatch Logs stream for a build execution. Its format is arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}. The CloudWatch Logs stream is created during the PROVISIONING phase of a build and the ARN will not be valid until it is created. For more information, see Resources Defined by CloudWatch Logs.

    *)
  5. stream_name : string_ option;
    (*

    The name of the CloudWatch Logs stream for the build logs.

    *)
  6. group_name : string_ option;
    (*

    The name of the CloudWatch Logs group for the build logs.

    *)
}

Information about build logs in CloudWatch Logs.

type nonrec network_interface = {
  1. network_interface_id : non_empty_string option;
    (*

    The ID of the network interface.

    *)
  2. subnet_id : non_empty_string option;
    (*

    The ID of the subnet.

    *)
}

Describes a network interface.

type nonrec sandbox_session = {
  1. network_interface : network_interface option;
  2. logs : logs_location option;
  3. resolved_source_version : non_empty_string option;
    (*

    An identifier for the version of this sandbox's source code.

    *)
  4. phases : sandbox_session_phases option;
    (*

    An array of SandboxSessionPhase objects.

    *)
  5. current_phase : string_ option;
    (*

    The current phase for the sandbox.

    *)
  6. end_time : timestamp option;
    (*

    When the sandbox session ended, expressed in Unix time format.

    *)
  7. start_time : timestamp option;
    (*

    When the sandbox session started, expressed in Unix time format.

    *)
  8. status : string_ option;
    (*

    The status of the sandbox session.

    *)
  9. id : non_empty_string option;
    (*

    The ID of the sandbox session.

    *)
}

Contains information about the sandbox session.

type nonrec sandbox = {
  1. current_session : sandbox_session option;
    (*

    The current session for the sandbox.

    *)
  2. service_role : non_empty_string option;
    (*

    The name of a service role used for this sandbox.

    *)
  3. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the sandbox output artifacts.

    *)
  4. log_config : logs_config option;
  5. vpc_config : vpc_config option;
  6. queued_timeout_in_minutes : wrapper_int option;
    (*

    The number of minutes a sandbox is allowed to be queued before it times out.

    *)
  7. timeout_in_minutes : wrapper_int option;
    (*

    How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this sandbox if it does not get marked as completed.

    *)
  8. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  9. environment : project_environment option;
  10. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects.

    *)
  11. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  12. source_version : non_empty_string option;
    (*

    Any version identifier for the version of the sandbox to be built.

    *)
  13. source : project_source option;
  14. status : string_ option;
    (*

    The status of the sandbox.

    *)
  15. end_time : timestamp option;
    (*

    When the sandbox process ended, expressed in Unix time format.

    *)
  16. start_time : timestamp option;
    (*

    When the sandbox process started, expressed in Unix time format.

    *)
  17. request_time : timestamp option;
    (*

    When the sandbox process was initially requested, expressed in Unix time format.

    *)
  18. project_name : non_empty_string option;
    (*

    The CodeBuild project name.

    *)
  19. arn : non_empty_string option;
    (*

    The ARN of the sandbox.

    *)
  20. id : non_empty_string option;
    (*

    The ID of the sandbox.

    *)
}

Contains sandbox information.

type nonrec stop_sandbox_output = {
  1. sandbox : sandbox option;
    (*

    Information about the requested sandbox.

    *)
}
type nonrec stop_sandbox_input = {
  1. id : non_empty_string;
    (*

    Information about the requested sandbox ID.

    *)
}
type nonrec build_phase_type =
  1. | COMPLETED
  2. | FINALIZING
  3. | UPLOAD_ARTIFACTS
  4. | POST_BUILD
  5. | BUILD
  6. | PRE_BUILD
  7. | INSTALL
  8. | DOWNLOAD_SOURCE
  9. | PROVISIONING
  10. | QUEUED
  11. | SUBMITTED
type nonrec build_phase = {
  1. contexts : phase_contexts option;
    (*

    Additional information about a build phase, especially to help troubleshoot a failed build.

    *)
  2. duration_in_seconds : wrapper_long option;
    (*

    How long, in seconds, between the starting and ending times of the build's phase.

    *)
  3. end_time : timestamp option;
    (*

    When the build phase ended, expressed in Unix time format.

    *)
  4. start_time : timestamp option;
    (*

    When the build phase started, expressed in Unix time format.

    *)
  5. phase_status : status_type option;
    (*

    The current status of the build phase. Valid values include:

    FAILED The build phase failed.

    FAULT The build phase faulted.

    IN_PROGRESS The build phase is still in progress.

    STOPPED The build phase stopped.

    SUCCEEDED The build phase succeeded.

    TIMED_OUT The build phase timed out.

    *)
  6. phase_type : build_phase_type option;
    (*

    The name of the build phase. Valid values include:

    BUILD Core build activities typically occur in this build phase.

    COMPLETED The build has been completed.

    DOWNLOAD_SOURCE Source code is being downloaded in this build phase.

    FINALIZING The build process is completing in this build phase.

    INSTALL Installation activities typically occur in this build phase.

    POST_BUILD Post-build activities typically occur in this build phase.

    PRE_BUILD Pre-build activities typically occur in this build phase.

    PROVISIONING The build environment is being set up.

    QUEUED The build has been submitted and is queued behind other submitted builds.

    SUBMITTED The build has been submitted.

    UPLOAD_ARTIFACTS Build output artifacts are being uploaded to the output location.

    *)
}

Information about a stage for a build.

type nonrec build_phases = build_phase list
type nonrec build_artifacts = {
  1. bucket_owner_access : bucket_owner_access option;
  2. artifact_identifier : string_ option;
    (*

    An identifier for this artifact definition.

    *)
  3. encryption_disabled : wrapper_boolean option;
    (*

    Information that tells you if encryption for build artifacts is disabled.

    *)
  4. override_artifact_name : wrapper_boolean option;
    (*

    If this flag is set, a name specified in the buildspec file overrides the artifact name. The name specified in a buildspec file is calculated at build time and uses the Shell Command Language. For example, you can append a date and time to your artifact name so that it is always unique.

    *)
  5. md5sum : string_ option;
    (*

    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.

    *)
  6. sha256sum : string_ option;
    (*

    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.

    *)
  7. location : string_ option;
    (*

    Information about the location of the build artifacts.

    *)
}

Information about build output artifacts.

type nonrec build_artifacts_list = build_artifacts list
type nonrec exported_environment_variable = {
  1. value : string_ option;
    (*

    The value assigned to the exported environment variable.

    *)
  2. name : non_empty_string option;
    (*

    The name of the exported environment variable.

    *)
}

Contains information about an exported environment variable.

Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.

During a build, the value of a variable is available starting with the install phase. It can be updated between the start of the install phase and the end of the post_build phase. After the post_build phase ends, the value of exported variables cannot change.

type nonrec exported_environment_variables = exported_environment_variable list
type nonrec build_report_arns = string_ list
type nonrec debug_session = {
  1. session_target : non_empty_string option;
    (*

    Contains the identifier of the Session Manager session used for the build. To work with the paused build, you open this session to examine, control, and resume the build.

    *)
  2. session_enabled : wrapper_boolean option;
    (*

    Specifies if session debugging is enabled for this build.

    *)
}

Contains information about the debug session for a build. For more information, see Viewing a running build in Session Manager.

type nonrec auto_retry_config = {
  1. previous_auto_retry : string_ option;
    (*

    The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build.

    *)
  2. next_auto_retry : string_ option;
    (*

    The build ARN of the auto-retried build triggered by the current build. The next auto-retry will be null for builds that don't trigger an auto-retry.

    *)
  3. auto_retry_number : wrapper_int option;
    (*

    The number of times that the build has been retried. The initial build will have an auto-retry number of 0.

    *)
  4. auto_retry_limit : wrapper_int option;
    (*

    The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

    *)
}

Information about the auto-retry configuration for the build.

type nonrec build = {
  1. auto_retry_config : auto_retry_config option;
    (*

    Information about the auto-retry configuration for the build.

    *)
  2. build_batch_arn : string_ option;
    (*

    The ARN of the batch build that this build is a member of, if applicable.

    *)
  3. debug_session : debug_session option;
    (*

    Contains information about the debug session for this build.

    *)
  4. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  5. report_arns : build_report_arns option;
    (*

    An array of the ARNs associated with this build's reports.

    *)
  6. exported_environment_variables : exported_environment_variables option;
    (*

    A list of exported environment variables for this build.

    Exported environment variables are used in conjunction with CodePipeline to export environment variables from the current build stage to subsequent stages in the pipeline. For more information, see Working with variables in the CodePipeline User Guide.

    *)
  7. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  8. network_interface : network_interface option;
    (*

    Describes a network interface.

    *)
  9. vpc_config : vpc_config option;
    (*

    If your CodeBuild project accesses resources in an Amazon VPC, you provide this parameter that identifies the VPC ID and the list of security group IDs and subnet IDs. The security groups and subnets must belong to the same VPC. You must provide at least one security group and one subnet ID.

    *)
  10. initiator : string_ option;
    (*

    The entity that started the build. Valid values include:

    • If CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).
    • If a user started the build, the user's name (for example, MyUserName).
    • If the Jenkins plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.
    *)
  11. build_complete : boolean_ option;
    (*

    Whether the build is complete. True if complete; otherwise, false.

    *)
  12. queued_timeout_in_minutes : wrapper_int option;
    (*

    The number of minutes a build is allowed to be queued before it times out.

    *)
  13. timeout_in_minutes : wrapper_int option;
    (*

    How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out this build if it does not get marked as completed.

    *)
  14. logs : logs_location option;
    (*

    Information about the build's logs in CloudWatch Logs.

    *)
  15. service_role : non_empty_string option;
    (*

    The name of a service role used for this build.

    *)
  16. environment : project_environment option;
    (*

    Information about the build environment for this build.

    *)
  17. cache : project_cache option;
    (*

    Information about the cache for the build.

    *)
  18. secondary_artifacts : build_artifacts_list option;
    (*

    An array of ProjectArtifacts objects.

    *)
  19. artifacts : build_artifacts option;
    (*

    Information about the output artifacts for the build.

    *)
  20. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 S3: the version ID of the object that represents the build input ZIP file to use.
    *)
  21. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  22. source : project_source option;
    (*

    Information about the source code to be built.

    *)
  23. phases : build_phases option;
    (*

    Information about all previous build phases that are complete and information about any current build phase that is not yet complete.

    *)
  24. project_name : non_empty_string option;
    (*

    The name of the CodeBuild project.

    *)
  25. resolved_source_version : non_empty_string option;
    (*

    An identifier for the version of this build's source code.

    • For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
    • For CodePipeline, the source revision provided by CodePipeline.
    • For Amazon S3, this does not apply.
    *)
  26. source_version : non_empty_string option;
    (*

    Any version identifier for the version of the source code to be built. If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  27. build_status : status_type option;
    (*

    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.
    *)
  28. current_phase : string_ option;
    (*

    The current build phase.

    *)
  29. end_time : timestamp option;
    (*

    When the build process ended, expressed in Unix time format.

    *)
  30. start_time : timestamp option;
    (*

    When the build process started, expressed in Unix time format.

    *)
  31. build_number : wrapper_long option;
    (*

    The number of the build. For each project, the buildNumber of its first build is 1. The buildNumber of each subsequent build is incremented by 1. If a build is deleted, the buildNumber of other builds does not change.

    *)
  32. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the build.

    *)
  33. id : non_empty_string option;
    (*

    The unique ID for the build.

    *)
}

Information about a build.

type nonrec stop_build_output = {
  1. build : build option;
    (*

    Information about the build.

    *)
}
type nonrec stop_build_input = {
  1. id : non_empty_string;
    (*

    The ID of the build.

    *)
}
type nonrec build_batch_phase_type =
  1. | STOPPED
  2. | FAILED
  3. | SUCCEEDED
  4. | COMBINE_ARTIFACTS
  5. | IN_PROGRESS
  6. | DOWNLOAD_BATCHSPEC
  7. | SUBMITTED
type nonrec build_batch_phase = {
  1. contexts : phase_contexts option;
    (*

    Additional information about the batch build phase. Especially to help troubleshoot a failed batch build.

    *)
  2. duration_in_seconds : wrapper_long option;
    (*

    How long, in seconds, between the starting and ending times of the batch build's phase.

    *)
  3. end_time : timestamp option;
    (*

    When the batch build phase ended, expressed in Unix time format.

    *)
  4. start_time : timestamp option;
    (*

    When the batch build phase started, expressed in Unix time format.

    *)
  5. phase_status : status_type option;
    (*

    The current status of the batch build phase. Valid values include:

    FAILED The build phase failed.

    FAULT The build phase faulted.

    IN_PROGRESS The build phase is still in progress.

    STOPPED The build phase stopped.

    SUCCEEDED The build phase succeeded.

    TIMED_OUT The build phase timed out.

    *)
  6. phase_type : build_batch_phase_type option;
    (*

    The name of the batch build phase. Valid values include:

    COMBINE_ARTIFACTS Build output artifacts are being combined and uploaded to the output location.

    DOWNLOAD_BATCHSPEC The batch build specification is being downloaded.

    FAILED One or more of the builds failed.

    IN_PROGRESS The batch build is in progress.

    STOPPED The batch build was stopped.

    SUBMITTED The btach build has been submitted.

    SUCCEEDED The batch build succeeded.

    *)
}

Contains information about a stage for a batch build.

type nonrec build_batch_phases = build_batch_phase list
type nonrec identifiers = non_empty_string list
type nonrec resolved_artifact = {
  1. identifier : string_ option;
    (*

    The identifier of the artifact.

    *)
  2. location : string_ option;
    (*

    The location of the artifact.

    *)
  3. type_ : artifacts_type option;
    (*

    Specifies the type of artifact.

    *)
}

Represents a resolved build artifact. A resolved artifact is an artifact that is built and deployed to the destination, such as Amazon S3.

type nonrec resolved_secondary_artifacts = resolved_artifact list
type nonrec build_summary = {
  1. secondary_artifacts : resolved_secondary_artifacts option;
    (*

    An array of ResolvedArtifact objects that represents the secondary build artifacts for the build group.

    *)
  2. primary_artifact : resolved_artifact option;
    (*

    A ResolvedArtifact object that represents the primary build artifacts for the build group.

    *)
  3. build_status : status_type option;
    (*

    The status of the build group.

    FAILED The build group failed.

    FAULT The build group faulted.

    IN_PROGRESS The build group is still in progress.

    STOPPED The build group stopped.

    SUCCEEDED The build group succeeded.

    TIMED_OUT The build group timed out.

    *)
  4. requested_on : timestamp option;
    (*

    When the build was started, expressed in Unix time format.

    *)
  5. arn : string_ option;
    (*

    The batch build ARN.

    *)
}

Contains summary information about a batch build group.

type nonrec build_summaries = build_summary list
type nonrec build_group = {
  1. prior_build_summary_list : build_summaries option;
    (*

    An array of BuildSummary objects that contain summaries of previous build groups.

    *)
  2. current_build_summary : build_summary option;
    (*

    A BuildSummary object that contains a summary of the current build group.

    *)
  3. ignore_failure : boolean_ option;
    (*

    Specifies if failures in this build group can be ignored.

    *)
  4. depends_on : identifiers option;
    (*

    An array of strings that contain the identifiers of the build groups that this build group depends on.

    *)
  5. identifier : string_ option;
    (*

    Contains the identifier of the build group.

    *)
}

Contains information about a batch build build group. Build groups are used to combine builds that can run in parallel, while still being able to set dependencies on other build groups.

type nonrec build_groups = build_group list
type nonrec build_batch = {
  1. report_arns : build_report_arns option;
    (*

    An array that contains the ARNs of reports created by merging reports from builds associated with this batch build.

    *)
  2. debug_session_enabled : wrapper_boolean option;
    (*

    Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

    *)
  3. build_groups : build_groups option;
    (*

    An array of BuildGroup objects that define the build groups for the batch build.

    *)
  4. build_batch_config : project_build_batch_config option;
  5. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for the batch build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  6. build_batch_number : wrapper_long option;
    (*

    The number of the batch build. For each project, the buildBatchNumber of its first batch build is 1. The buildBatchNumber of each subsequent batch build is incremented by 1. If a batch build is deleted, the buildBatchNumber of other batch builds does not change.

    *)
  7. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  8. vpc_config : vpc_config option;
  9. initiator : string_ option;
    (*

    The entity that started the batch build. Valid values include:

    • If CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline).
    • If a user started the build, the user's name.
    • If the Jenkins plugin for CodeBuild started the build, the string CodeBuild-Jenkins-Plugin.
    *)
  10. complete : boolean_ option;
    (*

    Indicates if the batch build is complete.

    *)
  11. queued_timeout_in_minutes : wrapper_int option;
    (*

    Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.

    *)
  12. build_timeout_in_minutes : wrapper_int option;
    (*

    Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.

    *)
  13. log_config : logs_config option;
  14. service_role : non_empty_string option;
    (*

    The name of a service role used for builds in the batch.

    *)
  15. environment : project_environment option;
  16. cache : project_cache option;
  17. secondary_artifacts : build_artifacts_list option;
    (*

    An array of BuildArtifacts objects the define the build artifacts for this batch build.

    *)
  18. artifacts : build_artifacts option;
    (*

    A BuildArtifacts object the defines the build artifacts for this batch build.

    *)
  19. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects. Each ProjectSourceVersion must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 S3: the version ID of the object that represents the build input ZIP file to use.
    *)
  20. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects that define the sources for the batch build.

    *)
  21. source : project_source option;
  22. phases : build_batch_phases option;
    (*

    An array of BuildBatchPhase objects the specify the phases of the batch build.

    *)
  23. project_name : non_empty_string option;
    (*

    The name of the batch build project.

    *)
  24. resolved_source_version : non_empty_string option;
    (*

    The identifier of the resolved version of this batch build's source code.

    • For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
    • For CodePipeline, the source revision provided by CodePipeline.
    • For Amazon S3, this does not apply.
    *)
  25. source_version : non_empty_string option;
    (*

    The identifier of the version of the source code to be built.

    *)
  26. build_batch_status : status_type option;
    (*

    The status of the batch build.

    *)
  27. current_phase : string_ option;
    (*

    The current phase of the batch build.

    *)
  28. end_time : timestamp option;
    (*

    The date and time that the batch build ended.

    *)
  29. start_time : timestamp option;
    (*

    The date and time that the batch build started.

    *)
  30. arn : non_empty_string option;
    (*

    The ARN of the batch build.

    *)
  31. id : non_empty_string option;
    (*

    The identifier of the batch build.

    *)
}

Contains information about a batch build.

type nonrec stop_build_batch_output = {
  1. build_batch : build_batch option;
}
type nonrec stop_build_batch_input = {
  1. id : non_empty_string;
    (*

    The identifier of the batch build to stop.

    *)
}
type nonrec start_sandbox_output = {
  1. sandbox : sandbox option;
    (*

    Information about the requested sandbox.

    *)
}
type nonrec sensitive_string = string
type nonrec start_sandbox_input = {
  1. idempotency_token : sensitive_string option;
    (*

    A unique client token.

    *)
  2. project_name : non_empty_string option;
    (*

    The CodeBuild project name.

    *)
}
type nonrec ssm_session = {
  1. stream_url : string_ option;
    (*

    A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the node.

    *)
  2. token_value : string_ option;
    (*

    An encrypted token value containing session and caller information.

    *)
  3. session_id : string_ option;
    (*

    The ID of the session.

    *)
}

Contains information about the Session Manager session.

type nonrec start_sandbox_connection_output = {
  1. ssm_session : ssm_session option;
    (*

    Information about the Session Manager session.

    *)
}
type nonrec start_sandbox_connection_input = {
  1. sandbox_id : non_empty_string;
    (*

    A sandboxId or sandboxArn.

    *)
}
type nonrec account_suspended_exception = {
  1. message : string_ option;
}

The CodeBuild access has been suspended for the calling Amazon Web Services account.

type nonrec sensitive_non_empty_string = string
type nonrec command_type =
  1. | SHELL
type nonrec command_execution = {
  1. sandbox_arn : non_empty_string option;
    (*

    A sandboxArn.

    *)
  2. logs : logs_location option;
  3. standard_err_content : sensitive_non_empty_string option;
    (*

    The text written by the command to stderr.

    *)
  4. standard_output_content : sensitive_non_empty_string option;
    (*

    The text written by the command to stdout.

    *)
  5. exit_code : non_empty_string option;
    (*

    The exit code to return upon completion.

    *)
  6. type_ : command_type option;
    (*

    The command type.

    *)
  7. command : sensitive_non_empty_string option;
    (*

    The command that needs to be executed.

    *)
  8. status : non_empty_string option;
    (*

    The status of the command execution.

    *)
  9. end_time : timestamp option;
    (*

    When the command execution process ended, expressed in Unix time format.

    *)
  10. start_time : timestamp option;
    (*

    When the command execution process started, expressed in Unix time format.

    *)
  11. submit_time : timestamp option;
    (*

    When the command execution process was initially submitted, expressed in Unix time format.

    *)
  12. sandbox_id : non_empty_string option;
    (*

    A sandboxId.

    *)
  13. id : non_empty_string option;
    (*

    The ID of the command execution.

    *)
}

Contains command execution information.

type nonrec start_command_execution_output = {
  1. command_execution : command_execution option;
    (*

    Information about the requested command executions.

    *)
}
type nonrec start_command_execution_input = {
  1. type_ : command_type option;
    (*

    The command type.

    *)
  2. command : sensitive_non_empty_string;
    (*

    The command that needs to be executed.

    *)
  3. sandbox_id : non_empty_string;
    (*

    A sandboxId or sandboxArn.

    *)
}
type nonrec start_build_output = {
  1. build : build option;
    (*

    Information about the build to be run.

    *)
}
type nonrec start_build_input = {
  1. host_kernel_override : host_kernel option;
    (*

    The host operating system kernel for this build that overrides the one specified in the build project.

    *)
  2. auto_retry_limit_override : wrapper_int option;
    (*

    The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

    *)
  3. fleet_override : project_fleet option;
    (*

    A ProjectFleet object specified for this build that overrides the one defined in the build project.

    *)
  4. debug_session_enabled : wrapper_boolean option;
    (*

    Specifies if session debugging is enabled for this build. For more information, see Viewing a running build in Session Manager.

    *)
  5. image_pull_credentials_type_override : image_pull_credentials_type option;
    (*

    The type of credentials CodeBuild uses to pull images in your build. There are two valid values:

    CODEBUILD Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.

    SERVICE_ROLE Specifies that 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 CodeBuild curated image, you must use CODEBUILD credentials.

    *)
  6. registry_credential_override : registry_credential option;
    (*

    The credentials for access to a private registry.

    *)
  7. logs_config_override : logs_config option;
    (*

    Log settings for this build that override the log settings defined in the build project.

    *)
  8. idempotency_token : string_ option;
    (*

    A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

    *)
  9. encryption_key_override : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  10. queued_timeout_in_minutes_override : time_out option;
    (*

    The number of minutes a build is allowed to be queued before it times out.

    *)
  11. timeout_in_minutes_override : build_time_out option;
    (*

    The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.

    *)
  12. privileged_mode_override : wrapper_boolean option;
    (*

    Enable this flag to override privileged mode in the build project.

    *)
  13. service_role_override : non_empty_string option;
    (*

    The name of a service role for this build that overrides the one specified in the build project.

    *)
  14. cache_override : project_cache option;
    (*

    A ProjectCache object specified for this build that overrides the one defined in the build project.

    *)
  15. certificate_override : string_ option;
    (*

    The name of a certificate for this build that overrides the one specified in the build project.

    *)
  16. compute_type_override : compute_type option;
    (*

    The name of a compute type for this build that overrides the one specified in the build project.

    *)
  17. image_override : non_empty_string option;
    (*

    The name of an image for this build that overrides the one specified in the build project.

    *)
  18. environment_type_override : environment_type option;
    (*

    A container type for this build that overrides the one specified in the build project.

    *)
  19. build_status_config_override : build_status_config option;
    (*

    Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

    *)
  20. report_build_status_override : wrapper_boolean option;
    (*

    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, GitLab, GitLab Self Managed, or Bitbucket, an invalidInputException is thrown.

    To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see Source provider access in the CodeBuild User Guide.

    The status of a build triggered by a webhook is always reported to your source provider.

    *)
  21. insecure_ssl_override : wrapper_boolean option;
    (*

    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.

    *)
  22. buildspec_override : string_ option;
    (*

    A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.

    If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

    Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket. Alternatively, you can restrict overrides to the buildspec by using a condition key: Prevent unauthorized modifications to project buildspec.

    *)
  23. git_submodules_config_override : git_submodules_config option;
    (*

    Information about the Git submodules configuration for this build of an CodeBuild build project.

    *)
  24. git_clone_depth_override : git_clone_depth option;
    (*

    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.

    *)
  25. source_auth_override : source_auth option;
    (*

    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, GitHub, GitLab, or GitLab Self Managed.

    *)
  26. source_location_override : string_ option;
    (*

    A location that overrides, for this build, the source location for the one defined in the build project.

    *)
  27. source_type_override : source_type option;
    (*

    A source input type, for this build, that overrides the source input defined in the build project.

    *)
  28. environment_variables_override : environment_variables option;
    (*

    A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.

    *)
  29. secondary_artifacts_override : project_artifacts_list option;
    (*

    An array of ProjectArtifacts objects.

    *)
  30. artifacts_override : project_artifacts option;
    (*

    Build output artifact settings that override, for this build only, the latest ones already defined in the build project.

    *)
  31. source_version : string_ option;
    (*

    The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:

    CodeCommit The commit ID, branch, or Git tag to use.

    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.

    GitLab The commit ID, branch, or Git tag to use.

    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.

    Amazon S3 The version ID of the object that represents the build input ZIP file to use.

    If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  32. secondary_sources_version_override : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects that specify one or more versions of the project's secondary sources to be used for this build only.

    *)
  33. secondary_sources_override : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  34. project_name : non_empty_string;
    (*

    The name of the CodeBuild build project to start running a build.

    *)
}
type nonrec start_build_batch_output = {
  1. build_batch : build_batch option;
    (*

    A BuildBatch object that contains information about the batch build.

    *)
}
type nonrec start_build_batch_input = {
  1. debug_session_enabled : wrapper_boolean option;
    (*

    Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.

    *)
  2. build_batch_config_override : project_build_batch_config option;
    (*

    A BuildBatchConfigOverride object that contains batch build configuration overrides.

    *)
  3. image_pull_credentials_type_override : image_pull_credentials_type option;
    (*

    The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values:

    CODEBUILD Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.

    SERVICE_ROLE Specifies that 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 CodeBuild curated image, you must use CODEBUILD credentials.

    *)
  4. registry_credential_override : registry_credential option;
    (*

    A RegistryCredential object that overrides credentials for access to a private registry.

    *)
  5. logs_config_override : logs_config option;
    (*

    A LogsConfig object that override the log settings defined in the batch build project.

    *)
  6. idempotency_token : string_ option;
    (*

    A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuildBatch request. The token is included in the StartBuildBatch request and is valid for five minutes. If you repeat the StartBuildBatch request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

    *)
  7. encryption_key_override : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  8. queued_timeout_in_minutes_override : time_out option;
    (*

    The number of minutes a batch build is allowed to be queued before it times out.

    *)
  9. build_timeout_in_minutes_override : build_time_out option;
    (*

    Overrides the build timeout specified in the batch build project.

    *)
  10. privileged_mode_override : wrapper_boolean option;
    (*

    Enable this flag to override privileged mode in the batch build project.

    *)
  11. service_role_override : non_empty_string option;
    (*

    The name of a service role for this batch build that overrides the one specified in the batch build project.

    *)
  12. cache_override : project_cache option;
    (*

    A ProjectCache object that specifies cache overrides.

    *)
  13. certificate_override : string_ option;
    (*

    The name of a certificate for this batch build that overrides the one specified in the batch build project.

    *)
  14. compute_type_override : compute_type option;
    (*

    The name of a compute type for this batch build that overrides the one specified in the batch build project.

    *)
  15. image_override : non_empty_string option;
    (*

    The name of an image for this batch build that overrides the one specified in the batch build project.

    *)
  16. environment_type_override : environment_type option;
    (*

    A container type for this batch build that overrides the one specified in the batch build project.

    *)
  17. report_build_batch_status_override : wrapper_boolean option;
    (*

    Set to true to report to your source provider the status of a batch 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.

    The status of a build triggered by a webhook is always reported to your source provider.

    *)
  18. insecure_ssl_override : wrapper_boolean option;
    (*

    Enable this flag to override the insecure SSL setting that is specified in the batch build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.

    *)
  19. buildspec_override : string_ option;
    (*

    A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.

    If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in CODEBUILD_SRC_DIR environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see Buildspec File Name and Storage Location.

    *)
  20. git_submodules_config_override : git_submodules_config option;
    (*

    A GitSubmodulesConfig object that overrides the Git submodules configuration for this batch build.

    *)
  21. git_clone_depth_override : git_clone_depth option;
    (*

    The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.

    *)
  22. source_auth_override : source_auth option;
    (*

    A SourceAuth object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.

    *)
  23. source_location_override : string_ option;
    (*

    A location that overrides, for this batch build, the source location defined in the batch build project.

    *)
  24. source_type_override : source_type option;
    (*

    The source input type that overrides the source input defined in the batch build project.

    *)
  25. environment_variables_override : environment_variables option;
    (*

    An array of EnvironmentVariable objects that override, or add to, the environment variables defined in the batch build project.

    *)
  26. secondary_artifacts_override : project_artifacts_list option;
    (*

    An array of ProjectArtifacts objects that override the secondary artifacts defined in the batch build project.

    *)
  27. artifacts_override : project_artifacts option;
    (*

    An array of ProjectArtifacts objects that contains information about the build output artifact overrides for the build project.

    *)
  28. source_version : string_ option;
    (*

    The version of the batch build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:

    CodeCommit The commit ID, branch, or Git tag to use.

    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.

    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.

    Amazon S3 The version ID of the object that represents the build input ZIP file to use.

    If sourceVersion is specified at the project level, then this sourceVersion (at the build level) takes precedence.

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  29. secondary_sources_version_override : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects that override the secondary source versions in the batch build project.

    *)
  30. secondary_sources_override : project_sources option;
    (*

    An array of ProjectSource objects that override the secondary sources defined in the batch build project.

    *)
  31. project_name : non_empty_string;
    (*

    The name of the project.

    *)
}
type nonrec server_type =
  1. | GITLAB_SELF_MANAGED
  2. | GITLAB
  3. | GITHUB_ENTERPRISE
  4. | BITBUCKET
  5. | GITHUB
type nonrec auth_type =
  1. | SECRETS_MANAGER
  2. | CODECONNECTIONS
  3. | PERSONAL_ACCESS_TOKEN
  4. | BASIC_AUTH
  5. | OAUTH
type nonrec source_credentials_info = {
  1. resource : string_ option;
    (*

    The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.

    *)
  2. auth_type : auth_type option;
    (*

    The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.

    *)
  3. server_type : server_type option;
    (*

    The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.

    *)
  4. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the token.

    *)
}

Information about the credentials for a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.

type nonrec source_credentials_infos = source_credentials_info list
type nonrec sort_order_type =
  1. | DESCENDING
  2. | ASCENDING
type nonrec shared_resource_sort_by_type =
  1. | MODIFIED_TIME
  2. | ARN
type nonrec sandboxes = sandbox list
type nonrec sandbox_ids = non_empty_string list
type nonrec retry_build_output = {
  1. build : build option;
}
type nonrec retry_build_input = {
  1. idempotency_token : string_ option;
    (*

    A unique, case sensitive identifier you provide to ensure the idempotency of the RetryBuild request. The token is included in the RetryBuild request and is valid for five minutes. If you repeat the RetryBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

    *)
  2. id : non_empty_string option;
    (*

    Specifies the identifier of the build to restart.

    *)
}
type nonrec retry_build_batch_type =
  1. | RETRY_FAILED_BUILDS
  2. | RETRY_ALL_BUILDS
type nonrec retry_build_batch_output = {
  1. build_batch : build_batch option;
}
type nonrec retry_build_batch_input = {
  1. retry_type : retry_build_batch_type option;
    (*

    Specifies the type of retry to perform.

    *)
  2. idempotency_token : string_ option;
    (*

    A unique, case sensitive identifier you provide to ensure the idempotency of the RetryBuildBatch request. The token is included in the RetryBuildBatch request and is valid for five minutes. If you repeat the RetryBuildBatch request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.

    *)
  3. id : non_empty_string option;
    (*

    Specifies the identifier of the batch build to restart.

    *)
}
type nonrec resource_already_exists_exception = {
  1. message : string_ option;
}

The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.

type nonrec report_status_type =
  1. | DELETING
  2. | INCOMPLETE
  3. | FAILED
  4. | SUCCEEDED
  5. | GENERATING
type nonrec percentage = float
type nonrec non_negative_int = int
type nonrec code_coverage_report_summary = {
  1. branches_missed : non_negative_int option;
    (*

    The number of conditional branches that are not covered by your tests.

    *)
  2. branches_covered : non_negative_int option;
    (*

    The number of conditional branches that are covered by your tests.

    *)
  3. branch_coverage_percentage : percentage option;
    (*

    The percentage of branches that are covered by your tests.

    *)
  4. lines_missed : non_negative_int option;
    (*

    The number of lines that are not covered by your tests.

    *)
  5. lines_covered : non_negative_int option;
    (*

    The number of lines that are covered by your tests.

    *)
  6. line_coverage_percentage : percentage option;
    (*

    The percentage of lines that are covered by your tests.

    *)
}

Contains a summary of a code coverage report.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

type nonrec report = {
  1. code_coverage_summary : code_coverage_report_summary option;
    (*

    A CodeCoverageReportSummary object that contains a code coverage summary for this report.

    *)
  2. test_summary : test_report_summary option;
    (*

    A TestReportSummary object that contains information about this test report.

    *)
  3. truncated : wrapper_boolean option;
    (*

    A boolean that specifies if this report run is truncated. The list of test cases is truncated after the maximum number of test cases is reached.

    *)
  4. export_config : report_export_config option;
    (*

    Information about where the raw data used to generate this report was exported.

    *)
  5. expired : timestamp option;
    (*

    The date and time a report expires. A report expires 30 days after it is created. An expired report is not available to view in CodeBuild.

    *)
  6. created : timestamp option;
    (*

    The date and time this report run occurred.

    *)
  7. status : report_status_type option;
    (*

    The status of this report.

    *)
  8. execution_id : string_ option;
    (*

    The ARN of the build run that generated this report.

    *)
  9. report_group_arn : non_empty_string option;
    (*

    The ARN of the report group associated with this report.

    *)
  10. name : string_ option;
    (*

    The name of the report that was run.

    *)
  11. type_ : report_type option;
    (*

    The type of the report that was run.

    CODE_COVERAGE A code coverage report.

    TEST A test report.

    *)
  12. arn : non_empty_string option;
    (*

    The ARN of the report run.

    *)
}

Information about the results from running a series of test cases during the run of a build project. The test cases are specified in the buildspec for the build project using one or more paths to the test case files. You can specify any type of tests you want, such as unit tests, integration tests, and functional tests.

type nonrec reports = report list
type nonrec report_with_raw_data = {
  1. data : string_ option;
    (*

    The value of the requested data field from the report.

    *)
  2. report_arn : non_empty_string option;
    (*

    The ARN of the report.

    *)
}

Contains the unmodified data for the report. For more information, see .

type nonrec report_groups = report_group list
type nonrec report_group_trend_stats = {
  1. min : string_ option;
    (*

    Contains the minimum value analyzed.

    *)
  2. max : string_ option;
    (*

    Contains the maximum value analyzed.

    *)
  3. average : string_ option;
    (*

    Contains the average of all values analyzed.

    *)
}

Contains trend statistics for a set of reports. The actual values depend on the type of trend being collected. For more information, see .

type nonrec report_group_trend_raw_data_list = report_with_raw_data list
type nonrec report_group_trend_field_type =
  1. | BRANCHES_MISSED
  2. | BRANCHES_COVERED
  3. | BRANCH_COVERAGE
  4. | LINES_MISSED
  5. | LINES_COVERED
  6. | LINE_COVERAGE
  7. | TOTAL
  8. | DURATION
  9. | PASS_RATE
type nonrec report_group_sort_by_type =
  1. | LAST_MODIFIED_TIME
  2. | CREATED_TIME
  3. | NAME
type nonrec report_group_arns = non_empty_string list
type nonrec report_filter = {
  1. status : report_status_type option;
    (*

    The status used to filter reports. You can filter using one status only.

    *)
}

A filter used to return reports with the status specified by the input status parameter.

type nonrec report_code_coverage_sort_by_type =
  1. | FILE_PATH
  2. | LINE_COVERAGE_PERCENTAGE
type nonrec report_arns = non_empty_string list
type nonrec put_resource_policy_output = {
  1. resource_arn : non_empty_string option;
    (*

    The ARN of the Project or ReportGroup resource that is associated with a resource policy.

    *)
}
type nonrec put_resource_policy_input = {
  1. resource_arn : non_empty_string;
    (*

    The ARN of the Project or ReportGroup resource you want to associate with a resource policy.

    *)
  2. policy : non_empty_string;
    (*

    A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.

    *)
}
type nonrec projects = project list
type nonrec project_sort_by_type =
  1. | LAST_MODIFIED_TIME
  2. | CREATED_TIME
  3. | NAME
type nonrec project_names = non_empty_string list
type nonrec project_arns = non_empty_string list
type nonrec platform_type =
  1. | WINDOWS_SERVER
  2. | UBUNTU
  3. | AMAZON_LINUX
  4. | DEBIAN
type nonrec page_size = int
type nonrec list_source_credentials_output = {
  1. source_credentials_infos : source_credentials_infos option;
    (*

    A list of SourceCredentialsInfo objects. Each SourceCredentialsInfo object includes the authentication type, token ARN, and type of source provider for one set of credentials.

    *)
}
type nonrec list_source_credentials_input = unit
type nonrec list_shared_report_groups_output = {
  1. report_groups : report_group_arns option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_shared_report_groups_input = {
  1. max_results : page_size option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
  3. sort_by : shared_resource_sort_by_type option;
    (*

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

    • ARN: List based on the ARN.
    • MODIFIED_TIME: List based on when information about the shared report group was last changed.
    *)
  4. sort_order : sort_order_type option;
    (*

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

    • ASCENDING: List in ascending order.
    • DESCENDING: List in descending order.
    *)
}
type nonrec list_shared_projects_output = {
  1. projects : project_arns option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_shared_projects_input = {
  1. next_token : non_empty_string option;
    (*

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

    *)
  2. max_results : page_size option;
    (*

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

    *)
  3. sort_order : sort_order_type option;
    (*

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

    • ASCENDING: List in ascending order.
    • DESCENDING: List in descending order.
    *)
  4. sort_by : shared_resource_sort_by_type option;
    (*

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

    • ARN: List based on the ARN.
    • MODIFIED_TIME: List based on when information about the shared project was last changed.
    *)
}
type nonrec list_sandboxes_output = {
  1. next_token : string_ option;
    (*

    Information about the next token to get paginated results.

    *)
  2. ids : sandbox_ids option;
    (*

    Information about the requested sandbox IDs.

    *)
}
type nonrec list_sandboxes_input = {
  1. next_token : string_ option;
    (*

    The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

    *)
  2. sort_order : sort_order_type option;
    (*

    The order in which sandbox records should be retrieved.

    *)
  3. max_results : page_size option;
    (*

    The maximum number of sandbox records to be retrieved.

    *)
}
type nonrec list_sandboxes_for_project_output = {
  1. next_token : string_ option;
    (*

    Information about the next token to get paginated results.

    *)
  2. ids : sandbox_ids option;
    (*

    Information about the requested sandbox IDs.

    *)
}
type nonrec list_sandboxes_for_project_input = {
  1. next_token : sensitive_string option;
    (*

    The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

    *)
  2. sort_order : sort_order_type option;
    (*

    The order in which sandbox records should be retrieved.

    *)
  3. max_results : page_size option;
    (*

    The maximum number of sandbox records to be retrieved.

    *)
  4. project_name : non_empty_string;
    (*

    The CodeBuild project name.

    *)
}
type nonrec list_reports_output = {
  1. reports : report_arns option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_reports_input = {
  1. filter : report_filter option;
    (*

    A ReportFilter object used to filter the returned reports.

    *)
  2. max_results : page_size option;
    (*

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

    *)
  3. next_token : string_ option;
    (*

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

    *)
  4. sort_order : sort_order_type option;
    (*

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

    • ASCENDING: return reports in chronological order based on their creation date.
    • DESCENDING: return reports in the reverse chronological order based on their creation date.
    *)
}
type nonrec list_reports_for_report_group_output = {
  1. reports : report_arns option;
    (*

    The list of report ARNs.

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_reports_for_report_group_input = {
  1. filter : report_filter option;
    (*

    A ReportFilter object used to filter the returned reports.

    *)
  2. max_results : page_size option;
    (*

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

    *)
  3. sort_order : sort_order_type option;
    (*

    Use to specify whether the results are returned in ascending or descending order.

    *)
  4. next_token : string_ option;
    (*

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

    *)
  5. report_group_arn : string_;
    (*

    The ARN of the report group for which you want to return report ARNs.

    *)
}
type nonrec list_report_groups_output = {
  1. report_groups : report_group_arns option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_report_groups_input = {
  1. max_results : page_size option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
  3. sort_by : report_group_sort_by_type option;
    (*

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

    • CREATED_TIME: List based on when each report group was created.
    • LAST_MODIFIED_TIME: List based on when each report group was last changed.
    • NAME: List based on each report group's name.
    *)
  4. sort_order : sort_order_type option;
    (*

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

    *)
}
type nonrec list_projects_output = {
  1. projects : project_names option;
    (*

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

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec list_projects_input = {
  1. next_token : non_empty_string option;
    (*

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

    *)
  2. sort_order : sort_order_type option;
    (*

    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.

    *)
  3. sort_by : project_sort_by_type option;
    (*

    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.

    *)
}
type nonrec fleet_arns = non_empty_string list
type nonrec list_fleets_output = {
  1. fleets : fleet_arns option;
    (*

    The list of compute fleet names.

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec fleet_sort_by_type =
  1. | LAST_MODIFIED_TIME
  2. | CREATED_TIME
  3. | NAME
type nonrec list_fleets_input = {
  1. sort_by : fleet_sort_by_type option;
    (*

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

    • CREATED_TIME: List based on when each compute fleet was created.
    • LAST_MODIFIED_TIME: List based on when information about each compute fleet was last changed.
    • NAME: List based on each compute fleet's name.

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

    *)
  2. sort_order : sort_order_type option;
    (*

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

    • ASCENDING: List in ascending order.
    • DESCENDING: List in descending order.

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

    *)
  3. max_results : page_size option;
    (*

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

    *)
  4. next_token : sensitive_string option;
    (*

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

    *)
}
type nonrec language_type =
  1. | PHP
  2. | BASE
  3. | DOTNET
  4. | ANDROID
  5. | DOCKER
  6. | GOLANG
  7. | RUBY
  8. | NODE_JS
  9. | PYTHON
  10. | JAVA
type nonrec image_versions = string_ list
type nonrec environment_image = {
  1. versions : image_versions option;
    (*

    A list of environment image versions.

    *)
  2. description : string_ option;
    (*

    The description of the Docker image.

    *)
  3. name : string_ option;
    (*

    The name of the Docker image.

    *)
}

Information about a Docker image that is managed by CodeBuild.

type nonrec environment_images = environment_image list
type nonrec environment_language = {
  1. images : environment_images option;
    (*

    The list of Docker images that are related by the specified programming language.

    *)
  2. language : language_type option;
    (*

    The programming language for the Docker images.

    *)
}

A set of Docker images that are related by programming language and are managed by CodeBuild.

type nonrec environment_languages = environment_language list
type nonrec environment_platform = {
  1. languages : environment_languages option;
    (*

    The list of programming languages that are available for the specified platform.

    *)
  2. platform : platform_type option;
    (*

    The platform's name.

    *)
}

A set of Docker images that are related by platform and are managed by CodeBuild.

type nonrec environment_platforms = environment_platform list
type nonrec list_curated_environment_images_output = {
  1. platforms : environment_platforms option;
    (*

    Information about supported platforms for Docker images that are managed by CodeBuild.

    *)
}
type nonrec list_curated_environment_images_input = unit
type nonrec command_executions = command_execution list
type nonrec list_command_executions_for_sandbox_output = {
  1. next_token : string_ option;
    (*

    Information about the next token to get paginated results.

    *)
  2. command_executions : command_executions option;
    (*

    Information about the requested command executions.

    *)
}
type nonrec list_command_executions_for_sandbox_input = {
  1. next_token : sensitive_string option;
    (*

    The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.

    *)
  2. sort_order : sort_order_type option;
    (*

    The order in which sandbox records should be retrieved.

    *)
  3. max_results : page_size option;
    (*

    The maximum number of sandbox records to be retrieved.

    *)
  4. sandbox_id : non_empty_string;
    (*

    A sandboxId or sandboxArn.

    *)
}
type nonrec build_ids = non_empty_string list
type nonrec list_builds_output = {
  1. next_token : string_ option;
    (*

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

    *)
  2. ids : build_ids option;
    (*

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

    *)
}
type nonrec list_builds_input = {
  1. next_token : string_ option;
    (*

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

    *)
  2. sort_order : sort_order_type option;
    (*

    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.
    *)
}
type nonrec list_builds_for_project_output = {
  1. next_token : string_ option;
    (*

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

    *)
  2. ids : build_ids option;
    (*

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

    *)
}
type nonrec list_builds_for_project_input = {
  1. next_token : string_ option;
    (*

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

    *)
  2. sort_order : sort_order_type option;
    (*

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

    Valid values include:

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

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

    *)
  3. project_name : non_empty_string;
    (*

    The name of the CodeBuild project.

    *)
}
type nonrec build_batch_ids = non_empty_string list
type nonrec list_build_batches_output = {
  1. next_token : string_ option;
    (*

    If there are more items to return, this contains a token that is passed to a subsequent call to ListBuildBatches to retrieve the next set of items.

    *)
  2. ids : build_batch_ids option;
    (*

    An array of strings that contains the batch build identifiers.

    *)
}
type nonrec build_batch_filter = {
  1. status : status_type option;
    (*

    The status of the batch builds to retrieve. Only batch builds that have this status will be retrieved.

    *)
}

Specifies filters when retrieving batch builds.

type nonrec list_build_batches_input = {
  1. next_token : string_ option;
    (*

    The nextToken value returned from a previous call to ListBuildBatches. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

    *)
  2. sort_order : sort_order_type option;
    (*

    Specifies the sort order of the returned items. Valid values include:

    • ASCENDING: List the batch build identifiers in ascending order by identifier.
    • DESCENDING: List the batch build identifiers in descending order by identifier.
    *)
  3. max_results : page_size option;
    (*

    The maximum number of results to return.

    *)
  4. filter : build_batch_filter option;
    (*

    A BuildBatchFilter object that specifies the filters for the search.

    *)
}
type nonrec list_build_batches_for_project_output = {
  1. next_token : string_ option;
    (*

    If there are more items to return, this contains a token that is passed to a subsequent call to ListBuildBatchesForProject to retrieve the next set of items.

    *)
  2. ids : build_batch_ids option;
    (*

    An array of strings that contains the batch build identifiers.

    *)
}
type nonrec list_build_batches_for_project_input = {
  1. next_token : string_ option;
    (*

    The nextToken value returned from a previous call to ListBuildBatchesForProject. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

    *)
  2. sort_order : sort_order_type option;
    (*

    Specifies the sort order of the returned items. Valid values include:

    • ASCENDING: List the batch build identifiers in ascending order by identifier.
    • DESCENDING: List the batch build identifiers in descending order by identifier.
    *)
  3. max_results : page_size option;
    (*

    The maximum number of results to return.

    *)
  4. filter : build_batch_filter option;
    (*

    A BuildBatchFilter object that specifies the filters for the search.

    *)
  5. project_name : non_empty_string option;
    (*

    The name of the project.

    *)
}
type nonrec invalidate_project_cache_output = unit
type nonrec invalidate_project_cache_input = {
  1. project_name : non_empty_string;
    (*

    The name of the CodeBuild build project that the cache is reset for.

    *)
}
type nonrec import_source_credentials_output = {
  1. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the token.

    *)
}
type nonrec import_source_credentials_input = {
  1. should_overwrite : wrapper_boolean option;
    (*

    Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

    *)
  2. auth_type : auth_type;
    (*

    The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

    *)
  3. server_type : server_type;
    (*

    The source provider used for this project.

    *)
  4. token : sensitive_non_empty_string;
    (*

    For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.

    *)
  5. username : non_empty_string option;
    (*

    The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

    *)
}
type nonrec get_resource_policy_output = {
  1. policy : non_empty_string option;
    (*

    The resource policy for the resource identified by the input ARN parameter.

    *)
}
type nonrec get_resource_policy_input = {
  1. resource_arn : non_empty_string;
    (*

    The ARN of the resource that is associated with the resource policy.

    *)
}
type nonrec get_report_group_trend_output = {
  1. raw_data : report_group_trend_raw_data_list option;
    (*

    An array that contains the raw data for each report.

    *)
  2. stats : report_group_trend_stats option;
    (*

    Contains the accumulated trend data.

    *)
}
type nonrec get_report_group_trend_input = {
  1. trend_field : report_group_trend_field_type;
    (*

    The test report value to accumulate. This must be one of the following values:

    Test reports: DURATION Accumulate the test run times for the specified reports.

    PASS_RATE Accumulate the percentage of tests that passed for the specified test reports.

    TOTAL Accumulate the total number of tests for the specified test reports.

    Code coverage reports: BRANCH_COVERAGE Accumulate the branch coverage percentages for the specified test reports.

    BRANCHES_COVERED Accumulate the branches covered values for the specified test reports.

    BRANCHES_MISSED Accumulate the branches missed values for the specified test reports.

    LINE_COVERAGE Accumulate the line coverage percentages for the specified test reports.

    LINES_COVERED Accumulate the lines covered values for the specified test reports.

    LINES_MISSED Accumulate the lines not covered values for the specified test reports.

    *)
  2. num_of_reports : page_size option;
    (*

    The number of reports to analyze. This operation always retrieves the most recent reports.

    If this parameter is omitted, the most recent 100 reports are analyzed.

    *)
  3. report_group_arn : non_empty_string;
    (*

    The ARN of the report group that contains the reports to analyze.

    *)
}
type nonrec fleets = fleet list
type nonrec fleet_names = non_empty_string list
type nonrec describe_test_cases_output = {
  1. test_cases : test_cases option;
    (*

    The returned list of test cases.

    *)
  2. next_token : string_ option;
    (*

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

    *)
}
type nonrec describe_test_cases_input = {
  1. filter : test_case_filter option;
    (*

    A TestCaseFilter object used to filter the returned reports.

    *)
  2. max_results : page_size option;
    (*

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

    *)
  3. next_token : string_ option;
    (*

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

    *)
  4. report_arn : string_;
    (*

    The ARN of the report for which test cases are returned.

    *)
}
type nonrec code_coverage = {
  1. expired : timestamp option;
    (*

    The date and time that the tests were run.

    *)
  2. branches_missed : non_negative_int option;
    (*

    The number of conditional branches that are not covered by your tests.

    *)
  3. branches_covered : non_negative_int option;
    (*

    The number of conditional branches that are covered by your tests.

    *)
  4. branch_coverage_percentage : percentage option;
    (*

    The percentage of branches that are covered by your tests.

    *)
  5. lines_missed : non_negative_int option;
    (*

    The number of lines that are not covered by your tests.

    *)
  6. lines_covered : non_negative_int option;
    (*

    The number of lines that are covered by your tests.

    *)
  7. line_coverage_percentage : percentage option;
    (*

    The percentage of lines that are covered by your tests.

    *)
  8. file_path : non_empty_string option;
    (*

    The path of the test report file.

    *)
  9. report_ar_n : non_empty_string option;
    (*

    The ARN of the report.

    *)
  10. id : non_empty_string option;
    (*

    The identifier of the code coverage report.

    *)
}

Contains code coverage report information.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

type nonrec code_coverages = code_coverage list
type nonrec describe_code_coverages_output = {
  1. code_coverages : code_coverages option;
    (*

    An array of CodeCoverage objects that contain the results.

    *)
  2. next_token : string_ option;
    (*

    If there are more items to return, this contains a token that is passed to a subsequent call to DescribeCodeCoverages to retrieve the next set of items.

    *)
}
type nonrec describe_code_coverages_input = {
  1. max_line_coverage_percentage : percentage option;
    (*

    The maximum line coverage percentage to report.

    *)
  2. min_line_coverage_percentage : percentage option;
    (*

    The minimum line coverage percentage to report.

    *)
  3. sort_by : report_code_coverage_sort_by_type option;
    (*

    Specifies how the results are sorted. Possible values are:

    FILE_PATH The results are sorted by file path.

    LINE_COVERAGE_PERCENTAGE The results are sorted by the percentage of lines that are covered.

    *)
  4. sort_order : sort_order_type option;
    (*

    Specifies if the results are sorted in ascending or descending order.

    *)
  5. max_results : page_size option;
    (*

    The maximum number of results to return.

    *)
  6. next_token : string_ option;
    (*

    The nextToken value returned from a previous call to DescribeCodeCoverages. This specifies the next item to return. To return the beginning of the list, exclude this parameter.

    *)
  7. report_arn : non_empty_string;
    (*

    The ARN of the report for which test cases are returned.

    *)
}
type nonrec delete_webhook_output = unit
type nonrec delete_webhook_input = {
  1. project_name : project_name;
    (*

    The name of the CodeBuild project.

    *)
}
type nonrec delete_source_credentials_output = {
  1. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the token.

    *)
}
type nonrec delete_source_credentials_input = {
  1. arn : non_empty_string;
    (*

    The Amazon Resource Name (ARN) of the token.

    *)
}
type nonrec delete_resource_policy_output = unit
type nonrec delete_resource_policy_input = {
  1. resource_arn : non_empty_string;
    (*

    The ARN of the resource that is associated with the resource policy.

    *)
}
type nonrec delete_report_output = unit
type nonrec delete_report_input = {
  1. arn : non_empty_string;
    (*

    The ARN of the report to delete.

    *)
}
type nonrec delete_report_group_output = unit
type nonrec delete_report_group_input = {
  1. delete_reports : boolean_ option;
    (*

    If true, deletes any reports that belong to a report group before deleting the report group.

    If false, you must delete any reports in the report group. Use ListReportsForReportGroup to get the reports in a report group. Use DeleteReport to delete the reports. If you call DeleteReportGroup for a report group that contains one or more reports, an exception is thrown.

    *)
  2. arn : non_empty_string;
    (*

    The ARN of the report group to delete.

    *)
}
type nonrec delete_project_output = unit
type nonrec delete_project_input = {
  1. name : non_empty_string;
    (*

    The name of the build project.

    *)
}
type nonrec delete_fleet_output = unit
type nonrec delete_fleet_input = {
  1. arn : non_empty_string;
    (*

    The ARN of the compute fleet.

    *)
}
type nonrec build_not_deleted = {
  1. status_code : string_ option;
    (*

    Additional information about the build that could not be successfully deleted.

    *)
  2. id : non_empty_string option;
    (*

    The ID of the build that could not be successfully deleted.

    *)
}

Information about a build that could not be successfully deleted.

type nonrec builds_not_deleted = build_not_deleted list
type nonrec delete_build_batch_output = {
  1. builds_not_deleted : builds_not_deleted option;
    (*

    An array of BuildNotDeleted objects that specify the builds that could not be deleted.

    *)
  2. builds_deleted : build_ids option;
    (*

    An array of strings that contain the identifiers of the builds that were deleted.

    *)
  3. status_code : string_ option;
    (*

    The status code.

    *)
}
type nonrec delete_build_batch_input = {
  1. id : non_empty_string;
    (*

    The identifier of the batch build to delete.

    *)
}
type nonrec create_webhook_output = {
  1. webhook : webhook option;
    (*

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

    *)
}
type nonrec create_webhook_input = {
  1. pull_request_build_policy : pull_request_build_policy option;
    (*

    A PullRequestBuildPolicy object that defines comment-based approval requirements for triggering builds on pull requests. This policy helps control when automated builds are executed based on contributor permissions and approval workflows.

    *)
  2. scope_configuration : scope_configuration option;
    (*

    The scope configuration for global or organization webhooks.

    Global or organization webhooks are only available for GitHub and Github Enterprise webhooks.

    *)
  3. manual_creation : wrapper_boolean option;
    (*

    If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub.

    manualCreation is only available for GitHub webhooks.

    *)
  4. build_type : webhook_build_type option;
    (*

    Specifies the type of build this webhook will trigger.

    RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide.

    *)
  5. filter_groups : filter_groups option;
    (*

    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.

    *)
  6. branch_filter : string_ option;
    (*

    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.

    *)
  7. project_name : project_name;
    (*

    The name of the CodeBuild project.

    *)
}
type nonrec create_report_group_output = {
  1. report_group : report_group option;
    (*

    Information about the report group that was created.

    *)
}
type nonrec create_report_group_input = {
  1. tags : tag_list option;
    (*

    A list of tag key and value pairs associated with this report group.

    These tags are available for use by Amazon Web Services services that support CodeBuild report group tags.

    *)
  2. export_config : report_export_config;
    (*

    A ReportExportConfig object that contains information about where the report group test results are exported.

    *)
  3. type_ : report_type;
    (*

    The type of report group.

    *)
  4. name : report_group_name;
    (*

    The name of the report group.

    *)
}
type nonrec create_project_output = {
  1. project : project option;
    (*

    Information about the build project that was created.

    *)
}
type nonrec create_project_input = {
  1. auto_retry_limit : wrapper_int option;
    (*

    The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the RetryBuild API to automatically retry your build for up to 2 additional times.

    *)
  2. concurrent_build_limit : wrapper_int option;
    (*

    The maximum number of concurrent builds that are allowed for this project.

    New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.

    *)
  3. build_batch_config : project_build_batch_config option;
    (*

    A ProjectBuildBatchConfig object that defines the batch build options for the project.

    *)
  4. file_system_locations : project_file_system_locations option;
    (*

    An array of ProjectFileSystemLocation objects for a CodeBuild build project. A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.

    *)
  5. logs_config : logs_config option;
    (*

    Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.

    *)
  6. badge_enabled : wrapper_boolean option;
    (*

    Set this to true to generate a publicly accessible URL for your project's build badge.

    *)
  7. vpc_config : vpc_config option;
    (*

    VpcConfig enables CodeBuild to access resources in an Amazon VPC.

    If you're using compute fleets during project creation, do not provide vpcConfig.

    *)
  8. tags : tag_list option;
    (*

    A list of tag key and value pairs associated with this build project.

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

    *)
  9. encryption_key : non_empty_string option;
    (*

    The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.

    You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.

    You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format

    alias/

    ).

    *)
  10. queued_timeout_in_minutes : time_out option;
    (*

    The number of minutes a build is allowed to be queued before it times out.

    *)
  11. timeout_in_minutes : build_time_out option;
    (*

    How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.

    *)
  12. service_role : non_empty_string;
    (*

    The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.

    *)
  13. environment : project_environment;
    (*

    Information about the build environment for the build project.

    *)
  14. cache : project_cache option;
    (*

    Stores recently used information so that it can be quickly accessed at a later time.

    *)
  15. secondary_artifacts : project_artifacts_list option;
    (*

    An array of ProjectArtifacts objects.

    *)
  16. artifacts : project_artifacts;
    (*

    Information about the build output artifacts for the build project.

    *)
  17. secondary_source_versions : project_secondary_source_versions option;
    (*

    An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take precedence over these secondarySourceVersions (at the project level).

    *)
  18. source_version : string_ option;
    (*

    A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:

    • For CodeCommit: the commit ID, branch, or Git tag 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 GitLab: the commit ID, branch, or Git tag to use.
    • 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 S3: the version ID of the object that represents the build input ZIP file to use.

    If sourceVersion is specified at the build level, then that version takes precedence over this sourceVersion (at the project level).

    For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.

    *)
  19. secondary_sources : project_sources option;
    (*

    An array of ProjectSource objects.

    *)
  20. source : project_source;
    (*

    Information about the build input source code for the build project.

    *)
  21. description : project_description option;
    (*

    A description that makes the build project easy to identify.

    *)
  22. name : project_name;
    (*

    The name of the build project.

    *)
}
type nonrec create_fleet_output = {
  1. fleet : fleet option;
    (*

    Information about the compute fleet

    *)
}
type nonrec create_fleet_input = {
  1. tags : tag_list option;
    (*

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

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

    *)
  2. fleet_service_role : non_empty_string option;
    (*

    The service role associated with the compute fleet. For more information, see Allow a user to add a permission policy for a fleet service role in the CodeBuild User Guide.

    *)
  3. image_id : non_empty_string option;
    (*

    The Amazon Machine Image (AMI) of the compute fleet.

    *)
  4. proxy_configuration : proxy_configuration option;
    (*

    The proxy configuration of the compute fleet.

    *)
  5. vpc_config : vpc_config option;
  6. overflow_behavior : fleet_overflow_behavior option;
    (*

    The compute fleet overflow behavior.

    *)
  7. scaling_configuration : scaling_configuration_input option;
    (*

    The scaling configuration of the compute fleet.

    *)
  8. compute_configuration : compute_configuration option;
    (*

    The compute configuration of the compute fleet. This is only required if computeType is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE.

    *)
  9. compute_type : compute_type;
    (*

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

    • ATTRIBUTE_BASED_COMPUTE: Specify the amount of vCPUs, memory, disk space, and the type of machine.

      If you use ATTRIBUTE_BASED_COMPUTE, you must define your attributes by using computeConfiguration. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see Reserved capacity environment types in the CodeBuild User Guide.

    • CUSTOM_INSTANCE_TYPE: Specify the instance type for your compute fleet. For a list of supported instance types, see Supported instance families in the CodeBuild User Guide.
    • BUILD_GENERAL1_SMALL: Use up to 4 GiB memory and 2 vCPUs for builds.
    • BUILD_GENERAL1_MEDIUM: Use up to 8 GiB memory and 4 vCPUs for builds.
    • BUILD_GENERAL1_LARGE: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_XLARGE: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.
    • BUILD_GENERAL1_2XLARGE: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
    • BUILD_LAMBDA_1GB: Use up to 1 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_2GB: Use up to 2 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_4GB: Use up to 4 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_8GB: Use up to 8 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.
    • BUILD_LAMBDA_10GB: Use up to 10 GiB memory for builds. Only available for environment type LINUX_LAMBDA_CONTAINER and ARM_LAMBDA_CONTAINER.

    If you use BUILD_GENERAL1_SMALL:

    • For environment type LINUX_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.
    • For environment type ARM_CONTAINER, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.

    If you use BUILD_GENERAL1_LARGE:

    • For environment type LINUX_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs for builds.
    • For environment type LINUX_GPU_CONTAINER, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.
    • For environment type ARM_CONTAINER, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.

    For more information, see On-demand environment types in the CodeBuild User Guide.

    *)
  10. environment_type : environment_type;
    (*

    The environment type of the compute fleet.

    • The environment type ARM_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).
    • The environment type ARM_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type LINUX_GPU_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).
    • The environment type MAC_ARM is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)
    • The environment type MAC_ARM is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).
    • The environment type WINDOWS_EC2 is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).
    • The environment type WINDOWS_SERVER_2019_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).
    • The environment type WINDOWS_SERVER_2022_CONTAINER is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).

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

    *)
  11. base_capacity : fleet_capacity;
    (*

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

    *)
  12. name : fleet_name;
    (*

    The name of the compute fleet.

    *)
}
type nonrec command_execution_ids = non_empty_string list
type nonrec batch_get_sandboxes_output = {
  1. sandboxes_not_found : sandbox_ids option;
    (*

    The IDs of sandboxes for which information could not be found.

    *)
  2. sandboxes : sandboxes option;
    (*

    Information about the requested sandboxes.

    *)
}
type nonrec batch_get_sandboxes_input = {
  1. ids : sandbox_ids;
    (*

    A comma separated list of sandboxIds or sandboxArns.

    *)
}
type nonrec batch_get_reports_output = {
  1. reports_not_found : report_arns option;
    (*

    An array of ARNs passed to BatchGetReportGroups that are not associated with a Report.

    *)
  2. reports : reports option;
    (*

    The array of Report objects returned by BatchGetReports.

    *)
}
type nonrec batch_get_reports_input = {
  1. report_arns : report_arns;
    (*

    An array of ARNs that identify the Report objects to return.

    *)
}
type nonrec batch_get_report_groups_output = {
  1. report_groups_not_found : report_group_arns option;
    (*

    An array of ARNs passed to BatchGetReportGroups that are not associated with a ReportGroup.

    *)
  2. report_groups : report_groups option;
    (*

    The array of report groups returned by BatchGetReportGroups.

    *)
}
type nonrec batch_get_report_groups_input = {
  1. report_group_arns : report_group_arns;
    (*

    An array of report group ARNs that identify the report groups to return.

    *)
}
type nonrec batch_get_projects_output = {
  1. projects_not_found : project_names option;
    (*

    The names of build projects for which information could not be found.

    *)
  2. projects : projects option;
    (*

    Information about the requested build projects.

    *)
}
type nonrec batch_get_projects_input = {
  1. names : project_names;
    (*

    The names or ARNs of the build projects. To get information about a project shared with your Amazon Web Services account, its ARN must be specified. You cannot specify a shared project using its name.

    *)
}
type nonrec batch_get_fleets_output = {
  1. fleets_not_found : fleet_names option;
    (*

    The names of compute fleets for which information could not be found.

    *)
  2. fleets : fleets option;
    (*

    Information about the requested compute fleets.

    *)
}
type nonrec batch_get_fleets_input = {
  1. names : fleet_names;
    (*

    The names or ARNs of the compute fleets.

    *)
}
type nonrec batch_get_command_executions_output = {
  1. command_executions_not_found : command_execution_ids option;
    (*

    The IDs of command executions for which information could not be found.

    *)
  2. command_executions : command_executions option;
    (*

    Information about the requested command executions.

    *)
}
type nonrec batch_get_command_executions_input = {
  1. command_execution_ids : command_execution_ids;
    (*

    A comma separated list of commandExecutionIds.

    *)
  2. sandbox_id : non_empty_string;
    (*

    A sandboxId or sandboxArn.

    *)
}
type nonrec builds = build list
type nonrec batch_get_builds_output = {
  1. builds_not_found : build_ids option;
    (*

    The IDs of builds for which information could not be found.

    *)
  2. builds : builds option;
    (*

    Information about the requested builds.

    *)
}
type nonrec batch_get_builds_input = {
  1. ids : build_ids;
    (*

    The IDs of the builds.

    *)
}
type nonrec build_batches = build_batch list
type nonrec batch_get_build_batches_output = {
  1. build_batches_not_found : build_batch_ids option;
    (*

    An array that contains the identifiers of any batch builds that are not found.

    *)
  2. build_batches : build_batches option;
    (*

    An array of BuildBatch objects that represent the retrieved batch builds.

    *)
}
type nonrec batch_get_build_batches_input = {
  1. ids : build_batch_ids;
    (*

    An array that contains the batch build identifiers to retrieve.

    *)
}
type nonrec batch_delete_builds_output = {
  1. builds_not_deleted : builds_not_deleted option;
    (*

    Information about any builds that could not be successfully deleted.

    *)
  2. builds_deleted : build_ids option;
    (*

    The IDs of the builds that were successfully deleted.

    *)
}
type nonrec batch_delete_builds_input = {
  1. ids : build_ids;
    (*

    The IDs of the builds to delete.

    *)
}