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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:06.330Z")
@Stability(Stable)
public class CfnGatewayTarget
extends CfnResource
implements IInspectable, IGatewayTargetRef
Amazon Bedrock AgentCore is in preview release and is subject to change.
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()) .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 interface
The API key credential provider for the gateway target.static interface
The API schema configuration for the gateway target.static final class
A fluent builder forCfnGatewayTarget
.static interface
The credential provider configuration for the gateway target.static interface
Example:static interface
The Lambda target configuration.static interface
The MCP target configuration for the gateway target.static interface
The OAuth credential provider for the gateway target.static interface
The S3 configuration for the gateway target.static interface
The schema definition for the gateway target.static interface
The target configuration.static interface
The tool definition for the gateway.static interface
The tool schema for the gateway target.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.bedrockagentcore.IGatewayTargetRef
IGatewayTargetRef.Jsii$Default, IGatewayTargetRef.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnGatewayTarget
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnGatewayTarget
(software.amazon.jsii.JsiiObjectRef objRef) CfnGatewayTarget
(software.constructs.Construct scope, String id, CfnGatewayTargetProps props) -
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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The OAuth credential provider configuration.void
The OAuth credential provider configuration.void
setDescription
(String value) The description for the gateway target.void
setGatewayIdentifier
(String value) The gateway ID for the gateway target.void
The name for the gateway target.void
The target configuration for the Smithy model target.void
The 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreatedAt
The date and time at which the gateway target was created. -
getAttrGatewayArn
-
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:
getCfnProperties
in classCfnResource
-
getGatewayTargetRef
A reference to a GatewayTarget resource.- Specified by:
getGatewayTargetRef
in interfaceIGatewayTargetRef
-
getCredentialProviderConfigurations
The OAuth credential provider configuration. -
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. -
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.
-