Amazon Glue · JSON Structure

Glue Put Resource Policy Request Structure

PutResourcePolicyRequest schema from Amazon Glue API

Type: object Properties: 5 Required: 1
AnalyticsData CatalogData IntegrationData PipelineETLServerless

PutResourcePolicyRequest is a JSON Structure definition published by Amazon Glue, describing 5 properties, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

PolicyInJson ResourceArn PolicyHashCondition PolicyExistsCondition EnableHybrid

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-glue/refs/heads/main/json-structure/glue-put-resource-policy-request-structure.json",
  "name": "PutResourcePolicyRequest",
  "description": "PutResourcePolicyRequest schema from Amazon Glue API",
  "type": "object",
  "properties": {
    "PolicyInJson": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PolicyJsonString"
        },
        {
          "description": "Contains the policy document to set, in JSON format."
        }
      ]
    },
    "ResourceArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/GlueResourceArn"
        },
        {
          "description": "Do not use. For internal use only."
        }
      ]
    },
    "PolicyHashCondition": {
      "allOf": [
        {
          "$ref": "#/components/schemas/HashString"
        },
        {
          "description": "The hash value returned when the previous policy was set using <code>PutResourcePolicy</code>. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set."
        }
      ]
    },
    "PolicyExistsCondition": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ExistCondition"
        },
        {
          "description": "A value of <code>MUST_EXIST</code> is used to update a policy. A value of <code>NOT_EXIST</code> is used to create a new policy. If a value of <code>NONE</code> or a null value is used, the call does not depend on the existence of a policy."
        }
      ]
    },
    "EnableHybrid": {
      "allOf": [
        {
          "$ref": "#/components/schemas/EnableHybridValues"
        },
        {
          "description": "<p>If <code>'TRUE'</code>, indicates that you are using both methods to grant cross-account access to Data Catalog resources:</p> <ul> <li> <p>By directly updating the resource policy with <code>PutResourePolicy</code> </p> </li> <li> <p>By using the <b>Grant permissions</b> command on the Amazon Web Services Management Console.</p> </li> </ul> <p>Must be set to <code>'TRUE'</code> if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.</p>"
        }
      ]
    }
  },
  "required": [
    "PolicyInJson"
  ]
}