Class CfnTaskTemplate

java.lang.Object
software.amazon.jsii.JsiiObject
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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::Connect::TaskTemplate.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the task template.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      The tags used to organize, track, or control access for this resource.
    • getConstraints

      @Stability(Stable) @NotNull public Object 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

      @Stability(Stable) public void setConstraints(@NotNull Object value)
      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

      @Stability(Stable) @NotNull public String getInstanceArn()
      The Amazon Resource Name (ARN) of the Amazon Connect instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the Amazon Connect instance.
    • getClientToken

      @Stability(Stable) @Nullable public String getClientToken()
      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
    • setClientToken

      @Stability(Stable) public void setClientToken(@Nullable String value)
      A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
    • getContactFlowArn

      @Stability(Stable) @Nullable public String 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 with fieldType = QUICK_CONNECT .

    • setContactFlowArn

      @Stability(Stable) public void setContactFlowArn(@Nullable String value)
      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 with fieldType = QUICK_CONNECT .

    • getDefaults

      @Stability(Stable) @Nullable public Object getDefaults()
      The default values for fields when a task is created by referencing this template.
    • setDefaults

      @Stability(Stable) public void setDefaults(@Nullable IResolvable value)
      The default values for fields when a task is created by referencing this template.
    • setDefaults

      @Stability(Stable) public void setDefaults(@Nullable List<Object> value)
      The default values for fields when a task is created by referencing this template.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the task template.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the task template.
    • getFields

      @Stability(Stable) @Nullable public Object getFields()
      Fields that are part of the template.

      A template requires at least one field that has type Name .

    • setFields

      @Stability(Stable) public void setFields(@Nullable IResolvable value)
      Fields that are part of the template.

      A template requires at least one field that has type Name .

    • setFields

      @Stability(Stable) public void setFields(@Nullable List<Object> value)
      Fields that are part of the template.

      A template requires at least one field that has type Name .

    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the task template.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the task template.
    • getStatus

      @Stability(Stable) @Nullable public String getStatus()
      The status of the task template.
    • setStatus

      @Stability(Stable) public void setStatus(@Nullable String value)
      The status of the task template.