Amazon Elastic Load Balancing v2 API — Rules

Amazon Elastic Load Balancing v2 API — Rules. 2 operations. Lead operation: Amazon Elastic Load Balancing Create a Listener Rule. Self-contained Naftiko capability covering one Amazon Elastic Load Balancing business surface.

Run with Naftiko Amazon Elastic Load BalancingRules

What You Can Do

GET
Createrule — Amazon Elastic Load Balancing Create a Listener Rule
/v1/action-createrule
GET
Describerules — Amazon Elastic Load Balancing Describe Listener Rules
/v1/action-describerules

MCP Tools

amazon-elastic-load-balancing-create

Amazon Elastic Load Balancing Create a Listener Rule

read-only idempotent
amazon-elastic-load-balancing-describe

Amazon Elastic Load Balancing Describe Listener Rules

read-only idempotent

Capability Spec

amazon-elastic-load-balancing-rules.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Amazon Elastic Load Balancing v2 API — Rules
  description: 'Amazon Elastic Load Balancing v2 API — Rules. 2 operations. Lead operation: Amazon Elastic Load Balancing
    Create a Listener Rule. Self-contained Naftiko capability covering one Amazon Elastic Load Balancing business surface.'
  tags:
  - Amazon Elastic Load Balancing
  - Rules
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMAZON_ELASTIC_LOAD_BALANCING_API_KEY: AMAZON_ELASTIC_LOAD_BALANCING_API_KEY
capability:
  consumes:
  - type: http
    namespace: amazon-elastic-load-balancing-rules
    baseUri: https://elasticloadbalancing.{region}.amazonaws.com
    description: Amazon Elastic Load Balancing v2 API — Rules business capability. Self-contained, no shared references.
    resources:
    - name: ?Action=CreateRule
      path: /?Action=CreateRule
      operations:
      - name: createrule
        method: GET
        description: Amazon Elastic Load Balancing Create a Listener Rule
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ListenerArn
          in: query
          type: string
          description: The ARN of the listener
          required: true
        - name: Priority
          in: query
          type: integer
          description: The rule priority. Must be unique within the listener.
          required: true
        - name: Conditions.member.1.Field
          in: query
          type: string
          description: The name of the field (host-header, path-pattern, etc.)
        - name: Conditions.member.1.Values
          in: query
          type: array
          description: The condition values
        - name: Actions.member.1.Type
          in: query
          type: string
          description: The type of action
          required: true
        - name: Actions.member.1.TargetGroupArn
          in: query
          type: string
          description: The ARN of the target group for forward actions
    - name: ?Action=DescribeRules
      path: /?Action=DescribeRules
      operations:
      - name: describerules
        method: GET
        description: Amazon Elastic Load Balancing Describe Listener Rules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ListenerArn
          in: query
          type: string
          description: The ARN of the listener
        - name: RuleArns
          in: query
          type: array
          description: The ARNs of the rules
        - name: Marker
          in: query
          type: string
          description: The marker for the next set of results
        - name: PageSize
          in: query
          type: integer
          description: The maximum number of results to return
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.AMAZON_ELASTIC_LOAD_BALANCING_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: amazon-elastic-load-balancing-rules-rest
    port: 8080
    description: REST adapter for Amazon Elastic Load Balancing v2 API — Rules. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/action-createrule
      name: action-createrule
      description: REST surface for ?Action=CreateRule.
      operations:
      - method: GET
        name: createrule
        description: Amazon Elastic Load Balancing Create a Listener Rule
        call: amazon-elastic-load-balancing-rules.createrule
        with:
          ListenerArn: rest.ListenerArn
          Priority: rest.Priority
          Conditions.member.1.Field: rest.Conditions.member.1.Field
          Conditions.member.1.Values: rest.Conditions.member.1.Values
          Actions.member.1.Type: rest.Actions.member.1.Type
          Actions.member.1.TargetGroupArn: rest.Actions.member.1.TargetGroupArn
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/action-describerules
      name: action-describerules
      description: REST surface for ?Action=DescribeRules.
      operations:
      - method: GET
        name: describerules
        description: Amazon Elastic Load Balancing Describe Listener Rules
        call: amazon-elastic-load-balancing-rules.describerules
        with:
          ListenerArn: rest.ListenerArn
          RuleArns: rest.RuleArns
          Marker: rest.Marker
          PageSize: rest.PageSize
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: amazon-elastic-load-balancing-rules-mcp
    port: 9090
    transport: http
    description: MCP adapter for Amazon Elastic Load Balancing v2 API — Rules. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: amazon-elastic-load-balancing-create
      description: Amazon Elastic Load Balancing Create a Listener Rule
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-elastic-load-balancing-rules.createrule
      with:
        ListenerArn: tools.ListenerArn
        Priority: tools.Priority
        Conditions.member.1.Field: tools.Conditions.member.1.Field
        Conditions.member.1.Values: tools.Conditions.member.1.Values
        Actions.member.1.Type: tools.Actions.member.1.Type
        Actions.member.1.TargetGroupArn: tools.Actions.member.1.TargetGroupArn
      outputParameters:
      - type: object
        mapping: $.
    - name: amazon-elastic-load-balancing-describe
      description: Amazon Elastic Load Balancing Describe Listener Rules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: amazon-elastic-load-balancing-rules.describerules
      with:
        ListenerArn: tools.ListenerArn
        RuleArns: tools.RuleArns
        Marker: tools.Marker
        PageSize: tools.PageSize
      outputParameters:
      - type: object
        mapping: $.