Skip to main content

gateways

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

Overview

Namegateways
TypeResource
Idaws.bedrock_agentcore_control.gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the gateway. (pattern: <code>([0-9a-zA-Z][-]?){1,48}</code>)
authorizer_configurationobjectRepresents inbound authorization configuration options used to authenticate incoming requests.
authorizer_typestringAuthorizer type for the gateway. (CUSTOM_JWT, AWS_IAM, NONE, AUTHENTICATE_ONLY)
created_atstring (date-time)The timestamp when the gateway was created.
custom_transform_configurationobjectThe custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
descriptionstringThe description of the gateway.
exception_levelstringThe 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. (DEBUG)
gateway_arnstringThe Amazon Resource Name (ARN) of the gateway. (pattern: <code>arn:aws(|-cn|-us-gov):bedrock-agentcore:[a-z0-9-]{1,20}:[0-9]{12}:gateway/([0-9a-z][-]?){1,48}-[a-z0-9]{10}</code>)
gateway_idstringThe unique identifier of the gateway. (pattern: <code>([0-9a-z][-]?){1,100}-[0-9a-z]{10}</code>)
gateway_urlstringAn endpoint for invoking gateway.
interceptor_configurationsarrayThe interceptors configured on the gateway.
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS key used to encrypt the gateway. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
policy_engine_configurationobjectThe configuration for a policy engine associated with a 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.
protocol_configurationobjectThe configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
protocol_typestringProtocol applied to a gateway. (MCP)
role_arnstringThe IAM role ARN that provides permissions for the gateway. (pattern: <code>arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+</code>)
statusstringThe current status of the gateway. (CREATING, UPDATING, UPDATE_UNSUCCESSFUL, DELETING, READY, FAILED)
status_reasonsarrayThe reasons for the current status of the gateway.
updated_atstring (date-time)The timestamp when the gateway was last updated.
waf_configurationobjectThe Amazon Web Services WAF configuration for the gateway.
web_acl_arnstringThe Amazon Resource Name (ARN) of the Amazon Web Services WAF web ACL associated with the gateway. (pattern: <code>arn:[a-z0-9-]+:wafv2:[a-z0-9-]+:[0-9]{12}:regional/webacl/.+</code>)
workload_identity_detailsobjectThe information about the workload identity.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_gatewayselectgateway_identifier, regionRetrieves information about a specific Gateway.
list_gatewaysselectregionmaxResults, nextTokenLists all gateways in the account.
create_gatewayinsertregion, name, roleArn, authorizerTypeCreates 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.
update_gatewayupdategateway_identifier, region, name, roleArn, authorizerTypeUpdates an existing gateway.
delete_gatewaydeletegateway_identifier, regionDeletes a gateway.

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 identifier of the gateway 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.
nextTokenstringIf the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

SELECT examples

Retrieves information about a specific Gateway.

SELECT
name,
authorizer_configuration,
authorizer_type,
created_at,
custom_transform_configuration,
description,
exception_level,
gateway_arn,
gateway_id,
gateway_url,
interceptor_configurations,
kms_key_arn,
policy_engine_configuration,
protocol_configuration,
protocol_type,
role_arn,
status,
status_reasons,
updated_at,
waf_configuration,
web_acl_arn,
workload_identity_details
FROM aws.bedrock_agentcore_control.gateways
WHERE gateway_identifier = '{{ gateway_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.bedrock_agentcore_control.gateways (
name,
description,
clientToken,
roleArn,
protocolType,
protocolConfiguration,
authorizerType,
authorizerConfiguration,
kmsKeyArn,
interceptorConfigurations,
policyEngineConfiguration,
exceptionLevel,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ clientToken }}',
'{{ roleArn }}' /* required */,
'{{ protocolType }}',
'{{ protocolConfiguration }}',
'{{ authorizerType }}' /* required */,
'{{ authorizerConfiguration }}',
'{{ kmsKeyArn }}',
'{{ interceptorConfigurations }}',
'{{ policyEngineConfiguration }}',
'{{ exceptionLevel }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
authorizer_configuration,
authorizer_type,
created_at,
custom_transform_configuration,
description,
exception_level,
gateway_arn,
gateway_id,
gateway_url,
interceptor_configurations,
kms_key_arn,
policy_engine_configuration,
protocol_configuration,
protocol_type,
role_arn,
status,
status_reasons,
updated_at,
waf_configuration,
web_acl_arn,
workload_identity_details
;

UPDATE examples

Updates an existing gateway.

UPDATE aws.bedrock_agentcore_control.gateways
SET
name = '{{ name }}',
description = '{{ description }}',
roleArn = '{{ roleArn }}',
protocolType = '{{ protocolType }}',
protocolConfiguration = '{{ protocolConfiguration }}',
authorizerType = '{{ authorizerType }}',
authorizerConfiguration = '{{ authorizerConfiguration }}',
kmsKeyArn = '{{ kmsKeyArn }}',
customTransformConfiguration = '{{ customTransformConfiguration }}',
interceptorConfigurations = '{{ interceptorConfigurations }}',
policyEngineConfiguration = '{{ policyEngineConfiguration }}',
exceptionLevel = '{{ exceptionLevel }}',
wafConfiguration = '{{ wafConfiguration }}'
WHERE
gateway_identifier = '{{ gateway_identifier }}' --required
AND region = '{{ region }}' --required
AND name = '{{ name }}' --required
AND roleArn = '{{ roleArn }}' --required
AND authorizerType = '{{ authorizerType }}' --required
RETURNING
name,
authorizer_configuration,
authorizer_type,
created_at,
custom_transform_configuration,
description,
exception_level,
gateway_arn,
gateway_id,
gateway_url,
interceptor_configurations,
kms_key_arn,
policy_engine_configuration,
protocol_configuration,
protocol_type,
role_arn,
status,
status_reasons,
updated_at,
waf_configuration,
web_acl_arn,
workload_identity_details;

DELETE examples

Deletes a gateway.

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