Amazon Bedrock Bedrock Policy Generations API

The Bedrock Policy Generations API from Amazon Bedrock — 2 operation(s) for bedrock policy generations.

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

POST /policy-engines/{policyEngineId}/policy-generations Generate Dogwood policies from plain text · Start Policy Generation #
Ask an LLM
“How do I turn a natural language policy description into formal Dogwood policies?”
“Can non-technical users generate policies by describing authorization needs in plain English?”
Tell an agent
Start a policy generation named {name} on policy engine {policyEngineId} with content {content}.
Generate Dogwood policies from {content} using {policyEngineId} as context.
GET /policy-engines/{policyEngineId}/policy-generations List policy generation requests · List Policy Generations #
Ask an LLM
“Which AI policy generation requests have been run on a policy engine?”
“Can I page through policy generation history?”
Tell an agent
List policy generations for policy engine {policyEngineId}.
Show up to {maxResults} policy generation requests on {policyEngineId}.
GET /policy-engines/{policyEngineId}/policy-generations/{policyGenerationId} Get a policy generation request · Get Policy Generation #
Ask an LLM
“What did a specific policy generation request produce?”
“Can I check the status of one policy generation request?”
Tell an agent
Get policy generation {policyGenerationId} on policy engine {policyEngineId}.
Show the result of policy generation {policyGenerationId} for {policyEngineId}.

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-bedrock:amazon-bedrock-policy-generations-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-bedrock-policy-generations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Policy Generations API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 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://bedrock-agentcore-control.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /policy-engines/{policyEngineId}/policy-generations:
    post:
      operationId: StartPolicyGeneration
      summary: Start Policy Generation
      description: Initiates the AI-powered generation of Dogwood policies from natural language descriptions within the AgentCore
        Policy system. This feature enables both technical and non-technical users to create policies by describing their
        authorization requirements in plain English, which is then automatically translated into formal Dogwood policy statements.
        The generation process analyzes the natural language input along with the Gateway's tool context to produce validated
        policy options. Generated policy assets are automatically deleted after 7 days, so you should review and create policies
        from the generated assets within this timeframe. Once created, policies are permanent and not subject to this expiration.
        Generated policies should be reviewed and tested in log-only mode before deploying to production. Use this when you
        want to describe policy intent naturally rather than learning Dogwood syntax, though generated policies may require
        refinement for complex scenarios.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StartPolicyGenerationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: policyEngineId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the policy engine that provides the context for policy generation. This engine's schema
          and tool context are used to ensure generated policies are valid and applicable.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                resource:
                  $ref: '#/components/schemas/Resource'
                content:
                  $ref: '#/components/schemas/BedrockAgentcoreControlContent'
                name:
                  type: string
                  description: A customer-assigned name for the policy generation request. This helps track and identify generation
                    operations, especially when running multiple generations simultaneously.
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure the idempotency of the request. The Amazon Web
                    Services SDK automatically generates this token, so you don't need to provide it in most cases. If you
                    retry a request with the same client token, the service returns the same response without starting a duplicate
                    generation.
              required:
              - resource
              - content
              - name
      tags:
      - Policy Generations
    get:
      operationId: ListPolicyGenerations
      summary: List Policy Generations
      description: Retrieves a list of policy generation requests within the AgentCore Policy system. This operation supports
        pagination and filtering to help track and manage AI-powered policy generation operations.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPolicyGenerationsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: nextToken
        in: query
        schema:
          type: string
        description: A pagination token for retrieving additional policy generations when results are paginated.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of policy generations to return in a single response.
      - name: policyEngineId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the policy engine whose policy generations to retrieve.
      tags:
      - Policy Generations
  /policy-engines/{policyEngineId}/policy-generations/{policyGenerationId}:
    get:
      operationId: GetPolicyGeneration
      summary: Get Policy Generation
      description: Retrieves information about a policy generation request within the AgentCore Policy system. Policy generation
        converts natural language descriptions into Dogwood policy statements using AI-powered translation, enabling non-technical
        users to create policies.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPolicyGenerationResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: policyGenerationId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the policy generation request to be retrieved. This must be a valid generation
          ID from a previous StartPolicyGeneration call.
      - name: policyEngineId
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the policy engine associated with the policy generation request. This provides the
          context for the generation operation and schema validation.
      tags:
      - Policy Generations
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: bedrock-agentcore
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
    BedrockAgentcoreControlContent:
      type: object
      properties:
        rawText:
          type: string
          description: The raw text content containing natural language descriptions of desired policy behavior. This text
            is processed by AI to generate corresponding Dogwood policy statements that match the described intent.
      description: Exactly one member is set.
    BedrockAgentcoreControlValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CannotParse
          - FieldValidationFailed
          - IdempotentParameterMismatchException
          - EventInOtherSession
          - ResourceConflict
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
      required:
      - message
      - reason
    ConflictException:
      type: object
      properties:
        message:
          type: string
    GetPolicyGenerationResponse:
      type: object
      properties:
        policyEngineId:
          type: string
          description: The identifier of the policy engine associated with this policy generation. This confirms the policy
            engine context for the generation operation.
        policyGenerationId:
          type: string
          description: The unique identifier of the policy generation request. This matches the generation ID provided in
            the request and serves as the tracking identifier.
        name:
          type: string
          description: The customer-assigned name for the policy generation request. This helps identify and track generation
            operations across multiple requests.
        policyGenerationArn:
          type: string
          description: The Amazon Resource Name (ARN) of the policy generation. This globally unique identifier can be used
            for tracking, auditing, and cross-service references.
        resource:
          $ref: '#/components/schemas/Resource'
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the policy generation request was created. This is used for tracking and auditing
            generation operations and their lifecycle.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the policy generation was last updated. This tracks the progress of the generation
            process and any status changes.
        status:
          type: string
          enum:
          - GENERATING
          - GENERATED
          - GENERATE_FAILED
          - DELETE_FAILED
          description: The current status of the policy generation. This indicates whether the generation is in progress,
            completed successfully, or failed during processing.
        findings:
          type: string
          description: The findings and results from the policy generation process. This includes any issues, recommendations,
            validation results, or insights from the generated policies.
        statusReasons:
          type: array
          items:
            type: string
          description: Additional information about the generation status. This provides details about any failures, warnings,
            or the current state of the generation process.
      required:
      - policyEngineId
      - policyGenerationId
      - name
      - policyGenerationArn
      - resource
      - createdAt
      - updatedAt
      - status
      - statusReasons
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    ListPolicyGenerationsResponse:
      type: object
      properties:
        policyGenerations:
          type: array
          items:
            $ref: '#/components/schemas/PolicyGeneration'
          description: An array of policy generation objects that match the specified criteria.
        nextToken:
          type: string
          description: A pagination token for retrieving additional policy generations if more results are available.
      required:
      - policyGenerations
    PolicyGeneration:
      type: object
      properties:
        policyEngineId:
          type: string
          description: The identifier of the policy engine associated with this generation request.
        policyGenerationId:
          type: string
          description: The unique identifier for this policy generation request.
        name:
          type: string
          description: The customer-assigned name for this policy generation request.
        policyGenerationArn:
          type: string
          description: The ARN of this policy generation request.
        resource:
          $ref: '#/components/schemas/Resource'
        createdAt:
          type: string
          format: date-time
          description: The timestamp when this policy generation request was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when this policy generation was last updated.
        status:
          type: string
          enum:
          - GENERATING
          - GENERATED
          - GENERATE_FAILED
          - DELETE_FAILED
          description: The current status of this policy generation request.
        findings:
          type: string
          description: Findings and insights from this policy generation process.
        statusReasons:
          type: array
          items:
            type: string
          description: Additional information about the generation status.
      required:
      - policyEngineId
      - policyGenerationId
      - name
      - policyGenerationArn
      - resource
      - createdAt
      - updatedAt
      - status
      - statusReasons
    Resource:
      type: object
      properties:
        arn:
          type: string
          description: The Amazon Resource Name (ARN) of the resource. This globally unique identifier specifies the exact
            resource that policies will be evaluated against for access control decisions.
      description: Exactly one member is set.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    StartPolicyGenerationResponse:
      type: object
      properties:
        policyEngineId:
          type: string
          description: The identifier of the policy engine associated with the started policy generation.
        policyGenerationId:
          type: string
          description: The unique identifier assigned to the policy generation request for tracking progress.
        name:
          type: string
          description: The customer-assigned name for the policy generation request.
        policyGenerationArn:
          type: string
          description: The ARN of the created policy generation request.
        resource:
          $ref: '#/components/schemas/Resource'
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the policy generation request was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the policy generation was last updated.
        status:
          type: string
          enum:
          - GENERATING
          - GENERATED
          - GENERATE_FAILED
          - DELETE_FAILED
          description: The initial status of the policy generation request.
        findings:
          type: string
          description: Initial findings from the policy generation process.
        statusReasons:
          type: array
          items:
            type: string
          description: Additional information about the generation status.
      required:
      - policyEngineId
      - policyGenerationId
      - name
      - policyGenerationArn
      - resource
      - createdAt
      - updatedAt
      - status
      - statusReasons
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field.
        message:
          type: string
          description: A message describing why this field failed validation.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/bedrock-agentcore-control/service/2023-06-05/bedrock-agentcore-control-2023-06-05.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)