Class CfnGatewayTargetPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.bedrockagentcore.CfnGatewayTargetPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:56.687Z") @Stability(Stable) public class CfnGatewayTargetPropsMixin extends Mixin implements software.constructs.IMixin
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.cfnpropertymixins.services.bedrockagentcore.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 SchemaDefinitionProperty schemaDefinitionProperty_;
 CfnGatewayTargetPropsMixin cfnGatewayTargetPropsMixin = CfnGatewayTargetPropsMixin.Builder.create(CfnGatewayTargetMixinProps.builder()
         .credentialProviderConfigurations(List.of(CredentialProviderConfigurationProperty.builder()
                 .credentialProvider(CredentialProviderProperty.builder()
                         .apiKeyCredentialProvider(ApiKeyCredentialProviderProperty.builder()
                                 .credentialLocation("credentialLocation")
                                 .credentialParameterName("credentialParameterName")
                                 .credentialPrefix("credentialPrefix")
                                 .providerArn("providerArn")
                                 .build())
                         .oauthCredentialProvider(OAuthCredentialProviderProperty.builder()
                                 .customParameters(Map.of(
                                         "customParametersKey", "customParameters"))
                                 .defaultReturnUrl("defaultReturnUrl")
                                 .grantType("grantType")
                                 .providerArn("providerArn")
                                 .scopes(List.of("scopes"))
                                 .build())
                         .build())
                 .credentialProviderType("credentialProviderType")
                 .build()))
         .description("description")
         .gatewayIdentifier("gatewayIdentifier")
         .metadataConfiguration(MetadataConfigurationProperty.builder()
                 .allowedQueryParameters(List.of("allowedQueryParameters"))
                 .allowedRequestHeaders(List.of("allowedRequestHeaders"))
                 .allowedResponseHeaders(List.of("allowedResponseHeaders"))
                 .build())
         .name("name")
         .targetConfiguration(TargetConfigurationProperty.builder()
                 .mcp(McpTargetConfigurationProperty.builder()
                         .apiGateway(ApiGatewayTargetConfigurationProperty.builder()
                                 .apiGatewayToolConfiguration(ApiGatewayToolConfigurationProperty.builder()
                                         .toolFilters(List.of(ApiGatewayToolFilterProperty.builder()
                                                 .filterPath("filterPath")
                                                 .methods(List.of("methods"))
                                                 .build()))
                                         .toolOverrides(List.of(ApiGatewayToolOverrideProperty.builder()
                                                 .description("description")
                                                 .method("method")
                                                 .name("name")
                                                 .path("path")
                                                 .build()))
                                         .build())
                                 .restApiId("restApiId")
                                 .stage("stage")
                                 .build())
                         .lambda(McpLambdaTargetConfigurationProperty.builder()
                                 .lambdaArn("lambdaArn")
                                 .toolSchema(ToolSchemaProperty.builder()
                                         .inlinePayload(List.of(ToolDefinitionProperty.builder()
                                                 .description("description")
                                                 .inputSchema(SchemaDefinitionProperty.builder()
                                                         .description("description")
                                                         .items(schemaDefinitionProperty_)
                                                         .properties(Map.of(
                                                                 "propertiesKey", schemaDefinitionProperty_))
                                                         .required(List.of("required"))
                                                         .type("type")
                                                         .build())
                                                 .name("name")
                                                 .outputSchema(SchemaDefinitionProperty.builder()
                                                         .description("description")
                                                         .items(schemaDefinitionProperty_)
                                                         .properties(Map.of(
                                                                 "propertiesKey", schemaDefinitionProperty_))
                                                         .required(List.of("required"))
                                                         .type("type")
                                                         .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())
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnGatewayTargetPropsMixin

      protected CfnGatewayTargetPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnGatewayTargetPropsMixin

      protected CfnGatewayTargetPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnGatewayTargetPropsMixin

      @Stability(Stable) public CfnGatewayTargetPropsMixin(@NotNull CfnGatewayTargetMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::BedrockAgentCore::GatewayTarget.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnGatewayTargetPropsMixin

      @Stability(Stable) public CfnGatewayTargetPropsMixin(@NotNull CfnGatewayTargetMixinProps props)
      Create a mixin to apply properties to AWS::BedrockAgentCore::GatewayTarget.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnGatewayTargetMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()