Skip to content
v2.277.0

HandlerConfigProperty Struct ​

The HandlerConfig property type specifies the configuration for the handler.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const handlerConfigProperty: appsync.CfnChannelNamespace.HandlerConfigProperty = {
  behavior: 'behavior',
  integration: {
    dataSourceName: 'dataSourceName',

    // the properties below are optional
    lambdaConfig: {
      invokeType: 'invokeType',
    },
  },
};
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_appsync as appsync

handler_config_property = appsync.CfnChannelNamespace.HandlerConfigProperty(
    behavior="behavior",
    integration=appsync.CfnChannelNamespace.IntegrationProperty(
        data_source_name="dataSourceName",

        # the properties below are optional
        lambda_config=appsync.CfnChannelNamespace.LambdaConfigProperty(
            invoke_type="invokeType"
        )
    )
)
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.appsync.*;

HandlerConfigProperty handlerConfigProperty = HandlerConfigProperty.builder()
        .behavior("behavior")
        .integration(IntegrationProperty.builder()
                .dataSourceName("dataSourceName")

                // the properties below are optional
                .lambdaConfig(LambdaConfigProperty.builder()
                        .invokeType("invokeType")
                        .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.AppSync;

var handlerConfigProperty = new HandlerConfigProperty {
    Behavior = "behavior",
    Integration = new IntegrationProperty {
        DataSourceName = "dataSourceName",

        // the properties below are optional
        LambdaConfig = new LambdaConfigProperty {
            InvokeType = "invokeType"
        }
    }
};
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"

handlerConfigProperty := &HandlerConfigProperty{
	Behavior: jsii.String("behavior"),
	Integration: &IntegrationProperty{
		DataSourceName: jsii.String("dataSourceName"),

		// the properties below are optional
		LambdaConfig: &LambdaConfigProperty{
			InvokeType: jsii.String("invokeType"),
		},
	},
}

Properties ​

behaviorstringbehaviorstrbehaviorStringBehaviorstringBehavior*stringrequired#
The behavior for the handler.
integrationIResolvable | CfnChannelNamespace.IntegrationPropertyintegrationtyping.Union[IResolvable, IntegrationProperty]integrationIResolvableIntegrationIResolvableIntegrationinterface{}required#
The integration data source configuration for the handler.