AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.connect.getHoursOfOperation
Explore with Pulumi AI
Provides details about a specific Amazon Connect Hours of Operation.
Example Usage
By
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 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 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());
}
}
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 = 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
hours_of_operation_id
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = Aws.Connect.GetHoursOfOperation.Invoke(new()
{
HoursOfOperationId = "cccccccc-bbbb-cccc-dddd-111111111111",
InstanceId = "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
});
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{
HoursOfOperationId: pulumi.StringRef("cccccccc-bbbb-cccc-dddd-111111111111"),
InstanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
}, nil)
if err != nil {
return err
}
return nil
})
}
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()
.hoursOfOperationId("cccccccc-bbbb-cccc-dddd-111111111111")
.instanceId("aaaaaaaa-bbbb-cccc-dddd-111111111111")
.build());
}
}
import pulumi
import pulumi_aws as aws
test = aws.connect.get_hours_of_operation(hours_of_operation_id="cccccccc-bbbb-cccc-dddd-111111111111",
instance_id="aaaaaaaa-bbbb-cccc-dddd-111111111111")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.connect.getHoursOfOperation({
hoursOfOperationId: "cccccccc-bbbb-cccc-dddd-111111111111",
instanceId: "aaaaaaaa-bbbb-cccc-dddd-111111111111",
});
variables:
test:
fn::invoke:
Function: aws:connect:getHoursOfOperation
Arguments:
hoursOfOperationId: cccccccc-bbbb-cccc-dddd-111111111111
instanceId: aaaaaaaa-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:
- Instance
Id string Reference to the hosting Amazon Connect Instance
- Hours
Of stringOperation Id 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
- Dictionary<string, string>
Map of tags to assign to the Hours of Operation.
- Instance
Id string Reference to the hosting Amazon Connect Instance
- Hours
Of stringOperation Id 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
- map[string]string
Map of tags to assign to the Hours of Operation.
- instance
Id String Reference to the hosting Amazon Connect Instance
- hours
Of StringOperation Id 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
- Map<String,String>
Map of tags to assign to the Hours of Operation.
- instance
Id string Reference to the hosting Amazon Connect Instance
- hours
Of stringOperation Id 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
- {[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_ stroperation_ id 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
- Mapping[str, str]
Map of tags to assign to the Hours of Operation.
- instance
Id String Reference to the hosting Amazon Connect Instance
- hours
Of StringOperation Id 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
- 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<Get
Hours Of Operation Config> 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.
- Hours
Of stringOperation Arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- Hours
Of stringOperation Id The identifier for the hours of operation.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string Identifier of the hosting Amazon Connect Instance.
- Name string
Name of the Hours of Operation.
- Dictionary<string, string>
Map of tags to assign to the Hours of Operation.
- Time
Zone string Time zone of the Hours of Operation.
- Arn string
ARN of the Hours of Operation.
- Configs
[]Get
Hours Of Operation Config 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.
- Hours
Of stringOperation Arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- Hours
Of stringOperation Id The identifier for the hours of operation.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Id string Identifier of the hosting Amazon Connect Instance.
- Name string
Name of the Hours of Operation.
- map[string]string
Map of tags to assign to the Hours of Operation.
- Time
Zone string Time zone of the Hours of Operation.
- arn String
ARN of the Hours of Operation.
- configs
List<Get
Hours Of Operation Config> 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.
- hours
Of StringOperation Arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- hours
Of StringOperation Id The identifier for the hours of operation.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String Identifier of the hosting Amazon Connect Instance.
- name String
Name of the Hours of Operation.
- Map<String,String>
Map of tags to assign to the Hours of Operation.
- time
Zone String Time zone of the Hours of Operation.
- arn string
ARN of the Hours of Operation.
- configs
Get
Hours Of Operation Config[] 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.
- hours
Of stringOperation Arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- hours
Of stringOperation Id The identifier for the hours of operation.
- id string
The provider-assigned unique ID for this managed resource.
- instance
Id string Identifier of the hosting Amazon Connect Instance.
- name string
Name of the Hours of Operation.
- {[key: string]: string}
Map of tags to assign to the Hours of Operation.
- time
Zone string Time zone of the Hours of Operation.
- arn str
ARN of the Hours of Operation.
- configs
Sequence[Get
Hours Of Operation Config] 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_ stroperation_ arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- hours_
of_ stroperation_ id 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.
- 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.
- hours
Of StringOperation Arn (Deprecated) ARN of the Hours of Operation.
use 'arn' attribute instead
- hours
Of StringOperation Id The identifier for the hours of operation.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Id String Identifier of the hosting Amazon Connect Instance.
- name String
Name of the Hours of Operation.
- Map<String>
Map of tags to assign to the Hours of Operation.
- time
Zone String Time zone of the Hours of Operation.
Supporting Types
GetHoursOfOperationConfig
- Day string
Day that the hours of operation applies to.
- End
Times List<GetHours Of Operation Config End Time> End time block specifies the time that your contact center closes. The
end_time
is documented below.- Start
Times List<GetHours Of Operation Config Start Time> 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.
- End
Times []GetHours Of Operation Config End Time End time block specifies the time that your contact center closes. The
end_time
is documented below.- Start
Times []GetHours Of Operation Config Start Time 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.
- end
Times List<GetHours Of Operation Config End Time> End time block specifies the time that your contact center closes. The
end_time
is documented below.- start
Times List<GetHours Of Operation Config Start Time> 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.
- end
Times GetHours Of Operation Config End Time[] End time block specifies the time that your contact center closes. The
end_time
is documented below.- start
Times GetHours Of Operation Config Start Time[] 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[GetHours Of Operation Config End Time] End time block specifies the time that your contact center closes. The
end_time
is documented below.- start_
times Sequence[GetHours Of Operation Config Start Time] 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.
- end
Times List<Property Map> End time block specifies the time that your contact center closes. The
end_time
is documented below.- start
Times List<Property Map> Start time block specifies the time that your contact center opens. The
start_time
is documented below.
GetHoursOfOperationConfigEndTime
GetHoursOfOperationConfigStartTime
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.