2026/12/01 - Amazon Bedrock AgentCore Control - 17 updated api methods
Changes Amazon Bedrock AgentCore adds IAM for agents support in Gateway and Runtime, third-party guardrail providers in Policy, and a quarantineStatus field in Runtime.
{'workloadIdentityTemplateArn': 'string'}
Creates an Amazon Bedrock AgentCore Runtime.
See also: AWS API Documentation
Request Syntax
client.create_agent_runtime(
agentRuntimeName='string',
agentRuntimeArtifact={
'containerConfiguration': {
'containerUri': 'string'
},
'codeConfiguration': {
'code': {
's3': {
'bucket': 'string',
'prefix': 'string',
'versionId': 'string'
}
},
'runtime': 'PYTHON_3_10'|'PYTHON_3_11'|'PYTHON_3_12'|'PYTHON_3_13'|'PYTHON_3_14'|'NODE_22',
'entryPoint': [
'string',
]
}
},
roleArn='string',
networkConfiguration={
'networkMode': 'PUBLIC'|'VPC',
'networkModeConfig': {
'securityGroups': [
'string',
],
'subnets': [
'string',
],
'requireServiceS3Endpoint': True|False
}
},
clientToken='string',
description='string',
authorizerConfiguration={
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
requestHeaderConfiguration={
'requestHeaderAllowlist': [
'string',
]
},
protocolConfiguration={
'serverProtocol': 'MCP'|'HTTP'|'A2A'|'AGUI',
'port': 123,
'path': 'string'
},
lifecycleConfiguration={
'idleRuntimeSessionTimeout': 123,
'maxLifetime': 123
},
hooksConfiguration={
'build': {
'warmup': {
'action': {
'httpPost': {
'path': 'string',
'port': 123
}
}
}
}
},
environmentVariables={
'string': 'string'
},
filesystemConfigurations=[
{
'sessionStorage': {
'mountPath': 'string'
},
's3FilesAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'efsAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'capacityProviderVolume': {
'volumeName': 'string',
'mountPath': 'string'
},
's3BucketMount': {
'bucket': 'string',
'mountPath': 'string',
'prefix': 'string',
's3BucketOwner': 'string',
's3BucketRegion': 'string'
}
},
],
capacityProviderConfiguration={
'capacityProviderArn': 'string',
'operatingSystemConfiguration': {
'linux': {
'privilegeMode': 'STANDARD'|'PRIVILEGED'
}
}
},
cpuConfigurations=[
{
'architecture': 'ARM64'|'X86_64'
},
],
tags={
'string': 'string'
},
platformVersion='string',
allowedPorts=[
{
'port': 123,
'portRange': {
'from': 123,
'to': 123
}
},
],
resourceConfigurations=[
{
'minimumMemoryInMiB': 123
},
],
workloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The name of the AgentCore Runtime.
dict
[REQUIRED]
The artifact of the AgentCore Runtime.
containerConfiguration (dict) --
The container configuration for the agent artifact.
containerUri (string) -- [REQUIRED]
The ECR URI of the container.
codeConfiguration (dict) --
The code configuration for the agent runtime artifact, including the source code location and execution settings.
code (dict) -- [REQUIRED]
The source code location and configuration details.
s3 (dict) --
The Amazon Amazon S3 object that contains the source code for the agent runtime.
bucket (string) -- [REQUIRED]
The name of the Amazon S3 bucket. This bucket contains the stored data.
prefix (string) -- [REQUIRED]
The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
versionId (string) --
The version ID of the Amazon Amazon S3 object. If not specified, the latest version of the object is used.
runtime (string) -- [REQUIRED]
The runtime environment for executing the agent code. Specify the programming language and version to use for the agent runtime. For valid values, see the list of supported runtimes.
entryPoint (list) -- [REQUIRED]
The entry point for the code execution, specifying the function or method that should be invoked when the code runs.
(string) --
string
[REQUIRED]
The IAM role ARN that provides permissions for the AgentCore Runtime.
dict
The network configuration for the AgentCore Runtime.
networkMode (string) -- [REQUIRED]
The network mode for the AgentCore Runtime.
networkModeConfig (dict) --
The network mode configuration for the AgentCore Runtime.
securityGroups (list) -- [REQUIRED]
The security groups associated with the VPC configuration.
(string) --
subnets (list) -- [REQUIRED]
The subnets associated with the VPC configuration.
(string) --
requireServiceS3Endpoint (boolean) --
Controls whether a service-managed Amazon S3 gateway endpoint is provisioned in the VPC network topology for the agent runtime. This gateway is used by Amazon Bedrock AgentCore Runtime to download code and container images during agent startup.
Starting May 5, 2026, Amazon Bedrock AgentCore Runtime is gradually rolling out a change to how network isolation is configured for VPC mode agents. Agent runtimes created on or after this rollout will no longer include the service-managed Amazon S3 gateway. Instead, all network access, including to Amazon S3, is governed exclusively by your VPC configuration. This field cannot be set on agent runtimes created after the rollout. Passing this field in an UpdateAgentRuntime request for these agent runtimes returns a ValidationException.
Agent runtimes created before the rollout are not affected and continue to operate with the service-managed Amazon S3 gateway. To enforce full VPC network isolation on these existing agent runtimes, set this field to false via the UpdateAgentRuntime API. Before opting out, ensure your VPC provides the Amazon S3 access required for agent startup. If this field is not specified or is set to true, the service-managed Amazon S3 gateway remains provisioned.
This field is only supported in the UpdateAgentRuntime API for pre-rollout agent runtimes. Passing this field in a CreateAgentRuntime request returns a ValidationException.
string
A unique, case-sensitive identifier to ensure idempotency of the request.
This field is autopopulated if not provided.
string
The description of the AgentCore Runtime.
dict
The authorizer configuration for the AgentCore Runtime.
customJWTAuthorizer (dict) --
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) -- [REQUIRED]
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) -- [REQUIRED]
The name of the custom claim field to check.
inboundTokenClaimValueType (string) -- [REQUIRED]
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) -- [REQUIRED]
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) -- [REQUIRED]
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) -- [REQUIRED]
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) -- [REQUIRED]
The domain to override with a private endpoint.
privateEndpoint (dict) -- [REQUIRED]
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
dict
Configuration for HTTP request headers that will be passed through to the runtime.
requestHeaderAllowlist (list) --
A list of HTTP request headers that are allowed to be passed through to the runtime.
(string) --
dict
The protocol configuration for the AgentCore Runtime, including the protocol, port, and path on which the agent server is available.
serverProtocol (string) -- [REQUIRED]
The server protocol for the agent runtime. This field specifies which protocol the agent runtime uses to communicate with clients.
port (integer) --
The port on which the agent server listens. The port must be between 8000 and 12000, excluding the reserved port 8443. When this field is omitted, the default is 8080 for HTTP and AGUI, 8000 for MCP, and 9000 for A2A.
path (string) --
The path on which the agent server accepts requests. The path must begin with /. When this field is omitted, the default is /invocations for HTTP and AGUI, /mcp for MCP, and / for A2A.
dict
The life cycle configuration for the AgentCore Runtime.
idleRuntimeSessionTimeout (integer) --
Timeout in seconds for idle runtime sessions. When a session remains idle for this duration, it will be automatically terminated. Default: 900 seconds (15 minutes).
maxLifetime (integer) --
Maximum lifetime for the instance in seconds. Once reached, instances will be automatically terminated and replaced. Default: 28800 seconds (8 hours).
dict
The lifecycle hooks configuration for the AgentCore Runtime. Use lifecycle hooks to run actions in the agent's container at fixed points in the runtime's lifecycle, such as warming up the agent before sessions are created.
build (dict) --
The hooks that run when you create or update the AgentCore Runtime, before any sessions are created.
warmup (dict) --
The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
action (dict) -- [REQUIRED]
The action that AgentCore Runtime runs for the hook. Specify exactly one action.
httpPost (dict) --
Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.
path (string) -- [REQUIRED]
The path in the agent's container that AgentCore Runtime sends the POST request to.
port (integer) --
The port in the agent's container that AgentCore Runtime sends the POST request to. If you don't specify a port, the default is the runtime's server port: the port in the protocol configuration if one is set, otherwise the protocol's default port.
dict
Environment variables to set in the AgentCore Runtime environment.
(string) --
(string) --
list
The filesystem configurations to mount into the AgentCore Runtime. Use filesystem configurations to provide persistent storage to your AgentCore Runtime sessions.
(dict) --
Configuration for a filesystem that can be mounted into the AgentCore Runtime.
sessionStorage (dict) --
Configuration for session storage. Session storage provides persistent storage that is preserved across AgentCore Runtime session invocations.
mountPath (string) -- [REQUIRED]
The mount path for the session storage filesystem inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3FilesAccessPoint (dict) --
Configuration for an Amazon S3 Files access point to mount into the AgentCore Runtime.
accessPointArn (string) -- [REQUIRED]
The ARN of the S3 Files access point to mount into the AgentCore Runtime.
mountPath (string) -- [REQUIRED]
The mount path for the S3 Files access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
efsAccessPoint (dict) --
Configuration for an Amazon EFS access point to mount into the AgentCore Runtime.
accessPointArn (string) -- [REQUIRED]
The ARN of the EFS access point to mount into the AgentCore Runtime.
mountPath (string) -- [REQUIRED]
The mount path for the EFS access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
capacityProviderVolume (dict) --
Configuration for a capacity provider volume to mount into the AgentCore Runtime. This mounts a persistent volume that is defined on the capacity provider, referenced by its logical name.
volumeName (string) -- [REQUIRED]
The logical name of the capacity provider volume to mount. This name must match a volume that is defined in the capacity provider's list of volumes.
mountPath (string) -- [REQUIRED]
The mount path for the capacity provider volume inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3BucketMount (dict) --
Mounts an Amazon S3 bucket as a file system in the AgentCore Runtime.
bucket (string) -- [REQUIRED]
The name of the S3 bucket to mount. You can specify a general purpose bucket or a directory bucket.
mountPath (string) -- [REQUIRED]
The mount path for the S3 bucket inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
prefix (string) --
The key prefix to mount. Only objects under this prefix are visible at the mount path. To give each session its own prefix, include {runtimeSessionId} (for example, data/{runtimeSessionId}/). If you omit the prefix, the whole bucket is mounted.
s3BucketOwner (string) --
The Amazon Web Services account ID that must own the bucket. If you omit it, the bucket must be owned by the account that owns the AgentCore Runtime.
s3BucketRegion (string) --
The Amazon Web Services Region of the S3 bucket. If you omit it, the bucket must be in the same Region as the AgentCore Runtime.
dict
The capacity provider configuration for the AgentCore Runtime. Use a capacity provider to run the AgentCore Runtime on the Instances compute type, which provisions Amazon Web Services managed compute in your account.
capacityProviderArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the capacity provider to use for the AgentCore Runtime.
operatingSystemConfiguration (dict) --
The operating system configuration of the agents that Amazon Bedrock AgentCore Runtime runs on the capacity provider.
linux (dict) --
The operating system configuration of agents that run on Linux instances.
privilegeMode (string) --
The privilege mode of the agents. If you omit this field, the agents run in STANDARD privilege mode. The following values are possible:
STANDARD – The agent runs without elevated privileges. This is the default.
PRIVILEGED – The agent runs with elevated privileges on its instance. Use this mode for agents that build container images, run containers, or install system packages. A session that runs a PRIVILEGED agent runs only that agent.
list
The CPU configurations for the AgentCore Runtime. Defaults to a single ARM64 configuration when omitted. At most one entry is permitted. Immutable after creation. Supported only with Runtime platform version V2.
(dict) --
The CPU configuration for an AgentCore Runtime.
architecture (string) -- [REQUIRED]
The CPU architecture for the AgentCore Runtime.
dict
A map of tag keys and values to assign to the agent runtime. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
(string) --
(string) --
string
The version of the runtime platform to use for the AgentCore Runtime.
list
The additional ports on the AgentCore Runtime that are reachable through the runtime's session URL. Specify one to five non-overlapping entries, each containing either a single port or an inclusive port range. Ports must be between 8000 and 12000, excluding the reserved port 8443.
(dict) --
A port or port range that is reachable through the runtime's session URL. Specify exactly one of port or portRange.
port (integer) --
A single port that is reachable through the runtime's session URL.
portRange (dict) --
An inclusive range of ports that are reachable through the runtime's session URL.
from (integer) -- [REQUIRED]
The first port in the inclusive range.
to (integer) -- [REQUIRED]
The last port in the inclusive range.
list
The resource configurations for the AgentCore Runtime, such as the minimum amount of memory to allocate to the runtime. You can specify at most one resource configuration.
(dict) --
The resource configuration for an AgentCore Runtime.
minimumMemoryInMiB (integer) -- [REQUIRED]
The minimum amount of memory, in mebibytes, to allocate to the AgentCore Runtime.
string
The Amazon Resource Name (ARN) of a workload identity template that gives the AgentCore Runtime an identity, so that the agent's AWS calls carry that identity. The template must be in your own account or owned by your organization, and you need the iam:PassWorkloadIdentityTemplate permission to pass it. Supported only on a runtime that uses platform version V2 or the Instances compute type. Agent and workload identity is in preview.
dict
Response Syntax
{
'agentRuntimeArn': 'string',
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'workloadIdentityTemplateArn': 'string',
'agentRuntimeId': 'string',
'agentRuntimeVersion': 'string',
'createdAt': datetime(2015, 1, 1),
'status': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED'
}
Response Structure
(dict) --
agentRuntimeArn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime.
workloadIdentityDetails (dict) --
The workload identity details for the AgentCore Runtime.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the workload identity template that the AgentCore Runtime uses.
agentRuntimeId (string) --
The unique identifier of the AgentCore Runtime.
agentRuntimeVersion (string) --
The version of the AgentCore Runtime.
createdAt (datetime) --
The timestamp when the AgentCore Runtime was created.
status (string) --
The current status of the AgentCore Runtime.
{'workloadIdentityTemplateArn': 'string'}
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.
See also: AWS API Documentation
Request Syntax
client.create_gateway(
name='string',
description='string',
clientToken='string',
roleArn='string',
protocolType='MCP',
protocolConfiguration={
'mcp': {
'supportedVersions': [
'string',
],
'instructions': 'string',
'searchType': 'SEMANTIC',
'sessionConfiguration': {
'sessionTimeoutInSeconds': 123
},
'streamingConfiguration': {
'enableResponseStreaming': True|False
},
'disableMcpListToolsPagination': True|False
}
},
authorizerType='CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
authorizerConfiguration={
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
kmsKeyArn='string',
interceptorConfigurations=[
{
'interceptor': {
'lambda': {
'arn': 'string'
}
},
'interceptionPoints': [
'REQUEST'|'RESPONSE',
],
'inputConfiguration': {
'passRequestHeaders': True|False,
'payloadFilter': {
'exclude': [
{
'field': 'RESPONSE_BODY'
},
]
}
},
'responseInterceptionMode': 'BUFFERED'|'STREAM',
'responseStreamingConfiguration': {
'maxEventsPerInvocation': 123
}
},
],
policyEngineConfiguration={
'arn': 'string',
'mode': 'LOG_ONLY'|'ENFORCE'
},
exceptionLevel='DEBUG',
tags={
'string': 'string'
},
domainOverride={
'defaultDomain': 'string',
'alternateDomains': [
'string',
]
},
workloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The name of the gateway. The name must be unique within your account.
string
The description of the gateway.
string
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.
This field is autopopulated if not provided.
string
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the gateway to access Amazon Web Services services.
string
The protocol type for the gateway.
dict
The configuration settings for the protocol specified in the protocolType parameter.
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.
sessionConfiguration (dict) --
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
sessionTimeoutInSeconds (integer) --
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).
streamingConfiguration (dict) --
The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
enableResponseStreaming (boolean) --
Indicates whether response streaming is enabled for the gateway. When set to true, the gateway streams responses from targets back to the client.
disableMcpListToolsPagination (boolean) --
Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses. For information about changing this value on an existing gateway, see UpdateGateway.
string
[REQUIRED]
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
dict
The authorizer configuration for the gateway. Required if authorizerType is CUSTOM_JWT.
customJWTAuthorizer (dict) --
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) -- [REQUIRED]
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) -- [REQUIRED]
The name of the custom claim field to check.
inboundTokenClaimValueType (string) -- [REQUIRED]
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) -- [REQUIRED]
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) -- [REQUIRED]
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) -- [REQUIRED]
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) -- [REQUIRED]
The domain to override with a private endpoint.
privateEndpoint (dict) -- [REQUIRED]
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
string
The Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.
list
A list of configuration settings for a gateway interceptor. Gateway interceptors allow custom code to be invoked during gateway invocations.
(dict) --
The configuration for an interceptor on a gateway. This structure defines settings for an interceptor that will be invoked during the invocation of the gateway.
interceptor (dict) -- [REQUIRED]
The infrastructure settings of an interceptor configuration. This structure defines how the interceptor can be invoked.
lambda (dict) --
The details of the lambda function used for the interceptor.
arn (string) -- [REQUIRED]
The arn of the lambda function to be invoked for the interceptor.
interceptionPoints (list) -- [REQUIRED]
The supported points of interception. This field specifies which points during the gateway invocation to invoke the interceptor
(string) --
inputConfiguration (dict) --
The configuration for the input of the interceptor. This field specifies how the input to the interceptor is constructed
passRequestHeaders (boolean) -- [REQUIRED]
Indicates whether to pass request headers as input into the interceptor. When set to true, request headers will be passed.
payloadFilter (dict) --
The filter that determines which parts of the request or response payload are passed as input to the interceptor.
exclude (list) -- [REQUIRED]
The list of selectors that identify payload fields to exclude from the interceptor input.
(dict) --
A selector that identifies a payload field to exclude from the interceptor input.
field (string) --
The field to exclude from the interceptor input.
responseInterceptionMode (string) --
Specifies how the interceptor processes streamed target responses. You can set this field only on an interceptor that includes the RESPONSE interception point. Valid values include:
BUFFERED - The gateway collects the complete target response and then invokes the interceptor once. This is the default.
STREAM - The gateway sends a streamed target response to the interceptor in batches of events and returns each processed batch to the client as soon as it's ready. Non-streamed responses still use BUFFERED processing. If you specify STREAM, you must also specify responseStreamingConfiguration, and the input configuration can't exclude the response body.
responseStreamingConfiguration (dict) --
Specifies the batching settings for a streamed response. Specify this field only when responseInterceptionMode is STREAM. You must specify it for STREAM.
maxEventsPerInvocation (integer) --
Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
dict
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.
arn (string) -- [REQUIRED]
The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
mode (string) -- [REQUIRED]
The enforcement mode for the policy engine. Valid values include:
LOG_ONLY - The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement.
ENFORCE - The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
string
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.
dict
A map of key-value pairs to associate with the gateway as metadata tags.
(string) --
(string) --
dict
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.
defaultDomain (string) -- [REQUIRED]
The default public domain name for the gateway. The gateway advertises this domain when a request doesn't select a specific domain.
alternateDomains (list) --
Additional public domain names for the gateway, up to 10. Don't repeat the default domain or list a domain more than once. A request can select one of these domains, or the default domain, with the x-amzn-bedrock-agentcore-gateway-domain header. The gateway rejects a request that selects a domain that isn't configured.
(string) --
string
The Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
dict
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',
'sessionConfiguration': {
'sessionTimeoutInSeconds': 123
},
'streamingConfiguration': {
'enableResponseStreaming': True|False
},
'disableMcpListToolsPagination': True|False
}
},
'authorizerType': 'CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
'authorizerConfiguration': {
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
'kmsKeyArn': 'string',
'customTransformConfiguration': {
'lambda': {
'arn': 'string'
}
},
'interceptorConfigurations': [
{
'interceptor': {
'lambda': {
'arn': 'string'
}
},
'interceptionPoints': [
'REQUEST'|'RESPONSE',
],
'inputConfiguration': {
'passRequestHeaders': True|False,
'payloadFilter': {
'exclude': [
{
'field': 'RESPONSE_BODY'
},
]
}
},
'responseInterceptionMode': 'BUFFERED'|'STREAM',
'responseStreamingConfiguration': {
'maxEventsPerInvocation': 123
}
},
],
'policyEngineConfiguration': {
'arn': 'string',
'mode': 'LOG_ONLY'|'ENFORCE'
},
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'exceptionLevel': 'DEBUG',
'webAclArn': 'string',
'wafConfiguration': {
'failureMode': 'FAIL_CLOSE'|'FAIL_OPEN'
},
'domainOverride': {
'defaultDomain': 'string',
'alternateDomains': [
'string',
]
},
'workloadIdentityTemplateArn': 'string'
}
Response Structure
(dict) --
gatewayArn (string) --
The Amazon Resource Name (ARN) of the created gateway.
gatewayId (string) --
The unique identifier of the created gateway.
gatewayUrl (string) --
The URL endpoint for the created 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 Amazon Resource Name (ARN) of the IAM role associated with the gateway.
protocolType (string) --
The protocol type of the gateway.
protocolConfiguration (dict) --
The configuration settings for the protocol used by the gateway.
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.
sessionConfiguration (dict) --
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
sessionTimeoutInSeconds (integer) --
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).
streamingConfiguration (dict) --
The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
enableResponseStreaming (boolean) --
Indicates whether response streaming is enabled for the gateway. When set to true, the gateway streams responses from targets back to the client.
disableMcpListToolsPagination (boolean) --
Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses. For information about changing this value on an existing gateway, see UpdateGateway.
authorizerType (string) --
The type of authorizer used by the gateway.
authorizerConfiguration (dict) --
The authorizer configuration for the created gateway.
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) --
The name of the custom claim field to check.
inboundTokenClaimValueType (string) --
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) --
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) --
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) --
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) --
The domain to override with a private endpoint.
privateEndpoint (dict) --
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) --
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
kmsKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt data associated with the gateway.
customTransformConfiguration (dict) --
The custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
lambda (dict) --
The Lambda configuration for custom transformations. This configuration defines how the gateway uses a Lambda function to transform data.
arn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to transform data.
interceptorConfigurations (list) --
The list of interceptor configurations for the created gateway.
(dict) --
The configuration for an interceptor on a gateway. This structure defines settings for an interceptor that will be invoked during the invocation of the gateway.
interceptor (dict) --
The infrastructure settings of an interceptor configuration. This structure defines how the interceptor can be invoked.
lambda (dict) --
The details of the lambda function used for the interceptor.
arn (string) --
The arn of the lambda function to be invoked for the interceptor.
interceptionPoints (list) --
The supported points of interception. This field specifies which points during the gateway invocation to invoke the interceptor
(string) --
inputConfiguration (dict) --
The configuration for the input of the interceptor. This field specifies how the input to the interceptor is constructed
passRequestHeaders (boolean) --
Indicates whether to pass request headers as input into the interceptor. When set to true, request headers will be passed.
payloadFilter (dict) --
The filter that determines which parts of the request or response payload are passed as input to the interceptor.
exclude (list) --
The list of selectors that identify payload fields to exclude from the interceptor input.
(dict) --
A selector that identifies a payload field to exclude from the interceptor input.
field (string) --
The field to exclude from the interceptor input.
responseInterceptionMode (string) --
Specifies how the interceptor processes streamed target responses. You can set this field only on an interceptor that includes the RESPONSE interception point. Valid values include:
BUFFERED - The gateway collects the complete target response and then invokes the interceptor once. This is the default.
STREAM - The gateway sends a streamed target response to the interceptor in batches of events and returns each processed batch to the client as soon as it's ready. Non-streamed responses still use BUFFERED processing. If you specify STREAM, you must also specify responseStreamingConfiguration, and the input configuration can't exclude the response body.
responseStreamingConfiguration (dict) --
Specifies the batching settings for a streamed response. Specify this field only when responseInterceptionMode is STREAM. You must specify it for STREAM.
maxEventsPerInvocation (integer) --
Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
policyEngineConfiguration (dict) --
The policy engine configuration for the created gateway.
arn (string) --
The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
mode (string) --
The enforcement mode for the policy engine. Valid values include:
LOG_ONLY - The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement.
ENFORCE - The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
workloadIdentityDetails (dict) --
The workload identity details for the created gateway.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
exceptionLevel (string) --
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.
webAclArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services WAF web ACL associated with the gateway.
wafConfiguration (dict) --
The Amazon Web Services WAF configuration for the gateway.
failureMode (string) --
The failure mode that determines how the gateway handles requests when Amazon Web Services WAF is unreachable or times out. Valid values include:
FAIL_CLOSE - The gateway blocks requests when Amazon Web Services WAF cannot be evaluated.
FAIL_OPEN - The gateway allows requests when Amazon Web Services WAF cannot be evaluated.
domainOverride (dict) --
The public domain names that the gateway advertises in its OAuth discovery URLs instead of the inbound Host header.
defaultDomain (string) --
The default public domain name for the gateway. The gateway advertises this domain when a request doesn't select a specific domain.
alternateDomains (list) --
Additional public domain names for the gateway, up to 10. Don't repeat the default domain or list a domain more than once. A request can select one of these domains, or the default domain, with the x-amzn-bedrock-agentcore-gateway-domain header. The gateway rejects a request that selects a domain that isn't configured.
(string) --
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
{'credentialProviderConfigurations': {'credentialProvider': {'svidCredentialProvider': {'audiences': ['string'],
'signingAlgorithm': 'RS256 '
'| '
'ES384'}},
'credentialProviderType': {'JWT_SVID'}}}
Creates a target for a gateway. A target defines an endpoint that the gateway can connect to.
See also: AWS API Documentation
Request Syntax
client.create_gateway_target(
gatewayIdentifier='string',
name='string',
description='string',
clientToken='string',
targetConfiguration={
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
credentialProviderConfigurations=[
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
metadataConfiguration={
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
privateEndpoint={
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
certificateConfigurations=[
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
)
string
[REQUIRED]
The identifier of the gateway to create a target for.
string
The name of the gateway target. The name must be unique within the gateway.
string
The description of the gateway target.
string
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.
This field is autopopulated if not provided.
dict
[REQUIRED]
The configuration settings for the target, including endpoint information and schema definitions.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) -- [REQUIRED]
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) -- [REQUIRED]
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) -- [REQUIRED]
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) -- [REQUIRED]
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) -- [REQUIRED]
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) -- [REQUIRED]
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) -- [REQUIRED]
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) -- [REQUIRED]
The ID of the API Gateway REST API.
stage (string) -- [REQUIRED]
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) -- [REQUIRED]
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) -- [REQUIRED]
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) -- [REQUIRED]
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) -- [REQUIRED]
The HTTP method to expose for the specified path.
toolFilters (list) -- [REQUIRED]
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) -- [REQUIRED]
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) -- [REQUIRED]
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) -- [REQUIRED]
The source configuration identifying which connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) -- [REQUIRED]
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) -- [REQUIRED]
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) -- [REQUIRED]
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) -- [REQUIRED]
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) -- [REQUIRED]
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) -- [REQUIRED]
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) -- [REQUIRED]
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) -- [REQUIRED]
The source configuration identifying which HTTP connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) -- [REQUIRED]
The source configuration identifying which inference connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) -- [REQUIRED]
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) -- [REQUIRED]
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) -- [REQUIRED]
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
list
The credential provider configurations for the target. These configurations specify how the gateway authenticates with the target endpoint.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) -- [REQUIRED]
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) -- [REQUIRED]
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) -- [REQUIRED]
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
dict
Optional configuration for HTTP header and query parameter propagation to and from the gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
dict
The private endpoint configuration for the gateway target. Use this to connect the gateway to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
list
The private certificate authority (CA) configurations for the gateway target. Use this to have the gateway trust a private CA when it establishes TLS connections to the target endpoint. Provide each certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can specify only one certificate authority configuration in this list.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
dict
Response Syntax
{
'gatewayArn': 'string',
'targetId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED'|'SYNCHRONIZING'|'SYNCHRONIZE_UNSUCCESSFUL'|'CREATE_PENDING_AUTH'|'UPDATE_PENDING_AUTH'|'SYNCHRONIZE_PENDING_AUTH',
'statusReasons': [
'string',
],
'name': 'string',
'description': 'string',
'targetConfiguration': {
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
'credentialProviderConfigurations': [
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
'lastSynchronizedAt': datetime(2015, 1, 1),
'metadataConfiguration': {
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointManagedResources': [
{
'domain': 'string',
'resourceGatewayArn': 'string',
'resourceAssociationArn': 'string'
},
],
'authorizationData': {
'oauth2': {
'authorizationUrl': 'string',
'userId': 'string'
}
},
'protocolType': 'MCP'|'HTTP',
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
}
Response Structure
(dict) --
gatewayArn (string) --
The Amazon Resource Name (ARN) of the gateway.
targetId (string) --
The unique identifier of the created target.
createdAt (datetime) --
The timestamp when the target was created.
updatedAt (datetime) --
The timestamp when the target was last updated.
status (string) --
The current status of the target.
statusReasons (list) --
The reasons for the current status of the target.
(string) --
name (string) --
The name of the target.
description (string) --
The description of the target.
targetConfiguration (dict) --
The configuration settings for the target.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) --
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) --
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) --
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) --
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) --
The ID of the API Gateway REST API.
stage (string) --
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) --
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) --
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) --
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) --
The HTTP method to expose for the specified path.
toolFilters (list) --
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) --
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) --
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) --
The source configuration identifying which connector to use.
connectorId (string) --
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) --
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) --
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) --
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) --
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) --
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) --
The source configuration identifying which HTTP connector to use.
connectorId (string) --
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) --
The source configuration identifying which inference connector to use.
connectorId (string) --
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) --
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) --
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) --
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
credentialProviderConfigurations (list) --
The credential provider configurations for the target.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) --
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) --
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) --
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
lastSynchronizedAt (datetime) --
The last synchronization of the target.
metadataConfiguration (dict) --
The metadata configuration that was applied to the created gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
privateEndpoint (dict) --
The private endpoint configuration for the gateway target.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointManagedResources (list) --
The managed resources created by the gateway for private endpoint connectivity.
(dict) --
Details of a resource created and managed by the gateway for private endpoint connectivity.
domain (string) --
The domain associated with this managed resource.
resourceGatewayArn (string) --
The ARN of the VPC Lattice resource gateway created in your account.
resourceAssociationArn (string) --
The ARN of the service network resource association.
authorizationData (dict) --
OAuth2 authorization data for the created gateway target. This data is returned when a target is configured with a credential provider with authorization code grant type and requires user federation.
oauth2 (dict) --
OAuth2 authorization data for the gateway target.
authorizationUrl (string) --
The URL to initiate the authorization process. This URL is provided when the OAuth2 access token requires user authorization.
userId (string) --
The user identifier associated with the OAuth2 authorization session that is defined by AgentCore Gateway.
protocolType (string) --
The protocol type of the created gateway target.
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the gateway target.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
{'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'url': 'string'}}}
Response {'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'providerCapabilities': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'availableMethods': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'inputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'settings': {'string': {}},
'url': 'string'}}}
Creates a new policy engine within the AgentCore Policy system. A policy engine is a collection of policies that evaluates and authorizes agent tool calls. When associated with Gateways (each Gateway can be associated with at most one policy engine, but multiple Gateways can be associated with the same engine), the policy engine intercepts all agent requests and determines whether to allow or deny each action based on the defined policies. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.
See also: AWS API Documentation
Request Syntax
client.create_policy_engine(
name='string',
description='string',
clientToken='string',
encryptionKeyArn='string',
tags={
'string': 'string'
},
policyInformationProviderConfiguration={
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string'
}
}
)
string
[REQUIRED]
The customer-assigned immutable name for the policy engine. This name identifies the policy engine and cannot be changed after creation.
string
A human-readable description of the policy engine's purpose and scope (1-4,096 characters). This helps administrators understand the policy engine's role in the overall governance strategy. Document which Gateway this engine will be associated with, what types of tools or workflows it governs, and the team or service responsible for maintaining it. Clear descriptions are essential when managing multiple policy engines across different services or environments.
string
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request with the same client token, the service returns the same response without creating a duplicate policy engine.
This field is autopopulated if not provided.
string
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
dict
A map of tag keys and values to assign to an AgentCore Policy. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
(string) --
(string) --
dict
The third-party guardrail providers to register on the policy engine, keyed by provider ID. After you register a provider, the policies in the policy engine can call its checks in a guardrails condition block ( when guardrails or unless guardrails). Valid provider IDs:
CheckPoint
Check Point AI Guardrails
Netskope
Netskope AI Guardrails
PromptSecurity
Prompt Security
Rubrik
Rubrik Agent Cloud
Zscaler
Zscaler AI Guard
For more information about each provider, see Supported providers. Amazon Bedrock Guardrails ( BedrockGuardrails) is a built-in provider on every policy engine. You can't include it in this map.
(string) --
(dict) --
Specifies a third-party guardrail provider to register when you create a policy engine. It includes the API key credential provider that stores your provider API key and, optionally, the URL of your provider endpoint.
credentialProvider (dict) -- [REQUIRED]
The credential provider that the policy engine uses to call the provider. Specify the API key credential provider in AgentCore Identity that stores your provider API key.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL of your provider endpoint. If you omit it, CheckPoint, PromptSecurity, and Zscaler use their default URL. Netskope and Rubrik have no default URL, so you must specify it. The URL must use HTTPS and must not include a port. Its host name must match the provider:
CheckPoint
https://api.lakera.ai, which is also the default.
Netskope
The API URL of your Netskope tenant, https://tenant.goskope.com/api/v2. Required.
PromptSecurity
The regional host name of your Prompt Security tenant, https://region.prompt.security. The default is https://useast.prompt.security.
Rubrik
The moderation webhook URL of your Rubrik Agent Cloud tenant, on a host name such as webhooks.air-prod.predibase.com. Required.
Zscaler
https://api.zseclipse.net, which is the default, or a regional host name such as https://api.us1.zseclipse.net.
dict
Response Syntax
{
'policyEngineId': 'string',
'name': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'policyEngineArn': 'string',
'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
'encryptionKeyArn': 'string',
'description': 'string',
'statusReasons': [
'string',
],
'policyInformationProviderConfiguration': {
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string',
'settings': {
'string': {...}|[...]|123|123.4|'string'|True|None
},
'providerCapabilities': {
'string': {
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'availableMethods': {
'string': {
'inputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
}
}
}
}
}
}
}
}
Response Structure
(dict) --
policyEngineId (string) --
The unique identifier for the created policy engine. This system-generated identifier consists of the user name plus a 10-character generated suffix and is used for all subsequent policy engine operations.
name (string) --
The customer-assigned name of the created policy engine. This matches the name provided in the request and serves as the human-readable identifier.
createdAt (datetime) --
The timestamp when the policy engine was created. This is automatically set by the service and used for auditing and lifecycle management.
updatedAt (datetime) --
The timestamp when the policy engine was last updated. For newly created policy engines, this matches the createdAt timestamp.
policyEngineArn (string) --
The Amazon Resource Name (ARN) of the created policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements.
status (string) --
The current status of the policy engine. A status of ACTIVE indicates the policy engine is ready for use.
encryptionKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
description (string) --
A human-readable description of the policy engine's purpose.
statusReasons (list) --
Additional information about the policy engine status. This provides details about any failures or the current state of the policy engine creation process.
(string) --
policyInformationProviderConfiguration (dict) --
The guardrail providers registered on the new policy engine, keyed by provider ID. They include the third-party providers from the request and the built-in BedrockGuardrails provider.
(string) --
(dict) --
Describes a guardrail provider registered on a policy engine. It includes the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. It is one of the following:
For a third-party provider, the API key credential provider that stores your provider API key.
For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) --
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
settings (dict) --
The provider settings, keyed by setting name, including windowSize. You can't change these settings.
(string) --
(:ref:`document<document>`) --
providerCapabilities (dict) --
The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
(string) --
(dict) --
Describes a check that a guardrail provider offers: the arguments that it takes, the type of its result, and the methods that you can call on the result.
argumentTypes (list) --
The types of the arguments that the check takes, in order. For example, CheckPoint::Custom takes a profile name as a string, followed by the content to assess as a set.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the result that the check returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
availableMethods (dict) --
The methods that you can call on the result of the check, keyed by method name. For example, CheckPoint::Custom offers allowed, and checks with categories offer aggregations such as maxConfidenceScore and count.
(string) --
(dict) --
Describes a method that you can call on the result of a guardrail check. Methods include allowed, which reports whether a profile check allows the content, and the aggregations maxConfidenceScore, minConfidenceScore, count, and categories. For more information, see Aggregations.
inputType (dict) --
The type of the value that the method is called on.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
argumentTypes (list) --
The types of the arguments that the method takes, in order. The list is empty when the method takes no arguments.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the value that the method returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
{'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'providerCapabilities': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'availableMethods': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'inputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'settings': {'string': {}},
'url': 'string'}}}
Deletes an existing policy engine from the AgentCore Policy system. The policy engine must not have any associated policies before deletion. Once deleted, the policy engine and all its configurations become unavailable for policy management and evaluation. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.
See also: AWS API Documentation
Request Syntax
client.delete_policy_engine(
policyEngineId='string'
)
string
[REQUIRED]
The unique identifier of the policy engine to be deleted. This must be a valid policy engine ID that exists within the account.
dict
Response Syntax
{
'policyEngineId': 'string',
'name': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'policyEngineArn': 'string',
'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
'encryptionKeyArn': 'string',
'description': 'string',
'statusReasons': [
'string',
],
'policyInformationProviderConfiguration': {
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string',
'settings': {
'string': {...}|[...]|123|123.4|'string'|True|None
},
'providerCapabilities': {
'string': {
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'availableMethods': {
'string': {
'inputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
}
}
}
}
}
}
}
}
Response Structure
(dict) --
policyEngineId (string) --
The unique identifier of the policy engine being deleted. This confirms which policy engine the deletion operation targets.
name (string) --
The customer-assigned name of the deleted policy engine.
createdAt (datetime) --
The timestamp when the deleted policy engine was originally created.
updatedAt (datetime) --
The timestamp when the deleted policy engine was last modified before deletion. This tracks the final state of the policy engine before it was removed from the system.
policyEngineArn (string) --
The Amazon Resource Name (ARN) of the deleted policy engine. This globally unique identifier confirms which policy engine resource was successfully removed.
status (string) --
The status of the policy engine deletion operation. This provides status about any issues that occurred during the deletion process.
encryptionKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
description (string) --
The human-readable description of the deleted policy engine.
statusReasons (list) --
Additional information about the deletion status. This provides details about the deletion process or any issues that may have occurred.
(string) --
policyInformationProviderConfiguration (dict) --
The guardrail providers that were registered on the deleted policy engine, keyed by provider ID.
(string) --
(dict) --
Describes a guardrail provider registered on a policy engine. It includes the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. It is one of the following:
For a third-party provider, the API key credential provider that stores your provider API key.
For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) --
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
settings (dict) --
The provider settings, keyed by setting name, including windowSize. You can't change these settings.
(string) --
(:ref:`document<document>`) --
providerCapabilities (dict) --
The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
(string) --
(dict) --
Describes a check that a guardrail provider offers: the arguments that it takes, the type of its result, and the methods that you can call on the result.
argumentTypes (list) --
The types of the arguments that the check takes, in order. For example, CheckPoint::Custom takes a profile name as a string, followed by the content to assess as a set.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the result that the check returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
availableMethods (dict) --
The methods that you can call on the result of the check, keyed by method name. For example, CheckPoint::Custom offers allowed, and checks with categories offer aggregations such as maxConfidenceScore and count.
(string) --
(dict) --
Describes a method that you can call on the result of a guardrail check. Methods include allowed, which reports whether a profile check allows the content, and the aggregations maxConfidenceScore, minConfidenceScore, count, and categories. For more information, see Aggregations.
inputType (dict) --
The type of the value that the method is called on.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
argumentTypes (list) --
The types of the arguments that the method takes, in order. The list is empty when the method takes no arguments.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the value that the method returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
{'quarantineStatus': 'QUARANTINING | QUARANTINED | UNQUARANTINING',
'workloadIdentityTemplateArn': 'string'}
Gets an Amazon Bedrock AgentCore Runtime.
See also: AWS API Documentation
Request Syntax
client.get_agent_runtime(
agentRuntimeId='string',
agentRuntimeVersion='string'
)
string
[REQUIRED]
The unique identifier of the AgentCore Runtime to retrieve.
string
The version of the AgentCore Runtime to retrieve.
dict
Response Syntax
{
'agentRuntimeArn': 'string',
'agentRuntimeName': 'string',
'agentRuntimeId': 'string',
'agentRuntimeVersion': 'string',
'createdAt': datetime(2015, 1, 1),
'lastUpdatedAt': datetime(2015, 1, 1),
'roleArn': 'string',
'networkConfiguration': {
'networkMode': 'PUBLIC'|'VPC',
'networkModeConfig': {
'securityGroups': [
'string',
],
'subnets': [
'string',
],
'requireServiceS3Endpoint': True|False
}
},
'status': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED',
'lifecycleConfiguration': {
'idleRuntimeSessionTimeout': 123,
'maxLifetime': 123
},
'hooksConfiguration': {
'build': {
'warmup': {
'action': {
'httpPost': {
'path': 'string',
'port': 123
}
}
}
}
},
'failureReason': 'string',
'description': 'string',
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'workloadIdentityTemplateArn': 'string',
'agentRuntimeArtifact': {
'containerConfiguration': {
'containerUri': 'string'
},
'codeConfiguration': {
'code': {
's3': {
'bucket': 'string',
'prefix': 'string',
'versionId': 'string'
}
},
'runtime': 'PYTHON_3_10'|'PYTHON_3_11'|'PYTHON_3_12'|'PYTHON_3_13'|'PYTHON_3_14'|'NODE_22',
'entryPoint': [
'string',
]
}
},
'protocolConfiguration': {
'serverProtocol': 'MCP'|'HTTP'|'A2A'|'AGUI',
'port': 123,
'path': 'string'
},
'environmentVariables': {
'string': 'string'
},
'authorizerConfiguration': {
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
'requestHeaderConfiguration': {
'requestHeaderAllowlist': [
'string',
]
},
'metadataConfiguration': {
'requireMMDSV2': True|False
},
'filesystemConfigurations': [
{
'sessionStorage': {
'mountPath': 'string'
},
's3FilesAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'efsAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'capacityProviderVolume': {
'volumeName': 'string',
'mountPath': 'string'
},
's3BucketMount': {
'bucket': 'string',
'mountPath': 'string',
'prefix': 'string',
's3BucketOwner': 'string',
's3BucketRegion': 'string'
}
},
],
'capacityProviderConfiguration': {
'capacityProviderArn': 'string',
'operatingSystemConfiguration': {
'linux': {
'privilegeMode': 'STANDARD'|'PRIVILEGED'
}
}
},
'platformVersion': 'string',
'allowedPorts': [
{
'port': 123,
'portRange': {
'from': 123,
'to': 123
}
},
],
'resourceConfigurations': [
{
'minimumMemoryInMiB': 123
},
],
'cpuConfigurations': [
{
'architecture': 'ARM64'|'X86_64'
},
],
'quarantineStatus': 'QUARANTINING'|'QUARANTINED'|'UNQUARANTINING'
}
Response Structure
(dict) --
agentRuntimeArn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime.
agentRuntimeName (string) --
The name of the AgentCore Runtime.
agentRuntimeId (string) --
The unique identifier of the AgentCore Runtime.
agentRuntimeVersion (string) --
The version of the AgentCore Runtime.
createdAt (datetime) --
The timestamp when the AgentCore Runtime was created.
lastUpdatedAt (datetime) --
The timestamp when the AgentCore Runtime was last updated.
roleArn (string) --
The IAM role ARN that provides permissions for the AgentCore Runtime.
networkConfiguration (dict) --
The network configuration for the AgentCore Runtime.
networkMode (string) --
The network mode for the AgentCore Runtime.
networkModeConfig (dict) --
The network mode configuration for the AgentCore Runtime.
securityGroups (list) --
The security groups associated with the VPC configuration.
(string) --
subnets (list) --
The subnets associated with the VPC configuration.
(string) --
requireServiceS3Endpoint (boolean) --
Controls whether a service-managed Amazon S3 gateway endpoint is provisioned in the VPC network topology for the agent runtime. This gateway is used by Amazon Bedrock AgentCore Runtime to download code and container images during agent startup.
Starting May 5, 2026, Amazon Bedrock AgentCore Runtime is gradually rolling out a change to how network isolation is configured for VPC mode agents. Agent runtimes created on or after this rollout will no longer include the service-managed Amazon S3 gateway. Instead, all network access, including to Amazon S3, is governed exclusively by your VPC configuration. This field cannot be set on agent runtimes created after the rollout. Passing this field in an UpdateAgentRuntime request for these agent runtimes returns a ValidationException.
Agent runtimes created before the rollout are not affected and continue to operate with the service-managed Amazon S3 gateway. To enforce full VPC network isolation on these existing agent runtimes, set this field to false via the UpdateAgentRuntime API. Before opting out, ensure your VPC provides the Amazon S3 access required for agent startup. If this field is not specified or is set to true, the service-managed Amazon S3 gateway remains provisioned.
This field is only supported in the UpdateAgentRuntime API for pre-rollout agent runtimes. Passing this field in a CreateAgentRuntime request returns a ValidationException.
status (string) --
The current status of the AgentCore Runtime.
lifecycleConfiguration (dict) --
The life cycle configuration for the AgentCore Runtime.
idleRuntimeSessionTimeout (integer) --
Timeout in seconds for idle runtime sessions. When a session remains idle for this duration, it will be automatically terminated. Default: 900 seconds (15 minutes).
maxLifetime (integer) --
Maximum lifetime for the instance in seconds. Once reached, instances will be automatically terminated and replaced. Default: 28800 seconds (8 hours).
hooksConfiguration (dict) --
The lifecycle hooks configuration for the AgentCore Runtime.
build (dict) --
The hooks that run when you create or update the AgentCore Runtime, before any sessions are created.
warmup (dict) --
The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
action (dict) --
The action that AgentCore Runtime runs for the hook. Specify exactly one action.
httpPost (dict) --
Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.
path (string) --
The path in the agent's container that AgentCore Runtime sends the POST request to.
port (integer) --
The port in the agent's container that AgentCore Runtime sends the POST request to. If you don't specify a port, the default is the runtime's server port: the port in the protocol configuration if one is set, otherwise the protocol's default port.
failureReason (string) --
The reason for failure if the AgentCore Runtime is in a failed state.
description (string) --
The description of the AgentCore Runtime.
workloadIdentityDetails (dict) --
The workload identity details for the AgentCore Runtime.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the workload identity template that the AgentCore Runtime uses, if any. A runtime that uses a template doesn't have an AgentCore Identity workload identity, so workloadIdentityDetails isn't returned for it.
agentRuntimeArtifact (dict) --
The artifact of the AgentCore Runtime.
containerConfiguration (dict) --
The container configuration for the agent artifact.
containerUri (string) --
The ECR URI of the container.
codeConfiguration (dict) --
The code configuration for the agent runtime artifact, including the source code location and execution settings.
code (dict) --
The source code location and configuration details.
s3 (dict) --
The Amazon Amazon S3 object that contains the source code for the agent runtime.
bucket (string) --
The name of the Amazon S3 bucket. This bucket contains the stored data.
prefix (string) --
The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
versionId (string) --
The version ID of the Amazon Amazon S3 object. If not specified, the latest version of the object is used.
runtime (string) --
The runtime environment for executing the agent code. Specify the programming language and version to use for the agent runtime. For valid values, see the list of supported runtimes.
entryPoint (list) --
The entry point for the code execution, specifying the function or method that should be invoked when the code runs.
(string) --
protocolConfiguration (dict) --
The protocol configuration for the AgentCore Runtime, including the protocol, port, and path on which the agent server is available.
serverProtocol (string) --
The server protocol for the agent runtime. This field specifies which protocol the agent runtime uses to communicate with clients.
port (integer) --
The port on which the agent server listens. The port must be between 8000 and 12000, excluding the reserved port 8443. When this field is omitted, the default is 8080 for HTTP and AGUI, 8000 for MCP, and 9000 for A2A.
path (string) --
The path on which the agent server accepts requests. The path must begin with /. When this field is omitted, the default is /invocations for HTTP and AGUI, /mcp for MCP, and / for A2A.
environmentVariables (dict) --
Environment variables set in the AgentCore Runtime environment.
(string) --
(string) --
authorizerConfiguration (dict) --
The authorizer configuration for the AgentCore Runtime.
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) --
The name of the custom claim field to check.
inboundTokenClaimValueType (string) --
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) --
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) --
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) --
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) --
The domain to override with a private endpoint.
privateEndpoint (dict) --
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) --
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
requestHeaderConfiguration (dict) --
Configuration for HTTP request headers that will be passed through to the runtime.
requestHeaderAllowlist (list) --
A list of HTTP request headers that are allowed to be passed through to the runtime.
(string) --
metadataConfiguration (dict) --
Configuration for microVM Metadata Service (MMDS) settings for the AgentCore Runtime.
requireMMDSV2 (boolean) --
Enables MMDSv2 (microVM Metadata Service Version 2) requirement for the agent runtime. When set to true, the runtime microVM will only accept MMDSv2 requests.
filesystemConfigurations (list) --
The filesystem configurations mounted into the AgentCore Runtime.
(dict) --
Configuration for a filesystem that can be mounted into the AgentCore Runtime.
sessionStorage (dict) --
Configuration for session storage. Session storage provides persistent storage that is preserved across AgentCore Runtime session invocations.
mountPath (string) --
The mount path for the session storage filesystem inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3FilesAccessPoint (dict) --
Configuration for an Amazon S3 Files access point to mount into the AgentCore Runtime.
accessPointArn (string) --
The ARN of the S3 Files access point to mount into the AgentCore Runtime.
mountPath (string) --
The mount path for the S3 Files access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
efsAccessPoint (dict) --
Configuration for an Amazon EFS access point to mount into the AgentCore Runtime.
accessPointArn (string) --
The ARN of the EFS access point to mount into the AgentCore Runtime.
mountPath (string) --
The mount path for the EFS access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
capacityProviderVolume (dict) --
Configuration for a capacity provider volume to mount into the AgentCore Runtime. This mounts a persistent volume that is defined on the capacity provider, referenced by its logical name.
volumeName (string) --
The logical name of the capacity provider volume to mount. This name must match a volume that is defined in the capacity provider's list of volumes.
mountPath (string) --
The mount path for the capacity provider volume inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3BucketMount (dict) --
Mounts an Amazon S3 bucket as a file system in the AgentCore Runtime.
bucket (string) --
The name of the S3 bucket to mount. You can specify a general purpose bucket or a directory bucket.
mountPath (string) --
The mount path for the S3 bucket inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
prefix (string) --
The key prefix to mount. Only objects under this prefix are visible at the mount path. To give each session its own prefix, include {runtimeSessionId} (for example, data/{runtimeSessionId}/). If you omit the prefix, the whole bucket is mounted.
s3BucketOwner (string) --
The Amazon Web Services account ID that must own the bucket. If you omit it, the bucket must be owned by the account that owns the AgentCore Runtime.
s3BucketRegion (string) --
The Amazon Web Services Region of the S3 bucket. If you omit it, the bucket must be in the same Region as the AgentCore Runtime.
capacityProviderConfiguration (dict) --
The capacity provider configuration for the AgentCore Runtime.
capacityProviderArn (string) --
The Amazon Resource Name (ARN) of the capacity provider to use for the AgentCore Runtime.
operatingSystemConfiguration (dict) --
The operating system configuration of the agents that Amazon Bedrock AgentCore Runtime runs on the capacity provider.
linux (dict) --
The operating system configuration of agents that run on Linux instances.
privilegeMode (string) --
The privilege mode of the agents. If you omit this field, the agents run in STANDARD privilege mode. The following values are possible:
STANDARD – The agent runs without elevated privileges. This is the default.
PRIVILEGED – The agent runs with elevated privileges on its instance. Use this mode for agents that build container images, run containers, or install system packages. A session that runs a PRIVILEGED agent runs only that agent.
platformVersion (string) --
The version of the runtime platform used by the AgentCore Runtime.
allowedPorts (list) --
The additional ports on the AgentCore Runtime that are reachable through the runtime's session URL.
(dict) --
A port or port range that is reachable through the runtime's session URL. Specify exactly one of port or portRange.
port (integer) --
A single port that is reachable through the runtime's session URL.
portRange (dict) --
An inclusive range of ports that are reachable through the runtime's session URL.
from (integer) --
The first port in the inclusive range.
to (integer) --
The last port in the inclusive range.
resourceConfigurations (list) --
The resource configurations for the AgentCore Runtime.
(dict) --
The resource configuration for an AgentCore Runtime.
minimumMemoryInMiB (integer) --
The minimum amount of memory, in mebibytes, to allocate to the AgentCore Runtime.
cpuConfigurations (list) --
The CPU configurations for the AgentCore Runtime.
(dict) --
The CPU configuration for an AgentCore Runtime.
architecture (string) --
The CPU architecture for the AgentCore Runtime.
quarantineStatus (string) --
The quarantine status of the AgentCore Runtime. This field is present only when the runtime is quarantined or its quarantine is being applied or lifted. A quarantined AgentCore Runtime can't be invoked.
{'quarantineStatus': 'QUARANTINING | QUARANTINED | UNQUARANTINING'}
Gets information about an Amazon Secure AgentEndpoint.
See also: AWS API Documentation
Request Syntax
client.get_agent_runtime_endpoint(
agentRuntimeId='string',
endpointName='string'
)
string
[REQUIRED]
The unique identifier of the AgentCore Runtime associated with the endpoint.
string
[REQUIRED]
The name of the AgentCore Runtime endpoint to retrieve.
dict
Response Syntax
{
'liveVersion': 'string',
'targetVersion': 'string',
'agentRuntimeEndpointArn': 'string',
'agentRuntimeArn': 'string',
'description': 'string',
'status': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED',
'createdAt': datetime(2015, 1, 1),
'lastUpdatedAt': datetime(2015, 1, 1),
'failureReason': 'string',
'name': 'string',
'id': 'string',
'quarantineStatus': 'QUARANTINING'|'QUARANTINED'|'UNQUARANTINING'
}
Response Structure
(dict) --
liveVersion (string) --
The currently deployed version of the AgentCore Runtime on the endpoint.
targetVersion (string) --
The target version of the AgentCore Runtime for the endpoint.
agentRuntimeEndpointArn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime endpoint.
agentRuntimeArn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime.
description (string) --
The description of the AgentCore Runtime endpoint.
status (string) --
The current status of the AgentCore Runtime endpoint.
createdAt (datetime) --
The timestamp when the AgentCore Runtime endpoint was created.
lastUpdatedAt (datetime) --
The timestamp when the AgentCore Runtime endpoint was last updated.
failureReason (string) --
The reason for failure if the AgentCore Runtime endpoint is in a failed state.
name (string) --
The name of the AgentCore Runtime endpoint.
id (string) --
The unique identifier of the AgentCore Runtime endpoint.
quarantineStatus (string) --
The quarantine status of the AgentCore Runtime endpoint. This field is present only when the endpoint is quarantined or its quarantine is being applied. Use GetAgentRuntime for the runtime's quarantine status.
{'workloadIdentityTemplateArn': 'string'}
Retrieves information about a specific Gateway.
See also: AWS API Documentation
Request Syntax
client.get_gateway(
gatewayIdentifier='string'
)
string
[REQUIRED]
The identifier of the gateway to retrieve.
dict
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',
'sessionConfiguration': {
'sessionTimeoutInSeconds': 123
},
'streamingConfiguration': {
'enableResponseStreaming': True|False
},
'disableMcpListToolsPagination': True|False
}
},
'authorizerType': 'CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
'authorizerConfiguration': {
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
'kmsKeyArn': 'string',
'customTransformConfiguration': {
'lambda': {
'arn': 'string'
}
},
'interceptorConfigurations': [
{
'interceptor': {
'lambda': {
'arn': 'string'
}
},
'interceptionPoints': [
'REQUEST'|'RESPONSE',
],
'inputConfiguration': {
'passRequestHeaders': True|False,
'payloadFilter': {
'exclude': [
{
'field': 'RESPONSE_BODY'
},
]
}
},
'responseInterceptionMode': 'BUFFERED'|'STREAM',
'responseStreamingConfiguration': {
'maxEventsPerInvocation': 123
}
},
],
'policyEngineConfiguration': {
'arn': 'string',
'mode': 'LOG_ONLY'|'ENFORCE'
},
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'exceptionLevel': 'DEBUG',
'webAclArn': 'string',
'wafConfiguration': {
'failureMode': 'FAIL_CLOSE'|'FAIL_OPEN'
},
'domainOverride': {
'defaultDomain': 'string',
'alternateDomains': [
'string',
]
},
'workloadIdentityTemplateArn': 'string'
}
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.
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.
sessionConfiguration (dict) --
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
sessionTimeoutInSeconds (integer) --
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).
streamingConfiguration (dict) --
The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
enableResponseStreaming (boolean) --
Indicates whether response streaming is enabled for the gateway. When set to true, the gateway streams responses from targets back to the client.
disableMcpListToolsPagination (boolean) --
Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses. For information about changing this value on an existing gateway, see UpdateGateway.
authorizerType (string) --
Authorizer type for the gateway.
authorizerConfiguration (dict) --
The authorizer configuration for the gateway.
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) --
The name of the custom claim field to check.
inboundTokenClaimValueType (string) --
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) --
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) --
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) --
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) --
The domain to override with a private endpoint.
privateEndpoint (dict) --
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) --
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
kmsKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the gateway.
customTransformConfiguration (dict) --
The custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
lambda (dict) --
The Lambda configuration for custom transformations. This configuration defines how the gateway uses a Lambda function to transform data.
arn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to transform data.
interceptorConfigurations (list) --
The interceptors configured on the gateway.
(dict) --
The configuration for an interceptor on a gateway. This structure defines settings for an interceptor that will be invoked during the invocation of the gateway.
interceptor (dict) --
The infrastructure settings of an interceptor configuration. This structure defines how the interceptor can be invoked.
lambda (dict) --
The details of the lambda function used for the interceptor.
arn (string) --
The arn of the lambda function to be invoked for the interceptor.
interceptionPoints (list) --
The supported points of interception. This field specifies which points during the gateway invocation to invoke the interceptor
(string) --
inputConfiguration (dict) --
The configuration for the input of the interceptor. This field specifies how the input to the interceptor is constructed
passRequestHeaders (boolean) --
Indicates whether to pass request headers as input into the interceptor. When set to true, request headers will be passed.
payloadFilter (dict) --
The filter that determines which parts of the request or response payload are passed as input to the interceptor.
exclude (list) --
The list of selectors that identify payload fields to exclude from the interceptor input.
(dict) --
A selector that identifies a payload field to exclude from the interceptor input.
field (string) --
The field to exclude from the interceptor input.
responseInterceptionMode (string) --
Specifies how the interceptor processes streamed target responses. You can set this field only on an interceptor that includes the RESPONSE interception point. Valid values include:
BUFFERED - The gateway collects the complete target response and then invokes the interceptor once. This is the default.
STREAM - The gateway sends a streamed target response to the interceptor in batches of events and returns each processed batch to the client as soon as it's ready. Non-streamed responses still use BUFFERED processing. If you specify STREAM, you must also specify responseStreamingConfiguration, and the input configuration can't exclude the response body.
responseStreamingConfiguration (dict) --
Specifies the batching settings for a streamed response. Specify this field only when responseInterceptionMode is STREAM. You must specify it for STREAM.
maxEventsPerInvocation (integer) --
Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
policyEngineConfiguration (dict) --
The policy engine configuration for the gateway.
arn (string) --
The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
mode (string) --
The enforcement mode for the policy engine. Valid values include:
LOG_ONLY - The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement.
ENFORCE - The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
workloadIdentityDetails (dict) --
The workload identity details for the gateway.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
exceptionLevel (string) --
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.
webAclArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services WAF web ACL associated with the gateway.
wafConfiguration (dict) --
The Amazon Web Services WAF configuration for the gateway.
failureMode (string) --
The failure mode that determines how the gateway handles requests when Amazon Web Services WAF is unreachable or times out. Valid values include:
FAIL_CLOSE - The gateway blocks requests when Amazon Web Services WAF cannot be evaluated.
FAIL_OPEN - The gateway allows requests when Amazon Web Services WAF cannot be evaluated.
domainOverride (dict) --
The public domain names that the gateway advertises in its OAuth discovery URLs instead of the inbound Host header.
defaultDomain (string) --
The default public domain name for the gateway. The gateway advertises this domain when a request doesn't select a specific domain.
alternateDomains (list) --
Additional public domain names for the gateway, up to 10. Don't repeat the default domain or list a domain more than once. A request can select one of these domains, or the default domain, with the x-amzn-bedrock-agentcore-gateway-domain header. The gateway rejects a request that selects a domain that isn't configured.
(string) --
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
{'credentialProviderConfigurations': {'credentialProvider': {'svidCredentialProvider': {'audiences': ['string'],
'signingAlgorithm': 'RS256 '
'| '
'ES384'}},
'credentialProviderType': {'JWT_SVID'}}}
Retrieves information about a specific gateway target.
See also: AWS API Documentation
Request Syntax
client.get_gateway_target(
gatewayIdentifier='string',
targetId='string'
)
string
[REQUIRED]
The identifier of the gateway that contains the target.
string
[REQUIRED]
The unique identifier of the target to retrieve.
dict
Response Syntax
{
'gatewayArn': 'string',
'targetId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED'|'SYNCHRONIZING'|'SYNCHRONIZE_UNSUCCESSFUL'|'CREATE_PENDING_AUTH'|'UPDATE_PENDING_AUTH'|'SYNCHRONIZE_PENDING_AUTH',
'statusReasons': [
'string',
],
'name': 'string',
'description': 'string',
'targetConfiguration': {
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
'credentialProviderConfigurations': [
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
'lastSynchronizedAt': datetime(2015, 1, 1),
'metadataConfiguration': {
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointManagedResources': [
{
'domain': 'string',
'resourceGatewayArn': 'string',
'resourceAssociationArn': 'string'
},
],
'authorizationData': {
'oauth2': {
'authorizationUrl': 'string',
'userId': 'string'
}
},
'protocolType': 'MCP'|'HTTP',
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
}
Response Structure
(dict) --
gatewayArn (string) --
The Amazon Resource Name (ARN) of the gateway.
targetId (string) --
The unique identifier of the gateway target.
createdAt (datetime) --
The timestamp when the gateway target was created.
updatedAt (datetime) --
The timestamp when the gateway target was last updated.
status (string) --
The current status of the gateway target.
statusReasons (list) --
The reasons for the current status of the gateway target.
(string) --
name (string) --
The name of the gateway target.
description (string) --
The description of the gateway target.
targetConfiguration (dict) --
The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) --
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) --
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) --
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) --
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) --
The ID of the API Gateway REST API.
stage (string) --
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) --
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) --
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) --
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) --
The HTTP method to expose for the specified path.
toolFilters (list) --
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) --
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) --
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) --
The source configuration identifying which connector to use.
connectorId (string) --
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) --
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) --
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) --
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) --
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) --
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) --
The source configuration identifying which HTTP connector to use.
connectorId (string) --
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) --
The source configuration identifying which inference connector to use.
connectorId (string) --
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) --
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) --
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) --
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
credentialProviderConfigurations (list) --
The credential provider configurations for the gateway target.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) --
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) --
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) --
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
lastSynchronizedAt (datetime) --
The last synchronization of the target.
metadataConfiguration (dict) --
The metadata configuration for HTTP header and query parameter propagation for the retrieved gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
privateEndpoint (dict) --
The private endpoint configuration for the gateway target.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointManagedResources (list) --
The managed resources created by the gateway for private endpoint connectivity.
(dict) --
Details of a resource created and managed by the gateway for private endpoint connectivity.
domain (string) --
The domain associated with this managed resource.
resourceGatewayArn (string) --
The ARN of the VPC Lattice resource gateway created in your account.
resourceAssociationArn (string) --
The ARN of the service network resource association.
authorizationData (dict) --
OAuth2 authorization data for the gateway target. This data is returned when a target is configured with a credential provider with authorization code grant type and requires user federation.
oauth2 (dict) --
OAuth2 authorization data for the gateway target.
authorizationUrl (string) --
The URL to initiate the authorization process. This URL is provided when the OAuth2 access token requires user authorization.
userId (string) --
The user identifier associated with the OAuth2 authorization session that is defined by AgentCore Gateway.
protocolType (string) --
The protocol type of the gateway target.
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the gateway target.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
{'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'providerCapabilities': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'availableMethods': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'inputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'settings': {'string': {}},
'url': 'string'}}}
Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.
See also: AWS API Documentation
Request Syntax
client.get_policy_engine(
policyEngineId='string'
)
string
[REQUIRED]
The unique identifier of the policy engine to be retrieved. This must be a valid policy engine ID that exists within the account.
dict
Response Syntax
{
'policyEngineId': 'string',
'name': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'policyEngineArn': 'string',
'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
'encryptionKeyArn': 'string',
'description': 'string',
'statusReasons': [
'string',
],
'policyInformationProviderConfiguration': {
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string',
'settings': {
'string': {...}|[...]|123|123.4|'string'|True|None
},
'providerCapabilities': {
'string': {
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'availableMethods': {
'string': {
'inputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
}
}
}
}
}
}
}
}
Response Structure
(dict) --
policyEngineId (string) --
The unique identifier of the retrieved policy engine. This matches the policy engine ID provided in the request and serves as the system identifier.
name (string) --
The customer-assigned name of the policy engine. This is the human-readable identifier that was specified when the policy engine was created.
createdAt (datetime) --
The timestamp when the policy engine was originally created.
updatedAt (datetime) --
The timestamp when the policy engine was last modified. This tracks the most recent changes to the policy engine configuration.
policyEngineArn (string) --
The Amazon Resource Name (ARN) of the policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements.
status (string) --
The current status of the policy engine.
encryptionKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
description (string) --
The human-readable description of the policy engine's purpose and scope. This helps administrators understand the policy engine's role in governance.
statusReasons (list) --
Additional information about the policy engine status. This provides details about any failures or the current state of the policy engine.
(string) --
policyInformationProviderConfiguration (dict) --
The guardrail providers registered on the policy engine, keyed by provider ID, including the built-in BedrockGuardrails provider. For each provider, the entry shows the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
(string) --
(dict) --
Describes a guardrail provider registered on a policy engine. It includes the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. It is one of the following:
For a third-party provider, the API key credential provider that stores your provider API key.
For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) --
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
settings (dict) --
The provider settings, keyed by setting name, including windowSize. You can't change these settings.
(string) --
(:ref:`document<document>`) --
providerCapabilities (dict) --
The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
(string) --
(dict) --
Describes a check that a guardrail provider offers: the arguments that it takes, the type of its result, and the methods that you can call on the result.
argumentTypes (list) --
The types of the arguments that the check takes, in order. For example, CheckPoint::Custom takes a profile name as a string, followed by the content to assess as a set.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the result that the check returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
availableMethods (dict) --
The methods that you can call on the result of the check, keyed by method name. For example, CheckPoint::Custom offers allowed, and checks with categories offer aggregations such as maxConfidenceScore and count.
(string) --
(dict) --
Describes a method that you can call on the result of a guardrail check. Methods include allowed, which reports whether a profile check allows the content, and the aggregations maxConfidenceScore, minConfidenceScore, count, and categories. For more information, see Aggregations.
inputType (dict) --
The type of the value that the method is called on.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
argumentTypes (list) --
The types of the arguments that the method takes, in order. The list is empty when the method takes no arguments.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the value that the method returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
{'items': {'workloadIdentityTemplateArn': 'string'}}
Lists all gateways in the account.
See also: AWS API Documentation
Request Syntax
client.list_gateways(
maxResults=123,
nextToken='string'
)
integer
The 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.
string
If 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.
dict
Response Syntax
{
'items': [
{
'gatewayId': 'string',
'name': 'string',
'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED',
'description': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'authorizerType': 'CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
'protocolType': 'MCP',
'workloadIdentityTemplateArn': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
items (list) --
The list of gateway summaries.
(dict) --
Contains summary information about a gateway.
gatewayId (string) --
The unique identifier of the gateway.
name (string) --
The name of the gateway.
status (string) --
The current status of the gateway.
description (string) --
The description of the gateway.
createdAt (datetime) --
The timestamp when the gateway was created.
updatedAt (datetime) --
The timestamp when the gateway was last updated.
authorizerType (string) --
The type of authorizer used by the gateway.
protocolType (string) --
The protocol type used by the gateway.
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
nextToken (string) --
If the total number of results is greater than the maxResults value provided in the request, use this token when making another request in the nextToken field to return the next batch of results.
{'policyEngines': {'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'providerCapabilities': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'availableMethods': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'inputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'settings': {'string': {}},
'url': 'string'}}}}
Retrieves a list of policy engines within the AgentCore Policy system. This operation supports pagination to help administrators discover and manage policy engines across their account. Each policy engine serves as a container for related policies.
See also: AWS API Documentation
Request Syntax
client.list_policy_engines(
nextToken='string',
maxResults=123
)
string
A pagination token returned from a previous ListPolicyEngines call. Use this token to retrieve the next page of results when the response is paginated.
integer
The maximum number of policy engines to return in a single response. If not specified, the default is 10 policy engines per page, with a maximum of 100 per page.
dict
Response Syntax
{
'policyEngines': [
{
'policyEngineId': 'string',
'name': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'policyEngineArn': 'string',
'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
'encryptionKeyArn': 'string',
'description': 'string',
'statusReasons': [
'string',
],
'policyInformationProviderConfiguration': {
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string',
'settings': {
'string': {...}|[...]|123|123.4|'string'|True|None
},
'providerCapabilities': {
'string': {
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'availableMethods': {
'string': {
'inputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
}
}
}
}
}
}
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
policyEngines (list) --
An array of policy engine objects that exist in the account. Each policy engine object contains the engine metadata, status, and key identifiers for further operations.
(dict) --
Represents a policy engine resource within the AgentCore Policy system. Policy engines serve as containers for grouping related policies and provide the execution context for policy evaluation and management. Each policy engine can be associated with one Gateway (one engine per Gateway), where it intercepts all agent tool calls and evaluates them against the contained policies before allowing tools to execute. The policy engine maintains the Cedar schema generated from the Gateway's tool manifest, ensuring that policies are validated against the actual tools and parameters available. Policy engines support two enforcement modes that can be configured when associating with a Gateway: log-only mode for testing (evaluates decisions without blocking) and enforce mode for production (actively allows or denies based on policy evaluation).
policyEngineId (string) --
The unique identifier for the policy engine. This system-generated identifier consists of the user name plus a 10-character generated suffix and serves as the primary key for policy engine operations.
name (string) --
The customer-assigned immutable name for the policy engine. This human-readable identifier must be unique within the account and cannot exceed 48 characters.
createdAt (datetime) --
The timestamp when the policy engine was originally created. This is automatically set by the service and used for auditing and lifecycle management.
updatedAt (datetime) --
The timestamp when the policy engine was last modified. This tracks the most recent changes to the policy engine configuration or metadata.
policyEngineArn (string) --
The Amazon Resource Name (ARN) of the policy engine. This globally unique identifier can be used for cross-service references and IAM policy statements.
status (string) --
The current status of the policy engine.
encryptionKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
description (string) --
A human-readable description of the policy engine's purpose and scope. Limited to 4,096 characters, this helps administrators understand the policy engine's role in the overall governance strategy.
statusReasons (list) --
Additional information about the policy engine status. This provides details about any failures or the current state of the policy engine lifecycle.
(string) --
policyInformationProviderConfiguration (dict) --
The guardrail providers registered on this policy engine, keyed by provider ID, including the built-in BedrockGuardrails provider.
(string) --
(dict) --
Describes a guardrail provider registered on a policy engine. It includes the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. It is one of the following:
For a third-party provider, the API key credential provider that stores your provider API key.
For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) --
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
settings (dict) --
The provider settings, keyed by setting name, including windowSize. You can't change these settings.
(string) --
(:ref:`document<document>`) --
providerCapabilities (dict) --
The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
(string) --
(dict) --
Describes a check that a guardrail provider offers: the arguments that it takes, the type of its result, and the methods that you can call on the result.
argumentTypes (list) --
The types of the arguments that the check takes, in order. For example, CheckPoint::Custom takes a profile name as a string, followed by the content to assess as a set.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the result that the check returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
availableMethods (dict) --
The methods that you can call on the result of the check, keyed by method name. For example, CheckPoint::Custom offers allowed, and checks with categories offer aggregations such as maxConfidenceScore and count.
(string) --
(dict) --
Describes a method that you can call on the result of a guardrail check. Methods include allowed, which reports whether a profile check allows the content, and the aggregations maxConfidenceScore, minConfidenceScore, count, and categories. For more information, see Aggregations.
inputType (dict) --
The type of the value that the method is called on.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
argumentTypes (list) --
The types of the arguments that the method takes, in order. The list is empty when the method takes no arguments.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the value that the method returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
nextToken (string) --
A pagination token that can be used in subsequent ListPolicyEngines calls to retrieve additional results. This token is only present when there are more results available.
{'targets': {'credentialProviderConfigurations': {'credentialProvider': {'svidCredentialProvider': {'audiences': ['string'],
'signingAlgorithm': 'RS256 '
'| '
'ES384'}},
'credentialProviderType': {'JWT_SVID'}}}}
Synchronizes the gateway targets by fetching the latest tool definitions from the target endpoints.
You cannot synchronize a target that is in a pending authorization state ( CREATE_PENDING_AUTH, UPDATE_PENDING_AUTH, or SYNCHRONIZE_PENDING_AUTH). Wait for the authorization to complete or fail before synchronizing.
You cannot synchronize a target that has a static tool schema ( mcpToolSchema) configured. Remove the static schema through an UpdateGatewayTarget call to enable dynamic tool synchronization.
See also: AWS API Documentation
Request Syntax
client.synchronize_gateway_targets(
gatewayIdentifier='string',
targetIdList=[
'string',
]
)
string
[REQUIRED]
The gateway Identifier.
list
[REQUIRED]
The target ID list.
(string) --
dict
Response Syntax
{
'targets': [
{
'gatewayArn': 'string',
'targetId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED'|'SYNCHRONIZING'|'SYNCHRONIZE_UNSUCCESSFUL'|'CREATE_PENDING_AUTH'|'UPDATE_PENDING_AUTH'|'SYNCHRONIZE_PENDING_AUTH',
'statusReasons': [
'string',
],
'name': 'string',
'description': 'string',
'targetConfiguration': {
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
'credentialProviderConfigurations': [
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
'lastSynchronizedAt': datetime(2015, 1, 1),
'metadataConfiguration': {
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointManagedResources': [
{
'domain': 'string',
'resourceGatewayArn': 'string',
'resourceAssociationArn': 'string'
},
],
'authorizationData': {
'oauth2': {
'authorizationUrl': 'string',
'userId': 'string'
}
},
'protocolType': 'MCP'|'HTTP',
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
},
]
}
Response Structure
(dict) --
targets (list) --
The gateway targets for synchronization.
(dict) --
The gateway target.
gatewayArn (string) --
The Amazon Resource Name (ARN) of the gateway target.
targetId (string) --
The target ID.
createdAt (datetime) --
The date and time at which the target was created.
updatedAt (datetime) --
The date and time at which the target was updated.
status (string) --
The status of the gateway target.
statusReasons (list) --
The status reasons for the target status.
(string) --
name (string) --
The name of the gateway target.
description (string) --
The description for the gateway target.
targetConfiguration (dict) --
The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) --
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) --
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) --
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) --
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) --
The ID of the API Gateway REST API.
stage (string) --
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) --
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) --
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) --
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) --
The HTTP method to expose for the specified path.
toolFilters (list) --
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) --
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) --
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) --
The source configuration identifying which connector to use.
connectorId (string) --
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) --
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) --
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) --
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) --
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) --
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) --
The source configuration identifying which HTTP connector to use.
connectorId (string) --
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) --
The source configuration identifying which inference connector to use.
connectorId (string) --
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) --
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) --
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) --
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
credentialProviderConfigurations (list) --
The provider configurations.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) --
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) --
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) --
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
lastSynchronizedAt (datetime) --
The last synchronization time.
metadataConfiguration (dict) --
The metadata configuration for HTTP header and query parameter propagation to and from this gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointManagedResources (list) --
A list of managed resources created by the gateway for private endpoint connectivity. These resources are created in your account when you use a managed VPC Lattice resource configuration.
(dict) --
Details of a resource created and managed by the gateway for private endpoint connectivity.
domain (string) --
The domain associated with this managed resource.
resourceGatewayArn (string) --
The ARN of the VPC Lattice resource gateway created in your account.
resourceAssociationArn (string) --
The ARN of the service network resource association.
authorizationData (dict) --
OAuth2 authorization data for the gateway target. This data is returned when a target is configured with a credential provider with authorization code grant type and requires user federation.
oauth2 (dict) --
OAuth2 authorization data for the gateway target.
authorizationUrl (string) --
The URL to initiate the authorization process. This URL is provided when the OAuth2 access token requires user authorization.
userId (string) --
The user identifier associated with the OAuth2 authorization session that is defined by AgentCore Gateway.
protocolType (string) --
The protocol type of the gateway target.
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the gateway target.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
{'workloadIdentityTemplateArn': 'string'}
Updates an existing Amazon Secure Agent.
See also: AWS API Documentation
Request Syntax
client.update_agent_runtime(
agentRuntimeId='string',
agentRuntimeArtifact={
'containerConfiguration': {
'containerUri': 'string'
},
'codeConfiguration': {
'code': {
's3': {
'bucket': 'string',
'prefix': 'string',
'versionId': 'string'
}
},
'runtime': 'PYTHON_3_10'|'PYTHON_3_11'|'PYTHON_3_12'|'PYTHON_3_13'|'PYTHON_3_14'|'NODE_22',
'entryPoint': [
'string',
]
}
},
roleArn='string',
networkConfiguration={
'networkMode': 'PUBLIC'|'VPC',
'networkModeConfig': {
'securityGroups': [
'string',
],
'subnets': [
'string',
],
'requireServiceS3Endpoint': True|False
}
},
description='string',
authorizerConfiguration={
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
requestHeaderConfiguration={
'requestHeaderAllowlist': [
'string',
]
},
protocolConfiguration={
'serverProtocol': 'MCP'|'HTTP'|'A2A'|'AGUI',
'port': 123,
'path': 'string'
},
lifecycleConfiguration={
'idleRuntimeSessionTimeout': 123,
'maxLifetime': 123
},
hooksConfiguration={
'build': {
'warmup': {
'action': {
'httpPost': {
'path': 'string',
'port': 123
}
}
}
}
},
metadataConfiguration={
'requireMMDSV2': True|False
},
environmentVariables={
'string': 'string'
},
filesystemConfigurations=[
{
'sessionStorage': {
'mountPath': 'string'
},
's3FilesAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'efsAccessPoint': {
'accessPointArn': 'string',
'mountPath': 'string'
},
'capacityProviderVolume': {
'volumeName': 'string',
'mountPath': 'string'
},
's3BucketMount': {
'bucket': 'string',
'mountPath': 'string',
'prefix': 'string',
's3BucketOwner': 'string',
's3BucketRegion': 'string'
}
},
],
capacityProviderConfiguration={
'capacityProviderArn': 'string',
'operatingSystemConfiguration': {
'linux': {
'privilegeMode': 'STANDARD'|'PRIVILEGED'
}
}
},
platformVersion='string',
allowedPorts=[
{
'port': 123,
'portRange': {
'from': 123,
'to': 123
}
},
],
resourceConfigurations=[
{
'minimumMemoryInMiB': 123
},
],
clientToken='string',
cpuConfigurations=[
{
'architecture': 'ARM64'|'X86_64'
},
],
workloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The unique identifier of the AgentCore Runtime to update.
dict
[REQUIRED]
The updated artifact of the AgentCore Runtime.
containerConfiguration (dict) --
The container configuration for the agent artifact.
containerUri (string) -- [REQUIRED]
The ECR URI of the container.
codeConfiguration (dict) --
The code configuration for the agent runtime artifact, including the source code location and execution settings.
code (dict) -- [REQUIRED]
The source code location and configuration details.
s3 (dict) --
The Amazon Amazon S3 object that contains the source code for the agent runtime.
bucket (string) -- [REQUIRED]
The name of the Amazon S3 bucket. This bucket contains the stored data.
prefix (string) -- [REQUIRED]
The prefix for objects in the Amazon S3 bucket. This prefix is added to the object keys to organize the data.
versionId (string) --
The version ID of the Amazon Amazon S3 object. If not specified, the latest version of the object is used.
runtime (string) -- [REQUIRED]
The runtime environment for executing the agent code. Specify the programming language and version to use for the agent runtime. For valid values, see the list of supported runtimes.
entryPoint (list) -- [REQUIRED]
The entry point for the code execution, specifying the function or method that should be invoked when the code runs.
(string) --
string
[REQUIRED]
The updated IAM role ARN that provides permissions for the AgentCore Runtime.
dict
The updated network configuration for the AgentCore Runtime.
networkMode (string) -- [REQUIRED]
The network mode for the AgentCore Runtime.
networkModeConfig (dict) --
The network mode configuration for the AgentCore Runtime.
securityGroups (list) -- [REQUIRED]
The security groups associated with the VPC configuration.
(string) --
subnets (list) -- [REQUIRED]
The subnets associated with the VPC configuration.
(string) --
requireServiceS3Endpoint (boolean) --
Controls whether a service-managed Amazon S3 gateway endpoint is provisioned in the VPC network topology for the agent runtime. This gateway is used by Amazon Bedrock AgentCore Runtime to download code and container images during agent startup.
Starting May 5, 2026, Amazon Bedrock AgentCore Runtime is gradually rolling out a change to how network isolation is configured for VPC mode agents. Agent runtimes created on or after this rollout will no longer include the service-managed Amazon S3 gateway. Instead, all network access, including to Amazon S3, is governed exclusively by your VPC configuration. This field cannot be set on agent runtimes created after the rollout. Passing this field in an UpdateAgentRuntime request for these agent runtimes returns a ValidationException.
Agent runtimes created before the rollout are not affected and continue to operate with the service-managed Amazon S3 gateway. To enforce full VPC network isolation on these existing agent runtimes, set this field to false via the UpdateAgentRuntime API. Before opting out, ensure your VPC provides the Amazon S3 access required for agent startup. If this field is not specified or is set to true, the service-managed Amazon S3 gateway remains provisioned.
This field is only supported in the UpdateAgentRuntime API for pre-rollout agent runtimes. Passing this field in a CreateAgentRuntime request returns a ValidationException.
string
The updated description of the AgentCore Runtime.
dict
The updated authorizer configuration for the AgentCore Runtime.
customJWTAuthorizer (dict) --
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) -- [REQUIRED]
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) -- [REQUIRED]
The name of the custom claim field to check.
inboundTokenClaimValueType (string) -- [REQUIRED]
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) -- [REQUIRED]
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) -- [REQUIRED]
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) -- [REQUIRED]
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) -- [REQUIRED]
The domain to override with a private endpoint.
privateEndpoint (dict) -- [REQUIRED]
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
dict
The updated configuration for HTTP request headers that will be passed through to the runtime.
requestHeaderAllowlist (list) --
A list of HTTP request headers that are allowed to be passed through to the runtime.
(string) --
dict
The updated protocol configuration for the AgentCore Runtime, including the protocol, port, and path on which the agent server is available.
serverProtocol (string) -- [REQUIRED]
The server protocol for the agent runtime. This field specifies which protocol the agent runtime uses to communicate with clients.
port (integer) --
The port on which the agent server listens. The port must be between 8000 and 12000, excluding the reserved port 8443. When this field is omitted, the default is 8080 for HTTP and AGUI, 8000 for MCP, and 9000 for A2A.
path (string) --
The path on which the agent server accepts requests. The path must begin with /. When this field is omitted, the default is /invocations for HTTP and AGUI, /mcp for MCP, and / for A2A.
dict
The updated life cycle configuration for the AgentCore Runtime.
idleRuntimeSessionTimeout (integer) --
Timeout in seconds for idle runtime sessions. When a session remains idle for this duration, it will be automatically terminated. Default: 900 seconds (15 minutes).
maxLifetime (integer) --
Maximum lifetime for the instance in seconds. Once reached, instances will be automatically terminated and replaced. Default: 28800 seconds (8 hours).
dict
The updated lifecycle hooks configuration for the AgentCore Runtime.
build (dict) --
The hooks that run when you create or update the AgentCore Runtime, before any sessions are created.
warmup (dict) --
The hook that warms up your agent before any sessions are created. Use this hook to load the resources that your sessions need, such as models, libraries, or caches. Your hook must complete within 120 seconds.
action (dict) -- [REQUIRED]
The action that AgentCore Runtime runs for the hook. Specify exactly one action.
httpPost (dict) --
Sends an HTTP POST request to your agent's container on the specified port and path to run the hook. The hook succeeds if your container returns a 2xx response. The hook fails if your container returns any other response or doesn't respond before the hook times out.
path (string) -- [REQUIRED]
The path in the agent's container that AgentCore Runtime sends the POST request to.
port (integer) --
The port in the agent's container that AgentCore Runtime sends the POST request to. If you don't specify a port, the default is the runtime's server port: the port in the protocol configuration if one is set, otherwise the protocol's default port.
dict
The updated configuration for microVM Metadata Service (MMDS) settings for the AgentCore Runtime.
requireMMDSV2 (boolean) -- [REQUIRED]
Enables MMDSv2 (microVM Metadata Service Version 2) requirement for the agent runtime. When set to true, the runtime microVM will only accept MMDSv2 requests.
dict
Updated environment variables to set in the AgentCore Runtime environment.
(string) --
(string) --
list
The updated filesystem configurations to mount into the AgentCore Runtime.
(dict) --
Configuration for a filesystem that can be mounted into the AgentCore Runtime.
sessionStorage (dict) --
Configuration for session storage. Session storage provides persistent storage that is preserved across AgentCore Runtime session invocations.
mountPath (string) -- [REQUIRED]
The mount path for the session storage filesystem inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3FilesAccessPoint (dict) --
Configuration for an Amazon S3 Files access point to mount into the AgentCore Runtime.
accessPointArn (string) -- [REQUIRED]
The ARN of the S3 Files access point to mount into the AgentCore Runtime.
mountPath (string) -- [REQUIRED]
The mount path for the S3 Files access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
efsAccessPoint (dict) --
Configuration for an Amazon EFS access point to mount into the AgentCore Runtime.
accessPointArn (string) -- [REQUIRED]
The ARN of the EFS access point to mount into the AgentCore Runtime.
mountPath (string) -- [REQUIRED]
The mount path for the EFS access point inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
capacityProviderVolume (dict) --
Configuration for a capacity provider volume to mount into the AgentCore Runtime. This mounts a persistent volume that is defined on the capacity provider, referenced by its logical name.
volumeName (string) -- [REQUIRED]
The logical name of the capacity provider volume to mount. This name must match a volume that is defined in the capacity provider's list of volumes.
mountPath (string) -- [REQUIRED]
The mount path for the capacity provider volume inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
s3BucketMount (dict) --
Mounts an Amazon S3 bucket as a file system in the AgentCore Runtime.
bucket (string) -- [REQUIRED]
The name of the S3 bucket to mount. You can specify a general purpose bucket or a directory bucket.
mountPath (string) -- [REQUIRED]
The mount path for the S3 bucket inside the AgentCore Runtime. The path must be under /mnt with exactly one subdirectory level (for example, /mnt/data).
prefix (string) --
The key prefix to mount. Only objects under this prefix are visible at the mount path. To give each session its own prefix, include {runtimeSessionId} (for example, data/{runtimeSessionId}/). If you omit the prefix, the whole bucket is mounted.
s3BucketOwner (string) --
The Amazon Web Services account ID that must own the bucket. If you omit it, the bucket must be owned by the account that owns the AgentCore Runtime.
s3BucketRegion (string) --
The Amazon Web Services Region of the S3 bucket. If you omit it, the bucket must be in the same Region as the AgentCore Runtime.
dict
The updated capacity provider configuration for the AgentCore Runtime.
capacityProviderArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the capacity provider to use for the AgentCore Runtime.
operatingSystemConfiguration (dict) --
The operating system configuration of the agents that Amazon Bedrock AgentCore Runtime runs on the capacity provider.
linux (dict) --
The operating system configuration of agents that run on Linux instances.
privilegeMode (string) --
The privilege mode of the agents. If you omit this field, the agents run in STANDARD privilege mode. The following values are possible:
STANDARD – The agent runs without elevated privileges. This is the default.
PRIVILEGED – The agent runs with elevated privileges on its instance. Use this mode for agents that build container images, run containers, or install system packages. A session that runs a PRIVILEGED agent runs only that agent.
string
The updated version of the runtime platform to use for the AgentCore Runtime.
list
The updated additional ports on the AgentCore Runtime that are reachable through the runtime's session URL. Specify one to five non-overlapping entries, each containing either a single port or an inclusive port range. Ports must be between 8000 and 12000, excluding the reserved port 8443.
(dict) --
A port or port range that is reachable through the runtime's session URL. Specify exactly one of port or portRange.
port (integer) --
A single port that is reachable through the runtime's session URL.
portRange (dict) --
An inclusive range of ports that are reachable through the runtime's session URL.
from (integer) -- [REQUIRED]
The first port in the inclusive range.
to (integer) -- [REQUIRED]
The last port in the inclusive range.
list
The updated resource configurations for the AgentCore Runtime. You can specify at most one resource configuration.
(dict) --
The resource configuration for an AgentCore Runtime.
minimumMemoryInMiB (integer) -- [REQUIRED]
The minimum amount of memory, in mebibytes, to allocate to the AgentCore Runtime.
string
A unique, case-sensitive identifier to ensure idempotency of the request.
This field is autopopulated if not provided.
list
The CPU configurations for the AgentCore Runtime. Immutable after creation. Supported only with Runtime platform version V2.
(dict) --
The CPU configuration for an AgentCore Runtime.
architecture (string) -- [REQUIRED]
The CPU architecture for the AgentCore Runtime.
string
The Amazon Resource Name (ARN) of a workload identity template to replace the runtime's current template. You can change the template only on a runtime that was created with one; a runtime created without a template can't have one added. Omit this field to keep the runtime's current template. The new template must be in your own account or owned by your organization, and you need the iam:PassWorkloadIdentityTemplate permission to pass it.
dict
Response Syntax
{
'agentRuntimeArn': 'string',
'agentRuntimeId': 'string',
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'workloadIdentityTemplateArn': 'string',
'agentRuntimeVersion': 'string',
'createdAt': datetime(2015, 1, 1),
'lastUpdatedAt': datetime(2015, 1, 1),
'status': 'CREATING'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'READY'|'DELETING'|'DELETE_FAILED'
}
Response Structure
(dict) --
agentRuntimeArn (string) --
The Amazon Resource Name (ARN) of the updated AgentCore Runtime.
agentRuntimeId (string) --
The unique identifier of the updated AgentCore Runtime.
workloadIdentityDetails (dict) --
The workload identity details for the updated AgentCore Runtime.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the workload identity template that the updated AgentCore Runtime uses.
agentRuntimeVersion (string) --
The version of the updated AgentCore Runtime.
createdAt (datetime) --
The timestamp when the AgentCore Runtime was created.
lastUpdatedAt (datetime) --
The timestamp when the AgentCore Runtime was last updated.
status (string) --
The current status of the updated AgentCore Runtime.
{'workloadIdentityTemplateArn': 'string'}
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.
See also: AWS API Documentation
Request Syntax
client.update_gateway(
gatewayIdentifier='string',
name='string',
description='string',
roleArn='string',
protocolType='MCP',
protocolConfiguration={
'mcp': {
'supportedVersions': [
'string',
],
'instructions': 'string',
'searchType': 'SEMANTIC',
'sessionConfiguration': {
'sessionTimeoutInSeconds': 123
},
'streamingConfiguration': {
'enableResponseStreaming': True|False
},
'disableMcpListToolsPagination': True|False
}
},
authorizerType='CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
authorizerConfiguration={
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
kmsKeyArn='string',
customTransformConfiguration={
'lambda': {
'arn': 'string'
}
},
interceptorConfigurations=[
{
'interceptor': {
'lambda': {
'arn': 'string'
}
},
'interceptionPoints': [
'REQUEST'|'RESPONSE',
],
'inputConfiguration': {
'passRequestHeaders': True|False,
'payloadFilter': {
'exclude': [
{
'field': 'RESPONSE_BODY'
},
]
}
},
'responseInterceptionMode': 'BUFFERED'|'STREAM',
'responseStreamingConfiguration': {
'maxEventsPerInvocation': 123
}
},
],
policyEngineConfiguration={
'arn': 'string',
'mode': 'LOG_ONLY'|'ENFORCE'
},
exceptionLevel='DEBUG',
wafConfiguration={
'failureMode': 'FAIL_CLOSE'|'FAIL_OPEN'
},
domainOverride={
'defaultDomain': 'string',
'alternateDomains': [
'string',
]
},
workloadIdentityTemplateArn='string'
)
string
[REQUIRED]
The identifier of the gateway to update.
string
[REQUIRED]
The name of the gateway. This name must be the same as the one when the gateway was created.
string
The updated description for the gateway.
string
[REQUIRED]
The updated IAM role ARN that provides permissions for the gateway.
string
The updated protocol type for the gateway.
dict
The configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
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.
sessionConfiguration (dict) --
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
sessionTimeoutInSeconds (integer) --
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).
streamingConfiguration (dict) --
The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
enableResponseStreaming (boolean) --
Indicates whether response streaming is enabled for the gateway. When set to true, the gateway streams responses from targets back to the client.
disableMcpListToolsPagination (boolean) --
Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses. For information about changing this value on an existing gateway, see UpdateGateway.
string
[REQUIRED]
The updated authorizer type for the gateway.
dict
The updated authorizer configuration for the gateway.
customJWTAuthorizer (dict) --
The inbound JWT-based authorization, specifying how incoming requests should be authenticated.
discoveryUrl (string) -- [REQUIRED]
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) -- [REQUIRED]
The name of the custom claim field to check.
inboundTokenClaimValueType (string) -- [REQUIRED]
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) -- [REQUIRED]
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) -- [REQUIRED]
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) -- [REQUIRED]
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) -- [REQUIRED]
The domain to override with a private endpoint.
privateEndpoint (dict) -- [REQUIRED]
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
string
The updated ARN of the KMS key used to encrypt the gateway.
dict
The updated custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
lambda (dict) --
The Lambda configuration for custom transformations. This configuration defines how the gateway uses a Lambda function to transform data.
arn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to transform data.
list
The updated interceptor configurations for the gateway.
(dict) --
The configuration for an interceptor on a gateway. This structure defines settings for an interceptor that will be invoked during the invocation of the gateway.
interceptor (dict) -- [REQUIRED]
The infrastructure settings of an interceptor configuration. This structure defines how the interceptor can be invoked.
lambda (dict) --
The details of the lambda function used for the interceptor.
arn (string) -- [REQUIRED]
The arn of the lambda function to be invoked for the interceptor.
interceptionPoints (list) -- [REQUIRED]
The supported points of interception. This field specifies which points during the gateway invocation to invoke the interceptor
(string) --
inputConfiguration (dict) --
The configuration for the input of the interceptor. This field specifies how the input to the interceptor is constructed
passRequestHeaders (boolean) -- [REQUIRED]
Indicates whether to pass request headers as input into the interceptor. When set to true, request headers will be passed.
payloadFilter (dict) --
The filter that determines which parts of the request or response payload are passed as input to the interceptor.
exclude (list) -- [REQUIRED]
The list of selectors that identify payload fields to exclude from the interceptor input.
(dict) --
A selector that identifies a payload field to exclude from the interceptor input.
field (string) --
The field to exclude from the interceptor input.
responseInterceptionMode (string) --
Specifies how the interceptor processes streamed target responses. You can set this field only on an interceptor that includes the RESPONSE interception point. Valid values include:
BUFFERED - The gateway collects the complete target response and then invokes the interceptor once. This is the default.
STREAM - The gateway sends a streamed target response to the interceptor in batches of events and returns each processed batch to the client as soon as it's ready. Non-streamed responses still use BUFFERED processing. If you specify STREAM, you must also specify responseStreamingConfiguration, and the input configuration can't exclude the response body.
responseStreamingConfiguration (dict) --
Specifies the batching settings for a streamed response. Specify this field only when responseInterceptionMode is STREAM. You must specify it for STREAM.
maxEventsPerInvocation (integer) --
Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
dict
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.
arn (string) -- [REQUIRED]
The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
mode (string) -- [REQUIRED]
The enforcement mode for the policy engine. Valid values include:
LOG_ONLY - The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement.
ENFORCE - The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
string
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.
dict
The updated Amazon Web Services WAF configuration for the gateway.
failureMode (string) --
The failure mode that determines how the gateway handles requests when Amazon Web Services WAF is unreachable or times out. Valid values include:
FAIL_CLOSE - The gateway blocks requests when Amazon Web Services WAF cannot be evaluated.
FAIL_OPEN - The gateway allows requests when Amazon Web Services WAF cannot be evaluated.
dict
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.
defaultDomain (string) -- [REQUIRED]
The default public domain name for the gateway. The gateway advertises this domain when a request doesn't select a specific domain.
alternateDomains (list) --
Additional public domain names for the gateway, up to 10. Don't repeat the default domain or list a domain more than once. A request can select one of these domains, or the default domain, with the x-amzn-bedrock-agentcore-gateway-domain header. The gateway rejects a request that selects a domain that isn't configured.
(string) --
string
The updated Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
dict
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',
'sessionConfiguration': {
'sessionTimeoutInSeconds': 123
},
'streamingConfiguration': {
'enableResponseStreaming': True|False
},
'disableMcpListToolsPagination': True|False
}
},
'authorizerType': 'CUSTOM_JWT'|'AWS_IAM'|'NONE'|'AUTHENTICATE_ONLY',
'authorizerConfiguration': {
'customJWTAuthorizer': {
'discoveryUrl': 'string',
'allowedAudience': [
'string',
],
'allowedClients': [
'string',
],
'allowedScopes': [
'string',
],
'advertisedScopeMapping': {
'string': 'string'
},
'customClaims': [
{
'inboundTokenClaimName': 'string',
'inboundTokenClaimValueType': 'STRING'|'STRING_ARRAY',
'authorizingClaimMatchValue': {
'claimMatchValue': {
'matchValueString': 'string',
'matchValueStringList': [
'string',
]
},
'claimMatchOperator': 'EQUALS'|'CONTAINS'|'CONTAINS_ANY'
}
},
],
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointOverrides': [
{
'domain': 'string',
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
}
},
],
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
],
'allowedWorkloadConfiguration': {
'hostingEnvironments': [
{
'arn': 'string'
},
],
'workloadIdentities': [
'string',
]
}
}
},
'kmsKeyArn': 'string',
'customTransformConfiguration': {
'lambda': {
'arn': 'string'
}
},
'interceptorConfigurations': [
{
'interceptor': {
'lambda': {
'arn': 'string'
}
},
'interceptionPoints': [
'REQUEST'|'RESPONSE',
],
'inputConfiguration': {
'passRequestHeaders': True|False,
'payloadFilter': {
'exclude': [
{
'field': 'RESPONSE_BODY'
},
]
}
},
'responseInterceptionMode': 'BUFFERED'|'STREAM',
'responseStreamingConfiguration': {
'maxEventsPerInvocation': 123
}
},
],
'policyEngineConfiguration': {
'arn': 'string',
'mode': 'LOG_ONLY'|'ENFORCE'
},
'workloadIdentityDetails': {
'workloadIdentityArn': 'string'
},
'exceptionLevel': 'DEBUG',
'webAclArn': 'string',
'wafConfiguration': {
'failureMode': 'FAIL_CLOSE'|'FAIL_OPEN'
},
'domainOverride': {
'defaultDomain': 'string',
'alternateDomains': [
'string',
]
},
'workloadIdentityTemplateArn': 'string'
}
Response Structure
(dict) --
gatewayArn (string) --
The Amazon Resource Name (ARN) of the updated gateway.
gatewayId (string) --
The unique identifier of the updated gateway.
gatewayUrl (string) --
An endpoint for invoking the updated 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 updated gateway.
statusReasons (list) --
The reasons for the current status of the updated gateway.
(string) --
name (string) --
The name of the gateway.
description (string) --
The updated description of the gateway.
roleArn (string) --
The updated IAM role ARN that provides permissions for the gateway.
protocolType (string) --
The updated protocol type for the gateway.
protocolConfiguration (dict) --
The configuration for a gateway protocol. This structure defines how the gateway communicates with external services.
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.
sessionConfiguration (dict) --
The session configuration for the MCP gateway. This configuration controls session behavior, including session timeout settings.
sessionTimeoutInSeconds (integer) --
The session timeout in seconds. After this timeout, the session expires and subsequent requests to this session will receive an error. The minimum value is 900 seconds (15 minutes), the maximum value is 28800 seconds (8 hours), and the default value is 3600 seconds (1 hour).
streamingConfiguration (dict) --
The streaming configuration for the MCP gateway. This configuration controls whether response streaming is enabled for the gateway.
enableResponseStreaming (boolean) --
Indicates whether response streaming is enabled for the gateway. When set to true, the gateway streams responses from targets back to the client.
disableMcpListToolsPagination (boolean) --
Specifies whether the gateway disables pagination for the Model Context Protocol (MCP) tools/list operation. When set to true, the gateway returns the complete list of tools in a single response without a pagination cursor. When set to false or omitted, the gateway returns tools in paginated responses. For information about changing this value on an existing gateway, see UpdateGateway.
authorizerType (string) --
The updated authorizer type for the gateway.
authorizerConfiguration (dict) --
The updated authorizer configuration for the gateway.
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) --
allowedScopes (list) --
An array of scopes that are allowed to access the token.
(string) --
advertisedScopeMapping (dict) --
A map that associates each scope in allowedScopes with a corresponding advertised scope value. The advertised scope appears in OAuth protected resource metadata and WWW-Authenticate response headers. Use this parameter when the scope that clients request from your identity provider differs from the scope in the validated token. Each key is a scope from allowedScopes that the service uses for token validation. Each value is the corresponding scope that the service advertises to clients. Scopes without a mapping entry appear unchanged to clients.
(string) --
(string) --
customClaims (list) --
An array of objects that define a custom claim validation name, value, and operation
(dict) --
Defines the name of a custom claim field and rules for finding matches to authenticate its value.
inboundTokenClaimName (string) --
The name of the custom claim field to check.
inboundTokenClaimValueType (string) --
The data type of the claim value to check for.
Use STRING if you want to find an exact match to a string you define.
Use STRING_ARRAY if you want to fnd a match to at least one value in an array you define.
authorizingClaimMatchValue (dict) --
Defines the value or values to match for and the relationship of the match.
claimMatchValue (dict) --
The value or values to match for.
matchValueString (string) --
The string value to match for.
matchValueStringList (list) --
An array of strings to check for a match.
(string) --
claimMatchOperator (string) --
Defines the relationship between the claim field value and the value or values you're matching for.
privateEndpoint (dict) --
The private endpoint configuration for a gateway target. Defines how the gateway connects to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointOverrides (list) --
The private endpoint overrides for the custom JWT authorizer configuration.
(dict) --
A mapping of a specific domain to a private endpoint for secure connectivity through a VPC Lattice resource configuration.
domain (string) --
The domain to override with a private endpoint.
privateEndpoint (dict) --
The private endpoint configuration for the specified domain.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the identity provider. Use this to have AgentCore Identity trust a private CA when establishing TLS connections to identity provider endpoints. You can specify only one certificate authority configuration in this list. Provide the certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can use this only together with privateEndpoint.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
allowedWorkloadConfiguration (dict) --
The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
hostingEnvironments (list) --
The list of hosting environments whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
(dict) --
A hosting environment whose workloads are allowed to invoke the target. At launch, the only supported hosting environment is AgentCore Gateway.
arn (string) --
The Amazon Resource Name (ARN) of the hosting environment.
workloadIdentities (list) --
The list of workload identities that are allowed to invoke the target.
(string) --
kmsKeyArn (string) --
The updated ARN of the KMS key used to encrypt the gateway.
customTransformConfiguration (dict) --
The custom transformation configuration for the gateway. This configuration defines how the gateway transforms requests and responses.
lambda (dict) --
The Lambda configuration for custom transformations. This configuration defines how the gateway uses a Lambda function to transform data.
arn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to transform data.
interceptorConfigurations (list) --
The updated interceptor configurations for the gateway.
(dict) --
The configuration for an interceptor on a gateway. This structure defines settings for an interceptor that will be invoked during the invocation of the gateway.
interceptor (dict) --
The infrastructure settings of an interceptor configuration. This structure defines how the interceptor can be invoked.
lambda (dict) --
The details of the lambda function used for the interceptor.
arn (string) --
The arn of the lambda function to be invoked for the interceptor.
interceptionPoints (list) --
The supported points of interception. This field specifies which points during the gateway invocation to invoke the interceptor
(string) --
inputConfiguration (dict) --
The configuration for the input of the interceptor. This field specifies how the input to the interceptor is constructed
passRequestHeaders (boolean) --
Indicates whether to pass request headers as input into the interceptor. When set to true, request headers will be passed.
payloadFilter (dict) --
The filter that determines which parts of the request or response payload are passed as input to the interceptor.
exclude (list) --
The list of selectors that identify payload fields to exclude from the interceptor input.
(dict) --
A selector that identifies a payload field to exclude from the interceptor input.
field (string) --
The field to exclude from the interceptor input.
responseInterceptionMode (string) --
Specifies how the interceptor processes streamed target responses. You can set this field only on an interceptor that includes the RESPONSE interception point. Valid values include:
BUFFERED - The gateway collects the complete target response and then invokes the interceptor once. This is the default.
STREAM - The gateway sends a streamed target response to the interceptor in batches of events and returns each processed batch to the client as soon as it's ready. Non-streamed responses still use BUFFERED processing. If you specify STREAM, you must also specify responseStreamingConfiguration, and the input configuration can't exclude the response body.
responseStreamingConfiguration (dict) --
Specifies the batching settings for a streamed response. Specify this field only when responseInterceptionMode is STREAM. You must specify it for STREAM.
maxEventsPerInvocation (integer) --
Specifies the maximum number of response events that the gateway sends to the interceptor in one invocation. The interceptor's output for the first batch determines the status code and headers of the response. The gateway ignores the status code and headers that the interceptor returns for later batches.
policyEngineConfiguration (dict) --
The updated policy engine configuration for the gateway.
arn (string) --
The ARN of the policy engine. The policy engine contains Cedar or Dogwood policies that define fine-grained authorization rules specifying who can perform what actions on which resources as agents interact through the gateway.
mode (string) --
The enforcement mode for the policy engine. Valid values include:
LOG_ONLY - The policy engine evaluates each action against your policies and adds traces on whether tool calls would be allowed or denied, but does not enforce the decision. Use this mode to test and validate policies before enabling enforcement.
ENFORCE - The policy engine evaluates actions against your policies and enforces decisions by allowing or denying agent operations. Test and validate policies in LOG_ONLY mode before enabling enforcement to avoid unintended denials or adversely affecting production traffic.
workloadIdentityDetails (dict) --
The workload identity details for the updated gateway.
workloadIdentityArn (string) --
The ARN associated with the workload identity.
exceptionLevel (string) --
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.
webAclArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services WAF web ACL associated with the gateway.
wafConfiguration (dict) --
The Amazon Web Services WAF configuration for the gateway.
failureMode (string) --
The failure mode that determines how the gateway handles requests when Amazon Web Services WAF is unreachable or times out. Valid values include:
FAIL_CLOSE - The gateway blocks requests when Amazon Web Services WAF cannot be evaluated.
FAIL_OPEN - The gateway allows requests when Amazon Web Services WAF cannot be evaluated.
domainOverride (dict) --
The public domain names that the gateway advertises in its OAuth discovery URLs instead of the inbound Host header.
defaultDomain (string) --
The default public domain name for the gateway. The gateway advertises this domain when a request doesn't select a specific domain.
alternateDomains (list) --
Additional public domain names for the gateway, up to 10. Don't repeat the default domain or list a domain more than once. A request can select one of these domains, or the default domain, with the x-amzn-bedrock-agentcore-gateway-domain header. The gateway rejects a request that selects a domain that isn't configured.
(string) --
workloadIdentityTemplateArn (string) --
The Amazon Resource Name (ARN) of the IAM workload identity template for the gateway. The template defines the workload identity format of the gateway and grants permission for the gateway to render the workload identity.
{'credentialProviderConfigurations': {'credentialProvider': {'svidCredentialProvider': {'audiences': ['string'],
'signingAlgorithm': 'RS256 '
'| '
'ES384'}},
'credentialProviderType': {'JWT_SVID'}}}
Updates an existing gateway target.
You cannot update a target that is in a pending authorization state ( CREATE_PENDING_AUTH, UPDATE_PENDING_AUTH, or SYNCHRONIZE_PENDING_AUTH). Wait for the authorization to complete or fail before updating the target.
See also: AWS API Documentation
Request Syntax
client.update_gateway_target(
gatewayIdentifier='string',
targetId='string',
name='string',
description='string',
targetConfiguration={
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
credentialProviderConfigurations=[
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
metadataConfiguration={
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
privateEndpoint={
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
certificateConfigurations=[
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
)
string
[REQUIRED]
The unique identifier of the gateway associated with the target.
string
[REQUIRED]
The unique identifier of the gateway target to update.
string
The updated name for the gateway target.
string
The updated description for the gateway target.
dict
[REQUIRED]
The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) -- [REQUIRED]
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) -- [REQUIRED]
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) -- [REQUIRED]
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) -- [REQUIRED]
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) -- [REQUIRED]
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) -- [REQUIRED]
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) -- [REQUIRED]
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) -- [REQUIRED]
The ID of the API Gateway REST API.
stage (string) -- [REQUIRED]
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) -- [REQUIRED]
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) -- [REQUIRED]
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) -- [REQUIRED]
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) -- [REQUIRED]
The HTTP method to expose for the specified path.
toolFilters (list) -- [REQUIRED]
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) -- [REQUIRED]
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) -- [REQUIRED]
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) -- [REQUIRED]
The source configuration identifying which connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) -- [REQUIRED]
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) -- [REQUIRED]
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) -- [REQUIRED]
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) -- [REQUIRED]
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) -- [REQUIRED]
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) -- [REQUIRED]
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) -- [REQUIRED]
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) -- [REQUIRED]
The source configuration identifying which HTTP connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) -- [REQUIRED]
The source configuration identifying which inference connector to use.
connectorId (string) -- [REQUIRED]
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) -- [REQUIRED]
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) -- [REQUIRED]
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) -- [REQUIRED]
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
list
The updated credential provider configurations for the gateway target.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) -- [REQUIRED]
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) -- [REQUIRED]
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) -- [REQUIRED]
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
dict
Configuration for HTTP header and query parameter propagation to the gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
dict
The private endpoint configuration for the gateway target. Use this to connect the gateway to private resources in your VPC.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) -- [REQUIRED]
The ID of the VPC that contains your private resource.
subnetIds (list) -- [REQUIRED]
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) -- [REQUIRED]
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
list
The private certificate authority (CA) configurations for the gateway target. Use this to have the gateway trust a private CA when it establishes TLS connections to the target endpoint. Provide each certificate by reference to an Amazon S3 object or an Amazon Web Services Secrets Manager secret. You can specify only one certificate authority configuration in this list. To remove a previously configured certificate authority, omit this field on update.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) -- [REQUIRED]
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
dict
Response Syntax
{
'gatewayArn': 'string',
'targetId': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'status': 'CREATING'|'UPDATING'|'UPDATE_UNSUCCESSFUL'|'DELETING'|'READY'|'FAILED'|'SYNCHRONIZING'|'SYNCHRONIZE_UNSUCCESSFUL'|'CREATE_PENDING_AUTH'|'UPDATE_PENDING_AUTH'|'SYNCHRONIZE_PENDING_AUTH',
'statusReasons': [
'string',
],
'name': 'string',
'description': 'string',
'targetConfiguration': {
'mcp': {
'openApiSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'smithyModel': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'lambda': {
'lambdaArn': 'string',
'toolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': [
{
'name': 'string',
'description': 'string',
'inputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
},
'outputSchema': {
'type': 'string'|'number'|'object'|'array'|'boolean'|'integer',
'properties': {
'string': {'... recursive ...'}
},
'required': [
'string',
],
'items': {'... recursive ...'},
'description': 'string'
}
},
]
}
},
'mcpServer': {
'endpoint': 'string',
'mcpToolSchema': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
},
'listingMode': 'DEFAULT'|'DYNAMIC',
'resourcePriority': 123
},
'apiGateway': {
'restApiId': 'string',
'stage': 'string',
'apiGatewayToolConfiguration': {
'toolOverrides': [
{
'name': 'string',
'description': 'string',
'path': 'string',
'method': 'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST'
},
],
'toolFilters': [
{
'filterPath': 'string',
'methods': [
'GET'|'DELETE'|'HEAD'|'OPTIONS'|'PATCH'|'PUT'|'POST',
]
},
]
}
},
'connector': {
'source': {
'connectorId': 'string',
'version': 'string'
},
'enabled': [
'string',
],
'configurations': [
{
'name': 'string',
'description': 'string',
'parameterValues': {...}|[...]|123|123.4|'string'|True|None,
'parameterOverrides': [
{
'path': 'string',
'description': 'string',
'visible': True|False
},
]
},
]
}
},
'http': {
'agentcoreRuntime': {
'arn': 'string',
'qualifier': 'string',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
}
},
'passthrough': {
'endpoint': 'string',
'protocolType': 'MCP'|'A2A'|'INFERENCE'|'CUSTOM',
'schema': {
'source': {
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'inlinePayload': 'string'
}
},
'stickinessConfiguration': {
'identifier': 'string',
'timeout': 123,
'compositeIdentifier': [
'string',
]
},
'staticQueryParameters': {
'string': 'string'
},
'staticQueryParameterConflictResolution': 'CLIENT_OVERRIDE'|'STATIC_OVERRIDE'
},
'connector': {
'source': {
'connectorId': 'string'
},
'parameters': {
'string': 'string'
}
}
},
'inference': {
'connector': {
'source': {
'connectorId': 'string'
}
},
'provider': {
'endpoint': 'string',
'modelMapping': {
'providerPrefix': {
'strip': True|False,
'separator': 'string'
}
},
'operations': [
{
'path': 'string',
'providerPath': 'string',
'models': [
{
'model': 'string'
},
]
},
]
}
}
},
'credentialProviderConfigurations': [
{
'credentialProviderType': 'GATEWAY_IAM_ROLE'|'OAUTH'|'API_KEY'|'CALLER_IAM_CREDENTIALS'|'JWT_PASSTHROUGH'|'JWT_SVID',
'credentialProvider': {
'oauthCredentialProvider': {
'providerArn': 'string',
'scopes': [
'string',
],
'customParameters': {
'string': 'string'
},
'grantType': 'CLIENT_CREDENTIALS'|'AUTHORIZATION_CODE'|'TOKEN_EXCHANGE',
'defaultReturnUrl': 'string'
},
'apiKeyCredentialProvider': {
'providerArn': 'string',
'credentialParameterName': 'string',
'credentialPrefix': 'string',
'credentialLocation': 'HEADER'|'QUERY_PARAMETER'
},
'iamCredentialProvider': {
'service': 'string',
'region': 'string'
},
'svidCredentialProvider': {
'audiences': [
'string',
],
'signingAlgorithm': 'RS256'|'ES384'
}
}
},
],
'lastSynchronizedAt': datetime(2015, 1, 1),
'metadataConfiguration': {
'allowedRequestHeaders': [
'string',
],
'allowedQueryParameters': [
'string',
],
'allowedResponseHeaders': [
'string',
]
},
'privateEndpoint': {
'selfManagedLatticeResource': {
'resourceConfigurationIdentifier': 'string'
},
'managedVpcResource': {
'vpcIdentifier': 'string',
'subnetIds': [
'string',
],
'endpointIpAddressType': 'IPV4'|'IPV6',
'securityGroupIds': [
'string',
],
'tags': {
'string': 'string'
},
'routingDomain': 'string'
}
},
'privateEndpointManagedResources': [
{
'domain': 'string',
'resourceGatewayArn': 'string',
'resourceAssociationArn': 'string'
},
],
'authorizationData': {
'oauth2': {
'authorizationUrl': 'string',
'userId': 'string'
}
},
'protocolType': 'MCP'|'HTTP',
'certificateConfigurations': [
{
's3': {
'uri': 'string',
'bucketOwnerAccountId': 'string'
},
'secretsManager': {
'secretArn': 'string'
}
},
]
}
Response Structure
(dict) --
gatewayArn (string) --
The Amazon Resource Name (ARN) of the gateway.
targetId (string) --
The unique identifier of the updated gateway target.
createdAt (datetime) --
The timestamp when the gateway target was created.
updatedAt (datetime) --
The timestamp when the gateway target was last updated.
status (string) --
The current status of the updated gateway target.
statusReasons (list) --
The reasons for the current status of the updated gateway target.
(string) --
name (string) --
The updated name of the gateway target.
description (string) --
The updated description of the gateway target.
targetConfiguration (dict) --
The configuration for a gateway target. This structure defines how the gateway connects to and interacts with the target endpoint.
mcp (dict) --
The Model Context Protocol (MCP) configuration for the target. This configuration defines how the gateway uses MCP to communicate with the target.
openApiSchema (dict) --
The OpenAPI schema for the Model Context Protocol target. This schema defines the API structure of the target.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
smithyModel (dict) --
The Smithy model for the Model Context Protocol target. This model defines the API structure of the target using the Smithy specification.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
lambda (dict) --
The Lambda configuration for the Model Context Protocol target. This configuration defines how the gateway uses a Lambda function to communicate with the target.
lambdaArn (string) --
The Amazon Resource Name (ARN) of the Lambda function. This function is invoked by the gateway to communicate with the target.
toolSchema (dict) --
The tool schema for the Lambda function. This schema defines the structure of the tools that the Lambda function provides.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (list) --
The inline payload of the tool schema. This payload contains the schema definition directly in the request.
(dict) --
A tool definition for a gateway target. This structure defines a tool that the target exposes through the Model Context Protocol.
name (string) --
The name of the tool. This name identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. This description provides information about the purpose and usage of the tool.
inputSchema (dict) --
The input schema for the tool. This schema defines the structure of the input that the tool accepts.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
outputSchema (dict) --
The output schema for the tool. This schema defines the structure of the output that the tool produces.
type (string) --
The type of the schema definition. This field specifies the data type of the schema.
properties (dict) --
The properties of the schema definition. These properties define the fields in the schema.
(string) --
(dict) --
A schema definition for a gateway target. This structure defines the structure of the API that the target exposes.
required (list) --
The required fields in the schema definition. These fields must be provided when using the schema.
(string) --
items (dict) --
The items in the schema definition. This field is used for array types to define the structure of the array elements.
description (string) --
The description of the schema definition. This description provides information about the purpose and usage of the schema.
mcpServer (dict) --
The MCP server specified as the gateway target.
endpoint (string) --
The endpoint for the MCP server target configuration.
mcpToolSchema (dict) --
A static tool list for the MCP server target. It is supported for all credential providers. Dynamic tool discovery/synchronization will be disabled when a target is configured with mcpToolSchema.
s3 (dict) --
The Amazon S3 location of the tool schema. This location contains the schema definition file.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the MCP tool schema definition.
listingMode (string) --
The listing mode for the MCP server target configuration. MCP resources for default targets are cached at the control plane for faster access. MCP resources for dynamic targets will be dynamically retrieved when listing tools.
resourcePriority (integer) --
Priority for resolving MCP server targets with shared resource URIs. Lower values take precedence. Defaults to 1000 when not set.
apiGateway (dict) --
The configuration for an Amazon API Gateway target.
restApiId (string) --
The ID of the API Gateway REST API.
stage (string) --
The ID of the stage of the REST API to add as a target.
apiGatewayToolConfiguration (dict) --
The configuration for defining REST API tool filters and overrides for the gateway target.
toolOverrides (list) --
A list of explicit tool definitions with optional custom names and descriptions.
(dict) --
Settings to override configurations for a tool.
name (string) --
The name of tool. Identifies the tool in the Model Context Protocol.
description (string) --
The description of the tool. Provides information about the purpose and usage of the tool. If not provided, uses the description from the API's OpenAPI specification.
path (string) --
Resource path in the REST API (e.g., /pets). Must explicitly match an existing path in the REST API.
method (string) --
The HTTP method to expose for the specified path.
toolFilters (list) --
A list of path and method patterns to expose as tools using metadata from the REST API's OpenAPI specification.
(dict) --
Specifies which operations from an API Gateway REST API are exposed as tools. Tool names and descriptions are derived from the operationId and description fields in the API's exported OpenAPI specification.
filterPath (string) --
Resource path to match in the REST API. Supports exact paths (for example, /pets) or wildcard paths (for example, /pets/* to match all paths under /pets). Must match existing paths in the REST API.
methods (list) --
The methods to filter for.
(string) --
connector (dict) --
The connector integration configuration for the Model Context Protocol target. This configuration defines how the gateway uses a pre-built connector to communicate with the target.
source (dict) --
The source configuration identifying which connector to use.
connectorId (string) --
The identifier for the connector integration (for example, bedrock-knowledge-bases).
version (string) --
The version of the connector to use (for example, 1.1.0). If you don't specify a version, the service uses the latest available version.
enabled (list) --
A list of tool names to enable from this connector. If absent, all tools provided by the connector are enabled.
(string) --
configurations (list) --
A list of per-tool configurations for the connector.
(dict) --
Configuration for a single tool within a connector.
name (string) --
The tool or operation name (for example, retrieve or webSearch).
description (string) --
An agent-facing description override for this tool.
parameterValues (:ref:`document<document>`) --
Parameters to set as fixed or default values when provisioning this tool.
parameterOverrides (list) --
Parameters to expose to the agent at runtime, with optional description overrides.
(dict) --
Specifies a parameter override for a connector tool, allowing you to control parameter visibility and descriptions.
path (string) --
A JSON Pointer path identifying the parameter (for example, /numberOfResults or /filter).
description (string) --
An agent-facing description override for this parameter.
visible (boolean) --
Whether this parameter is visible to the agent. If not specified, uses the service default.
http (dict) --
The HTTP target configuration. Use this to route gateway requests to an HTTP-based endpoint such as an AgentCore Runtime.
agentcoreRuntime (dict) --
The AgentCore Runtime target configuration for HTTP-based communication with an agent runtime.
arn (string) --
The Amazon Resource Name (ARN) of the AgentCore Runtime to route requests to.
qualifier (string) --
The qualifier for the agent runtime, used to target a specific endpoint version. If not specified, the default endpoint is used.
schema (dict) --
The API schema configuration that defines the structure of the runtime target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
passthrough (dict) --
The passthrough configuration for the HTTP target. A passthrough target forwards requests directly to an external HTTP endpoint.
endpoint (string) --
The HTTPS endpoint that the gateway forwards requests to for this passthrough target.
protocolType (string) --
The application protocol that the passthrough target implements. This value is required for passthrough targets:
MCP - The Model Context Protocol.
A2A - The Agent-to-Agent protocol.
INFERENCE - The protocol for routing requests to a large language model (LLM) provider.
CUSTOM - A custom application protocol.
schema (dict) --
The API schema configuration that defines the structure of the passthrough target's API.
source (dict) --
Configuration for API schema.
s3 (dict) --
The Amazon S3 configuration for a gateway. This structure defines how the gateway accesses files in Amazon S3.
uri (string) --
The URI of the Amazon S3 object. This URI specifies the location of the object in Amazon S3.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
inlinePayload (string) --
The inline payload containing the API schema definition.
stickinessConfiguration (dict) --
The session stickiness configuration for the passthrough target. This configuration routes requests within the same session to the same target.
identifier (string) --
The expression that identifies where to extract the session identifier from the request (for example, $context.header.x-session-id).
timeout (integer) --
The session stickiness timeout, in seconds. After this duration of inactivity, the session affinity expires. Valid values range from 1 to 86400.
compositeIdentifier (list) --
Additional headers to include in session affinity routing. When set, requests are only considered part of the same session if both the identifier and all composite identifier values match.
(string) --
staticQueryParameters (dict) --
A map of static query parameters that the gateway always appends to the outbound URL when forwarding requests to the target. The total outbound URL length, which includes the endpoint and the percent-encoded query parameters, is enforced by the service.
(string) --
The name of a static query parameter. Allowed characters are letters, digits, _, ., and -.
(string) --
The value of a static query parameter. Control characters (ASCII 0x00- 0x1F and 0x7F) are not permitted. URI-reserved characters are allowed and are percent-encoded by the gateway. Empty values are allowed.
staticQueryParameterConflictResolution (string) --
Controls precedence when a client request supplies a query parameter whose name matches a configured static query parameter. If not set, defaults to CLIENT_OVERRIDE:
CLIENT_OVERRIDE - The client-supplied value overrides the configured static value for that parameter name.
STATIC_OVERRIDE - The configured static value is retained, overriding the client-supplied value for that parameter name.
connector (dict) --
The connector-based configuration for the HTTP target. Use this configuration when you want to route HTTP requests through a managed connector.
source (dict) --
The source configuration identifying which HTTP connector to use.
connectorId (string) --
The identifier for the HTTP connector integration.
parameters (dict) --
The resource parameters for this connector (for example, memoryId). The service validates these parameters against the request path at runtime.
(string) --
The name of a connector parameter (for example, memoryId). The name must start with a letter and contain only letters, digits, underscores, and hyphens.
(string) --
The value of a connector parameter. Length: 1–1,024 characters.
inference (dict) --
The inference configuration for the target. This configuration routes requests to a large language model (LLM) provider.
connector (dict) --
The connector-based inference configuration. Use this option to route requests to an LLM provider through a built-in connector that includes predefined provider rules.
source (dict) --
The source configuration identifying which inference connector to use.
connectorId (string) --
The identifier for the inference connector (for example, bedrock-mantle, openai, or anthropic).
provider (dict) --
The provider-based inference configuration. Use this option to explicitly configure the endpoint, model mapping, and operations for an LLM provider.
endpoint (string) --
The HTTPS endpoint of the inference provider that the gateway forwards requests to.
modelMapping (dict) --
The configuration that translates client-facing model IDs to the model IDs expected by the provider.
providerPrefix (dict) --
The provider prefix configuration used for model ID translation.
strip (boolean) --
Whether clients can omit the provider prefix from model IDs. If true, the gateway accepts model IDs without the prefix and restores the full prefixed form before forwarding to the provider. The default is false.
separator (string) --
The single character that separates the provider prefix from the model name (for example, .). The default is ..
operations (list) --
A list of per-operation configurations that map request paths to the models supported for each operation.
(dict) --
The configuration for a specific inference operation, including its request path and the models that the operation supports.
path (string) --
The request path for this operation (for example, /v1/messages or /v1/responses).
providerPath (string) --
The provider path to forward requests to, if it differs from the request path. For example, /anthropic/v1/messages when the provider expects a different path than the client-facing /v1/messages.
models (list) --
The list of models supported for this operation.
(dict) --
A model entry that specifies a model supported for an inference operation.
model (string) --
The model ID or glob pattern that identifies the model (for example, anthropic.claude-opus-* or openai.gpt-oss-*).
credentialProviderConfigurations (list) --
The updated credential provider configurations for the gateway target.
(dict) --
The configuration for a credential provider. This structure defines how the gateway authenticates with the target endpoint.
credentialProviderType (string) --
The type of credential provider. This field specifies which authentication method the gateway uses.
credentialProvider (dict) --
The credential provider. This field contains the specific configuration for the credential provider type.
oauthCredentialProvider (dict) --
The OAuth credential provider. This provider uses OAuth authentication to access the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the OAuth credential provider. This ARN identifies the provider in Amazon Web Services.
scopes (list) --
The OAuth scopes for the credential provider. These scopes define the level of access requested from the OAuth provider.
(string) --
customParameters (dict) --
The custom parameters for the OAuth credential provider. These parameters provide additional configuration for the OAuth authentication process.
(string) --
(string) --
grantType (string) --
Specifies the kind of credentials to use for authorization:
CLIENT_CREDENTIALS - Authorization with a client ID and secret.
AUTHORIZATION_CODE - Authorization with a token that is specific to an individual end user.
TOKEN_EXCHANGE - Authorization using on-behalf-of token exchange. An inbound user token is exchanged for a downstream access token scoped to the target audience.
defaultReturnUrl (string) --
The URL where the end user's browser is redirected after obtaining the authorization code. Generally points to the customer's application.
apiKeyCredentialProvider (dict) --
The API key credential provider. This provider uses an API key to authenticate with the target endpoint.
providerArn (string) --
The Amazon Resource Name (ARN) of the API key credential provider. This ARN identifies the provider in Amazon Web Services.
credentialParameterName (string) --
The name of the credential parameter for the API key. This parameter name is used when sending the API key to the target endpoint.
credentialPrefix (string) --
The prefix for the API key credential. This prefix is added to the API key when sending it to the target endpoint.
credentialLocation (string) --
The location of the API key credential. This field specifies where in the request the API key should be placed.
iamCredentialProvider (dict) --
The IAM credential provider. This provider uses IAM authentication with SigV4 signing to access the target endpoint.
service (string) --
The target Amazon Web Services service name used for SigV4 signing. This value identifies the service that the gateway authenticates with when making requests to the target endpoint.
region (string) --
The Amazon Web Services Region used for SigV4 signing. If not specified, defaults to the gateway's Region.
svidCredentialProvider (dict) --
The JSON Web Token SVID (JWT-SVID) credential provider. This provider uses a JWT-SVID to authenticate with the target endpoint.
audiences (list) --
The intended recipient of the web identity token. This value populates the aud claim in the JWT and should identify the service or application that will validate and use the token. The external service should verify this claim to ensure the token was intended for their use. Currently, you can specify only one audience.
(string) --
signingAlgorithm (string) --
The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values:
RS256 - RSA with SHA-256
ES384 - ECDSA using the P-384 curve with SHA-384
lastSynchronizedAt (datetime) --
The date and time at which the targets were last synchronized.
metadataConfiguration (dict) --
The metadata configuration that was applied to the gateway target.
allowedRequestHeaders (list) --
A list of HTTP headers that are allowed to be propagated from incoming client requests to the target.
(string) --
allowedQueryParameters (list) --
A list of URL query parameters that are allowed to be propagated from incoming gateway URL to the target.
(string) --
allowedResponseHeaders (list) --
A list of HTTP headers that are allowed to be propagated from the target response back to the client.
(string) --
privateEndpoint (dict) --
The private endpoint configuration for the gateway target.
selfManagedLatticeResource (dict) --
Configuration for connecting to a private resource using a self-managed VPC Lattice resource configuration.
resourceConfigurationIdentifier (string) --
The ARN or ID of the VPC Lattice resource configuration.
managedVpcResource (dict) --
Configuration for connecting to a private resource using a managed VPC Lattice resource. The gateway creates and manages the VPC Lattice resources on your behalf.
vpcIdentifier (string) --
The ID of the VPC that contains your private resource.
subnetIds (list) --
The subnet IDs within the VPC where the VPC Lattice resource gateway is placed.
(string) --
endpointIpAddressType (string) --
The IP address type for the resource configuration endpoint.
securityGroupIds (list) --
The security group IDs to associate with the VPC Lattice resource gateway. If not specified, the default security group for the VPC is used.
(string) --
tags (dict) --
Tags to apply to the managed VPC Lattice resource gateway.
(string) --
(string) --
routingDomain (string) --
An intermediate domain to use as the resource configuration endpoint instead of the actual target domain. Use this when you want to route traffic through an intermediate component such as a VPC endpoint or internal load balancer. For more information, see xref:lattice-vpc-egress-routing-domain[Route traffic through an intermediate domain].
privateEndpointManagedResources (list) --
The managed resources created by the gateway for private endpoint connectivity.
(dict) --
Details of a resource created and managed by the gateway for private endpoint connectivity.
domain (string) --
The domain associated with this managed resource.
resourceGatewayArn (string) --
The ARN of the VPC Lattice resource gateway created in your account.
resourceAssociationArn (string) --
The ARN of the service network resource association.
authorizationData (dict) --
OAuth2 authorization data for the updated gateway target. This data is returned when a target is configured with a credential provider with authorization code grant type and requires user federation.
oauth2 (dict) --
OAuth2 authorization data for the gateway target.
authorizationUrl (string) --
The URL to initiate the authorization process. This URL is provided when the OAuth2 access token requires user authorization.
userId (string) --
The user identifier associated with the OAuth2 authorization session that is defined by AgentCore Gateway.
protocolType (string) --
The protocol type of the updated gateway target.
certificateConfigurations (list) --
The private certificate authority (CA) configurations for the gateway target.
(dict) --
A reference to a private certificate authority (CA) certificate that AgentCore uses to verify TLS connections to an endpoint, such as a gateway target or an identity provider, that presents a certificate issued by a private CA that is not trusted by default. Specify exactly one certificate source. The configuration is a reference only and never contains the certificate content.
s3 (dict) --
The Amazon S3 location of the PEM-encoded private CA certificate.
uri (string) --
The URI of the Amazon S3 object that contains the PEM-encoded certificate.
bucketOwnerAccountId (string) --
The account ID of the Amazon S3 bucket owner. This ID is used for cross-account access to the bucket.
secretsManager (dict) --
The Amazon Web Services Secrets Manager location of the PEM-encoded private CA certificate.
secretArn (string) --
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that contains the PEM-encoded certificate.
{'policyInformationProviderConfiguration': {'string': {'providerConfiguration': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'url': {'optionalValue': 'string'}}}}}
Response {'policyInformationProviderConfiguration': {'string': {'credentialProvider': {'apiKey': {'arn': 'string'},
'iam': {}},
'providerCapabilities': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'availableMethods': {'string': {'argumentTypes': [{'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}],
'inputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'outputType': {'fields': {'string': ()},
'items': (),
'parameterType': 'string '
'| '
'integer '
'| '
'long '
'| '
'bool '
'| '
'decimal '
'| '
'set '
'| '
'record',
'required': ['string']}}},
'settings': {'string': {}},
'url': 'string'}}}
Updates an existing policy engine within the AgentCore Policy system. This operation allows modification of the policy engine description while maintaining its identity. This is an asynchronous operation. Use the GetPolicyEngine operation to poll the status field to track completion.
See also: AWS API Documentation
Request Syntax
client.update_policy_engine(
policyEngineId='string',
description={
'optionalValue': 'string'
},
policyInformationProviderConfiguration={
'string': {
'providerConfiguration': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': {
'optionalValue': 'string'
}
}
}
}
)
string
[REQUIRED]
The unique identifier of the policy engine to be updated.
dict
The new description for the policy engine.
optionalValue (string) --
Represents an optional value that is used to update the human-readable description of the resource. If not specified, it will clear the current description of the resource.
dict
Specifies the changes to make to the third-party guardrail providers registered on the policy engine, keyed by provider ID. Only the providers and fields that you include change. For each provider ID, do one of the following:
To register the provider or change its configuration, set the providerConfiguration field of the entry.
To remove the provider from the policy engine, send an empty object as the entry. You can't remove a provider while a policy in the policy engine depends on it.
Valid provider IDs are CheckPoint, Netskope, PromptSecurity, Rubrik, and Zscaler. You can't include the built-in BedrockGuardrails provider in this map.
(string) --
(dict) --
An update to one third-party guardrail provider on a policy engine. To register the provider or change its configuration, set the providerConfiguration field of this object. To remove the provider from the policy engine, send an empty object.
providerConfiguration (dict) --
The configuration fields to set for the provider. Omit this field to remove the provider from the policy engine.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. Specify the API key credential provider in AgentCore Identity that stores your provider API key.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) -- [REQUIRED]
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (dict) --
The provider URL to set. For a provider with a default URL ( CheckPoint, PromptSecurity, or Zscaler), send an empty object to return to the default URL.
optionalValue (string) --
The URL of your provider endpoint. For a provider with a default URL ( CheckPoint, PromptSecurity, or Zscaler), omit this field to return to the default URL. The URL must use HTTPS and must not include a port, and its host name must match the provider:
CheckPoint
api.lakera.ai
Netskope
A subdomain of goskope.com
PromptSecurity
A subdomain of prompt.security
Rubrik
A Rubrik Agent Cloud webhook host name, such as webhooks.air-prod.predibase.com
Zscaler
api.zseclipse.net or a regional host name such as api.us1.zseclipse.net
dict
Response Syntax
{
'policyEngineId': 'string',
'name': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1),
'policyEngineArn': 'string',
'status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
'encryptionKeyArn': 'string',
'description': 'string',
'statusReasons': [
'string',
],
'policyInformationProviderConfiguration': {
'string': {
'credentialProvider': {
'apiKey': {
'arn': 'string'
},
'iam': {}
},
'url': 'string',
'settings': {
'string': {...}|[...]|123|123.4|'string'|True|None
},
'providerCapabilities': {
'string': {
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'availableMethods': {
'string': {
'inputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
'argumentTypes': [
{
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
},
],
'outputType': {
'parameterType': 'string'|'integer'|'long'|'bool'|'decimal'|'set'|'record',
'items': {'... recursive ...'},
'fields': {
'string': {'... recursive ...'}
},
'required': [
'string',
]
}
}
}
}
}
}
}
}
Response Structure
(dict) --
policyEngineId (string) --
The unique identifier of the updated policy engine.
name (string) --
The name of the updated policy engine.
createdAt (datetime) --
The original creation timestamp of the policy engine.
updatedAt (datetime) --
The timestamp when the policy engine was last updated.
policyEngineArn (string) --
The ARN of the updated policy engine.
status (string) --
The current status of the updated policy engine.
encryptionKeyArn (string) --
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data.
description (string) --
The updated description of the policy engine.
statusReasons (list) --
Additional information about the update status.
(string) --
policyInformationProviderConfiguration (dict) --
The guardrail providers registered on the policy engine after the update, keyed by provider ID, including the built-in BedrockGuardrails provider.
(string) --
(dict) --
Describes a guardrail provider registered on a policy engine. It includes the credential provider, the URL through which the policy engine calls the provider, the provider settings, and the checks that the provider offers.
credentialProvider (dict) --
The credential provider that the policy engine uses to call the provider. It is one of the following:
For a third-party provider, the API key credential provider that stores your provider API key.
For the built-in BedrockGuardrails provider, IAM. The policy engine calls Amazon Bedrock Guardrails with Amazon Web Services credentials instead of a credential provider.
apiKey (dict) --
An API key credential provider in AgentCore Identity that stores your provider API key. Use it for every third-party provider.
arn (string) --
The Amazon Resource Name (ARN) of the API key credential provider in AgentCore Identity that stores your provider API key.
iam (dict) --
The policy engine calls the provider with Amazon Web Services credentials instead of a credential provider. Only the built-in BedrockGuardrails provider reports this value, and you can't specify it in a request.
url (string) --
The URL through which the policy engine calls the provider. If you didn't specify a URL, the policy engine uses the provider's default URL.
settings (dict) --
The provider settings, keyed by setting name, including windowSize. You can't change these settings.
(string) --
(:ref:`document<document>`) --
providerCapabilities (dict) --
The checks that the provider offers, keyed by check name, such as CheckPoint::PromptAttack. Policies call these checks in a guardrails condition block.
(string) --
(dict) --
Describes a check that a guardrail provider offers: the arguments that it takes, the type of its result, and the methods that you can call on the result.
argumentTypes (list) --
The types of the arguments that the check takes, in order. For example, CheckPoint::Custom takes a profile name as a string, followed by the content to assess as a set.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the result that the check returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
availableMethods (dict) --
The methods that you can call on the result of the check, keyed by method name. For example, CheckPoint::Custom offers allowed, and checks with categories offer aggregations such as maxConfidenceScore and count.
(string) --
(dict) --
Describes a method that you can call on the result of a guardrail check. Methods include allowed, which reports whether a profile check allows the content, and the aggregations maxConfidenceScore, minConfidenceScore, count, and categories. For more information, see Aggregations.
inputType (dict) --
The type of the value that the method is called on.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
argumentTypes (list) --
The types of the arguments that the method takes, in order. The list is empty when the method takes no arguments.
(dict) --
Describes the type of an argument or result of a guardrail check or method.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --
outputType (dict) --
The type of the value that the method returns.
parameterType (string) --
The kind of value. Valid values:
string
A string.
integer
An integer.
long
A long integer.
bool
A Boolean value.
decimal
A decimal number.
set
A set of values of the type in items.
record
A record with the fields in fields.
items (dict) --
The type of the elements, when parameterType is set.
fields (dict) --
The fields and their types, keyed by field name, when parameterType is record.
(string) --
(dict) --
Describes the type of an argument or result of a guardrail check or method.
required (list) --
The names of the fields that are always present, when parameterType is record.
(string) --