APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy

APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy. 2 operations. Lead operation: #Action=DetachRolePolicy. Self-contained Naftiko capability covering one Engineering Platform business surface.

Run with Naftiko Engineering Platform#Action=DetachRolePolicy

What You Can Do

GET
Getdetachrolepolicy

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see /v1/action-detachrolepolicy

POST
Postdetachrolepolicy

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see /v1/action-detachrolepolicy

MCP Tools

p-removes-specified-managed-policy-specified

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see read-only idempotent

p-removes-specified-managed-policy-specified-2

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use DeleteRolePolicy. For information about policies, see

Capability Spec

naftiko: 1.0.0-alpha2
info:
  label: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy'
  description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy. 2 operations.
    Lead operation: #Action=DetachRolePolicy. Self-contained Naftiko capability covering one Engineering Platform business
    surface.'
  tags:
  - Engineering Platform
  - '#Action=DetachRolePolicy'
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ENGINEERING_PLATFORM_API_KEY: ENGINEERING_PLATFORM_API_KEY
capability:
  consumes:
  - type: http
    namespace: aws-iam-action-detachrolepolicy
    baseUri: https://iam.amazonaws.com
    description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy business capability.
      Self-contained, no shared references.'
    resources:
    - name: '#Action=DetachRolePolicy'
      path: /#Action=DetachRolePolicy
      operations:
      - name: getdetachrolepolicy
        method: GET
        description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
          embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
          href="https://doc
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: RoleName
          in: query
          type: string
          description: <p>The name (friendly name, not ARN) of the IAM role to detach the policy from.</p> <p>This parameter
            allows (through its <a href="http://wikipedia.org/wiki/reg
          required: true
        - name: PolicyArn
          in: query
          type: string
          description: <p>The Amazon Resource Name (ARN) of the IAM policy you want to detach.</p> <p>For more information
            about ARNs, see <a href="https://docs.aws.amazon.com/general
          required: true
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
      - name: postdetachrolepolicy
        method: POST
        description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
          embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
          href="https://doc
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.ENGINEERING_PLATFORM_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: aws-iam-action-detachrolepolicy-rest
    port: 8080
    description: 'REST adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/action-detachrolepolicy
      name: action-detachrolepolicy
      description: 'REST surface for #Action=DetachRolePolicy.'
      operations:
      - method: GET
        name: getdetachrolepolicy
        description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
          embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
          href="https://doc
        call: aws-iam-action-detachrolepolicy.getdetachrolepolicy
        with:
          RoleName: rest.RoleName
          PolicyArn: rest.PolicyArn
          Action: rest.Action
          Version: rest.Version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postdetachrolepolicy
        description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
          embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
          href="https://doc
        call: aws-iam-action-detachrolepolicy.postdetachrolepolicy
        with:
          Action: rest.Action
          Version: rest.Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aws-iam-action-detachrolepolicy-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=DetachRolePolicy.
      One tool per consumed operation, routed inline through this capability''s consumes block.'
    tools:
    - name: p-removes-specified-managed-policy-specified
      description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
        embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
        href="https://doc
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aws-iam-action-detachrolepolicy.getdetachrolepolicy
      with:
        RoleName: tools.RoleName
        PolicyArn: tools.PolicyArn
        Action: tools.Action
        Version: tools.Version
      outputParameters:
      - type: object
        mapping: $.
    - name: p-removes-specified-managed-policy-specified-2
      description: <p>Removes the specified managed policy from the specified role.</p> <p>A role can also have inline policies
        embedded with it. To delete an inline policy, use <a>DeleteRolePolicy</a>. For information about policies, see <a
        href="https://doc
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aws-iam-action-detachrolepolicy.postdetachrolepolicy
      with:
        Action: tools.Action
        Version: tools.Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.