{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-codebuild/json-schema/aws-codebuild-batch-get-projects-output-schema.json",
  "title": "BatchGetProjectsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-codebuild-projects-api-openapi.yml#/components/schemas/BatchGetProjectsOutput",
  "type": "object",
  "properties": {
    "projects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Project"
      },
      "description": "Information about the requested build projects."
    },
    "projectsNotFound": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The names of build projects for which information could not be found."
    }
  },
  "$defs": {
    "BatchRestrictions": {
      "type": "object",
      "properties": {
        "maximumBuildsAllowed": {
          "type": "integer",
          "description": "Specifies the maximum number of builds allowed."
        },
        "computeTypesAllowed": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "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."
        },
        "fleetsAllowed": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "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."
        }
      }
    },
    "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."
        }
      }
    },
    "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"
      ]
    },
    "GitSubmodulesConfig": {
      "type": "object",
      "properties": {
        "fetchSubmodules": {
          "type": "boolean",
          "description": "Set to true to fetch Git submodules for your CodeBuild build project."
        }
      },
      "required": [
        "fetchSubmodules"
      ]
    },
    "LogsConfig": {
      "type": "object",
      "properties": {
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogsConfig"
        },
        "s3Logs": {
          "$ref": "#/$defs/S3LogsConfig"
        }
      }
    },
    "Project": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the build project."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the build project."
        },
        "description": {
          "type": "string",
          "description": "A description that makes the build project easy to identify."
        },
        "source": {
          "$ref": "#/$defs/ProjectSource"
        },
        "secondarySources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectSource"
          },
          "description": "An array of ProjectSource objects."
        },
        "sourceVersion": {
          "type": "string",
          "description": "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, o"
        },
        "secondarySourceVersions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectSourceVersion"
          },
          "description": "An array of ProjectSourceVersion objects. If secondarySourceVersions is specified at the build level, then they take over these secondarySourceVersions (at the project level)."
        },
        "artifacts": {
          "$ref": "#/$defs/ProjectArtifacts"
        },
        "secondaryArtifacts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProjectArtifacts"
          },
          "description": "An array of ProjectArtifacts objects."
        },
        "cache": {
          "$ref": "#/$defs/ProjectCache"
        },
        "environment": {
          "$ref": "#/$defs/ProjectEnvironment"
        },
        "serviceRole": {
          "type": "string",
          "description": "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."
        },
        "timeoutInMinutes": {
          "type": "integer",
          "description": "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."
        },
        "queuedTimeoutInMinutes": {
          "type": "integer",
          "description": "The number of minutes a build is allowed to be queued before it times out."
        },
        "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/). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3)."
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "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."
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "When the build project was created, expressed in Unix time format."
        },
        "lastModified": {
          "type": "string",
          "format": "date-time",
          "description": "When the build project's settings were last modified, expressed in Unix time format."
        },
        "webhook": {
          "$ref": "#/$defs/Webhook"
        },
        "vpcConfig": {
          "$ref": "#/$defs/VpcConfig"
        },
        "badge": {
          "$ref": "#/$defs/ProjectBadge"
        },
        "logsConfig": {
          "$ref": "#/$defs/LogsConfig"
        },
        "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."
        },
        "buildBatchConfig": {
          "$ref": "#/$defs/ProjectBuildBatchConfig"
        },
        "concurrentBuildLimit": {
          "type": "integer",
          "description": "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."
        },
        "projectVisibility": {
          "type": "string",
          "enum": [
            "PUBLIC_READ",
            "PRIVATE"
          ]
        },
        "publicProjectAlias": {
          "type": "string",
          "description": "Contains the project identifier used with the public build APIs."
        },
        "resourceAccessRole": {
          "type": "string",
          "description": "The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds."
        },
        "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."
        }
      }
    },
    "ProjectArtifacts": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CODEPIPELINE",
            "S3",
            "NO_ARTIFACTS"
          ],
          "description": "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."
        },
        "location": {
          "type": "string",
          "description": "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."
        },
        "path": {
          "type": "string",
          "description": "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 ar"
        },
        "namespaceType": {
          "type": "string",
          "enum": [
            "NONE",
            "BUILD_ID"
          ],
          "description": "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. F"
        },
        "name": {
          "type": "string",
          "description": "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, namespace"
        },
        "packaging": {
          "type": "string",
          "enum": [
            "NONE",
            "ZIP"
          ],
          "description": "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."
        },
        "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": "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."
        },
        "artifactIdentifier": {
          "type": "string",
          "description": "An identifier for this artifact definition."
        },
        "bucketOwnerAccess": {
          "type": "string",
          "enum": [
            "NONE",
            "READ_ONLY",
            "FULL"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "ProjectBadge": {
      "type": "object",
      "properties": {
        "badgeEnabled": {
          "type": "boolean",
          "description": "Set this to true to generate a publicly accessible URL for your project's build badge."
        },
        "badgeRequestUrl": {
          "type": "string",
          "description": "The publicly-accessible URL through which you can access the build badge for your project."
        }
      }
    },
    "ProjectBuildBatchConfig": {
      "type": "object",
      "properties": {
        "serviceRole": {
          "type": "string",
          "description": "Specifies the service role ARN for the batch build project."
        },
        "combineArtifacts": {
          "type": "boolean",
          "description": "Specifies if the build artifacts for the batch build should be combined into a single artifact location."
        },
        "restrictions": {
          "$ref": "#/$defs/BatchRestrictions"
        },
        "timeoutInMins": {
          "type": "integer",
          "description": "Specifies the maximum amount of time, in minutes, that the batch build must be completed in."
        },
        "batchReportMode": {
          "type": "string",
          "enum": [
            "REPORT_INDIVIDUAL_BUILDS",
            "REPORT_AGGREGATED_BATCH"
          ],
          "description": "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."
        }
      }
    },
    "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"
      ]
    },
    "PullRequestBuildPolicy": {
      "type": "object",
      "properties": {
        "requiresCommentApproval": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ALL_PULL_REQUESTS",
            "FORK_PULL_REQUESTS"
          ],
          "description": "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)"
        },
        "approverRoles": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GITHUB_READ",
              "GITHUB_TRIAGE",
              "GITHUB_WRITE",
              "GITHUB_MAINTAIN",
              "GITHUB_ADMIN",
              "GITLAB_GUEST",
              "GITLAB_PLANNER",
              "GITLAB_REPORTER",
              "GITLAB_DEVELOPER",
              "GITLAB_MAINTAINER",
              "GITLAB_OWNER",
              "BITBUCKET_READ",
              "BITBUCKET_WRITE",
              "BITBUCKET_ADMIN"
            ]
          },
          "description": "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."
        }
      },
      "required": [
        "requiresCommentApproval"
      ]
    },
    "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"
      ]
    },
    "ScopeConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook."
        },
        "domain": {
          "type": "string",
          "description": "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."
        },
        "scope": {
          "type": "string",
          "enum": [
            "GITHUB_ORGANIZATION",
            "GITHUB_GLOBAL",
            "GITLAB_GROUP"
          ],
          "description": "The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION."
        }
      },
      "required": [
        "name",
        "scope"
      ]
    },
    "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"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The tag's key."
        },
        "value": {
          "type": "string",
          "description": "The tag's value."
        }
      }
    },
    "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."
        }
      }
    },
    "Webhook": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The URL to the webhook."
        },
        "payloadUrl": {
          "type": "string",
          "description": "The CodeBuild endpoint where webhook events are sent."
        },
        "secret": {
          "type": "string",
          "description": "The secret token of the associated repository. A Bitbucket webhook does not support secret."
        },
        "branchFilter": {
          "type": "string",
          "description": "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."
        },
        "filterGroups": {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/WebhookFilter"
            }
          },
          "description": "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."
        },
        "buildType": {
          "type": "string",
          "enum": [
            "BUILD",
            "BUILD_BATCH",
            "RUNNER_BUILDKITE_BUILD"
          ],
          "description": "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."
        },
        "manualCreation": {
          "type": "boolean",
          "description": "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."
        },
        "lastModifiedSecret": {
          "type": "string",
          "format": "date-time",
          "description": "A timestamp that indicates the last time a repository's secret token was modified."
        },
        "scopeConfiguration": {
          "$ref": "#/$defs/ScopeConfiguration"
        },
        "status": {
          "type": "string",
          "enum": [
            "CREATING",
            "CREATE_FAILED",
            "ACTIVE",
            "DELETING"
          ],
          "description": "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."
        },
        "statusMessage": {
          "type": "string",
          "description": "A message associated with the status of a webhook."
        },
        "pullRequestBuildPolicy": {
          "$ref": "#/$defs/PullRequestBuildPolicy"
        }
      }
    },
    "WebhookFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EVENT",
            "BASE_REF",
            "HEAD_REF",
            "ACTOR_ACCOUNT_ID",
            "FILE_PATH",
            "COMMIT_MESSAGE",
            "WORKFLOW_NAME",
            "TAG_NAME",
            "RELEASE_NAME",
            "REPOSITORY_NAME",
            "ORGANIZATION_NAME"
          ],
          "description": "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 f"
        },
        "pattern": {
          "type": "string",
          "description": "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."
        },
        "excludeMatchedPattern": {
          "type": "boolean",
          "description": "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."
        }
      },
      "required": [
        "type",
        "pattern"
      ]
    }
  }
}