Skip to content

BedrockAgentCoreControlClient.create_gateway_rate_limit

rboto-bedrock-agentcore-control==0.4.0 · Service index · Types

Model summary (excerpt): Creates a rate limit for a gateway. Rate limits define throttling rules for each dimension that control request rates, token consumption rates, and concurrent connections through the gateway.

Install and imports

python -m pip install "rboto[bedrock-agentcore-control]==0.4.0"
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
    CreateGatewayRateLimitOutput,
    LimitEntry,
)

Signature

async def create_gateway_rate_limit(
    *,
    gateway_identifier: str,
    dimension_keys: Sequence[str],
    entries: Sequence[LimitEntry],
    client_token: str | None = None,
    rate_limit_id: str | None = None,
    description: str | None = None,
) -> CreateGatewayRateLimitOutput: ...

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 unique identifier of the gateway to create the rate limit for.
dimension_keys Yes The ordered list of dimension key names that define the scope of this rate limit. Must be unique per gateway—no two rate limits can share the same dimension keys.
entries Yes The rule entries that map dimension values to rate configurations.
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 .
rate_limit_id No An optional customer-defined identifier for the rate limit. If not provided, the system generates one.
description No An optional human-readable description for this rate limit. If not provided, the rate limit is created without a description.

Output

CreateGatewayRateLimitOutput.

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
rate_limit_id str Always present —
gateway_identifier str Always present —
description str | None Always present —
dimension_keys list[str] Always present —
entries list[LimitEntryOutput] Always present LimitEntryOutput
status GatewayRateLimitStatusOutput Always present GatewayRateLimitStatusOutput
created_at str Always present —
updated_at str Always present —

| 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.

CreateGatewayRateLimitOutput, LimitEntry

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.

Service guide · Pinned model