Amazon CloudWatch Cloudwatch Policy API

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

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

DELETE /appmonitor/{Name}/policy Remove an app monitor's resource policy · Delete Resource Policy #
Ask an LLM
“How do I remove the access policy from an app monitor?”
“Can I delete a resource policy only if it matches a revision ID?”
Tell an agent destructive · confirm first
Delete the resource policy from app monitor {Name}.
Remove the policy on RUM app monitor {Name} only if its revision is {policyRevisionId}.
GET /appmonitor/{Name}/policy Get an app monitor's resource policy · Get Resource Policy #
Ask an LLM
“What resource-based policy is attached to my RUM app monitor?”
“Can I read the access policy on an app monitor?”
Tell an agent
Get the resource policy on app monitor {Name}.
Show the access policy attached to RUM app monitor {Name}.
PUT /appmonitor/{Name}/policy Set an app monitor's resource policy · Put Resource Policy #
Ask an LLM
“How do I restrict who can access my RUM app monitor?”
“What is the maximum size of an app monitor resource policy?”
Tell an agent
Set the resource policy on app monitor {Name} to {PolicyDocument}.
Apply policy {PolicyDocument} to RUM app monitor {Name} with revision {PolicyRevisionId}.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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'
      parameters:
      - name: Name
        in: path
        required: true
        schema:
          type: string
        description: The app monitor that you want to remove the resource policy from.
      - name: policyRevisionId
        in: query
        schema:
          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.
      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'
      parameters:
      - name: Name
        in: path
        required: true
        schema:
          type: string
        description: The name of the app monitor that is associated with the resource-based policy that you want to view.
      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'
      parameters:
      - name: Name
        in: path
        required: true
        schema:
          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.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                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:
              - PolicyDocument
      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.
    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
    RumInternalServerException:
      type: object
      properties:
        message:
          type: string
        retryAfterSeconds:
          type: integer
          description: The value of a parameter in the request caused an error.
      required:
      - message
    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)