Resource: aws_connect_hours_of_operation

Provides an Amazon Connect Hours of Operation resource. For more information see Amazon Connect: Getting Started

Example Usage

resource "aws_connect_hours_of_operation" "test" {
  instance_id = "aaaaaaaa-bbbb-cccc-dddd-111111111111"
  name        = "Office Hours"
  description = "Monday office hours"
  time_zone   = "EST"

  config {
    day = "MONDAY"

    end_time {
      hours   = 23
      minutes = 8
    }

    start_time {
      hours   = 8
      minutes = 0
    }
  }

  config {
    day = "TUESDAY"

    end_time {
      hours   = 21
      minutes = 0
    }

    start_time {
      hours   = 9
      minutes = 0
    }
  }

  tags = {
    "Name" = "Example Hours of Operation"
  }
}

Argument Reference

This resource supports the following arguments:

A config block supports the following arguments:

A end_time block supports the following arguments:

A start_time block supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Amazon Connect Hours of Operations using the instance_id and hours_of_operation_id separated by a colon (:). For example:

import {
  to = aws_connect_hours_of_operation.example
  id = "f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5"
}

Using terraform import, import Amazon Connect Hours of Operations using the instance_id and hours_of_operation_id separated by a colon (:). For example:

% terraform import aws_connect_hours_of_operation.example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5