Skip to content
v2.277.0

CustomPayloadProperty Struct ​

A custom response string that Amazon Lex sends to your application.

You define the content and structure the string.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lex as lex } from 'aws-cdk-lib';
const customPayloadProperty: lex.CfnBot.CustomPayloadProperty = {
  value: 'value',
};
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_lex as lex

custom_payload_property = lex.CfnBot.CustomPayloadProperty(
    value="value"
)
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.lex.*;

CustomPayloadProperty customPayloadProperty = CustomPayloadProperty.builder()
        .value("value")
        .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.Lex;

var customPayloadProperty = new CustomPayloadProperty {
    Value = "value"
};
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"

customPayloadProperty := &CustomPayloadProperty{
	Value: jsii.String("value"),
}

Properties ​

valuestringvaluestrvalueStringValuestringValue*stringrequired#
The string that is sent to your application.