Amazon Glue · Schema

PutResourcePolicyRequest

PutResourcePolicyRequest schema from Amazon Glue API

AnalyticsData CatalogData IntegrationData PipelineETLServerless

Properties

Name Type Description
PolicyInJson object
ResourceArn object
PolicyHashCondition object
PolicyExistsCondition object
EnableHybrid object
View JSON Schema on GitHub

JSON Schema

glue-put-resource-policy-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-glue/refs/heads/main/json-schema/glue-put-resource-policy-request-schema.json",
  "title": "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"
  ]
}