Skip to content

Create View

connect_create_view R Documentation

Creates a new view with the possible status of SAVED or PUBLISHED

Description

Creates a new view with the possible status of SAVED or PUBLISHED.

The views will have a unique name for each connect instance.

It performs basic content validation if the status is SAVED or full content validation if the status is set to PUBLISHED. An error is returned if validation fails. It associates either the ⁠$SAVED⁠ qualifier or both of the ⁠$SAVED⁠ and ⁠$LATEST⁠ qualifiers with the provided view content based on the status. The view is idempotent if ClientToken is provided.

Usage

connect_create_view(InstanceId, ClientToken, Status, Content,
  Description, Name, Tags)

Arguments

InstanceId

[required] The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

ClientToken

A unique Id for each create view request to avoid duplicate view creation. For example, the view is idempotent ClientToken is provided.

Status

[required] Indicates the view status as either SAVED or PUBLISHED. The PUBLISHED status will initiate validation on the content.

Content

[required] View content containing all content necessary to render a view except for runtime input data.

The total uncompressed content has a maximum file size of 400kB.

Description

The description of the view.

Name

[required] The name of the view.

Tags

The tags associated with the view resource (not specific to view version).These tags can be used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

Value

A list with the following syntax:

list(
  View = list(
    Id = "string",
    Arn = "string",
    Name = "string",
    Status = "PUBLISHED"|"SAVED",
    Type = "CUSTOMER_MANAGED"|"AWS_MANAGED",
    Description = "string",
    Version = 123,
    VersionDescription = "string",
    Content = list(
      InputSchema = "string",
      Template = "string",
      Actions = list(
        "string"
      )
    ),
    Tags = list(
      "string"
    ),
    CreatedTime = as.POSIXct(
      "2015-01-01"
    ),
    LastModifiedTime = as.POSIXct(
      "2015-01-01"
    ),
    ViewContentSha256 = "string"
  )
)

Request syntax

svc$create_view(
  InstanceId = "string",
  ClientToken = "string",
  Status = "PUBLISHED"|"SAVED",
  Content = list(
    Template = "string",
    Actions = list(
      "string"
    )
  ),
  Description = "string",
  Name = "string",
  Tags = list(
    "string"
  )
)