BedrockAgentCoreControlClient.update_gateway
rboto-bedrock-agentcore-control==0.4.0 · Service index · Types
Model summary (excerpt): Updates an existing gateway. Replaces the entire gateway configuration. Any optional field that you omit, including fields in protocolConfiguration , is reset. For information about retrieving the current configuration, see GetGateway .
Install and imports
from rboto import BedrockAgentCoreControlClient
from collections.abc import Sequence
from rboto_bedrock_agentcore_control.types import (
AuthorizerConfiguration,
AuthorizerType,
CustomTransformConfiguration,
DomainOverride,
ExceptionLevel,
GatewayInterceptorConfiguration,
GatewayPolicyEngineConfiguration,
GatewayProtocolConfiguration,
GatewayProtocolType,
UpdateGatewayOutput,
WafConfiguration,
)
Signature
async def update_gateway(
*,
gateway_identifier: str,
name: str,
role_arn: str,
authorizer_type: AuthorizerType,
description: str | None = None,
protocol_type: GatewayProtocolType | None = None,
protocol_configuration: GatewayProtocolConfiguration | None = None,
authorizer_configuration: AuthorizerConfiguration | None = None,
kms_key_arn: str | None = None,
custom_transform_configuration: CustomTransformConfiguration | None = None,
interceptor_configurations: Sequence[GatewayInterceptorConfiguration] | None = None,
policy_engine_configuration: GatewayPolicyEngineConfiguration | None = None,
exception_level: ExceptionLevel | None = None,
waf_configuration: WafConfiguration | None = None,
domain_override: DomainOverride | None = None,
) -> UpdateGatewayOutput: ...
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 update. |
name |
Yes | The name of the gateway. This name must be the same as the one when the gateway was created. |
role_arn |
Yes | The updated IAM role ARN that provides permissions for the gateway. |
authorizer_type |
Yes | The updated authorizer type for the gateway. |
description |
No | The updated description for the gateway. |
protocol_type |
No | The updated protocol type for the gateway. |
protocol_configuration |
No | |
authorizer_configuration |
No | The updated authorizer configuration for the gateway. |
kms_key_arn |
No | The updated ARN of the KMS key used to encrypt the gateway. |
custom_transform_configuration |
No | The updated custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses. |
interceptor_configurations |
No | The updated interceptor configurations for the gateway. |
policy_engine_configuration |
No | The updated policy engine configuration for the gateway. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with a gateway, the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies. |
exception_level |
No | The level of detail in error messages returned when invoking the gateway. If the value is DEBUG , granular exception messages are returned to help a user debug the gateway. If the value is omitted, a generic error message is returned to the end user. |
waf_configuration |
No | The updated Amazon Web Services WAF configuration for the gateway. |
domain_override |
No | The updated public domain names that the gateway advertises in its OAuth discovery URLs instead of the inbound Host header. Specify this when clients reach the gateway through your own proxy or custom domain. |
Output
UpdateGatewayOutput.
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 |
|---|---|---|---|
gateway_arn |
str |
Always present | — |
gateway_id |
str |
Always present | — |
gateway_url |
str | None |
Always present | — |
created_at |
str |
Always present | — |
updated_at |
str |
Always present | — |
status |
GatewayStatusOutput |
Always present | GatewayStatusOutput |
status_reasons |
list[str] | None |
Always present | — |
name |
str |
Always present | — |
description |
str | None |
Always present | — |
role_arn |
str | None |
Always present | — |
protocol_type |
GatewayProtocolTypeOutput |
Always present | GatewayProtocolTypeOutput |
protocol_configuration |
GatewayProtocolConfigurationOutput | None |
Always present | GatewayProtocolConfigurationOutput |
authorizer_type |
AuthorizerTypeOutput |
Always present | AuthorizerTypeOutput |
authorizer_configuration |
AuthorizerConfigurationOutput | None |
Always present | AuthorizerConfigurationOutput |
kms_key_arn |
str | None |
Always present | — |
custom_transform_configuration |
CustomTransformConfigurationOutput | None |
Always present | CustomTransformConfigurationOutput |
interceptor_configurations |
list[GatewayInterceptorConfigurationOutput] | None |
Always present | GatewayInterceptorConfigurationOutput |
policy_engine_configuration |
GatewayPolicyEngineConfigurationOutput | None |
Always present | GatewayPolicyEngineConfigurationOutput |
workload_identity_details |
WorkloadIdentityDetailsOutput | None |
Always present | WorkloadIdentityDetailsOutput |
exception_level |
ExceptionLevelOutput | None |
Always present | ExceptionLevelOutput |
web_acl_arn |
str | None |
Always present | — |
waf_configuration |
WafConfigurationOutput | None |
Always present | WafConfigurationOutput |
domain_override |
DomainOverrideOutput | None |
Always present | DomainOverrideOutput |
| 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
AuthorizerConfiguration, AuthorizerType, CustomTransformConfiguration, DomainOverride, ExceptionLevel, GatewayInterceptorConfiguration, GatewayPolicyEngineConfiguration, GatewayProtocolConfiguration, GatewayProtocolType, UpdateGatewayOutput, WafConfiguration
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.