CfnViewProps Struct
Properties for defining a CfnView.
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';
declare const template: any;
const cfnViewProps: connect.CfnViewProps = {
actions: ['actions'],
instanceArn: 'instanceArn',
name: 'name',
template: template,
// the properties below are optional
description: 'description',
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
# template: Any
cfn_view_props = connect.CfnViewProps(
actions=["actions"],
instance_arn="instanceArn",
name="name",
template=template,
# the properties below are optional
description="description",
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.*;
Object template;
CfnViewProps cfnViewProps = CfnViewProps.builder()
.actions(List.of("actions"))
.instanceArn("instanceArn")
.name("name")
.template(template)
// the properties below are optional
.description("description")
.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 template;
var cfnViewProps = new CfnViewProps {
Actions = new [] { "actions" },
InstanceArn = "instanceArn",
Name = "name",
Template = template,
// the properties below are optional
Description = "description",
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"
var template interface{}
cfnViewProps := &CfnViewProps{
Actions: []*string{
jsii.String("actions"),
},
InstanceArn: jsii.String("instanceArn"),
Name: jsii.String("name"),
Template: template,
// the properties below are optional
Description: jsii.String("description"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
A list of actions possible from the view.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#The description of the view.
instanceArnstring | IInstanceRefinstance_arntyping.Union[str, IInstanceRef]instanceArnStringInstanceArnstringInstanceArninterface{}required#The Amazon Resource Name (ARN) of the instance.
The name of the view.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#The tags associated with the view resource (not specific to view version).
The view template representing the structure of the view.