1. Packages
  2. AWS Classic
  3. API Docs
  4. connect
  5. getHoursOfOperation

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.connect.getHoursOfOperation

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Provides details about a specific Amazon Connect Hours of Operation.

    Example Usage

    By name

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = aws.connect.getHoursOfOperation({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name: "Test",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.connect.get_hours_of_operation(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        name="Test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Aws.Connect.GetHoursOfOperation.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            Name = "Test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.connect.ConnectFunctions;
    import com.pulumi.aws.connect.inputs.GetHoursOfOperationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = ConnectFunctions.getHoursOfOperation(GetHoursOfOperationArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .name("Test")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: aws:connect:getHoursOfOperation
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            name: Test
    

    By hours_of_operation_id

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = aws.connect.getHoursOfOperation({
        instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
        hoursOfOperationId: "cccccccc-bbbb-cccc-dddd-111111111111",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.connect.get_hours_of_operation(instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111",
        hours_of_operation_id="cccccccc-bbbb-cccc-dddd-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/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",
    			HoursOfOperationId: pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Aws.Connect.GetHoursOfOperation.Invoke(new()
        {
            InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
            HoursOfOperationId = "cccccccc-bbbb-cccc-dddd-111111111111",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.connect.ConnectFunctions;
    import com.pulumi.aws.connect.inputs.GetHoursOfOperationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = ConnectFunctions.getHoursOfOperation(GetHoursOfOperationArgs.builder()
                .instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
                .hoursOfOperationId("cccccccc-bbbb-cccc-dddd-111111111111")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: aws:connect:getHoursOfOperation
          Arguments:
            instanceId: aaaaaaaa-bbbb-cccc-dddd-111111111111
            hoursOfOperationId: cccccccc-bbbb-cccc-dddd-111111111111
    

    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>
    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
    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>
    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}
    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]
    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>
    Map of tags to assign to the Hours of Operation.

    getHoursOfOperation Result

    The following output properties are available:

    Arn string
    ARN of the Hours of Operation.
    Configs List<GetHoursOfOperationConfig>
    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
    Description of the Hours of Operation.
    HoursOfOperationId string
    The identifier for the hours of operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Identifier of the hosting Amazon Connect Instance.
    Name string
    Name of the Hours of Operation.
    Tags Dictionary<string, string>
    Map of tags to assign to the Hours of Operation.
    TimeZone string
    Time zone of the Hours of Operation.
    Arn string
    ARN of the Hours of Operation.
    Configs []GetHoursOfOperationConfig
    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
    Description of the Hours of Operation.
    HoursOfOperationId string
    The identifier for the hours of operation.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Identifier of the hosting Amazon Connect Instance.
    Name string
    Name of the Hours of Operation.
    Tags map[string]string
    Map of tags to assign to the Hours of Operation.
    TimeZone string
    Time zone of the Hours of Operation.
    arn String
    ARN of the Hours of Operation.
    configs List<GetHoursOfOperationConfig>
    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
    Description of the Hours of Operation.
    hoursOfOperationId String
    The identifier for the hours of operation.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Identifier of the hosting Amazon Connect Instance.
    name String
    Name of the Hours of Operation.
    tags Map<String,String>
    Map of tags to assign to the Hours of Operation.
    timeZone String
    Time zone of the Hours of Operation.
    arn string
    ARN of the Hours of Operation.
    configs GetHoursOfOperationConfig[]
    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
    Description of the Hours of Operation.
    hoursOfOperationId string
    The identifier for the hours of operation.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    Identifier of the hosting Amazon Connect Instance.
    name string
    Name of the Hours of Operation.
    tags {[key: string]: string}
    Map of tags to assign to the Hours of Operation.
    timeZone string
    Time zone of the Hours of Operation.
    arn str
    ARN of the Hours of Operation.
    configs Sequence[GetHoursOfOperationConfig]
    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
    Description of the Hours of Operation.
    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
    Identifier of the hosting Amazon Connect Instance.
    name str
    Name of the Hours of Operation.
    tags Mapping[str, str]
    Map of tags to assign to the Hours of Operation.
    time_zone str
    Time zone of the Hours of Operation.
    arn String
    ARN of the Hours of Operation.
    configs List<Property Map>
    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
    Description of the Hours of Operation.
    hoursOfOperationId String
    The identifier for the hours of operation.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Identifier of the hosting Amazon Connect Instance.
    name String
    Name of the Hours of Operation.
    tags Map<String>
    Map of tags to assign to the Hours of Operation.
    timeZone String
    Time zone of the Hours of Operation.

    Supporting Types

    GetHoursOfOperationConfig

    Day string
    Day that the hours of operation applies to.
    EndTimes List<GetHoursOfOperationConfigEndTime>
    End time block specifies the time that your contact center closes. The end_time is documented below.
    StartTimes List<GetHoursOfOperationConfigStartTime>
    Start time block specifies the time that your contact center opens. The start_time is documented below.
    Day string
    Day that the hours of operation applies to.
    EndTimes []GetHoursOfOperationConfigEndTime
    End time block specifies the time that your contact center closes. The end_time is documented below.
    StartTimes []GetHoursOfOperationConfigStartTime
    Start time block specifies the time that your contact center opens. The start_time is documented below.
    day String
    Day that the hours of operation applies to.
    endTimes List<GetHoursOfOperationConfigEndTime>
    End time block specifies the time that your contact center closes. The end_time is documented below.
    startTimes List<GetHoursOfOperationConfigStartTime>
    Start time block specifies the time that your contact center opens. The start_time is documented below.
    day string
    Day that the hours of operation applies to.
    endTimes GetHoursOfOperationConfigEndTime[]
    End time block specifies the time that your contact center closes. The end_time is documented below.
    startTimes GetHoursOfOperationConfigStartTime[]
    Start time block specifies the time that your contact center opens. The start_time is documented below.
    day str
    Day that the hours of operation applies to.
    end_times Sequence[GetHoursOfOperationConfigEndTime]
    End time block specifies the time that your contact center closes. The end_time is documented below.
    start_times Sequence[GetHoursOfOperationConfigStartTime]
    Start time block specifies the time that your contact center opens. The start_time is documented below.
    day String
    Day that the hours of operation applies to.
    endTimes List<Property Map>
    End time block specifies the time that your contact center closes. The end_time is documented below.
    startTimes List<Property Map>
    Start time block specifies the time that your contact center opens. The start_time is documented below.

    GetHoursOfOperationConfigEndTime

    Hours int
    Hour of opening.
    Minutes int
    Minute of opening.
    Hours int
    Hour of opening.
    Minutes int
    Minute of opening.
    hours Integer
    Hour of opening.
    minutes Integer
    Minute of opening.
    hours number
    Hour of opening.
    minutes number
    Minute of opening.
    hours int
    Hour of opening.
    minutes int
    Minute of opening.
    hours Number
    Hour of opening.
    minutes Number
    Minute of opening.

    GetHoursOfOperationConfigStartTime

    Hours int
    Hour of opening.
    Minutes int
    Minute of opening.
    Hours int
    Hour of opening.
    Minutes int
    Minute of opening.
    hours Integer
    Hour of opening.
    minutes Integer
    Minute of opening.
    hours number
    Hour of opening.
    minutes number
    Minute of opening.
    hours int
    Hour of opening.
    minutes int
    Minute of opening.
    hours Number
    Hour of opening.
    minutes Number
    Minute of opening.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi