BedrockAgentCoreControlPlaneFrontingLayer / Client / get_gateway
get_gateway¶
- BedrockAgentCoreControlPlaneFrontingLayer.Client.get_gateway(**kwargs)¶
Retrieves information about a specific Gateway.
See also: AWS API Documentation
Request Syntax
response = client.get_gateway( gatewayIdentifier='string' )
- Parameters:
gatewayIdentifier (string) –
[REQUIRED]
The identifier of the gateway to retrieve. This can be either the gateway ID or the gateway ARN.
- Return type:
dict
- Returns:
Response Syntax
{ 'gatewayArn': 'string', 'gatewayId': 'string', 'gatewayUrl': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED', 'statusReasons': [ 'string', ], 'name': 'string', 'description': 'string', 'roleArn': 'string', 'protocolType': 'MCP', 'protocolConfiguration': { 'mcp': { 'supportedVersions': [ 'string', ], 'instructions': 'string', 'searchType': 'SEMANTIC' } }, 'authorizerType': 'CUSTOM_JWT', 'authorizerConfiguration': { 'customJWTAuthorizer': { 'discoveryUrl': 'string', 'allowedAudience': [ 'string', ], 'allowedClients': [ 'string', ] } }, 'kmsKeyArn': 'string', 'workloadIdentityDetails': { 'workloadIdentityArn': 'string' }, 'exceptionLevel': 'DEBUG' }
Response Structure
(dict) –
gatewayArn (string) –
The Amazon Resource Name (ARN) of the Gateway.
gatewayId (string) –
The unique identifier of the Gateway.
gatewayUrl (string) –
An endpoint for invoking Gateway.
createdAt (datetime) –
The timestamp when the Gateway was created.
updatedAt (datetime) –
The timestamp when the Gateway was last updated.
status (string) –
The current status of the Gateway.
statusReasons (list) –
The reasons for the current status of the Gateway.
(string) –
name (string) –
The name of the Gateway.
description (string) –
The description of the Gateway.
roleArn (string) –
The IAM role ARN that provides permissions for the Gateway.
protocolType (string) –
Protocol applied to a Gateway.
protocolConfiguration (dict) –
The configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
mcp
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
mcp (dict) –
The configuration for the Model Context Protocol (MCP). This protocol enables communication between Amazon Bedrock Agent and external tools.
supportedVersions (list) –
The supported versions of the Model Context Protocol. This field specifies which versions of the protocol the gateway can use.
(string) –
instructions (string) –
The instructions for using the Model Context Protocol gateway. These instructions provide guidance on how to interact with the gateway.
searchType (string) –
The search type for the Model Context Protocol gateway. This field specifies how the gateway handles search operations.
authorizerType (string) –
Authorizer type for the gateway.
authorizerConfiguration (dict) –
The authorizer configuration for the Gateway.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
customJWTAuthorizer
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
customJWTAuthorizer (dict) –
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) –
This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.
allowedAudience (list) –
Represents individual audience values that are validated in the incoming JWT token validation process.
(string) –
allowedClients (list) –
Represents individual client IDs that are validated in the incoming JWT token validation process.
(string) –
kmsKeyArn (string) –
The ARN of the KMS key used to encrypt the Gateway.
workloadIdentityDetails (dict) –
The workload identity details for the Gateway.
workloadIdentityArn (string) –
The ARN associated with the workload identity.
exceptionLevel (string) –
The verbosity of exception messages. Use DEBUG mode to see granular exception messages from a Gateway. If this parameter is not set, exception messages are by default sanitized for presentation to end users.
Exceptions
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ValidationException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.AccessDeniedException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ResourceNotFoundException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ThrottlingException
BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.InternalServerException