Skip to content
v2.278.0

CfnPromptProps Struct ​

Properties for defining a CfnPrompt.

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 cfnPromptProps: connect.CfnPromptProps = {
  instanceArn: 'instanceArn',
  name: 'name',

  // the properties below are optional
  description: 'description',
  s3Uri: 's3Uri',
  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_prompt_props = connect.CfnPromptProps(
    instance_arn="instanceArn",
    name="name",

    # the properties below are optional
    description="description",
    s3_uri="s3Uri",
    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.*;

CfnPromptProps cfnPromptProps = CfnPromptProps.builder()
        .instanceArn("instanceArn")
        .name("name")

        // the properties below are optional
        .description("description")
        .s3Uri("s3Uri")
        .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 cfnPromptProps = new CfnPromptProps {
    InstanceArn = "instanceArn",
    Name = "name",

    // the properties below are optional
    Description = "description",
    S3Uri = "s3Uri",
    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"

cfnPromptProps := &CfnPromptProps{
	InstanceArn: jsii.String("instanceArn"),
	Name: jsii.String("name"),

	// the properties below are optional
	Description: jsii.String("description"),
	S3Uri: jsii.String("s3Uri"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the prompt.
instanceArnstring | IInstanceRefinstance_arntyping.Union[str, IInstanceRef]instanceArnStringInstanceArnstringInstanceArninterface{} required #
The identifier of the Connect Customer instance.
namestringnamestrnameStringNamestringName*string required #
The name of the prompt.
s3Urioptionalstrings3_urioptionalstrs3UrioptionalStringS3UrioptionalstringS3Urioptional*string #
The URI for the S3 bucket where the prompt is stored.

This property is required when you create a prompt.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags used to organize, track, or control access for this resource.

For example, { "tags": {"key1":"value1", "key2":"value2"} }.