Machine-LearningNatural Language ProcessingNLPText Analysis
PutResourcePolicyRequest is a JSON Structure definition published by Amazon Comprehend, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-comprehend/refs/heads/main/json-structure/openapi.yml-put-resource-policy-request-structure.json",
"name": "PutResourcePolicyRequest",
"description": "PutResourcePolicyRequest schema",
"type": "object",
"properties": {
"ResourceArn": {
"allOf": [
{
"$ref": "#/components/schemas/ComprehendModelArn"
},
{
"description": "The Amazon Resource Name (ARN) of the custom model to attach the policy to."
}
]
},
"ResourcePolicy": {
"allOf": [
{
"$ref": "#/components/schemas/Policy"
},
{
"description": "<p>The JSON resource-based policy to attach to your custom model. Provide your JSON as a UTF-8 encoded string without line breaks. To provide valid JSON for your policy, enclose the attribute names and values in double quotes. If the JSON body is also enclosed in double quotes, then you must escape the double quotes that are inside the policy:</p> <p> <code>\"{\\\"attribute\\\": \\\"value\\\", \\\"attribute\\\": [\\\"value\\\"]}\"</code> </p> <p>To avoid escaping quotes, you can use single quotes to enclose the policy and double quotes to enclose the JSON names and values:</p> <p> <code>'{\"attribute\": \"value\", \"attribute\": [\"value\"]}'</code> </p>"
}
]
},
"PolicyRevisionId": {
"allOf": [
{
"$ref": "#/components/schemas/PolicyRevisionId"
},
{
"description": "The revision ID that Amazon Comprehend assigned to the policy that you are updating. If you are creating a new policy that has no prior version, don't use this parameter. Amazon Comprehend creates the revision ID for you."
}
]
}
},
"required": [
"ResourceArn",
"ResourcePolicy"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.