create_gateway_rate_limit
¶
create_gateway_rate_limit(
gateway_identifier: GatewayIdentifier,
dimension_keys: DimensionKeys,
entries: LimitEntries,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
client_token: Optional[ClientToken] = None,
rate_limit_id: Optional[GatewayRateLimitId] = None,
description: Optional[GatewayRateLimitDescription] = None,
) -> CreateGatewayRateLimitResponse
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.
Parameters:
-
gateway_identifier(GatewayIdentifier) –The unique identifier of the gateway to create the rate limit for.
-
client_token(Optional[ClientToken], default:None) –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(Optional[GatewayRateLimitId], default:None) –An optional customer-defined identifier for the rate limit. If not provided, the system generates one.
-
description(Optional[GatewayRateLimitDescription], default:None) –An optional human-readable description for this rate limit. If not provided, the rate limit is created without a description.
-
dimension_keys(DimensionKeys) –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(LimitEntries) –The rule entries that map dimension values to rate configurations.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 | |