create_knowledge_base_refresh_schedule
¶
create_knowledge_base_refresh_schedule(
aws_account_id: KbAwsAccountId,
knowledge_base_id: KnowledgeBaseId,
schedule_id: ScheduleId,
schedule_frequency: KnowledgeBaseRefreshFrequency,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
start_time: Optional[datetime] = None,
state: Optional[ScheduleState] = None,
) -> CreateKnowledgeBaseRefreshScheduleResponse
Creates a schedule that periodically refreshes an Amazon Quick Sight knowledge base at the frequency that you specify.
A knowledge base can have only one refresh schedule. If the knowledge base already has a refresh schedule, the request fails with a LimitExceededException.
Parameters:
-
aws_account_id(KbAwsAccountId) –The ID of the Amazon Web Services account that contains the knowledge base.
-
knowledge_base_id(KnowledgeBaseId) –The unique identifier for the knowledge base.
-
schedule_id(ScheduleId) –A unique identifier for the knowledge base refresh schedule.
-
schedule_frequency(KnowledgeBaseRefreshFrequency) –The frequency configuration for the refresh schedule. The frequency configuration specifies how often the schedule runs and, for weekly or monthly schedules, the day on which it runs.
-
start_time(Optional[datetime], default:None) –The date and time, in ISO 8601 format, after which the schedule can start refreshing the knowledge base. The first refresh runs at the next scheduled time after this date and time. If you don't specify a value, the schedule becomes active immediately, and the first refresh runs at the next scheduled time.
-
state(Optional[ScheduleState], default:None) –The state that you want the refresh schedule to have when you create it. If you don't specify a state, the schedule is created in the
ENABLEDstate. A schedule that isn'tENABLEDdoesn't run refreshes.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
InvalidRequestException–You don't have this feature activated for your account. To fix this issue, contact Amazon Web Services support.
-
LimitExceededException–A limit is exceeded.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 | |