Skip to content
v2.277.0

HttpTargetConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const httpTargetConfigurationProperty: bedrockagentcore.CfnGatewayTarget.HttpTargetConfigurationProperty = {
  agentcoreRuntime: {
    arn: 'arn',

    // the properties below are optional
    qualifier: 'qualifier',
    schema: {
      source: {
        inlinePayload: 'inlinePayload',
        s3: {
          bucketOwnerAccountId: 'bucketOwnerAccountId',
          uri: 'uri',
        },
      },
    },
  },
  connector: {
    source: {
      connectorId: 'connectorId',
    },

    // the properties below are optional
    parameters: {
      parametersKey: 'parameters',
    },
  },
  passthrough: {
    endpoint: 'endpoint',
    protocolType: 'protocolType',

    // the properties below are optional
    schema: {
      source: {
        inlinePayload: 'inlinePayload',
        s3: {
          bucketOwnerAccountId: 'bucketOwnerAccountId',
          uri: 'uri',
        },
      },
    },
    stickinessConfiguration: {
      identifier: 'identifier',

      // the properties below are optional
      timeout: 123,
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

http_target_configuration_property = bedrockagentcore.CfnGatewayTarget.HttpTargetConfigurationProperty(
    agentcore_runtime=bedrockagentcore.CfnGatewayTarget.RuntimeTargetConfigurationProperty(
        arn="arn",

        # the properties below are optional
        qualifier="qualifier",
        schema=bedrockagentcore.CfnGatewayTarget.HttpApiSchemaConfigurationProperty(
            source=bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty(
                inline_payload="inlinePayload",
                s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
                    bucket_owner_account_id="bucketOwnerAccountId",
                    uri="uri"
                )
            )
        )
    ),
    connector=bedrockagentcore.CfnGatewayTarget.HttpConnectorTargetConfigurationProperty(
        source=bedrockagentcore.CfnGatewayTarget.HttpConnectorSourceProperty(
            connector_id="connectorId"
        ),

        # the properties below are optional
        parameters={
            "parameters_key": "parameters"
        }
    ),
    passthrough=bedrockagentcore.CfnGatewayTarget.PassthroughTargetConfigurationProperty(
        endpoint="endpoint",
        protocol_type="protocolType",

        # the properties below are optional
        schema=bedrockagentcore.CfnGatewayTarget.HttpApiSchemaConfigurationProperty(
            source=bedrockagentcore.CfnGatewayTarget.ApiSchemaConfigurationProperty(
                inline_payload="inlinePayload",
                s3=bedrockagentcore.CfnGatewayTarget.S3ConfigurationProperty(
                    bucket_owner_account_id="bucketOwnerAccountId",
                    uri="uri"
                )
            )
        ),
        stickiness_configuration=bedrockagentcore.CfnGatewayTarget.StickinessConfigurationProperty(
            identifier="identifier",

            # the properties below are optional
            timeout=123
        )
    )
)
java
// 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.*;

HttpTargetConfigurationProperty httpTargetConfigurationProperty = HttpTargetConfigurationProperty.builder()
        .agentcoreRuntime(RuntimeTargetConfigurationProperty.builder()
                .arn("arn")

                // the properties below are optional
                .qualifier("qualifier")
                .schema(HttpApiSchemaConfigurationProperty.builder()
                        .source(ApiSchemaConfigurationProperty.builder()
                                .inlinePayload("inlinePayload")
                                .s3(S3ConfigurationProperty.builder()
                                        .bucketOwnerAccountId("bucketOwnerAccountId")
                                        .uri("uri")
                                        .build())
                                .build())
                        .build())
                .build())
        .connector(HttpConnectorTargetConfigurationProperty.builder()
                .source(HttpConnectorSourceProperty.builder()
                        .connectorId("connectorId")
                        .build())

                // the properties below are optional
                .parameters(Map.of(
                        "parametersKey", "parameters"))
                .build())
        .passthrough(PassthroughTargetConfigurationProperty.builder()
                .endpoint("endpoint")
                .protocolType("protocolType")

                // the properties below are optional
                .schema(HttpApiSchemaConfigurationProperty.builder()
                        .source(ApiSchemaConfigurationProperty.builder()
                                .inlinePayload("inlinePayload")
                                .s3(S3ConfigurationProperty.builder()
                                        .bucketOwnerAccountId("bucketOwnerAccountId")
                                        .uri("uri")
                                        .build())
                                .build())
                        .build())
                .stickinessConfiguration(StickinessConfigurationProperty.builder()
                        .identifier("identifier")

                        // the properties below are optional
                        .timeout(123)
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var httpTargetConfigurationProperty = new HttpTargetConfigurationProperty {
    AgentcoreRuntime = new RuntimeTargetConfigurationProperty {
        Arn = "arn",

        // the properties below are optional
        Qualifier = "qualifier",
        Schema = new HttpApiSchemaConfigurationProperty {
            Source = new ApiSchemaConfigurationProperty {
                InlinePayload = "inlinePayload",
                S3 = new S3ConfigurationProperty {
                    BucketOwnerAccountId = "bucketOwnerAccountId",
                    Uri = "uri"
                }
            }
        }
    },
    Connector = new HttpConnectorTargetConfigurationProperty {
        Source = new HttpConnectorSourceProperty {
            ConnectorId = "connectorId"
        },

        // the properties below are optional
        Parameters = new Dictionary<string, string> {
            { "parametersKey", "parameters" }
        }
    },
    Passthrough = new PassthroughTargetConfigurationProperty {
        Endpoint = "endpoint",
        ProtocolType = "protocolType",

        // the properties below are optional
        Schema = new HttpApiSchemaConfigurationProperty {
            Source = new ApiSchemaConfigurationProperty {
                InlinePayload = "inlinePayload",
                S3 = new S3ConfigurationProperty {
                    BucketOwnerAccountId = "bucketOwnerAccountId",
                    Uri = "uri"
                }
            }
        },
        StickinessConfiguration = new StickinessConfigurationProperty {
            Identifier = "identifier",

            // the properties below are optional
            Timeout = 123
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

httpTargetConfigurationProperty := &HttpTargetConfigurationProperty{
	AgentcoreRuntime: &RuntimeTargetConfigurationProperty{
		Arn: jsii.String("arn"),

		// the properties below are optional
		Qualifier: jsii.String("qualifier"),
		Schema: &HttpApiSchemaConfigurationProperty{
			Source: &ApiSchemaConfigurationProperty{
				InlinePayload: jsii.String("inlinePayload"),
				S3: &S3ConfigurationProperty{
					BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
					Uri: jsii.String("uri"),
				},
			},
		},
	},
	Connector: &HttpConnectorTargetConfigurationProperty{
		Source: &HttpConnectorSourceProperty{
			ConnectorId: jsii.String("connectorId"),
		},

		// the properties below are optional
		Parameters: map[string]*string{
			"parametersKey": jsii.String("parameters"),
		},
	},
	Passthrough: &PassthroughTargetConfigurationProperty{
		Endpoint: jsii.String("endpoint"),
		ProtocolType: jsii.String("protocolType"),

		// the properties below are optional
		Schema: &HttpApiSchemaConfigurationProperty{
			Source: &ApiSchemaConfigurationProperty{
				InlinePayload: jsii.String("inlinePayload"),
				S3: &S3ConfigurationProperty{
					BucketOwnerAccountId: jsii.String("bucketOwnerAccountId"),
					Uri: jsii.String("uri"),
				},
			},
		},
		StickinessConfiguration: &StickinessConfigurationProperty{
			Identifier: jsii.String("identifier"),

			// the properties below are optional
			Timeout: jsii.Number(123),
		},
	},
}

Properties ​

agentcoreRuntimeoptionalIResolvable | CfnGatewayTarget.RuntimeTargetConfigurationPropertyagentcore_runtimeoptionaltyping.Union[IResolvable, RuntimeTargetConfigurationProperty]agentcoreRuntimeoptionalIResolvableAgentcoreRuntimeoptionalIResolvableAgentcoreRuntimeoptionalinterface{}#
connectoroptionalIResolvable | CfnGatewayTarget.HttpConnectorTargetConfigurationPropertyconnectoroptionaltyping.Union[IResolvable, HttpConnectorTargetConfigurationProperty]connectoroptionalIResolvableConnectoroptionalIResolvableConnectoroptionalinterface{}#
passthroughoptionalIResolvable | CfnGatewayTarget.PassthroughTargetConfigurationPropertypassthroughoptionaltyping.Union[IResolvable, PassthroughTargetConfigurationProperty]passthroughoptionalIResolvablePassthroughoptionalIResolvablePassthroughoptionalinterface{}#