Amazon Redshift Redshift Resource Policy API

The Redshift Resource Policy API from Amazon Redshift — 6 operation(s) for redshift resource policy.

GitHub OpenAPI

Operations 6

POST /?Action=DeleteResourcePolicy Delete Resource Policy #
POST /?Action=GetResourcePolicy Get Resource Policy #
POST /?Action=PutResourcePolicy Put Resource Policy #
POST /#DeleteResourcePolicy Delete Resource Policy #
POST /#GetResourcePolicy Get Resource Policy #
POST /#PutResourcePolicy Put Resource Policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-redshift:amazon-redshift-resource-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-redshift-resource-policy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Redshift Resource Policy API
  version: '2012-12-01'
  description: Generated from AWS's published Smithy model for Amazon Redshift. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://redshift.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=DeleteResourcePolicy:
    post:
      operationId: DeleteResourcePolicy
      summary: Delete Resource Policy
      description: Deletes the resource policy for a specified resource.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
        '404':
          description: ResourceNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundFault'
        '400':
          description: UnsupportedOperationFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/UnsupportedOperationFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteResourcePolicy
                  Version:
                    type: string
                    const: '2012-12-01'
              - $ref: '#/components/schemas/DeleteResourcePolicyMessage'
      tags:
      - Resource Policy
  /?Action=GetResourcePolicy:
    post:
      operationId: GetResourcePolicy
      summary: Get Resource Policy
      description: Get the resource policy for a specified resource.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/GetResourcePolicyResult'
        '400':
          description: InvalidPolicyFault; UnsupportedOperationFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidPolicyFault'
        '404':
          description: ResourceNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: GetResourcePolicy
                  Version:
                    type: string
                    const: '2012-12-01'
              - $ref: '#/components/schemas/GetResourcePolicyMessage'
      tags:
      - Resource Policy
  /?Action=PutResourcePolicy:
    post:
      operationId: PutResourcePolicy
      summary: Put Resource Policy
      description: Updates the resource policy for a specified resource.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/PutResourcePolicyResult'
        '409':
          description: ConflictPolicyUpdateFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ConflictPolicyUpdateFault'
        '400':
          description: InvalidPolicyFault; UnsupportedOperationFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidPolicyFault'
        '404':
          description: ResourceNotFoundFault
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundFault'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: PutResourcePolicy
                  Version:
                    type: string
                    const: '2012-12-01'
              - $ref: '#/components/schemas/PutResourcePolicyMessage'
      tags:
      - Resource Policy
  /#DeleteResourcePolicy:
    post:
      operationId: DeleteResourcePolicy
      summary: Delete Resource Policy
      description: Deletes the specified resource policy.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteResourcePolicyResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RedshiftServerless.DeleteResourcePolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteResourcePolicyRequest'
      tags:
      - Resource Policy
      servers:
      - url: https://redshift-serverless.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_redshift_serverless: []
  /#GetResourcePolicy:
    post:
      operationId: GetResourcePolicy
      summary: Get Resource Policy
      description: Returns a resource policy.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetResourcePolicyResponse'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RedshiftServerless.GetResourcePolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetResourcePolicyRequest'
      tags:
      - Resource Policy
      servers:
      - url: https://redshift-serverless.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_redshift_serverless: []
  /#PutResourcePolicy:
    post:
      operationId: PutResourcePolicy
      summary: Put Resource Policy
      description: Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon
        Web Services accounts.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/PutResourcePolicyResponse'
        '409':
          description: ConflictException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessInternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '400':
          description: ValidationException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/RedshiftServerlessValidationException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RedshiftServerless.PutResourcePolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/PutResourcePolicyRequest'
      tags:
      - Resource Policy
      servers:
      - url: https://redshift-serverless.{region}.amazonaws.com
        variables:
          region:
            default: us-east-1
      security:
      - sigv4_redshift_serverless: []
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: redshift
    sigv4_redshift_serverless:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: redshift-serverless
  schemas:
    ConflictException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ConflictPolicyUpdateFault:
      type: object
      properties:
        message:
          type: string
    DeleteResourcePolicyMessage:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource of which its resource policy is deleted.
      required:
      - ResourceArn
    DeleteResourcePolicyRequest:
      type: object
      properties:
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the policy to delete.
      required:
      - resourceArn
    DeleteResourcePolicyResponse:
      type: object
      properties: {}
    GetResourcePolicyMessage:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource of which its resource policy is fetched.
      required:
      - ResourceArn
    GetResourcePolicyRequest:
      type: object
      properties:
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource to return.
      required:
      - resourceArn
    GetResourcePolicyResponse:
      type: object
      properties:
        resourcePolicy:
          $ref: '#/components/schemas/RedshiftServerlessResourcePolicy'
    GetResourcePolicyResult:
      type: object
      properties:
        ResourcePolicy:
          $ref: '#/components/schemas/ResourcePolicy'
    InvalidPolicyFault:
      type: object
      properties:
        message:
          type: string
    PutResourcePolicyMessage:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.
        Policy:
          type: string
          description: The content of the resource policy being updated.
      required:
      - ResourceArn
      - Policy
    PutResourcePolicyRequest:
      type: object
      properties:
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
        policy:
          type: string
          description: 'The policy to create or update. For example, the following policy grants a user authorization to restore
            a snapshot. "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", \"Principal\":{\"AWS\":
            [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] , \"Effect\": \"Allow\" }]}"'
      required:
      - resourceArn
      - policy
    PutResourcePolicyResponse:
      type: object
      properties:
        resourcePolicy:
          $ref: '#/components/schemas/RedshiftServerlessResourcePolicy'
    PutResourcePolicyResult:
      type: object
      properties:
        ResourcePolicy:
          $ref: '#/components/schemas/ResourcePolicy'
    RedshiftServerlessInternalServerException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    RedshiftServerlessResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceName:
          type: string
          description: The name of the resource that could not be found.
      required:
      - message
    RedshiftServerlessResourcePolicy:
      type: object
      properties:
        resourceArn:
          type: string
          description: The Amazon Resource Name (ARN) of the policy.
        policy:
          type: string
          description: The resource policy.
    RedshiftServerlessValidationException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ResourceNotFoundFault:
      type: object
      properties:
        message:
          type: string
    ResourcePolicy:
      type: object
      properties:
        ResourceArn:
          type: string
          description: The resources that a policy is attached to.
        Policy:
          type: string
          description: The content of a resource policy.
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    UnsupportedOperationFault:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift/service/2012-12-01/redshift-2012-12-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)
  sources:
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift/service/2012-12-01/redshift-2012-12-01.json
  - https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/redshift-serverless/service/2021-04-21/redshift-serverless-2021-04-21.json