Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Policy - Amazon EventBridge Schemas

Policy

The resource-based policy.

URI

/v1/policy

HTTP methods

GET

Operation ID: GetResourcePolicy

Retrieves the resource-based policy attached to a given registry.

Query parameters
NameTypeRequiredDescription
registryNameStringFalse

The name of the registry.

Responses
Status codeResponse modelDescription
200GetResourcePolicyOutput

Get Resource-Based Policy Response

400ErrorOutput

400 response

401ErrorOutput

401 response

403ErrorOutput

403 response

404ErrorOutput

404 response

500ErrorOutput

500 response

503ErrorOutput

503 response

PUT

Operation ID: PutResourcePolicy

The name of the policy.

Query parameters
NameTypeRequiredDescription
registryNameStringFalse

The name of the registry.

Responses
Status codeResponse modelDescription
200PutResourcePolicyOutput

200 response

400ErrorOutput

400 response

401ErrorOutput

401 response

403ErrorOutput

403 response

404ErrorOutput

404 response

412ErrorOutput

412 response

500ErrorOutput

500 response

503ErrorOutput

503 response

DELETE

Operation ID: DeleteResourcePolicy

Delete the resource-based policy attached to the specified registry.

Query parameters
NameTypeRequiredDescription
registryNameStringFalse

The name of the registry.

Responses
Status codeResponse modelDescription
204None

204 response

400ErrorOutput

400 response

401ErrorOutput

401 response

403ErrorOutput

403 response

404ErrorOutput

404 response

500ErrorOutput

500 response

503ErrorOutput

503 response

OPTIONS

Responses
Status codeResponse modelDescription
200None

200 response

Schemas

Request bodies

{ "Policy": "string", "RevisionId": "string" }

PUT schema

{ "Policy": "string", "RevisionId": "string" }

Response bodies

{ "Policy": "string", "RevisionId": "string" }

GetResourcePolicyOutput schema

{ "Policy": "string", "RevisionId": "string" }
{ "Policy": "string", "RevisionId": "string" }

PutResourcePolicyOutput schema

{ "Policy": "string", "RevisionId": "string" }
{ "Message": "string", "Code": "string" }

ErrorOutput schema

{ "Message": "string", "Code": "string" }

Properties

ErrorOutput

PropertyTypeRequiredDescription
Code

string

True

The error code.

Message

string

True

The message string of the error output.

GetResourcePolicyOutput

Information about the policy.

PropertyTypeRequiredDescription
Policy

string

False

The resource-based policy.

RevisionId

string

False

The revision ID.

PutResourcePolicyInput

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

PropertyTypeRequiredDescription
Policy

string

True

The resource-based policy.

RevisionId

string

False

The revision ID of the policy.

PutResourcePolicyOutput

The resource-based policy.

PropertyTypeRequiredDescription
Policy

string

False

The resource-based policy.

RevisionId

string

False

The revision ID of the policy.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.