create_hours_of_operation
async
¶
create_hours_of_operation(
instance_id: InstanceId,
name: CommonNameLength127,
time_zone: TimeZone,
config: HoursOfOperationConfigList,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
description: Optional[HoursOfOperationDescription] = None,
parent_hours_of_operation_configs: Optional[
ParentHoursOfOperationConfigList
] = None,
tags: Optional[TagMap] = None,
) -> CreateHoursOfOperationResponse
Creates hours of operation.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
name(CommonNameLength127) –The name of the hours of operation.
-
description(Optional[HoursOfOperationDescription], default:None) –The description of the hours of operation.
-
time_zone(TimeZone) –The time zone of the hours of operation.
-
config(HoursOfOperationConfigList) –Configuration information for the hours of operation: day, start time, and end time.
-
parent_hours_of_operation_configs(Optional[ParentHoursOfOperationConfigList], default:None) –Configuration for parent hours of operations. Eg: ResourceArn.
For more information about parent hours of operations, see Link overrides from different hours of operation in the Administrator Guide.
-
tags(Optional[TagMap], default:None) –The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Raises:
-
DuplicateResourceException–A resource with the specified name already exists.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–The allowed limit for the resource has been exceeded.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–The service quota has been exceeded.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 | |