Amazon CodeBuild · JSON Structure

Amazon Codebuild Put Resource Policy Input Structure

PutResourcePolicyInput schema from Amazon CodeBuild

Type: object Properties: 2 Required: 2
AmazonCI/CDBuildContinuous IntegrationDevOpsTesting

PutResourcePolicyInput is a JSON Structure definition published by Amazon CodeBuild, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

policy resourceArn

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-codebuild/refs/heads/main/json-structure/amazon-codebuild-put-resource-policy-input-structure.json",
  "name": "PutResourcePolicyInput",
  "description": "PutResourcePolicyInput schema from Amazon CodeBuild",
  "type": "object",
  "properties": {
    "policy": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": " A JSON-formatted resource policy. For more information, see <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/project-sharing.html#project-sharing-share\">Sharing a Project</a> and <a href=\"https://docs.aws.amazon.com/codebuild/latest/userguide/report-groups-sharing.html#report-groups-sharing-share\">Sharing a Report Group</a> in the <i>CodeBuild User Guide</i>. "
        }
      ]
    },
    "resourceArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/NonEmptyString"
        },
        {
          "description": " The ARN of the <code>Project</code> or <code>ReportGroup</code> resource you want to associate with a resource policy. "
        }
      ]
    }
  },
  "required": [
    "policy",
    "resourceArn"
  ]
}