AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.4.0 published on Wednesday, May 4, 2022 by Pulumi

getHoursOfOperation

Provides details about a specific Amazon Connect Hours of Operation.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Aws.Connect.GetHoursOfOperation.InvokeAsync(new Aws.Connect.GetHoursOfOperationArgs
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            Name = "Test",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := connect.LookupHoursOfOperation(ctx, &connect.LookupHoursOfOperationArgs{
			InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
			Name:       pulumi.StringRef("Test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var test = Output.of(ConnectFunctions.getHoursOfOperation(GetHoursOfOperationArgs.builder()
            .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
            .name("Test")
            .build()));

        }
}
import pulumi
import pulumi_aws as aws

test = aws.connect.get_hours_of_operation(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name="Test")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = pulumi.output(aws.connect.getHoursOfOperation({
    instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
    name: "Test",
}));
variables:
  test:
    Fn::Invoke:
      Function: aws:connect:getHoursOfOperation
      Arguments:
        instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
        name: Test

Using getHoursOfOperation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getHoursOfOperation(args: GetHoursOfOperationArgs, opts?: InvokeOptions): Promise<GetHoursOfOperationResult>
function getHoursOfOperationOutput(args: GetHoursOfOperationOutputArgs, opts?: InvokeOptions): Output<GetHoursOfOperationResult>
def get_hours_of_operation(hours_of_operation_id: Optional[str] = None,
                           instance_id: Optional[str] = None,
                           name: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetHoursOfOperationResult
def get_hours_of_operation_output(hours_of_operation_id: Optional[pulumi.Input[str]] = None,
                           instance_id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetHoursOfOperationResult]
func LookupHoursOfOperation(ctx *Context, args *LookupHoursOfOperationArgs, opts ...InvokeOption) (*LookupHoursOfOperationResult, error)
func LookupHoursOfOperationOutput(ctx *Context, args *LookupHoursOfOperationOutputArgs, opts ...InvokeOption) LookupHoursOfOperationResultOutput

> Note: This function is named LookupHoursOfOperation in the Go SDK.

public static class GetHoursOfOperation 
{
    public static Task<GetHoursOfOperationResult> InvokeAsync(GetHoursOfOperationArgs args, InvokeOptions? opts = null)
    public static Output<GetHoursOfOperationResult> Invoke(GetHoursOfOperationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetHoursOfOperationResult> getHoursOfOperation(GetHoursOfOperationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:connect/getHoursOfOperation:getHoursOfOperation
  Arguments:
    # Arguments dictionary

The following arguments are supported:

InstanceId string

Reference to the hosting Amazon Connect Instance

HoursOfOperationId string

Returns information on a specific Hours of Operation by hours of operation id

Name string

Returns information on a specific Hours of Operation by name

Tags Dictionary<string, string>

A map of tags to assign to the Hours of Operation.

InstanceId string

Reference to the hosting Amazon Connect Instance

HoursOfOperationId string

Returns information on a specific Hours of Operation by hours of operation id

Name string

Returns information on a specific Hours of Operation by name

Tags map[string]string

A map of tags to assign to the Hours of Operation.

instanceId String

Reference to the hosting Amazon Connect Instance

hoursOfOperationId String

Returns information on a specific Hours of Operation by hours of operation id

name String

Returns information on a specific Hours of Operation by name

tags Map

A map of tags to assign to the Hours of Operation.

instanceId string

Reference to the hosting Amazon Connect Instance

hoursOfOperationId string

Returns information on a specific Hours of Operation by hours of operation id

name string

Returns information on a specific Hours of Operation by name

tags {[key: string]: string}

A map of tags to assign to the Hours of Operation.

instance_id str

Reference to the hosting Amazon Connect Instance

hours_of_operation_id str

Returns information on a specific Hours of Operation by hours of operation id

name str

Returns information on a specific Hours of Operation by name

tags Mapping[str, str]

A map of tags to assign to the Hours of Operation.

instanceId String

Reference to the hosting Amazon Connect Instance

hoursOfOperationId String

Returns information on a specific Hours of Operation by hours of operation id

name String

Returns information on a specific Hours of Operation by name

tags Map

A map of tags to assign to the Hours of Operation.

getHoursOfOperation Result

The following output properties are available:

Arn string

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

Configs List<GetHoursOfOperationConfig>

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

Description string

Specifies the description of the Hours of Operation.

HoursOfOperationArn string

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

Deprecated:

use 'arn' attribute instead

HoursOfOperationId string

The identifier for the hours of operation.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string

Specifies the identifier of the hosting Amazon Connect Instance.

Name string

Specifies the name of the Hours of Operation.

Tags Dictionary<string, string>

A map of tags to assign to the Hours of Operation.

TimeZone string

Specifies the time zone of the Hours of Operation.

Arn string

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

Configs []GetHoursOfOperationConfig

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

Description string

Specifies the description of the Hours of Operation.

HoursOfOperationArn string

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

Deprecated:

use 'arn' attribute instead

HoursOfOperationId string

The identifier for the hours of operation.

Id string

The provider-assigned unique ID for this managed resource.

InstanceId string

Specifies the identifier of the hosting Amazon Connect Instance.

Name string

Specifies the name of the Hours of Operation.

Tags map[string]string

A map of tags to assign to the Hours of Operation.

TimeZone string

Specifies the time zone of the Hours of Operation.

arn String

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

configs ListHoursOfOperationConfig>

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

description String

Specifies the description of the Hours of Operation.

hoursOfOperationArn String

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

Deprecated:

use 'arn' attribute instead

hoursOfOperationId String

The identifier for the hours of operation.

id String

The provider-assigned unique ID for this managed resource.

instanceId String

Specifies the identifier of the hosting Amazon Connect Instance.

name String

Specifies the name of the Hours of Operation.

tags Map

A map of tags to assign to the Hours of Operation.

timeZone String

Specifies the time zone of the Hours of Operation.

arn string

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

configs GetHoursOfOperationConfig[]

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

description string

Specifies the description of the Hours of Operation.

hoursOfOperationArn string

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

Deprecated:

use 'arn' attribute instead

hoursOfOperationId string

The identifier for the hours of operation.

id string

The provider-assigned unique ID for this managed resource.

instanceId string

Specifies the identifier of the hosting Amazon Connect Instance.

name string

Specifies the name of the Hours of Operation.

tags {[key: string]: string}

A map of tags to assign to the Hours of Operation.

timeZone string

Specifies the time zone of the Hours of Operation.

arn str

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

configs Sequence[GetHoursOfOperationConfig]

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

description str

Specifies the description of the Hours of Operation.

hours_of_operation_arn str

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

Deprecated:

use 'arn' attribute instead

hours_of_operation_id str

The identifier for the hours of operation.

id str

The provider-assigned unique ID for this managed resource.

instance_id str

Specifies the identifier of the hosting Amazon Connect Instance.

name str

Specifies the name of the Hours of Operation.

tags Mapping[str, str]

A map of tags to assign to the Hours of Operation.

time_zone str

Specifies the time zone of the Hours of Operation.

arn String

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

configs List

Specifies configuration information for the hours of operation: day, start time, and end time . Config blocks are documented below. Config blocks are documented below.

description String

Specifies the description of the Hours of Operation.

hoursOfOperationArn String

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

Deprecated:

use 'arn' attribute instead

hoursOfOperationId String

The identifier for the hours of operation.

id String

The provider-assigned unique ID for this managed resource.

instanceId String

Specifies the identifier of the hosting Amazon Connect Instance.

name String

Specifies the name of the Hours of Operation.

tags Map

A map of tags to assign to the Hours of Operation.

timeZone String

Specifies the time zone of the Hours of Operation.

Supporting Types

GetHoursOfOperationConfig

Day string

Specifies the day that the hours of operation applies to.

EndTimes List<GetHoursOfOperationConfigEndTime>

A end time block specifies the time that your contact center closes. The end_time is documented below.

StartTimes List<GetHoursOfOperationConfigStartTime>

A start time block specifies the time that your contact center opens. The start_time is documented below.

Day string

Specifies the day that the hours of operation applies to.

EndTimes []GetHoursOfOperationConfigEndTime

A end time block specifies the time that your contact center closes. The end_time is documented below.

StartTimes []GetHoursOfOperationConfigStartTime

A start time block specifies the time that your contact center opens. The start_time is documented below.

day String

Specifies the day that the hours of operation applies to.

endTimes ListHoursOfOperationConfigEndTime>

A end time block specifies the time that your contact center closes. The end_time is documented below.

startTimes ListHoursOfOperationConfigStartTime>

A start time block specifies the time that your contact center opens. The start_time is documented below.

day string

Specifies the day that the hours of operation applies to.

endTimes GetHoursOfOperationConfigEndTime[]

A end time block specifies the time that your contact center closes. The end_time is documented below.

startTimes GetHoursOfOperationConfigStartTime[]

A start time block specifies the time that your contact center opens. The start_time is documented below.

day str

Specifies the day that the hours of operation applies to.

end_times Sequence[GetHoursOfOperationConfigEndTime]

A end time block specifies the time that your contact center closes. The end_time is documented below.

start_times Sequence[GetHoursOfOperationConfigStartTime]

A start time block specifies the time that your contact center opens. The start_time is documented below.

day String

Specifies the day that the hours of operation applies to.

endTimes List

A end time block specifies the time that your contact center closes. The end_time is documented below.

startTimes List

A start time block specifies the time that your contact center opens. The start_time is documented below.

GetHoursOfOperationConfigEndTime

Hours int

Specifies the hour of opening.

Minutes int

Specifies the minute of opening.

Hours int

Specifies the hour of opening.

Minutes int

Specifies the minute of opening.

hours Integer

Specifies the hour of opening.

minutes Integer

Specifies the minute of opening.

hours number

Specifies the hour of opening.

minutes number

Specifies the minute of opening.

hours int

Specifies the hour of opening.

minutes int

Specifies the minute of opening.

hours Number

Specifies the hour of opening.

minutes Number

Specifies the minute of opening.

GetHoursOfOperationConfigStartTime

Hours int

Specifies the hour of opening.

Minutes int

Specifies the minute of opening.

Hours int

Specifies the hour of opening.

Minutes int

Specifies the minute of opening.

hours Integer

Specifies the hour of opening.

minutes Integer

Specifies the minute of opening.

hours number

Specifies the hour of opening.

minutes number

Specifies the minute of opening.

hours int

Specifies the hour of opening.

minutes int

Specifies the minute of opening.

hours Number

Specifies the hour of opening.

minutes Number

Specifies the minute of opening.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.