Skip to content
v2.277.0

DTMFSpecificationProperty Struct ​

Specifies the DTMF input specifications.

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 dTMFSpecificationProperty: lex.CfnBot.DTMFSpecificationProperty = {
  deletionCharacter: 'deletionCharacter',
  endCharacter: 'endCharacter',
  endTimeoutMs: 123,
  maxLength: 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_lex as lex

d_tmf_specification_property = lex.CfnBot.DTMFSpecificationProperty(
    deletion_character="deletionCharacter",
    end_character="endCharacter",
    end_timeout_ms=123,
    max_length=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.lex.*;

DTMFSpecificationProperty dTMFSpecificationProperty = DTMFSpecificationProperty.builder()
        .deletionCharacter("deletionCharacter")
        .endCharacter("endCharacter")
        .endTimeoutMs(123)
        .maxLength(123)
        .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 dTMFSpecificationProperty = new DTMFSpecificationProperty {
    DeletionCharacter = "deletionCharacter",
    EndCharacter = "endCharacter",
    EndTimeoutMs = 123,
    MaxLength = 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"

dTMFSpecificationProperty := &DTMFSpecificationProperty{
	DeletionCharacter: jsii.String("deletionCharacter"),
	EndCharacter: jsii.String("endCharacter"),
	EndTimeoutMs: jsii.Number(123),
	MaxLength: jsii.Number(123),
}

Properties ​

deletionCharacterstringdeletion_characterstrdeletionCharacterStringDeletionCharacterstringDeletionCharacter*stringrequired#
The DTMF character that clears the accumulated DTMF digits and immediately ends the input.
endCharacterstringend_characterstrendCharacterStringEndCharacterstringEndCharacter*stringrequired#
The DTMF character that immediately ends input.

If the user does not press this character, the input ends after the end timeout.

endTimeoutMsnumberend_timeout_msint | floatendTimeoutMsNumberEndTimeoutMsdoubleEndTimeoutMs*float64required#
How long the bot should wait after the last DTMF character input before assuming that the input has concluded.
maxLengthnumbermax_lengthint | floatmaxLengthNumberMaxLengthdoubleMaxLength*float64required#
The maximum number of DTMF digits allowed in an utterance.