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 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.
Aws Native. Connect. Inputs. Hours Of Operation Config> - Configuration information for the hours of operation: day, start time, and end time.
- Instance
Arn string - The identifier of the Amazon Connect instance.
- Time
Zone 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.
- List<Pulumi.
Aws Native. Inputs. Tag> - One or more tags.
- Config
[]Hours
Of Operation Config Args - Configuration information for the hours of operation: day, start time, and end time.
- Instance
Arn string - The identifier of the Amazon Connect instance.
- Time
Zone 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.
- Tag
Args - One or more tags.
- config
List<Hours
Of Operation Config> - Configuration information for the hours of operation: day, start time, and end time.
- instance
Arn String - The identifier of the Amazon Connect instance.
- time
Zone 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.
- List<Tag>
- One or more tags.
- config
Hours
Of Operation Config[] - Configuration information for the hours of operation: day, start time, and end time.
- instance
Arn string - The identifier of the Amazon Connect instance.
- time
Zone 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.
- Tag[]
- One or more tags.
- config
Sequence[Hours
Of 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.
- name str
- The name of the hours of operation.
- Sequence[Tag
Args] - One or more tags.
- config List<Property Map>
- Configuration information for the hours of operation: day, start time, and end time.
- instance
Arn String - The identifier of the Amazon Connect instance.
- time
Zone 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.
- 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:
- Hours
Of 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 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 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 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.
- hours
Of 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.
- End
Time Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Time Slice - The end time that your contact center closes.
- Start
Time Pulumi.Aws Native. Connect. Inputs. Hours Of Operation Time Slice - The start time that your contact center opens.
- Day
Hours
Of 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
Hours
Of 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
Hours
Of 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
Hours
Of 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.
- end
Time Property Map - The end time that your contact center closes.
- start
Time 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
- Hours
Of Operation Config Day Sunday - SUNDAY
- Hours
Of Operation Config Day Monday - MONDAY
- Hours
Of Operation Config Day Tuesday - TUESDAY
- Hours
Of Operation Config Day Wednesday - WEDNESDAY
- Hours
Of Operation Config Day Thursday - THURSDAY
- Hours
Of Operation Config Day Friday - FRIDAY
- Hours
Of 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
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.