create_hours_of_operation_override
async
¶
create_hours_of_operation_override(
instance_id: InstanceId,
hours_of_operation_id: HoursOfOperationId,
name: CommonHumanReadableName,
config: HoursOfOperationOverrideConfigList,
effective_from: HoursOfOperationOverrideYearMonthDayDateFormat,
effective_till: HoursOfOperationOverrideYearMonthDayDateFormat,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
description: Optional[CommonHumanReadableDescription] = None,
recurrence_config: Optional[RecurrenceConfig] = None,
override_type: Optional[OverrideType] = None,
) -> CreateHoursOfOperationOverrideResponse
Creates an hours of operation override in an Connect Customer hours of operation resource.
Parameters:
-
instance_id(InstanceId) –The identifier of the Connect Customer instance.
-
hours_of_operation_id(HoursOfOperationId) –The identifier for the hours of operation
-
name(CommonHumanReadableName) –The name of the hours of operation override.
-
description(Optional[CommonHumanReadableDescription], default:None) –The description of the hours of operation override.
-
config(HoursOfOperationOverrideConfigList) –Configuration information for the hours of operation override: day, start time, and end time.
-
effective_from(HoursOfOperationOverrideYearMonthDayDateFormat) –The date from when the hours of operation override is effective.
-
effective_till(HoursOfOperationOverrideYearMonthDayDateFormat) –The date until when the hours of operation override is effective.
-
recurrence_config(Optional[RecurrenceConfig], default:None) –Configuration for a recurring event.
-
override_type(Optional[OverrideType], default:None) –Whether the override will be defined as a standard or as a recurring event.
For more information about how override types are applied, see Build your list of overrides in the Administrator Guide.
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.
-
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
4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 | |