Class CfnTaskTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.connect.CfnTaskTemplate
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:56.016Z")
@Stability(Stable)
public class CfnTaskTemplate
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Connect::TaskTemplate
.
Specifies a task template for a Amazon Connect instance.
Example:
// 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 constraints; CfnTaskTemplate cfnTaskTemplate = CfnTaskTemplate.Builder.create(this, "MyCfnTaskTemplate") .instanceArn("instanceArn") // the properties below are optional .clientToken("clientToken") .constraints(constraints) .contactFlowArn("contactFlowArn") .defaults(List.of(DefaultFieldValueProperty.builder() .defaultValue("defaultValue") .id(FieldIdentifierProperty.builder() .name("name") .build()) .build())) .description("description") .fields(List.of(FieldProperty.builder() .id(FieldIdentifierProperty.builder() .name("name") .build()) .type("type") // the properties below are optional .description("description") .singleSelectOptions(List.of("singleSelectOptions")) .build())) .name("name") .status("status") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnTaskTemplate
.static interface
Describes constraints that apply to the template fields.static interface
Describes a default field and its corresponding value.static interface
The identifier of the task template field.static interface
Describes a single task template field.static interface
A field that is invisible to an agent.static interface
Indicates a field that is read-only to an agent.static interface
Information about a required field.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnTaskTemplate
(Construct scope, String id, CfnTaskTemplateProps props) Create a newAWS::Connect::TaskTemplate
.protected
CfnTaskTemplate
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTaskTemplate
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the task template.A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.Constraints that are applicable to the fields listed.The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.The default values for fields when a task is created by referencing this template.The description of the task template.Fields that are part of the template.The Amazon Resource Name (ARN) of the Amazon Connect instance.getName()
The name of the task template.The status of the task template.getTags()
The tags used to organize, track, or control access for this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setClientToken
(String value) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.void
setConstraints
(Object value) Constraints that are applicable to the fields listed.void
setContactFlowArn
(String value) The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.void
setDefaults
(List<Object> value) The default values for fields when a task is created by referencing this template.void
setDefaults
(IResolvable value) The default values for fields when a task is created by referencing this template.void
setDescription
(String value) The description of the task template.void
Fields that are part of the template.void
setFields
(IResolvable value) Fields that are part of the template.void
setInstanceArn
(String value) The Amazon Resource Name (ARN) of the Amazon Connect instance.void
The name of the task template.void
The status of the task template.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTaskTemplate
protected CfnTaskTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTaskTemplate
protected CfnTaskTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTaskTemplate
@Stability(Stable) public CfnTaskTemplate(@NotNull Construct scope, @NotNull String id, @NotNull CfnTaskTemplateProps props) Create a newAWS::Connect::TaskTemplate
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the task template. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
The tags used to organize, track, or control access for this resource. -
getConstraints
Constraints that are applicable to the fields listed.The values can be represented in either JSON or YAML format. For an example of the JSON configuration, see Examples at the bottom of this page.
-
setConstraints
Constraints that are applicable to the fields listed.The values can be represented in either JSON or YAML format. For an example of the JSON configuration, see Examples at the bottom of this page.
-
getInstanceArn
The Amazon Resource Name (ARN) of the Amazon Connect instance. -
setInstanceArn
The Amazon Resource Name (ARN) of the Amazon Connect instance. -
getClientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -
setClientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. -
getContactFlowArn
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.ContactFlowArn
is not required when there is a field withfieldType
=QUICK_CONNECT
. -
setContactFlowArn
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.ContactFlowArn
is not required when there is a field withfieldType
=QUICK_CONNECT
. -
getDefaults
The default values for fields when a task is created by referencing this template. -
setDefaults
The default values for fields when a task is created by referencing this template. -
setDefaults
The default values for fields when a task is created by referencing this template. -
getDescription
The description of the task template. -
setDescription
The description of the task template. -
getFields
Fields that are part of the template.A template requires at least one field that has type
Name
. -
setFields
Fields that are part of the template.A template requires at least one field that has type
Name
. -
setFields
Fields that are part of the template.A template requires at least one field that has type
Name
. -
getName
The name of the task template. -
setName
The name of the task template. -
getStatus
The status of the task template. -
setStatus
The status of the task template.
-