{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-codebuild/json-schema/aws-codebuild-retry-build-output-schema.json",
  "title": "RetryBuildOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-codebuild-aws-codebuild-x-amz-target-codebuild-20161006-retrybuild-api-openapi.yml#/components/schemas/RetryBuildOutput",
  "type": "object",
  "properties": {
    "build": {
      "$ref": "#/$defs/Build"
    }
  },
  "$defs": {
    "AutoRetryConfig": {
      "type": "object",
      "properties": {
        "autoRetryLimit": {
          "type": "integer",
          "description": "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."
        },
        "autoRetryNumber": {
          "type": "integer",
          "description": "The number of times that the build has been retried. The initial build will have an auto-retry number of 0."
        },
        "nextAutoRetry": {
          "type": "string",
          "description": "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."
        },
        "previousAutoRetry": {
          "type": "string",
          "description": "The build ARN of the build that triggered the current auto-retry build. The previous auto-retry will be null for the initial build."
        }
      }
    },
    "Build": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique ID for the build."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the build."
        },
        "buildNumber": {
          "type": "integer",
          "description": "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."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the build process started, expressed in Unix time format."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the build process ended, expressed in Unix time format."
        },
        "currentPhase": {
          "type": "string",
          "description": "The current build phase."
        },
        "buildStatus": {
          "type": "string",
          "enum": [
            "SUCCEEDED",
            "FAILED",
            "FAULT",
            "TIMED_OUT",
            "IN_PROGRESS",
            "STOPPED"
          ],
          "description": "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."
        },
        "sourceVersion": {
          "type": "string",
          "description": "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."
        },
        "resolvedSourceVersion": {
          "type": "string",
          "description": "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."
        },
        "projectName": {
          "type": "string",
          "description": "The name of the CodeBuild project."
        },
        "phases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BuildPhase"
          },
          "description": "Information about all previous build phases that are complete and information about any current build phase that is not yet complete."
        },
        "source": {
          "$ref": "#/$defs/ProjectSource"
        },
        "secondarySources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectSource"
          },
          "description": "An array of ProjectSource objects."
        },
        "secondarySourceVersions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectSourceVersion"
          },
          "description": "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"
        },
        "artifacts": {
          "$ref": "#/$defs/BuildArtifacts"
        },
        "secondaryArtifacts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BuildArtifacts"
          },
          "description": "An array of ProjectArtifacts objects."
        },
        "cache": {
          "$ref": "#/$defs/ProjectCache"
        },
        "environment": {
          "$ref": "#/$defs/ProjectEnvironment"
        },
        "serviceRole": {
          "type": "string",
          "description": "The name of a service role used for this build."
        },
        "logs": {
          "$ref": "#/$defs/LogsLocation"
        },
        "timeoutInMinutes": {
          "type": "integer",
          "description": "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."
        },
        "queuedTimeoutInMinutes": {
          "type": "integer",
          "description": "The number of minutes a build is allowed to be queued before it times out."
        },
        "buildComplete": {
          "type": "boolean",
          "description": "Whether the build is complete. True if complete; otherwise, false."
        },
        "initiator": {
          "type": "string",
          "description": "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."
        },
        "vpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        },
        "networkInterface": {
          "$ref": "#/$defs/NetworkInterface"
        },
        "encryptionKey": {
          "type": "string",
          "description": "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/)."
        },
        "exportedEnvironmentVariables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExportedEnvironmentVariable"
          },
          "description": "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."
        },
        "reportArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of the ARNs associated with this build's reports."
        },
        "fileSystemLocations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectFileSystemLocation"
          },
          "description": "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."
        },
        "debugSession": {
          "$ref": "#/$defs/DebugSession"
        },
        "buildBatchArn": {
          "type": "string",
          "description": "The ARN of the batch build that this build is a member of, if applicable."
        },
        "autoRetryConfig": {
          "$ref": "#/$defs/AutoRetryConfig"
        }
      }
    },
    "BuildArtifacts": {
      "type": "object",
      "properties": {
        "location": {
          "type": "string",
          "description": "Information about the location of the build artifacts."
        },
        "sha256sum": {
          "type": "string",
          "description": "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."
        },
        "md5sum": {
          "type": "string",
          "description": "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."
        },
        "overrideArtifactName": {
          "type": "boolean",
          "description": "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."
        },
        "encryptionDisabled": {
          "type": "boolean",
          "description": "Information that tells you if encryption for build artifacts is disabled."
        },
        "artifactIdentifier": {
          "type": "string",
          "description": "An identifier for this artifact definition."
        },
        "bucketOwnerAccess": {
          "type": "string",
          "enum": [
            "NONE",
            "READ_ONLY",
            "FULL"
          ]
        }
      }
    },
    "BuildPhase": {
      "type": "object",
      "properties": {
        "phaseType": {
          "type": "string",
          "enum": [
            "SUBMITTED",
            "QUEUED",
            "PROVISIONING",
            "DOWNLOAD_SOURCE",
            "INSTALL",
            "PRE_BUILD",
            "BUILD",
            "POST_BUILD",
            "UPLOAD_ARTIFACTS",
            "FINALIZING",
            "COMPLETED"
          ],
          "description": "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 be"
        },
        "phaseStatus": {
          "type": "string",
          "enum": [
            "SUCCEEDED",
            "FAILED",
            "FAULT",
            "TIMED_OUT",
            "IN_PROGRESS",
            "STOPPED"
          ],
          "description": "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."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the build phase started, expressed in Unix time format."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the build phase ended, expressed in Unix time format."
        },
        "durationInSeconds": {
          "type": "integer",
          "description": "How long, in seconds, between the starting and ending times of the build's phase."
        },
        "contexts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PhaseContext"
          },
          "description": "Additional information about a build phase, especially to help troubleshoot a failed build."
        }
      }
    },
    "BuildStatusConfig": {
      "type": "object",
      "properties": {
        "context": {
          "type": "string",
          "description": "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."
        },
        "targetUrl": {
          "type": "string",
          "description": "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."
        }
      }
    },
    "CloudWatchLogsConfig": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "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."
        },
        "groupName": {
          "type": "string",
          "description": "The group name of the logs in CloudWatch Logs. For more information, see Working with Log Groups and Log Streams."
        },
        "streamName": {
          "type": "string",
          "description": "The prefix of the stream name of the CloudWatch Logs. For more information, see Working with Log Groups and Log Streams."
        }
      },
      "required": [
        "status"
      ]
    },
    "ComputeConfiguration": {
      "type": "object",
      "properties": {
        "vCpu": {
          "type": "integer",
          "description": "The number of vCPUs of the instance type included in your fleet."
        },
        "memory": {
          "type": "integer",
          "description": "The amount of memory of the instance type included in your fleet."
        },
        "disk": {
          "type": "integer",
          "description": "The amount of disk space of the instance type included in your fleet."
        },
        "machineType": {
          "type": "string",
          "enum": [
            "GENERAL",
            "NVME"
          ],
          "description": "The machine type of the instance type included in your fleet."
        },
        "instanceType": {
          "type": "string",
          "description": "The EC2 instance type to be launched in your fleet."
        }
      }
    },
    "DebugSession": {
      "type": "object",
      "properties": {
        "sessionEnabled": {
          "type": "boolean",
          "description": "Specifies if session debugging is enabled for this build."
        },
        "sessionTarget": {
          "type": "string",
          "description": "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."
        }
      }
    },
    "DockerServer": {
      "type": "object",
      "properties": {
        "computeType": {
          "type": "string",
          "enum": [
            "BUILD_GENERAL1_SMALL",
            "BUILD_GENERAL1_MEDIUM",
            "BUILD_GENERAL1_LARGE",
            "BUILD_GENERAL1_XLARGE",
            "BUILD_GENERAL1_2XLARGE",
            "BUILD_LAMBDA_1GB",
            "BUILD_LAMBDA_2GB",
            "BUILD_LAMBDA_4GB",
            "BUILD_LAMBDA_8GB",
            "BUILD_LAMBDA_10GB",
            "ATTRIBUTE_BASED_COMPUTE",
            "CUSTOM_INSTANCE_TYPE"
          ],
          "description": "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."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "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."
        },
        "status": {
          "$ref": "#/$defs/DockerServerStatus"
        }
      },
      "required": [
        "computeType"
      ]
    },
    "DockerServerStatus": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "The status of the docker server."
        },
        "message": {
          "type": "string",
          "description": "A message associated with the status of a docker server."
        }
      }
    },
    "EnvironmentVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name or key of the environment variable."
        },
        "value": {
          "type": "string",
          "description": "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."
        },
        "type": {
          "type": "string",
          "enum": [
            "PLAINTEXT",
            "PARAMETER_STORE",
            "SECRETS_MANAGER"
          ],
          "description": "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 sto"
        }
      },
      "required": [
        "name",
        "value"
      ]
    },
    "ExportedEnvironmentVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the exported environment variable."
        },
        "value": {
          "type": "string",
          "description": "The value assigned to the exported environment variable."
        }
      }
    },
    "GitSubmodulesConfig": {
      "type": "object",
      "properties": {
        "fetchSubmodules": {
          "type": "boolean",
          "description": "Set to true to fetch Git submodules for your CodeBuild build project."
        }
      },
      "required": [
        "fetchSubmodules"
      ]
    },
    "LogsLocation": {
      "type": "object",
      "properties": {
        "groupName": {
          "type": "string",
          "description": "The name of the CloudWatch Logs group for the build logs."
        },
        "streamName": {
          "type": "string",
          "description": "The name of the CloudWatch Logs stream for the build logs."
        },
        "deepLink": {
          "type": "string",
          "description": "The URL to an individual build log in CloudWatch Logs. The log stream is created during the PROVISIONING phase of a build and the deeplink will not be valid until it is created."
        },
        "s3DeepLink": {
          "type": "string",
          "description": "The URL to a build log in an S3 bucket."
        },
        "cloudWatchLogsArn": {
          "type": "string",
          "description": "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."
        },
        "s3LogsArn": {
          "type": "string",
          "description": "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."
        },
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogsConfig"
        },
        "s3Logs": {
          "$ref": "#/$defs/S3LogsConfig"
        }
      }
    },
    "NetworkInterface": {
      "type": "object",
      "properties": {
        "subnetId": {
          "type": "string",
          "description": "The ID of the subnet."
        },
        "networkInterfaceId": {
          "type": "string",
          "description": "The ID of the network interface."
        }
      }
    },
    "PhaseContext": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "description": "The status code for the context of the build phase."
        },
        "message": {
          "type": "string",
          "description": "An explanation of the build phase's context. This might include a command ID and an exit code."
        }
      }
    },
    "ProjectCache": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "NO_CACHE",
            "S3",
            "LOCAL"
          ],
          "description": "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."
        },
        "location": {
          "type": "string",
          "description": "Information about the cache location: NO_CACHE or LOCAL: This value is ignored. S3: This is the S3 bucket name/prefix."
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "LOCAL_DOCKER_LAYER_CACHE",
              "LOCAL_SOURCE_CACHE",
              "LOCAL_CUSTOM_CACHE"
            ]
          },
          "description": "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_DOC"
        },
        "cacheNamespace": {
          "type": "string",
          "description": "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."
        }
      },
      "required": [
        "type"
      ]
    },
    "ProjectEnvironment": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "WINDOWS_CONTAINER",
            "LINUX_CONTAINER",
            "LINUX_GPU_CONTAINER",
            "ARM_CONTAINER",
            "WINDOWS_SERVER_2019_CONTAINER",
            "WINDOWS_SERVER_2022_CONTAINER",
            "LINUX_LAMBDA_CONTAINER",
            "ARM_LAMBDA_CONTAINER",
            "LINUX_EC2",
            "ARM_EC2",
            "WINDOWS_EC2",
            "MAC_ARM"
          ],
          "description": "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."
        },
        "image": {
          "type": "string",
          "description": "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."
        },
        "computeType": {
          "type": "string",
          "enum": [
            "BUILD_GENERAL1_SMALL",
            "BUILD_GENERAL1_MEDIUM",
            "BUILD_GENERAL1_LARGE",
            "BUILD_GENERAL1_XLARGE",
            "BUILD_GENERAL1_2XLARGE",
            "BUILD_LAMBDA_1GB",
            "BUILD_LAMBDA_2GB",
            "BUILD_LAMBDA_4GB",
            "BUILD_LAMBDA_8GB",
            "BUILD_LAMBDA_10GB",
            "ATTRIBUTE_BASED_COMPUTE",
            "CUSTOM_INSTANCE_TYPE"
          ],
          "description": "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 buil"
        },
        "computeConfiguration": {
          "$ref": "#/$defs/ComputeConfiguration"
        },
        "fleet": {
          "$ref": "#/$defs/ProjectFleet"
        },
        "environmentVariables": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnvironmentVariable"
          },
          "description": "A set of environment variables to make available to builds for this build project."
        },
        "privilegedMode": {
          "type": "boolean",
          "description": "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 \"unt"
        },
        "certificate": {
          "type": "string",
          "description": "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."
        },
        "registryCredential": {
          "$ref": "#/$defs/RegistryCredential"
        },
        "imagePullCredentialsType": {
          "type": "string",
          "enum": [
            "CODEBUILD",
            "SERVICE_ROLE"
          ],
          "description": "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."
        },
        "dockerServer": {
          "$ref": "#/$defs/DockerServer"
        },
        "hostKernel": {
          "type": "string",
          "enum": [
            "LINUX_KERNEL_4",
            "LINUX_KERNEL_6",
            "LINUX_KERNEL_LATEST"
          ],
          "description": "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."
        }
      },
      "required": [
        "type",
        "image",
        "computeType"
      ]
    },
    "ProjectFileSystemLocation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EFS"
          ],
          "description": "The type of the file system. The one supported type is EFS."
        },
        "location": {
          "type": "string",
          "description": "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 y"
        },
        "mountPoint": {
          "type": "string",
          "description": "The location in the container where you mount the file system."
        },
        "identifier": {
          "type": "string",
          "description": "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."
        },
        "mountOptions": {
          "type": "string",
          "description": "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."
        }
      }
    },
    "ProjectFleet": {
      "type": "object",
      "properties": {
        "fleetArn": {
          "type": "string",
          "description": "Specifies the compute fleet ARN for the build project."
        }
      }
    },
    "ProjectSource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CODECOMMIT",
            "CODEPIPELINE",
            "GITHUB",
            "GITLAB",
            "GITLAB_SELF_MANAGED",
            "S3",
            "BITBUCKET",
            "GITHUB_ENTERPRISE",
            "NO_SOURCE"
          ],
          "description": "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"
        },
        "location": {
          "type": "string",
          "description": "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 bu"
        },
        "gitCloneDepth": {
          "type": "integer",
          "description": "Information about the Git clone depth for the build project."
        },
        "gitSubmodulesConfig": {
          "$ref": "#/$defs/GitSubmodulesConfig"
        },
        "buildspec": {
          "type": "string",
          "description": "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 dir"
        },
        "auth": {
          "$ref": "#/$defs/SourceAuth"
        },
        "reportBuildStatus": {
          "type": "boolean",
          "description": "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 acces"
        },
        "buildStatusConfig": {
          "$ref": "#/$defs/BuildStatusConfig"
        },
        "insecureSsl": {
          "type": "boolean",
          "description": "Enable this flag to ignore SSL warnings while connecting to the project source code."
        },
        "sourceIdentifier": {
          "type": "string",
          "description": "An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length."
        }
      },
      "required": [
        "type"
      ]
    },
    "ProjectSourceVersion": {
      "type": "object",
      "properties": {
        "sourceIdentifier": {
          "type": "string",
          "description": "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."
        },
        "sourceVersion": {
          "type": "string",
          "description": "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,"
        }
      },
      "required": [
        "sourceIdentifier",
        "sourceVersion"
      ]
    },
    "RegistryCredential": {
      "type": "object",
      "properties": {
        "credential": {
          "type": "string",
          "description": "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."
        },
        "credentialProvider": {
          "type": "string",
          "enum": [
            "SECRETS_MANAGER"
          ],
          "description": "The service that created the credentials to access a private Docker registry. The valid value, SECRETS_MANAGER, is for Secrets Manager."
        }
      },
      "required": [
        "credential",
        "credentialProvider"
      ]
    },
    "S3LogsConfig": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "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."
        },
        "location": {
          "type": "string",
          "description": "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."
        },
        "encryptionDisabled": {
          "type": "boolean",
          "description": "Set to true if you do not want your S3 build log output encrypted. By default S3 build logs are encrypted."
        },
        "bucketOwnerAccess": {
          "type": "string",
          "enum": [
            "NONE",
            "READ_ONLY",
            "FULL"
          ]
        }
      },
      "required": [
        "status"
      ]
    },
    "SourceAuth": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "OAUTH",
            "CODECONNECTIONS",
            "SECRETS_MANAGER"
          ],
          "description": "The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER."
        },
        "resource": {
          "type": "string",
          "description": "The resource value that applies to the specified authorization type."
        }
      },
      "required": [
        "type"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "vpcId": {
          "type": "string",
          "description": "The ID of the Amazon VPC."
        },
        "subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of one or more subnet IDs in your Amazon VPC."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of one or more security groups IDs in your Amazon VPC."
        }
      }
    }
  }
}