Class CfnTaskTemplate
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.connect.CfnTaskTemplate
- All Implemented Interfaces:
IInspectable,ITaskTemplateRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.670Z")
@Stability(Stable)
public class CfnTaskTemplate
extends CfnResource
implements IInspectable, ITaskTemplateRef, ITaggable
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")
.selfAssignContactFlowArn("selfAssignContactFlowArn")
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTaskTemplate.static interfaceDescribes constraints that apply to the template fields.static interfaceDescribes a default field and its corresponding value.static interfaceThe identifier of the task template field.static interfaceDescribes a single task template field.static interfaceA field that is invisible to an agent.static interfaceIndicates a field that is read-only to an agent.static interfaceInformation about a required field.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.connect.ITaskTemplateRef
ITaskTemplateRef.Jsii$Default, ITaskTemplateRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTaskTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTaskTemplate(software.amazon.jsii.JsiiObjectRef objRef) CfnTaskTemplate(software.constructs.Construct scope, String id, CfnTaskTemplateProps props) Create a newAWS::Connect::TaskTemplate. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTaskTemplate(ITaskTemplateRef resource) The 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 Amazon Resource Name (ARN) of the flow.The status of the task template.getTags()Tag Manager which manages the tags for this resource.The tags used to organize, track, or control access for this resource.A reference to a TaskTemplate resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTaskTemplate.renderProperties(Map<String, Object> props) voidsetClientToken(String value) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.voidsetConstraints(Object value) Constraints that are applicable to the fields listed.voidsetContactFlowArn(String value) The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template.voidsetDefaults(List<Object> value) The default values for fields when a task is created by referencing this template.voidsetDefaults(IResolvable value) The default values for fields when a task is created by referencing this template.voidsetDescription(String value) The description of the task template.voidFields that are part of the template.voidsetFields(IResolvable value) Fields that are part of the template.voidsetInstanceArn(String value) The Amazon Resource Name (ARN) of the Amazon Connect instance.voidThe name of the task template.voidThe Amazon Resource Name (ARN) of the flow.voidThe status of the task template.voidsetTagsRaw(List<CfnTag> value) The tags used to organize, track, or control access for this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnTaskTemplateProps props) Create a newAWS::Connect::TaskTemplate.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTaskTemplate
@Stability(Stable) @NotNull public static String arnForTaskTemplate(@NotNull ITaskTemplateRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTaskTemplate
Checks whether the given object is a CfnTaskTemplate.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the task template. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getTaskTemplateRef
A reference to a TaskTemplate resource.- Specified by:
getTaskTemplateRefin interfaceITaskTemplateRef
-
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. -
getConstraints
Constraints that are applicable to the fields listed. -
setConstraints
Constraints that are applicable to the fields listed. -
getContactFlowArn
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template. -
setContactFlowArn
The Amazon Resource Name (ARN) of the flow that runs by default when a task is created by referencing this template. -
getDefaults
The default values for fields when a task is created by referencing this template.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTaskTemplate.DefaultFieldValueProperty> -
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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTaskTemplate.FieldProperty> -
setFields
Fields that are part of the template. -
setFields
Fields that are part of the template. -
getName
The name of the task template. -
setName
The name of the task template. -
getSelfAssignContactFlowArn
The Amazon Resource Name (ARN) of the flow. -
setSelfAssignContactFlowArn
The Amazon Resource Name (ARN) of the flow. -
getStatus
The status of the task template. -
setStatus
The status of the task template. -
getTagsRaw
The tags used to organize, track, or control access for this resource. -
setTagsRaw
The tags used to organize, track, or control access for this resource.
-