BedrockAgentCoreControlClient.create_gateway_rule
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Creates a rule for a gateway. Rules define conditions and actions that control how requests are routed and processed through the gateway, including principal-based access control and path-based routing.
Install and imports
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
Action,
Condition,
CreateGatewayRuleOutput,
)
Signature
async def create_gateway_rule(
*,
gateway_identifier: str,
priority: int,
actions: Sequence[Action],
client_token: str | None = None,
conditions: Sequence[Condition] | None = None,
description: str | None = None,
) -> CreateGatewayRuleOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
gateway_identifier |
Yes | The identifier of the gateway to create a rule for. |
priority |
Yes | The priority of the rule. Rules are evaluated in order of priority, with lower numbers evaluated first. Must be between 1 and 1,000,000. |
actions |
Yes | The actions to take when the rule conditions are met. Actions can route to a specific target or apply a configuration bundle override. |
client_token |
No | A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency . |
conditions |
No | The conditions that must be met for the rule to apply. Conditions can match on principals (IAM ARNs) or request paths. |
description |
No | The description of the gateway rule. |
Output
CreateGatewayRuleOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
rule_id |
str |
Always present | — |
gateway_arn |
str |
Always present | — |
priority |
int |
Always present | — |
conditions |
list[ConditionOutput] | None |
Always present | ConditionOutput |
actions |
list[ActionOutput] |
Always present | ActionOutput |
description |
str | None |
Always present | — |
created_at |
str |
Always present | — |
status |
GatewayRuleStatusOutput |
Always present | GatewayRuleStatusOutput |
system |
SystemManagedBlockOutput | None |
Always present | SystemManagedBlockOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Action, Condition, CreateGatewayRuleOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_bedrock_agentcore_control.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.