Skip to content

BedrockAgentCoreControlClient.create_gateway

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

Model summary (excerpt): Creates a gateway for Amazon Bedrock Agent. A gateway serves as an integration point between your agent and external services. If you specify CUSTOM_JWT as the authorizerType , you must provide an authorizerConfiguration .

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 (
    AuthorizerConfiguration,
    AuthorizerType,
    CreateGatewayOutput,
    DomainOverride,
    ExceptionLevel,
    GatewayInterceptorConfiguration,
    GatewayPolicyEngineConfiguration,
    GatewayProtocolConfiguration,
    GatewayProtocolType,
)

Signature

async def create_gateway(
    *,
    name: str,
    role_arn: str,
    authorizer_type: AuthorizerType,
    description: str | None = None,
    client_token: str | None = None,
    protocol_type: GatewayProtocolType | None = None,
    protocol_configuration: GatewayProtocolConfiguration | None = None,
    authorizer_configuration: AuthorizerConfiguration | None = None,
    kms_key_arn: str | None = None,
    interceptor_configurations: Sequence[GatewayInterceptorConfiguration] | None = None,
    policy_engine_configuration: GatewayPolicyEngineConfiguration | None = None,
    exception_level: ExceptionLevel | None = None,
    tags: dict[str, str] | None = None,
    domain_override: DomainOverride | None = None,
) -> CreateGatewayOutput: ...

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)
name Yes The name of the gateway. The name must be unique within your account.
role_arn Yes The Amazon Resource Name (ARN) of the IAM role that provides permissions for the gateway to access Amazon Web Services services.
authorizer_type Yes The type of authorizer to use for the gateway. CUSTOM_JWT - Authorize with a bearer token. AWS_IAM - Authorize with your Amazon Web Services IAM credentials. NONE - No authorization
description No The description of the gateway.
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 .
protocol_type No The protocol type for the gateway.
protocol_configuration No The configuration settings for the protocol specified in the protocolType parameter.
authorizer_configuration No The authorizer configuration for the gateway. Required if authorizerType is CUSTOM_JWT .
kms_key_arn No The Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.
interceptor_configurations No A list of configuration settings for a gateway interceptor. Gateway interceptors allow custom code to be invoked during gateway invocations.
policy_engine_configuration No The 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.
tags No A map of key-value pairs to associate with the gateway as metadata tags.
domain_override No The 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

CreateGatewayOutput.

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.

AuthorizerConfiguration, AuthorizerType, CreateGatewayOutput, DomainOverride, ExceptionLevel, GatewayInterceptorConfiguration, GatewayPolicyEngineConfiguration, GatewayProtocolConfiguration, GatewayProtocolType

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, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model