1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. connect
  5. HoursOfOperation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.connect.HoursOfOperation

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Connect::HoursOfOperation

Example Usage

Example

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var hoursOfOperation = new AwsNative.Connect.HoursOfOperation("hoursOfOperation", new()
    {
        Name = "ExampleHoursOfOperation",
        Description = "hours of operation created using cfn",
        InstanceArn = "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
        TimeZone = "Pacific/Midway",
        Config = new[]
        {
            new AwsNative.Connect.Inputs.HoursOfOperationConfigArgs
            {
                Day = AwsNative.Connect.HoursOfOperationConfigDay.Sunday,
                EndTime = new AwsNative.Connect.Inputs.HoursOfOperationTimeSliceArgs
                {
                    Hours = 11,
                    Minutes = 59,
                },
                StartTime = new AwsNative.Connect.Inputs.HoursOfOperationTimeSliceArgs
                {
                    Hours = 10,
                    Minutes = 1,
                },
            },
        },
        Tags = new[]
        {
            new AwsNative.Inputs.TagArgs
            {
                Key = "tagKey",
                Value = "tagValue",
            },
        },
    });

});
Copy
package main

import (
	awsnative "github.com/pulumi/pulumi-aws-native/sdk/go/aws"
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/connect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.NewHoursOfOperation(ctx, "hoursOfOperation", &connect.HoursOfOperationArgs{
			Name:        pulumi.String("ExampleHoursOfOperation"),
			Description: pulumi.String("hours of operation created using cfn"),
			InstanceArn: pulumi.String("arn:aws:connect:region-name:aws-account-id:instance/instance-arn"),
			TimeZone:    pulumi.String("Pacific/Midway"),
			Config: connect.HoursOfOperationConfigArray{
				&connect.HoursOfOperationConfigArgs{
					Day: connect.HoursOfOperationConfigDaySunday,
					EndTime: &connect.HoursOfOperationTimeSliceArgs{
						Hours:   pulumi.Int(11),
						Minutes: pulumi.Int(59),
					},
					StartTime: &connect.HoursOfOperationTimeSliceArgs{
						Hours:   pulumi.Int(10),
						Minutes: pulumi.Int(1),
					},
				},
			},
			Tags: aws.TagArray{
				&aws.TagArgs{
					Key:   pulumi.String("tagKey"),
					Value: pulumi.String("tagValue"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy

Coming soon!

import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const hoursOfOperation = new aws_native.connect.HoursOfOperation("hoursOfOperation", {
    name: "ExampleHoursOfOperation",
    description: "hours of operation created using cfn",
    instanceArn: "arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
    timeZone: "Pacific/Midway",
    config: [{
        day: aws_native.connect.HoursOfOperationConfigDay.Sunday,
        endTime: {
            hours: 11,
            minutes: 59,
        },
        startTime: {
            hours: 10,
            minutes: 1,
        },
    }],
    tags: [{
        key: "tagKey",
        value: "tagValue",
    }],
});
Copy
import pulumi
import pulumi_aws_native as aws_native

hours_of_operation = aws_native.connect.HoursOfOperation("hoursOfOperation",
    name="ExampleHoursOfOperation",
    description="hours of operation created using cfn",
    instance_arn="arn:aws:connect:region-name:aws-account-id:instance/instance-arn",
    time_zone="Pacific/Midway",
    config=[{
        "day": aws_native.connect.HoursOfOperationConfigDay.SUNDAY,
        "end_time": {
            "hours": 11,
            "minutes": 59,
        },
        "start_time": {
            "hours": 10,
            "minutes": 1,
        },
    }],
    tags=[{
        "key": "tagKey",
        "value": "tagValue",
    }])
Copy

Coming soon!

Create HoursOfOperation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new HoursOfOperation(name: string, args: HoursOfOperationArgs, opts?: CustomResourceOptions);
@overload
def HoursOfOperation(resource_name: str,
                     args: HoursOfOperationArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def HoursOfOperation(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     config: Optional[Sequence[HoursOfOperationConfigArgs]] = None,
                     instance_arn: Optional[str] = None,
                     time_zone: Optional[str] = None,
                     description: Optional[str] = None,
                     hours_of_operation_overrides: Optional[Sequence[HoursOfOperationOverrideArgs]] = None,
                     name: Optional[str] = None,
                     tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewHoursOfOperation(ctx *Context, name string, args HoursOfOperationArgs, opts ...ResourceOption) (*HoursOfOperation, error)
public HoursOfOperation(string name, HoursOfOperationArgs args, CustomResourceOptions? opts = null)
public HoursOfOperation(String name, HoursOfOperationArgs args)
public HoursOfOperation(String name, HoursOfOperationArgs args, CustomResourceOptions options)
type: aws-native:connect:HoursOfOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. HoursOfOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. HoursOfOperationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. HoursOfOperationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. HoursOfOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. HoursOfOperationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

HoursOfOperation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The HoursOfOperation resource accepts the following input properties:

Config This property is required. List<Pulumi.AwsNative.Connect.Inputs.HoursOfOperationConfig>
Configuration information for the hours of operation: day, start time, and end time.
InstanceArn This property is required. string
The identifier of the Amazon Connect instance.
TimeZone This property is required. string
The time zone of the hours of operation.
Description string
The description of the hours of operation.
HoursOfOperationOverrides List<Pulumi.AwsNative.Connect.Inputs.HoursOfOperationOverride>
One or more hours of operation overrides assigned to an hour of operation.
Name string
The name of the hours of operation.
Tags List<Pulumi.AwsNative.Inputs.Tag>
One or more tags.
Config This property is required. []HoursOfOperationConfigArgs
Configuration information for the hours of operation: day, start time, and end time.
InstanceArn This property is required. string
The identifier of the Amazon Connect instance.
TimeZone This property is required. string
The time zone of the hours of operation.
Description string
The description of the hours of operation.
HoursOfOperationOverrides []HoursOfOperationOverrideArgs
One or more hours of operation overrides assigned to an hour of operation.
Name string
The name of the hours of operation.
Tags TagArgs
One or more tags.
config This property is required. List<HoursOfOperationConfig>
Configuration information for the hours of operation: day, start time, and end time.
instanceArn This property is required. String
The identifier of the Amazon Connect instance.
timeZone This property is required. String
The time zone of the hours of operation.
description String
The description of the hours of operation.
hoursOfOperationOverrides List<HoursOfOperationOverride>
One or more hours of operation overrides assigned to an hour of operation.
name String
The name of the hours of operation.
tags List<Tag>
One or more tags.
config This property is required. HoursOfOperationConfig[]
Configuration information for the hours of operation: day, start time, and end time.
instanceArn This property is required. string
The identifier of the Amazon Connect instance.
timeZone This property is required. string
The time zone of the hours of operation.
description string
The description of the hours of operation.
hoursOfOperationOverrides HoursOfOperationOverride[]
One or more hours of operation overrides assigned to an hour of operation.
name string
The name of the hours of operation.
tags Tag[]
One or more tags.
config This property is required. Sequence[HoursOfOperationConfigArgs]
Configuration information for the hours of operation: day, start time, and end time.
instance_arn This property is required. str
The identifier of the Amazon Connect instance.
time_zone This property is required. str
The time zone of the hours of operation.
description str
The description of the hours of operation.
hours_of_operation_overrides Sequence[HoursOfOperationOverrideArgs]
One or more hours of operation overrides assigned to an hour of operation.
name str
The name of the hours of operation.
tags Sequence[TagArgs]
One or more tags.
config This property is required. List<Property Map>
Configuration information for the hours of operation: day, start time, and end time.
instanceArn This property is required. String
The identifier of the Amazon Connect instance.
timeZone This property is required. String
The time zone of the hours of operation.
description String
The description of the hours of operation.
hoursOfOperationOverrides List<Property Map>
One or more hours of operation overrides assigned to an hour of operation.
name String
The name of the hours of operation.
tags List<Property Map>
One or more tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the HoursOfOperation resource produces the following output properties:

HoursOfOperationArn string
The Amazon Resource Name (ARN) for the hours of operation.
Id string
The provider-assigned unique ID for this managed resource.
HoursOfOperationArn string
The Amazon Resource Name (ARN) for the hours of operation.
Id string
The provider-assigned unique ID for this managed resource.
hoursOfOperationArn String
The Amazon Resource Name (ARN) for the hours of operation.
id String
The provider-assigned unique ID for this managed resource.
hoursOfOperationArn string
The Amazon Resource Name (ARN) for the hours of operation.
id string
The provider-assigned unique ID for this managed resource.
hours_of_operation_arn str
The Amazon Resource Name (ARN) for the hours of operation.
id str
The provider-assigned unique ID for this managed resource.
hoursOfOperationArn String
The Amazon Resource Name (ARN) for the hours of operation.
id String
The provider-assigned unique ID for this managed resource.

Supporting Types

HoursOfOperationConfig
, HoursOfOperationConfigArgs

Day This property is required. Pulumi.AwsNative.Connect.HoursOfOperationConfigDay
The day that the hours of operation applies to.
EndTime This property is required. Pulumi.AwsNative.Connect.Inputs.HoursOfOperationTimeSlice
The end time that your contact center closes.
StartTime This property is required. Pulumi.AwsNative.Connect.Inputs.HoursOfOperationTimeSlice
The start time that your contact center opens.
Day This property is required. HoursOfOperationConfigDay
The day that the hours of operation applies to.
EndTime This property is required. HoursOfOperationTimeSlice
The end time that your contact center closes.
StartTime This property is required. HoursOfOperationTimeSlice
The start time that your contact center opens.
day This property is required. HoursOfOperationConfigDay
The day that the hours of operation applies to.
endTime This property is required. HoursOfOperationTimeSlice
The end time that your contact center closes.
startTime This property is required. HoursOfOperationTimeSlice
The start time that your contact center opens.
day This property is required. HoursOfOperationConfigDay
The day that the hours of operation applies to.
endTime This property is required. HoursOfOperationTimeSlice
The end time that your contact center closes.
startTime This property is required. HoursOfOperationTimeSlice
The start time that your contact center opens.
day This property is required. HoursOfOperationConfigDay
The day that the hours of operation applies to.
end_time This property is required. HoursOfOperationTimeSlice
The end time that your contact center closes.
start_time This property is required. HoursOfOperationTimeSlice
The start time that your contact center opens.
day This property is required. "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY"
The day that the hours of operation applies to.
endTime This property is required. Property Map
The end time that your contact center closes.
startTime This property is required. Property Map
The start time that your contact center opens.

HoursOfOperationConfigDay
, HoursOfOperationConfigDayArgs

Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
HoursOfOperationConfigDaySunday
SUNDAY
HoursOfOperationConfigDayMonday
MONDAY
HoursOfOperationConfigDayTuesday
TUESDAY
HoursOfOperationConfigDayWednesday
WEDNESDAY
HoursOfOperationConfigDayThursday
THURSDAY
HoursOfOperationConfigDayFriday
FRIDAY
HoursOfOperationConfigDaySaturday
SATURDAY
Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
SUNDAY
SUNDAY
MONDAY
MONDAY
TUESDAY
TUESDAY
WEDNESDAY
WEDNESDAY
THURSDAY
THURSDAY
FRIDAY
FRIDAY
SATURDAY
SATURDAY
"SUNDAY"
SUNDAY
"MONDAY"
MONDAY
"TUESDAY"
TUESDAY
"WEDNESDAY"
WEDNESDAY
"THURSDAY"
THURSDAY
"FRIDAY"
FRIDAY
"SATURDAY"
SATURDAY

HoursOfOperationOverride
, HoursOfOperationOverrideArgs

EffectiveFrom This property is required. string
The date from which the hours of operation override would be effective.
EffectiveTill This property is required. string
The date till which the hours of operation override would be effective.
OverrideConfig This property is required. List<Pulumi.AwsNative.Connect.Inputs.HoursOfOperationOverrideConfig>
OverrideName This property is required. string
HoursOfOperationOverrideId string
The identifier for the hours of operation override.
OverrideDescription string
EffectiveFrom This property is required. string
The date from which the hours of operation override would be effective.
EffectiveTill This property is required. string
The date till which the hours of operation override would be effective.
OverrideConfig This property is required. []HoursOfOperationOverrideConfig
OverrideName This property is required. string
HoursOfOperationOverrideId string
The identifier for the hours of operation override.
OverrideDescription string
effectiveFrom This property is required. String
The date from which the hours of operation override would be effective.
effectiveTill This property is required. String
The date till which the hours of operation override would be effective.
overrideConfig This property is required. List<HoursOfOperationOverrideConfig>
overrideName This property is required. String
hoursOfOperationOverrideId String
The identifier for the hours of operation override.
overrideDescription String
effectiveFrom This property is required. string
The date from which the hours of operation override would be effective.
effectiveTill This property is required. string
The date till which the hours of operation override would be effective.
overrideConfig This property is required. HoursOfOperationOverrideConfig[]
overrideName This property is required. string
hoursOfOperationOverrideId string
The identifier for the hours of operation override.
overrideDescription string
effective_from This property is required. str
The date from which the hours of operation override would be effective.
effective_till This property is required. str
The date till which the hours of operation override would be effective.
override_config This property is required. Sequence[HoursOfOperationOverrideConfig]
override_name This property is required. str
hours_of_operation_override_id str
The identifier for the hours of operation override.
override_description str
effectiveFrom This property is required. String
The date from which the hours of operation override would be effective.
effectiveTill This property is required. String
The date till which the hours of operation override would be effective.
overrideConfig This property is required. List<Property Map>
overrideName This property is required. String
hoursOfOperationOverrideId String
The identifier for the hours of operation override.
overrideDescription String

HoursOfOperationOverrideConfig
, HoursOfOperationOverrideConfigArgs

Day This property is required. Pulumi.AwsNative.Connect.HoursOfOperationOverrideConfigDay
The day that the hours of operation override applies to.
EndTime This property is required. Pulumi.AwsNative.Connect.Inputs.HoursOfOperationOverrideTimeSlice
The new end time that your contact center closes for the overriden days.
StartTime This property is required. Pulumi.AwsNative.Connect.Inputs.HoursOfOperationOverrideTimeSlice
The new start time that your contact center opens for the overriden days.
Day This property is required. HoursOfOperationOverrideConfigDay
The day that the hours of operation override applies to.
EndTime This property is required. HoursOfOperationOverrideTimeSlice
The new end time that your contact center closes for the overriden days.
StartTime This property is required. HoursOfOperationOverrideTimeSlice
The new start time that your contact center opens for the overriden days.
day This property is required. HoursOfOperationOverrideConfigDay
The day that the hours of operation override applies to.
endTime This property is required. HoursOfOperationOverrideTimeSlice
The new end time that your contact center closes for the overriden days.
startTime This property is required. HoursOfOperationOverrideTimeSlice
The new start time that your contact center opens for the overriden days.
day This property is required. HoursOfOperationOverrideConfigDay
The day that the hours of operation override applies to.
endTime This property is required. HoursOfOperationOverrideTimeSlice
The new end time that your contact center closes for the overriden days.
startTime This property is required. HoursOfOperationOverrideTimeSlice
The new start time that your contact center opens for the overriden days.
day This property is required. HoursOfOperationOverrideConfigDay
The day that the hours of operation override applies to.
end_time This property is required. HoursOfOperationOverrideTimeSlice
The new end time that your contact center closes for the overriden days.
start_time This property is required. HoursOfOperationOverrideTimeSlice
The new start time that your contact center opens for the overriden days.
day This property is required. "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY"
The day that the hours of operation override applies to.
endTime This property is required. Property Map
The new end time that your contact center closes for the overriden days.
startTime This property is required. Property Map
The new start time that your contact center opens for the overriden days.

HoursOfOperationOverrideConfigDay
, HoursOfOperationOverrideConfigDayArgs

Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
HoursOfOperationOverrideConfigDaySunday
SUNDAY
HoursOfOperationOverrideConfigDayMonday
MONDAY
HoursOfOperationOverrideConfigDayTuesday
TUESDAY
HoursOfOperationOverrideConfigDayWednesday
WEDNESDAY
HoursOfOperationOverrideConfigDayThursday
THURSDAY
HoursOfOperationOverrideConfigDayFriday
FRIDAY
HoursOfOperationOverrideConfigDaySaturday
SATURDAY
Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
Sunday
SUNDAY
Monday
MONDAY
Tuesday
TUESDAY
Wednesday
WEDNESDAY
Thursday
THURSDAY
Friday
FRIDAY
Saturday
SATURDAY
SUNDAY
SUNDAY
MONDAY
MONDAY
TUESDAY
TUESDAY
WEDNESDAY
WEDNESDAY
THURSDAY
THURSDAY
FRIDAY
FRIDAY
SATURDAY
SATURDAY
"SUNDAY"
SUNDAY
"MONDAY"
MONDAY
"TUESDAY"
TUESDAY
"WEDNESDAY"
WEDNESDAY
"THURSDAY"
THURSDAY
"FRIDAY"
FRIDAY
"SATURDAY"
SATURDAY

HoursOfOperationOverrideTimeSlice
, HoursOfOperationOverrideTimeSliceArgs

Hours This property is required. int
The hours.
Minutes This property is required. int
The minutes.
Hours This property is required. int
The hours.
Minutes This property is required. int
The minutes.
hours This property is required. Integer
The hours.
minutes This property is required. Integer
The minutes.
hours This property is required. number
The hours.
minutes This property is required. number
The minutes.
hours This property is required. int
The hours.
minutes This property is required. int
The minutes.
hours This property is required. Number
The hours.
minutes This property is required. Number
The minutes.

HoursOfOperationTimeSlice
, HoursOfOperationTimeSliceArgs

Hours This property is required. int
The hours.
Minutes This property is required. int
The minutes.
Hours This property is required. int
The hours.
Minutes This property is required. int
The minutes.
hours This property is required. Integer
The hours.
minutes This property is required. Integer
The minutes.
hours This property is required. number
The hours.
minutes This property is required. number
The minutes.
hours This property is required. int
The hours.
minutes This property is required. int
The minutes.
hours This property is required. Number
The hours.
minutes This property is required. Number
The minutes.

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi