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

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

Run with Naftiko Engineering Platform#Action=PutRolePolicy

What You Can Do

GET
Getputrolepolicy

Adds or updates an inline policy document that is embedded in the specified IAM role.

When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy

/v1/action-putrolepolicy
POST
Postputrolepolicy

Adds or updates an inline policy document that is embedded in the specified IAM role.

When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy

/v1/action-putrolepolicy

MCP Tools

p-adds-updates-inline-policy-document

Adds or updates an inline policy document that is embedded in the specified IAM role.

When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy

read-only idempotent
p-adds-updates-inline-policy-document-2

Adds or updates an inline policy document that is embedded in the specified IAM role.

When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy

Capability Spec

aws-iam-action-putrolepolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=PutRolePolicy'
  description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=PutRolePolicy. 2 operations. Lead
    operation: #Action=PutRolePolicy. Self-contained Naftiko capability covering one Engineering Platform business surface.'
  tags:
  - Engineering Platform
  - '#Action=PutRolePolicy'
  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-putrolepolicy
    baseUri: https://iam.amazonaws.com
    description: 'APIs.io Engineering Platform AWS Identity and Access Management — #Action=PutRolePolicy business capability.
      Self-contained, no shared references.'
    resources:
    - name: '#Action=PutRolePolicy'
      path: /#Action=PutRolePolicy
      operations:
      - name: getputrolepolicy
        method: GET
        description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When
          you embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy.
          The role''s trust policy '
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: RoleName
          in: query
          type: string
          description: <p>The name of the role to associate the policy with.</p> <p>This parameter allows (through its <a
            href="http://wikipedia.org/wiki/regex">regex pattern</a>) a s
          required: true
        - name: PolicyName
          in: query
          type: string
          description: <p>The name of the policy document.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
            pattern</a>) a string of character
          required: true
        - name: PolicyDocument
          in: query
          type: string
          description: <p>The policy document.</p> <p>You must provide policies in JSON format in IAM. However, for CloudFormation
            templates formatted in YAML, you can provide the pol
          required: true
        - name: Action
          in: query
          type: string
          required: true
        - name: Version
          in: query
          type: string
          required: true
      - name: postputrolepolicy
        method: POST
        description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When
          you embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy.
          The role''s trust policy '
        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-putrolepolicy-rest
    port: 8080
    description: 'REST adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=PutRolePolicy.
      One Spectral-compliant resource per consumed operation, prefixed with /v1.'
    resources:
    - path: /v1/action-putrolepolicy
      name: action-putrolepolicy
      description: 'REST surface for #Action=PutRolePolicy.'
      operations:
      - method: GET
        name: getputrolepolicy
        description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When
          you embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy.
          The role''s trust policy '
        call: aws-iam-action-putrolepolicy.getputrolepolicy
        with:
          RoleName: rest.RoleName
          PolicyName: rest.PolicyName
          PolicyDocument: rest.PolicyDocument
          Action: rest.Action
          Version: rest.Version
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postputrolepolicy
        description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When
          you embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy.
          The role''s trust policy '
        call: aws-iam-action-putrolepolicy.postputrolepolicy
        with:
          Action: rest.Action
          Version: rest.Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: aws-iam-action-putrolepolicy-mcp
    port: 9090
    transport: http
    description: 'MCP adapter for APIs.io Engineering Platform AWS Identity and Access Management — #Action=PutRolePolicy.
      One tool per consumed operation, routed inline through this capability''s consumes block.'
    tools:
    - name: p-adds-updates-inline-policy-document
      description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When you
        embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy. The
        role''s trust policy '
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: aws-iam-action-putrolepolicy.getputrolepolicy
      with:
        RoleName: tools.RoleName
        PolicyName: tools.PolicyName
        PolicyDocument: tools.PolicyDocument
        Action: tools.Action
        Version: tools.Version
      outputParameters:
      - type: object
        mapping: $.
    - name: p-adds-updates-inline-policy-document-2
      description: '<p>Adds or updates an inline policy document that is embedded in the specified IAM role.</p> <p>When you
        embed an inline policy in a role, the inline policy is used as part of the role''s access (permissions) policy. The
        role''s trust policy '
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: aws-iam-action-putrolepolicy.postputrolepolicy
      with:
        Action: tools.Action
        Version: tools.Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.