We recommend new projects start with resources from the AWS provider.
aws-native.connect.HoursOfOperation
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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",
            },
        },
    });
});
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
	})
}
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",
    }],
});
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",
    }])
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 string
- The unique name of the resource.
- args HoursOfOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args HoursOfOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HoursOfOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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
List<Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Config> 
- Configuration information for the hours of operation: day, start time, and end time.
- InstanceArn string
- The identifier of the Amazon Connect instance.
- TimeZone string
- The time zone of the hours of operation.
- Description string
- The description of the hours of operation.
- HoursOf List<Pulumi.Operation Overrides Aws Native. Connect. Inputs. Hours Of Operation Override> 
- One or more hours of operation overrides assigned to an hour of operation.
- Name string
- The name of the hours of operation.
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- One or more tags.
- Config
[]HoursOf Operation Config Args 
- Configuration information for the hours of operation: day, start time, and end time.
- InstanceArn string
- The identifier of the Amazon Connect instance.
- TimeZone string
- The time zone of the hours of operation.
- Description string
- The description of the hours of operation.
- HoursOf []HoursOperation Overrides Of Operation Override Args 
- One or more hours of operation overrides assigned to an hour of operation.
- Name string
- The name of the hours of operation.
- 
TagArgs 
- One or more tags.
- config
List<HoursOf Operation Config> 
- Configuration information for the hours of operation: day, start time, and end time.
- instanceArn String
- The identifier of the Amazon Connect instance.
- timeZone String
- The time zone of the hours of operation.
- description String
- The description of the hours of operation.
- hoursOf List<HoursOperation Overrides Of Operation Override> 
- One or more hours of operation overrides assigned to an hour of operation.
- name String
- The name of the hours of operation.
- List<Tag>
- One or more tags.
- config
HoursOf Operation Config[] 
- Configuration information for the hours of operation: day, start time, and end time.
- instanceArn string
- The identifier of the Amazon Connect instance.
- timeZone string
- The time zone of the hours of operation.
- description string
- The description of the hours of operation.
- hoursOf HoursOperation Overrides Of Operation Override[] 
- One or more hours of operation overrides assigned to an hour of operation.
- name string
- The name of the hours of operation.
- Tag[]
- One or more tags.
- config
Sequence[HoursOf Operation Config Args] 
- Configuration information for the hours of operation: day, start time, and end time.
- instance_arn str
- The identifier of the Amazon Connect instance.
- time_zone str
- The time zone of the hours of operation.
- description str
- The description of the hours of operation.
- hours_of_ Sequence[Hoursoperation_ overrides Of Operation Override Args] 
- One or more hours of operation overrides assigned to an hour of operation.
- name str
- The name of the hours of operation.
- 
Sequence[TagArgs] 
- One or more tags.
- config List<Property Map>
- Configuration information for the hours of operation: day, start time, and end time.
- instanceArn String
- The identifier of the Amazon Connect instance.
- timeZone String
- The time zone of the hours of operation.
- description String
- The description of the hours of operation.
- hoursOf List<Property Map>Operation Overrides 
- One or more hours of operation overrides assigned to an hour of operation.
- name String
- The name of the hours of operation.
- 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:
- HoursOf stringOperation Arn 
- The Amazon Resource Name (ARN) for the hours of operation.
- Id string
- The provider-assigned unique ID for this managed resource.
- HoursOf stringOperation Arn 
- The Amazon Resource Name (ARN) for the hours of operation.
- Id string
- The provider-assigned unique ID for this managed resource.
- hoursOf StringOperation Arn 
- The Amazon Resource Name (ARN) for the hours of operation.
- id String
- The provider-assigned unique ID for this managed resource.
- hoursOf stringOperation Arn 
- The Amazon Resource Name (ARN) for the hours of operation.
- id string
- The provider-assigned unique ID for this managed resource.
- hours_of_ stroperation_ arn 
- The Amazon Resource Name (ARN) for the hours of operation.
- id str
- The provider-assigned unique ID for this managed resource.
- hoursOf StringOperation Arn 
- 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
Pulumi.Aws Native. Connect. Hours Of Operation Config Day 
- The day that the hours of operation applies to.
- EndTime Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Time Slice 
- The end time that your contact center closes.
- StartTime Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Time Slice 
- The start time that your contact center opens.
- Day
HoursOf Operation Config Day 
- The day that the hours of operation applies to.
- EndTime HoursOf Operation Time Slice 
- The end time that your contact center closes.
- StartTime HoursOf Operation Time Slice 
- The start time that your contact center opens.
- day
HoursOf Operation Config Day 
- The day that the hours of operation applies to.
- endTime HoursOf Operation Time Slice 
- The end time that your contact center closes.
- startTime HoursOf Operation Time Slice 
- The start time that your contact center opens.
- day
HoursOf Operation Config Day 
- The day that the hours of operation applies to.
- endTime HoursOf Operation Time Slice 
- The end time that your contact center closes.
- startTime HoursOf Operation Time Slice 
- The start time that your contact center opens.
- day
HoursOf Operation Config Day 
- The day that the hours of operation applies to.
- end_time HoursOf Operation Time Slice 
- The end time that your contact center closes.
- start_time HoursOf Operation Time Slice 
- The start time that your contact center opens.
- day "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY"
- The day that the hours of operation applies to.
- endTime Property Map
- The end time that your contact center closes.
- startTime 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
- HoursOf Operation Config Day Sunday 
- SUNDAY
- HoursOf Operation Config Day Monday 
- MONDAY
- HoursOf Operation Config Day Tuesday 
- TUESDAY
- HoursOf Operation Config Day Wednesday 
- WEDNESDAY
- HoursOf Operation Config Day Thursday 
- THURSDAY
- HoursOf Operation Config Day Friday 
- FRIDAY
- HoursOf Operation Config Day 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
- "SUNDAY"
- SUNDAY
- "MONDAY"
- MONDAY
- "TUESDAY"
- TUESDAY
- "WEDNESDAY"
- WEDNESDAY
- "THURSDAY"
- THURSDAY
- "FRIDAY"
- FRIDAY
- "SATURDAY"
- SATURDAY
HoursOfOperationOverride, HoursOfOperationOverrideArgs        
- EffectiveFrom string
- The date from which the hours of operation override would be effective.
- EffectiveTill string
- The date till which the hours of operation override would be effective.
- OverrideConfig List<Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Override Config> 
- OverrideName string
- HoursOf stringOperation Override Id 
- The identifier for the hours of operation override.
- OverrideDescription string
- EffectiveFrom string
- The date from which the hours of operation override would be effective.
- EffectiveTill string
- The date till which the hours of operation override would be effective.
- OverrideConfig []HoursOf Operation Override Config 
- OverrideName string
- HoursOf stringOperation Override Id 
- The identifier for the hours of operation override.
- OverrideDescription string
- effectiveFrom String
- The date from which the hours of operation override would be effective.
- effectiveTill String
- The date till which the hours of operation override would be effective.
- overrideConfig List<HoursOf Operation Override Config> 
- overrideName String
- hoursOf StringOperation Override Id 
- The identifier for the hours of operation override.
- overrideDescription String
- effectiveFrom string
- The date from which the hours of operation override would be effective.
- effectiveTill string
- The date till which the hours of operation override would be effective.
- overrideConfig HoursOf Operation Override Config[] 
- overrideName string
- hoursOf stringOperation Override Id 
- The identifier for the hours of operation override.
- overrideDescription string
- effective_from str
- The date from which the hours of operation override would be effective.
- effective_till str
- The date till which the hours of operation override would be effective.
- override_config Sequence[HoursOf Operation Override Config] 
- override_name str
- hours_of_ stroperation_ override_ id 
- The identifier for the hours of operation override.
- override_description str
- effectiveFrom String
- The date from which the hours of operation override would be effective.
- effectiveTill String
- The date till which the hours of operation override would be effective.
- overrideConfig List<Property Map>
- overrideName String
- hoursOf StringOperation Override Id 
- The identifier for the hours of operation override.
- overrideDescription String
HoursOfOperationOverrideConfig, HoursOfOperationOverrideConfigArgs          
- Day
Pulumi.Aws Native. Connect. Hours Of Operation Override Config Day 
- The day that the hours of operation override applies to.
- EndTime Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Override Time Slice 
- The new end time that your contact center closes for the overriden days.
- StartTime Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Override Time Slice 
- The new start time that your contact center opens for the overriden days.
- Day
HoursOf Operation Override Config Day 
- The day that the hours of operation override applies to.
- EndTime HoursOf Operation Override Time Slice 
- The new end time that your contact center closes for the overriden days.
- StartTime HoursOf Operation Override Time Slice 
- The new start time that your contact center opens for the overriden days.
- day
HoursOf Operation Override Config Day 
- The day that the hours of operation override applies to.
- endTime HoursOf Operation Override Time Slice 
- The new end time that your contact center closes for the overriden days.
- startTime HoursOf Operation Override Time Slice 
- The new start time that your contact center opens for the overriden days.
- day
HoursOf Operation Override Config Day 
- The day that the hours of operation override applies to.
- endTime HoursOf Operation Override Time Slice 
- The new end time that your contact center closes for the overriden days.
- startTime HoursOf Operation Override Time Slice 
- The new start time that your contact center opens for the overriden days.
- day
HoursOf Operation Override Config Day 
- The day that the hours of operation override applies to.
- end_time HoursOf Operation Override Time Slice 
- The new end time that your contact center closes for the overriden days.
- start_time HoursOf Operation Override Time Slice 
- The new start time that your contact center opens for the overriden days.
- day "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY"
- The day that the hours of operation override applies to.
- endTime Property Map
- The new end time that your contact center closes for the overriden days.
- startTime 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
- HoursOf Operation Override Config Day Sunday 
- SUNDAY
- HoursOf Operation Override Config Day Monday 
- MONDAY
- HoursOf Operation Override Config Day Tuesday 
- TUESDAY
- HoursOf Operation Override Config Day Wednesday 
- WEDNESDAY
- HoursOf Operation Override Config Day Thursday 
- THURSDAY
- HoursOf Operation Override Config Day Friday 
- FRIDAY
- HoursOf Operation Override Config Day 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
- "SUNDAY"
- SUNDAY
- "MONDAY"
- MONDAY
- "TUESDAY"
- TUESDAY
- "WEDNESDAY"
- WEDNESDAY
- "THURSDAY"
- THURSDAY
- "FRIDAY"
- FRIDAY
- "SATURDAY"
- SATURDAY
HoursOfOperationOverrideTimeSlice, HoursOfOperationOverrideTimeSliceArgs            
HoursOfOperationTimeSlice, HoursOfOperationTimeSliceArgs          
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.