Skip to main content

gateway_rate_limits

Creates, updates, deletes, gets or lists a gateway_rate_limits resource.

Overview

Namegateway_rate_limits
TypeResource
Idaws.bedrock_agentcore_control.gateway_rate_limits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the rate limit was created.
descriptionstringAn optional human-readable description for a gateway limit.
dimension_keysarrayAn ordered list of dimension key names defining the scope of a limit.
entriesarrayA list of rule entries within a limit.
gateway_identifierstringThe unique identifier of the gateway. (pattern: <code>([0-9a-z][-]?){1,100}-[0-9a-z]{10}</code>)
rate_limit_idstringThe limit identifier. Optional on create (the system generates it if not provided by the customer). Always present in responses. (pattern: <code>[a-zA-Z0-9][a-zA-Z0-9-_.]{0,62}[a-zA-Z0-9]</code>)
statusstringThe current status of the rate limit. (CREATING, ACTIVE, UPDATING, DELETING)
updated_atstring (date-time)The timestamp when the rate limit was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_gateway_rate_limitselectgateway_identifier, rate_limit_id, regionRetrieves information about a gateway rate limit.
list_gateway_rate_limitsselectgateway_identifier, regionmaxResults, nextTokenLists all rate limits for a gateway. Results are paginated. Use the nextToken parameter to retrieve additional results.
create_gateway_rate_limitinsertgateway_identifier, region, dimensionKeys, entriesCreates 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.
update_gateway_rate_limitupdategateway_identifier, rate_limit_id, region, entriesUpdates the entries of a gateway rate limit. The dimension keys are immutable after creation.
delete_gateway_rate_limitdeletegateway_identifier, rate_limit_id, regionDeletes a gateway rate limit.
batch_put_gateway_rate_limitsexecgateway_identifier, region, rateLimitsAtomically creates or updates multiple rate limits for a gateway. The operation updates existing limits with matching keys and creates new limits for new keys. If the operation fails, the service applies no changes. Retry the request after resolving the issue.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
gateway_identifierstringThe unique identifier of the gateway.
rate_limit_idstringThe unique identifier of the rate limit to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
nextTokenstringThe token to use to retrieve the next page of results. Use the value returned in a previous ListGatewayRateLimits response.

SELECT examples

Retrieves information about a gateway rate limit.

SELECT
created_at,
description,
dimension_keys,
entries,
gateway_identifier,
rate_limit_id,
status,
updated_at
FROM aws.bedrock_agentcore_control.gateway_rate_limits
WHERE gateway_identifier = '{{ gateway_identifier }}' -- required
AND rate_limit_id = '{{ rate_limit_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.bedrock_agentcore_control.gateway_rate_limits (
clientToken,
rateLimitId,
description,
dimensionKeys,
entries,
gateway_identifier,
region
)
SELECT
'{{ clientToken }}',
'{{ rateLimitId }}',
'{{ description }}',
'{{ dimensionKeys }}' /* required */,
'{{ entries }}' /* required */,
'{{ gateway_identifier }}',
'{{ region }}'
RETURNING
created_at,
description,
dimension_keys,
entries,
gateway_identifier,
rate_limit_id,
status,
updated_at
;

UPDATE examples

Updates the entries of a gateway rate limit. The dimension keys are immutable after creation.

UPDATE aws.bedrock_agentcore_control.gateway_rate_limits
SET
description = '{{ description }}',
entries = '{{ entries }}'
WHERE
gateway_identifier = '{{ gateway_identifier }}' --required
AND rate_limit_id = '{{ rate_limit_id }}' --required
AND region = '{{ region }}' --required
AND entries = '{{ entries }}' --required
RETURNING
created_at,
description,
dimension_keys,
entries,
gateway_identifier,
rate_limit_id,
status,
updated_at;

DELETE examples

Deletes a gateway rate limit.

DELETE FROM aws.bedrock_agentcore_control.gateway_rate_limits
WHERE gateway_identifier = '{{ gateway_identifier }}' --required
AND rate_limit_id = '{{ rate_limit_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Atomically creates or updates multiple rate limits for a gateway. The operation updates existing limits with matching keys and creates new limits for new keys. If the operation fails, the service applies no changes. Retry the request after resolving the issue.

EXEC aws.bedrock_agentcore_control.gateway_rate_limits.batch_put_gateway_rate_limits
@gateway_identifier='{{ gateway_identifier }}' --required,
@region='{{ region }}' --required
@@json=
'{
"clientToken": "{{ clientToken }}",
"rateLimits": "{{ rateLimits }}"
}'
;