Amazon CloudWatch Cloudwatch Policy API

The Cloudwatch Policy API from Amazon CloudWatch — 1 operation(s) for cloudwatch policy.

GitHub OpenAPI

Operations 3

DELETE /appmonitor/{Name}/policy Delete Resource Policy #
GET /appmonitor/{Name}/policy Get Resource Policy #
PUT /appmonitor/{Name}/policy 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-cloudwatch:amazon-cloudwatch-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-cloudwatch-policy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon CloudWatch Policy API
  version: '2010-08-01'
  description: Generated from AWS's published Smithy model for Amazon CloudWatch. 3 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://rum.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /appmonitor/{Name}/policy:
    delete:
      operationId: DeleteResourcePolicy
      summary: Delete Resource Policy
      description: Removes the association of a resource-based policy from an app monitor.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteResourcePolicyResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumAccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumInternalServerException'
        '400':
          description: InvalidPolicyRevisionIdException; ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidPolicyRevisionIdException'
        '404':
          description: PolicyNotFoundException; ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RumDeleteResourcePolicyRequest'
      tags:
      - Policy
    get:
      operationId: GetResourcePolicy
      summary: Get Resource Policy
      description: Use this operation to retrieve information about a resource-based policy that is attached to an app monitor.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetResourcePolicyResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumAccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumInternalServerException'
        '404':
          description: PolicyNotFoundException; ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumValidationException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetResourcePolicyRequest'
      tags:
      - Policy
    put:
      operationId: PutResourcePolicy
      summary: Put Resource Policy
      description: Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access
        to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more
        about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumPutResourcePolicyResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumAccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumInternalServerException'
        '400':
          description: InvalidPolicyRevisionIdException; MalformedPolicyDocumentException; PolicySizeLimitExceededException;
            ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidPolicyRevisionIdException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RumResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RumPutResourcePolicyRequest'
      tags:
      - Policy
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: rum
  schemas:
    DeleteResourcePolicyResponse:
      type: object
      properties:
        PolicyRevisionId:
          type: string
          description: The revision ID of the policy that was removed, if it had one.
    GetResourcePolicyRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the app monitor that is associated with the resource-based policy that you want to view.
      required:
      - Name
    GetResourcePolicyResponse:
      type: object
      properties:
        PolicyDocument:
          type: string
          description: The JSON policy document that you requested.
        PolicyRevisionId:
          type: string
          description: The revision ID information for this version of the policy document that you requested.
    InvalidPolicyRevisionIdException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    PolicyNotFoundException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    RumAccessDeniedException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    RumConflictException:
      type: object
      properties:
        message:
          type: string
        resourceName:
          type: string
          description: The name of the resource that is associated with the error.
        resourceType:
          type: string
          description: The type of the resource that is associated with the error.
      required:
      - message
      - resourceName
    RumDeleteResourcePolicyRequest:
      type: object
      properties:
        Name:
          type: string
          description: The app monitor that you want to remove the resource policy from.
        PolicyRevisionId:
          type: string
          description: Specifies a specific policy revision to delete. Provide a PolicyRevisionId to ensure an atomic delete
            operation. If the revision ID that you provide doesn't match the latest policy revision ID, the request will be
            rejected with an InvalidPolicyRevisionIdException error.
      required:
      - Name
    RumInternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The value of a parameter in the request caused an error.
      required:
      - message
    RumPutResourcePolicyRequest:
      type: object
      properties:
        Name:
          type: string
          description: The name of the app monitor that you want to apply this resource-based policy to. To find the names
            of your app monitors, you can use the ListAppMonitors operation.
        PolicyDocument:
          type: string
          description: The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information
            about the contents and syntax for this policy, see Using resource-based policies with CloudWatch RUM.
        PolicyRevisionId:
          type: string
          description: A string value that you can use to conditionally update your policy. You can provide the revision ID
            of your existing policy to make mutating requests against that policy. When you assign a policy revision ID, then
            later requests about that policy will be rejected with an InvalidPolicyRevisionIdException error if they don't
            provide the correct current revision ID.
      required:
      - Name
      - PolicyDocument
    RumPutResourcePolicyResponse:
      type: object
      properties:
        PolicyDocument:
          type: string
          description: The JSON policy document that you specified.
        PolicyRevisionId:
          type: string
          description: The policy revision ID information that you specified.
    RumResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
        resourceName:
          type: string
          description: The name of the resource that is associated with the error.
        resourceType:
          type: string
          description: The type of the resource that is associated with the error.
      required:
      - message
      - resourceName
    RumValidationException:
      type: object
      properties:
        message:
          type: string
      required:
      - message
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
        serviceCode:
          type: string
          description: The ID of the service that is associated with the error.
        quotaCode:
          type: string
          description: The ID of the service quota that was exceeded.
        retryAfterSeconds:
          type: integer
          description: The value of a parameter in the request caused an error.
      required:
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/rum/service/2018-05-10/rum-2018-05-10.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)