Skip to content

ApprovalPattern

Source code in docs_src/capo_devops_agent/types/approval_pattern.py
class ApprovalPattern(TypedDict, closed=True):
    tool: "capo_devops_agent.types.tool_identifier.ToolIdentifier"
    """<p>Identifier of the tool the pattern applies to (e.g. `use_aws` for AWS actions, or a third-party tool name).</p>"""
    argument_pins: "capo_devops_agent.types.approval_argument_pins.ApprovalArgumentPins"
    """<p>Argument constraints that narrow which tool invocations the pattern matches. For AWS tools, the map must include `operation` (the IAM action, e.g. `ec2:AuthorizeSecurityGroupIngress`) and `resource_arn` (the resource ARN or ARN glob); additional narrowing arguments go in further pin keys. The same `{tool, argumentPins}` shape is used uniformly for AWS and third-party tools, with tool-specific keys for third-party tools. Requests whose argument pins are collectively too large are rejected with a ValidationException.</p>"""

argument_pins instance-attribute

argument_pins: ApprovalArgumentPins

Argument constraints that narrow which tool invocations the pattern matches. For AWS tools, the map must include `operation` (the IAM action, e.g. `ec2:AuthorizeSecurityGroupIngress`) and `resource_arn` (the resource ARN or ARN glob); additional narrowing arguments go in further pin keys. The same `{tool, argumentPins}` shape is used uniformly for AWS and third-party tools, with tool-specific keys for third-party tools. Requests whose argument pins are collectively too large are rejected with a ValidationException.

tool instance-attribute

Identifier of the tool the pattern applies to (e.g. `use_aws` for AWS actions, or a third-party tool name).