{
"$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 Sharing a Project and Sharing a Report Group in the CodeBuild User Guide. "
}
]
},
"resourceArn": {
"allOf": [
{
"$ref": "#/components/schemas/NonEmptyString"
},
{
"description": " The ARN of the Project or ReportGroup resource you want to associate with a resource policy. "
}
]
}
},
"required": [
"policy",
"resourceArn"
]
}