{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-codebuild/json-schema/aws-codebuild-start-command-execution-output-schema.json",
  "title": "StartCommandExecutionOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-codebuild-command-execution-api-openapi.yml#/components/schemas/StartCommandExecutionOutput",
  "type": "object",
  "properties": {
    "commandExecution": {
      "$ref": "#/$defs/CommandExecution"
    }
  },
  "$defs": {
    "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"
      ]
    },
    "CommandExecution": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the command execution."
        },
        "sandboxId": {
          "type": "string",
          "description": "A sandboxId."
        },
        "submitTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the command execution process was initially submitted, expressed in Unix time format."
        },
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the command execution process started, expressed in Unix time format."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "When the command execution process ended, expressed in Unix time format."
        },
        "status": {
          "type": "string",
          "description": "The status of the command execution."
        },
        "command": {
          "type": "string",
          "description": "The command that needs to be executed."
        },
        "type": {
          "type": "string",
          "enum": [
            "SHELL"
          ],
          "description": "The command type."
        },
        "exitCode": {
          "type": "string",
          "description": "The exit code to return upon completion."
        },
        "standardOutputContent": {
          "type": "string",
          "description": "The text written by the command to stdout."
        },
        "standardErrContent": {
          "type": "string",
          "description": "The text written by the command to stderr."
        },
        "logs": {
          "$ref": "#/$defs/LogsLocation"
        },
        "sandboxArn": {
          "type": "string",
          "description": "A sandboxArn."
        }
      }
    },
    "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"
        }
      }
    },
    "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"
      ]
    }
  }
}