AddLambdaTargetOptions

class aws_cdk.aws_bedrock_agentcore_alpha.AddLambdaTargetOptions(*, lambda_function, tool_schema, credential_provider_configurations=None, description=None, gateway_target_name=None)

Bases: object

(deprecated) Options for adding a Lambda target to a gateway.

Parameters:
  • lambda_function (IFunction) – (deprecated) The Lambda function to associate with this target.

  • tool_schema (ToolSchema) – (deprecated) The tool schema defining the available tools.

  • credential_provider_configurations (Optional[Sequence[ICredentialProviderConfig]]) – (deprecated) Credential providers for authentication. Default: - [GatewayCredentialProvider.iamRole()]

  • description (Optional[str]) – (deprecated) Optional description for the gateway target. Default: - No description

  • gateway_target_name (Optional[str]) – (deprecated) The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen). Default: - auto generate

Deprecated:

Use the equivalent construct from aws-cdk-lib/aws-bedrockagentcore instead.

Stability:

deprecated

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha
from aws_cdk import aws_lambda as lambda_

# credential_provider_config: bedrock_agentcore_alpha.ICredentialProviderConfig
# function_: lambda.Function
# tool_schema: bedrock_agentcore_alpha.ToolSchema

add_lambda_target_options = bedrock_agentcore_alpha.AddLambdaTargetOptions(
    lambda_function=function_,
    tool_schema=tool_schema,

    # the properties below are optional
    credential_provider_configurations=[credential_provider_config],
    description="description",
    gateway_target_name="gatewayTargetName"
)

Attributes

credential_provider_configurations

(deprecated) Credential providers for authentication.

Default:
  • [GatewayCredentialProvider.iamRole()]

Stability:

deprecated

description

(deprecated) Optional description for the gateway target.

Default:
  • No description

Stability:

deprecated

gateway_target_name

(deprecated) The name of the gateway target Valid characters are a-z, A-Z, 0-9, _ (underscore) and - (hyphen).

Default:
  • auto generate

Stability:

deprecated

lambda_function

(deprecated) The Lambda function to associate with this target.

Stability:

deprecated

tool_schema

(deprecated) The tool schema defining the available tools.

Stability:

deprecated