Class CfnGatewayTarget
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.bedrockagentcore.CfnGatewayTarget
- All Implemented Interfaces:
IInspectable,IGatewayTargetRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:15.639Z")
@Stability(Stable)
public class CfnGatewayTarget
extends CfnResource
implements IInspectable, IGatewayTargetRef
After creating a gateway, you can add targets, which define the tools that your gateway will host.
For more information about adding gateway targets, see Add targets to an existing gateway .
See the Properties section below for descriptions of both the required and optional properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;
SchemaDefinitionProperty schemaDefinitionProperty_;
CfnGatewayTarget cfnGatewayTarget = CfnGatewayTarget.Builder.create(this, "MyCfnGatewayTarget")
.credentialProviderConfigurations(List.of(CredentialProviderConfigurationProperty.builder()
.credentialProviderType("credentialProviderType")
// the properties below are optional
.credentialProvider(CredentialProviderProperty.builder()
.apiKeyCredentialProvider(ApiKeyCredentialProviderProperty.builder()
.providerArn("providerArn")
// the properties below are optional
.credentialLocation("credentialLocation")
.credentialParameterName("credentialParameterName")
.credentialPrefix("credentialPrefix")
.build())
.oauthCredentialProvider(OAuthCredentialProviderProperty.builder()
.providerArn("providerArn")
.scopes(List.of("scopes"))
// the properties below are optional
.customParameters(Map.of(
"customParametersKey", "customParameters"))
.build())
.build())
.build()))
.name("name")
.targetConfiguration(TargetConfigurationProperty.builder()
.mcp(McpTargetConfigurationProperty.builder()
.lambda(McpLambdaTargetConfigurationProperty.builder()
.lambdaArn("lambdaArn")
.toolSchema(ToolSchemaProperty.builder()
.inlinePayload(List.of(ToolDefinitionProperty.builder()
.description("description")
.inputSchema(SchemaDefinitionProperty.builder()
.type("type")
// the properties below are optional
.description("description")
.items(schemaDefinitionProperty_)
.properties(Map.of(
"propertiesKey", schemaDefinitionProperty_))
.required(List.of("required"))
.build())
.name("name")
// the properties below are optional
.outputSchema(SchemaDefinitionProperty.builder()
.type("type")
// the properties below are optional
.description("description")
.items(schemaDefinitionProperty_)
.properties(Map.of(
"propertiesKey", schemaDefinitionProperty_))
.required(List.of("required"))
.build())
.build()))
.s3(S3ConfigurationProperty.builder()
.bucketOwnerAccountId("bucketOwnerAccountId")
.uri("uri")
.build())
.build())
.build())
.mcpServer(McpServerTargetConfigurationProperty.builder()
.endpoint("endpoint")
.build())
.openApiSchema(ApiSchemaConfigurationProperty.builder()
.inlinePayload("inlinePayload")
.s3(S3ConfigurationProperty.builder()
.bucketOwnerAccountId("bucketOwnerAccountId")
.uri("uri")
.build())
.build())
.smithyModel(ApiSchemaConfigurationProperty.builder()
.inlinePayload("inlinePayload")
.s3(S3ConfigurationProperty.builder()
.bucketOwnerAccountId("bucketOwnerAccountId")
.uri("uri")
.build())
.build())
.build())
.build())
// the properties below are optional
.description("description")
.gatewayIdentifier("gatewayIdentifier")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe API key credential provider for the gateway target.static interfaceThe API schema configuration for the gateway target.static final classA fluent builder forCfnGatewayTarget.static interfaceThe credential provider configuration for the gateway target.static interfaceExample:static interfaceThe Lambda target configuration.static interfaceExample:static interfaceThe MCP target configuration for the gateway target.static interfaceThe OAuth credential provider for the gateway target.static interfaceThe S3 configuration for the gateway target.static interfaceThe schema definition for the gateway target.static interfaceThe target configuration.static interfaceThe tool definition for the gateway.static interfaceThe tool schema for the gateway target.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.bedrockagentcore.IGatewayTargetRef
IGatewayTargetRef.Jsii$Default, IGatewayTargetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnGatewayTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnGatewayTarget(software.amazon.jsii.JsiiObjectRef objRef) CfnGatewayTarget(software.constructs.Construct scope, String id, CfnGatewayTargetProps props) Create a newAWS::BedrockAgentCore::GatewayTarget. -
Method Summary
Modifier and TypeMethodDescriptionThe date and time at which the gateway target was created.The status for the gateway target.The status reasons for the gateway target.The target ID for the gateway target.The time at which the resource was updated.The OAuth credential provider configuration.The description for the gateway target.The gateway ID for the gateway target.A reference to a GatewayTarget resource.getName()The name for the gateway target.The target configuration for the Smithy model target.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnGatewayTarget.renderProperties(Map<String, Object> props) voidThe OAuth credential provider configuration.voidThe OAuth credential provider configuration.voidsetDescription(String value) The description for the gateway target.voidsetGatewayIdentifier(String value) The gateway ID for the gateway target.voidThe name for the gateway target.voidThe target configuration for the Smithy model target.voidThe target configuration for the Smithy model target.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnGatewayTarget
protected CfnGatewayTarget(software.amazon.jsii.JsiiObjectRef objRef) -
CfnGatewayTarget
protected CfnGatewayTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnGatewayTarget
@Stability(Stable) public CfnGatewayTarget(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnGatewayTargetProps props) Create a newAWS::BedrockAgentCore::GatewayTarget.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnGatewayTarget
Checks whether the given object is a CfnGatewayTarget.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The date and time at which the gateway target was created. -
getAttrGatewayArn
-
getAttrLastSynchronizedAt
-
getAttrStatus
The status for the gateway target. -
getAttrStatusReasons
The status reasons for the gateway target. -
getAttrTargetId
The target ID for the gateway target. -
getAttrUpdatedAt
The time at which the resource was updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getGatewayTargetRef
A reference to a GatewayTarget resource.- Specified by:
getGatewayTargetRefin interfaceIGatewayTargetRef
-
getCredentialProviderConfigurations
The OAuth credential provider configuration.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnGatewayTarget.CredentialProviderConfigurationProperty> -
setCredentialProviderConfigurations
The OAuth credential provider configuration. -
setCredentialProviderConfigurations
The OAuth credential provider configuration. -
getName
The name for the gateway target. -
setName
The name for the gateway target. -
getTargetConfiguration
The target configuration for the Smithy model target.Returns union: either
IResolvableorCfnGatewayTarget.TargetConfigurationProperty -
setTargetConfiguration
The target configuration for the Smithy model target. -
setTargetConfiguration
@Stability(Stable) public void setTargetConfiguration(@NotNull CfnGatewayTarget.TargetConfigurationProperty value) The target configuration for the Smithy model target. -
getDescription
The description for the gateway target. -
setDescription
The description for the gateway target. -
getGatewayIdentifier
The gateway ID for the gateway target. -
setGatewayIdentifier
The gateway ID for the gateway target.
-