update_knowledge_base_refresh_schedule
async
¶
update_knowledge_base_refresh_schedule(
aws_account_id: KbAwsAccountId,
knowledge_base_id: KnowledgeBaseId,
schedule_id: ScheduleId,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
schedule_frequency: Optional[KnowledgeBaseRefreshFrequency] = None,
start_time: Optional[datetime] = None,
state: Optional[ScheduleState] = None,
) -> UpdateKnowledgeBaseRefreshScheduleResponse
Updates the refresh schedule for an Amazon Quick Sight knowledge base. Use this operation to change how often the knowledge base refreshes, or to enable or disable the schedule. Specify the schedule by its ScheduleId. The operation changes only the fields that you provide. Any field that you omit keeps its existing value.
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) –The unique identifier for the refresh schedule to update.
-
schedule_frequency(Optional[KnowledgeBaseRefreshFrequency], default:None) –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. If you don't specify this parameter, the schedule keeps its existing frequency.
-
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 this parameter, the schedule keeps its existing start time.
-
state(Optional[ScheduleState], default:None) –The state of the refresh schedule. A schedule that isn't
ENABLEDdoesn't run refreshes. If you don't specify this parameter, the schedule keeps its existing state.
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.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
LimitExceededException–A limit is exceeded.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
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/async_quick_sight.py
22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 | |