CfnTestCaseProps Struct
Properties for defining a CfnTestCase.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnTestCaseProps: connect.CfnTestCaseProps = {
content: 'content',
instanceArn: 'instanceArn',
name: 'name',
// the properties below are optional
description: 'description',
entryPoint: {
chatEntryPointParameters: {
flowId: 'flowId',
},
type: 'type',
voiceCallEntryPointParameters: {
destinationPhoneNumber: 'destinationPhoneNumber',
flowId: 'flowId',
sourcePhoneNumber: 'sourcePhoneNumber',
},
},
initializationData: 'initializationData',
status: 'status',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect
cfn_test_case_props = connect.CfnTestCaseProps(
content="content",
instance_arn="instanceArn",
name="name",
# the properties below are optional
description="description",
entry_point=connect.CfnTestCase.EntryPointProperty(
chat_entry_point_parameters=connect.CfnTestCase.ChatEntryPointParametersProperty(
flow_id="flowId"
),
type="type",
voice_call_entry_point_parameters=connect.CfnTestCase.VoiceCallEntryPointParametersProperty(
destination_phone_number="destinationPhoneNumber",
flow_id="flowId",
source_phone_number="sourcePhoneNumber"
)
),
initialization_data="initializationData",
status="status",
tags=[CfnTag(
key="key",
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.connect.*;
CfnTestCaseProps cfnTestCaseProps = CfnTestCaseProps.builder()
.content("content")
.instanceArn("instanceArn")
.name("name")
// the properties below are optional
.description("description")
.entryPoint(EntryPointProperty.builder()
.chatEntryPointParameters(ChatEntryPointParametersProperty.builder()
.flowId("flowId")
.build())
.type("type")
.voiceCallEntryPointParameters(VoiceCallEntryPointParametersProperty.builder()
.destinationPhoneNumber("destinationPhoneNumber")
.flowId("flowId")
.sourcePhoneNumber("sourcePhoneNumber")
.build())
.build())
.initializationData("initializationData")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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.Connect;
var cfnTestCaseProps = new CfnTestCaseProps {
Content = "content",
InstanceArn = "instanceArn",
Name = "name",
// the properties below are optional
Description = "description",
EntryPoint = new EntryPointProperty {
ChatEntryPointParameters = new ChatEntryPointParametersProperty {
FlowId = "flowId"
},
Type = "type",
VoiceCallEntryPointParameters = new VoiceCallEntryPointParametersProperty {
DestinationPhoneNumber = "destinationPhoneNumber",
FlowId = "flowId",
SourcePhoneNumber = "sourcePhoneNumber"
}
},
InitializationData = "initializationData",
Status = "status",
Tags = new [] { new CfnTag {
Key = "key",
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"
cfnTestCaseProps := &CfnTestCaseProps{
Content: jsii.String("content"),
InstanceArn: jsii.String("instanceArn"),
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
EntryPoint: &EntryPointProperty{
ChatEntryPointParameters: &ChatEntryPointParametersProperty{
FlowId: jsii.String("flowId"),
},
Type: jsii.String("type"),
VoiceCallEntryPointParameters: &VoiceCallEntryPointParametersProperty{
DestinationPhoneNumber: jsii.String("destinationPhoneNumber"),
FlowId: jsii.String("flowId"),
SourcePhoneNumber: jsii.String("sourcePhoneNumber"),
},
},
InitializationData: jsii.String("initializationData"),
Status: jsii.String("status"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The content of the test case.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#The description of the test case.
entryPointoptionalIResolvable | CfnTestCase.EntryPointPropertyentry_pointoptionaltyping.Union[IResolvable, EntryPointProperty]entryPointoptionalIResolvableEntryPointoptionalIResolvableEntryPointoptionalinterface{}#The Entry Point associated with the test case.
initializationDataoptionalstringinitialization_dataoptionalstrinitializationDataoptionalStringInitializationDataoptionalstringInitializationDataoptional*string#The initialization data of the test case.
The identifier of the Amazon Connect instance.
The name of the test case.
The status of the test case.