aws_sdk_connect/client/create_task_template.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateTaskTemplate`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`instance_id(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
/// - [`name(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_name):<br>required: **true**<br><p>The name of the task template.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_description):<br>required: **false**<br><p>The description of the task template.</p><br>
/// - [`contact_flow_id(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::contact_flow_id) / [`set_contact_flow_id(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_contact_flow_id):<br>required: **false**<br><p>The identifier of the flow that runs by default when a task is created by referencing this template.</p><br>
/// - [`self_assign_flow_id(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::self_assign_flow_id) / [`set_self_assign_flow_id(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_self_assign_flow_id):<br>required: **false**<br><p>The ContactFlowId for the flow that will be run if this template is used to create a self-assigned task.</p><br>
/// - [`constraints(TaskTemplateConstraints)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::constraints) / [`set_constraints(Option<TaskTemplateConstraints>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_constraints):<br>required: **false**<br><p>Constraints that are applicable to the fields listed.</p><br>
/// - [`defaults(TaskTemplateDefaults)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::defaults) / [`set_defaults(Option<TaskTemplateDefaults>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_defaults):<br>required: **false**<br><p>The default values for fields when a task is created by referencing this template.</p><br>
/// - [`status(TaskTemplateStatus)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::status) / [`set_status(Option<TaskTemplateStatus>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_status):<br>required: **false**<br><p>Marks a template as <code>ACTIVE</code> or <code>INACTIVE</code> for a task to refer to it. Tasks can only be created from <code>ACTIVE</code> templates. If a template is marked as <code>INACTIVE</code>, then a task that refers to this template cannot be created.</p><br>
/// - [`fields(TaskTemplateField)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::fields) / [`set_fields(Option<Vec::<TaskTemplateField>>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_fields):<br>required: **true**<br><p>Fields that are part of the template.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p><br>
/// - On success, responds with [`CreateTaskTemplateOutput`](crate::operation::create_task_template::CreateTaskTemplateOutput) with field(s):
/// - [`id(String)`](crate::operation::create_task_template::CreateTaskTemplateOutput::id): <p>The identifier of the task template resource.</p>
/// - [`arn(String)`](crate::operation::create_task_template::CreateTaskTemplateOutput::arn): <p>The Amazon Resource Name (ARN) for the task template resource.</p>
/// - On failure, responds with [`SdkError<CreateTaskTemplateError>`](crate::operation::create_task_template::CreateTaskTemplateError)
pub fn create_task_template(&self) -> crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder {
crate::operation::create_task_template::builders::CreateTaskTemplateFluentBuilder::new(self.handle.clone())
}
}