Amazon Firewall Manager · Capability

AWS Firewall Manager API — Policies

AWS Firewall Manager API — Policies. 4 operations. Lead operation: List Policies. Self-contained Naftiko capability covering one Amazon Firewall Manager business surface.

Run with Naftiko Amazon Firewall ManagerPolicies

What You Can Do

GET
Listpolicies — List Policies
/v1/fms/2018-01-01/policies
POST
Putpolicy — Put Policy
/v1/fms/2018-01-01/policies
GET
Getpolicy — Get Policy
/v1/fms/2018-01-01/policies/{policyid}
DELETE
Deletepolicy — Delete Policy
/v1/fms/2018-01-01/policies/{policyid}

MCP Tools

list-policies

List Policies

read-only idempotent
put-policy

Put Policy

get-policy

Get Policy

read-only idempotent
delete-policy

Delete Policy

idempotent

Capability Spec

amazon-firewall-manager-policies.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AWS Firewall Manager API — Policies
  description: 'AWS Firewall Manager API — Policies. 4 operations. Lead operation: List Policies. Self-contained Naftiko capability
    covering one Amazon Firewall Manager business surface.'
  tags:
  - Amazon Firewall Manager
  - Policies
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_FIREWALL_MANAGER_API_KEY: AMAZON_FIREWALL_MANAGER_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-firewall-manager-policies
    baseUri: https://fms.{region}.amazonaws.com
    description: AWS Firewall Manager API — Policies business capability. Self-contained, no shared references.
    resources:
    - name: fms-2018-01-01-policies
      path: /fms/2018-01-01/policies
      operations:
      - name: listpolicies
        method: GET
        description: List Policies
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: maxResults
          in: query
          type: integer
          description: Maximum number of policies to return.
        - name: nextToken
          in: query
          type: string
          description: Pagination token.
      - name: putpolicy
        method: POST
        description: Put Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: fms-2018-01-01-policies-policyId
      path: /fms/2018-01-01/policies/{policyId}
      operations:
      - name: getpolicy
        method: GET
        description: Get Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: string
          description: The ID of the policy.
          required: true
      - name: deletepolicy
        method: DELETE
        description: Delete Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: policyId
          in: path
          type: string
          description: The ID of the policy.
          required: true
        - name: deleteAllPolicyResources
          in: query
          type: boolean
          description: If True, the request deletes all AWS Firewall Manager-managed internet gateway associations.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_FIREWALL_MANAGER_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-firewall-manager-policies-rest
    port: 8080
    description: REST adapter for AWS Firewall Manager API — Policies. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/fms/2018-01-01/policies
      name: fms-2018-01-01-policies
      description: REST surface for fms-2018-01-01-policies.
      operations:
      - method: GET
        name: listpolicies
        description: List Policies
        call: amazon-firewall-manager-policies.listpolicies
        with:
          maxResults: rest.maxResults
          nextToken: rest.nextToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: putpolicy
        description: Put Policy
        call: amazon-firewall-manager-policies.putpolicy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/fms/2018-01-01/policies/{policyid}
      name: fms-2018-01-01-policies-policyid
      description: REST surface for fms-2018-01-01-policies-policyId.
      operations:
      - method: GET
        name: getpolicy
        description: Get Policy
        call: amazon-firewall-manager-policies.getpolicy
        with:
          policyId: rest.policyId
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletepolicy
        description: Delete Policy
        call: amazon-firewall-manager-policies.deletepolicy
        with:
          policyId: rest.policyId
          deleteAllPolicyResources: rest.deleteAllPolicyResources
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-firewall-manager-policies-mcp
    port: 9090
    transport: http
    description: MCP adapter for AWS Firewall Manager API — Policies. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-policies
      description: List Policies
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-firewall-manager-policies.listpolicies
      with:
        maxResults: tools.maxResults
        nextToken: tools.nextToken
      outputParameters:
      - type: object
        mapping: $.
    - name: put-policy
      description: Put Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: amazon-firewall-manager-policies.putpolicy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-policy
      description: Get Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-firewall-manager-policies.getpolicy
      with:
        policyId: tools.policyId
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-policy
      description: Delete Policy
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: amazon-firewall-manager-policies.deletepolicy
      with:
        policyId: tools.policyId
        deleteAllPolicyResources: tools.deleteAllPolicyResources
      outputParameters:
      - type: object
        mapping: $.