create_hours_of_operation
¶
create_hours_of_operation(
instance_id: InstanceId,
name: CommonNameLength127,
time_zone: TimeZone,
config: HoursOfOperationConfigList,
*,
config_overrides: Optional[ConnectClientConfig] = 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/connect.py
4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 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 | |