Skip to content

Creates a test case with its content and metadata for the specified Amazon Connect instance

Description

Creates a test case with its content and metadata for the specified Amazon Connect instance.

Usage

connect_create_test_case(InstanceId, Name, Description, Content,
  EntryPoint, InitializationData, Status, TestCaseId, Tags,
  LastModifiedTime, LastModifiedRegion)

Arguments

  • InstanceId

[required] The identifier of the Amazon Connect instance.

  • Name

[required] The name of the test.

  • Description

The description of the test.

  • Content

[required] The JSON string that represents the content of the test.

  • EntryPoint

Defines the starting point for your test.

  • InitializationData

Defines the initial custom attributes for your test.

  • Status

Indicates the test status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content. The SAVED status does not initiate validation of the content.

  • TestCaseId

Id of the test case if you want to create it in a replica region using Amazon Connect Global Resiliency

  • Tags

The tags used to organize, track, or control access for this resource.

  • LastModifiedTime

The time at which the resource was last modified.

  • LastModifiedRegion

The region in which the resource was last modified

Value

A list with the following syntax:

list(
  TestCaseId = "string",
  TestCaseArn = "string"
)

Request syntax

svc$create_test_case(
  InstanceId = "string",
  Name = "string",
  Description = "string",
  Content = "string",
  EntryPoint = list(
    Type = "VOICE_CALL"|"CHAT",
    VoiceCallEntryPointParameters = list(
      SourcePhoneNumber = "string",
      DestinationPhoneNumber = "string",
      FlowId = "string"
    ),
    ChatEntryPointParameters = list(
      FlowId = "string"
    )
  ),
  InitializationData = "string",
  Status = "PUBLISHED"|"SAVED",
  TestCaseId = "string",
  Tags = list(
    "string"
  ),
  LastModifiedTime = as.POSIXct(
    "2015-01-01"
  ),
  LastModifiedRegion = "string"
)