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.9.0 published on Monday, Nov 18, 2024 by Pulumi

aws-native.connect.HoursOfOperation

Explore with Pulumi AI

aws-native logo

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

AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 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",
                },
            },
        });
    
    });
    
    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 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",
        }])
    
    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",
        }],
    });
    

    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,
                         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.AwsNative.Connect.Inputs.HoursOfOperationConfig>
    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.
    Name string
    The name of the hours of operation.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    One or more tags.
    Config []HoursOfOperationConfigArgs
    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.
    Name string
    The name of the hours of operation.
    Tags TagArgs
    One or more tags.
    config List<HoursOfOperationConfig>
    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.
    name String
    The name of the hours of operation.
    tags List<Tag>
    One or more tags.
    config HoursOfOperationConfig[]
    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.
    name string
    The name of the hours of operation.
    tags Tag[]
    One or more tags.
    config Sequence[HoursOfOperationConfigArgs]
    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.
    name str
    The name of the hours of operation.
    tags 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.
    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 Pulumi.AwsNative.Connect.HoursOfOperationConfigDay
    The day that the hours of operation applies to.
    EndTime Pulumi.AwsNative.Connect.Inputs.HoursOfOperationTimeSlice
    The end time that your contact center closes.
    StartTime Pulumi.AwsNative.Connect.Inputs.HoursOfOperationTimeSlice
    The start time that your contact center opens.
    Day HoursOfOperationConfigDay
    The day that the hours of operation applies to.
    EndTime HoursOfOperationTimeSlice
    The end time that your contact center closes.
    StartTime HoursOfOperationTimeSlice
    The start time that your contact center opens.
    day HoursOfOperationConfigDay
    The day that the hours of operation applies to.
    endTime HoursOfOperationTimeSlice
    The end time that your contact center closes.
    startTime HoursOfOperationTimeSlice
    The start time that your contact center opens.
    day HoursOfOperationConfigDay
    The day that the hours of operation applies to.
    endTime HoursOfOperationTimeSlice
    The end time that your contact center closes.
    startTime HoursOfOperationTimeSlice
    The start time that your contact center opens.
    day HoursOfOperationConfigDay
    The day that the hours of operation applies to.
    end_time HoursOfOperationTimeSlice
    The end time that your contact center closes.
    start_time HoursOfOperationTimeSlice
    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
    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

    HoursOfOperationTimeSlice, HoursOfOperationTimeSliceArgs

    Hours int
    The hours.
    Minutes int
    The minutes.
    Hours int
    The hours.
    Minutes int
    The minutes.
    hours Integer
    The hours.
    minutes Integer
    The minutes.
    hours number
    The hours.
    minutes number
    The minutes.
    hours int
    The hours.
    minutes int
    The minutes.
    hours Number
    The hours.
    minutes Number
    The minutes.

    Tag, TagArgs

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

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

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

    AWS Cloud Control v1.9.0 published on Monday, Nov 18, 2024 by Pulumi