HoursOfOperation

class HoursOfOperation : KotlinCustomResource

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.HoursOfOperation;
import com.pulumi.aws.connect.HoursOfOperationArgs;
import com.pulumi.aws.connect.inputs.HoursOfOperationConfigArgs;
import com.pulumi.aws.connect.inputs.HoursOfOperationConfigEndTimeArgs;
import com.pulumi.aws.connect.inputs.HoursOfOperationConfigStartTimeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new HoursOfOperation("test", HoursOfOperationArgs.builder()
.configs(
HoursOfOperationConfigArgs.builder()
.day("MONDAY")
.endTime(HoursOfOperationConfigEndTimeArgs.builder()
.hours(23)
.minutes(8)
.build())
.startTime(HoursOfOperationConfigStartTimeArgs.builder()
.hours(8)
.minutes(0)
.build())
.build(),
HoursOfOperationConfigArgs.builder()
.day("TUESDAY")
.endTime(HoursOfOperationConfigEndTimeArgs.builder()
.hours(21)
.minutes(0)
.build())
.startTime(HoursOfOperationConfigStartTimeArgs.builder()
.hours(9)
.minutes(0)
.build())
.build())
.description("Monday office hours")
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.tags(Map.of("Name", "Example Hours of Operation"))
.timeZone("EST")
.build());
}
}

Import

Amazon Connect Hours of Operations can be imported using the instance_id and hours_of_operation_id separated by a colon (:), e.g.,

$ pulumi import aws:connect/hoursOfOperation:HoursOfOperation example f1288a1f-6193-445a-b47e-af739b2:c1d4e5f6-1b3c-1b3c-1b3c-c1d4e5f6c1d4e5

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) of the Hours of Operation.

Link copied to clipboard

One or more config blocks which define the configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below.

Link copied to clipboard
val description: Output<String>?

Specifies the description of the Hours of Operation.

Link copied to clipboard

(Deprecated) The Amazon Resource Name (ARN) of the Hours of Operation.

Link copied to clipboard

The identifier for the hours of operation.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

Specifies the identifier of the hosting Amazon Connect Instance.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Hours of Operation.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

Tags to apply to the Hours of Operation. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val timeZone: Output<String>

Specifies the time zone of the Hours of Operation.

Link copied to clipboard
val urn: Output<String>