delete_analysis
async
¶
delete_analysis(
aws_account_id: AwsAccountId,
analysis_id: ShortRestrictiveResourceId,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
recovery_window_in_days: Optional[RecoveryWindowInDays] = None,
force_delete_without_recovery: Optional[Boolean] = None,
) -> DeleteAnalysisResponse
Deletes an analysis from Amazon Quick Sight. You can optionally include a recovery window during which you can restore the analysis. If you don't specify a recovery window value, the operation defaults to 30 days. Amazon Quick Sight attaches a DeletionTime stamp to the response that specifies the end of the recovery window. At the end of the recovery window, Amazon Quick Sight deletes the analysis permanently.
At any time before recovery window ends, you can use the RestoreAnalysis API operation to remove the DeletionTime stamp and cancel the deletion of the analysis. The analysis remains visible in the API until it's deleted, so you can describe it but you can't make a template from it.
An analysis that's scheduled for deletion isn't accessible in the Amazon Quick Sight console. To access it in the console, restore it. Deleting an analysis doesn't delete the dashboards that you publish from it.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account where you want to delete an analysis.
-
analysis_id(ShortRestrictiveResourceId) –The ID of the analysis that you're deleting.
-
recovery_window_in_days(Optional[RecoveryWindowInDays], default:None) –A value that specifies the number of days that Amazon Quick Sight waits before it deletes the analysis. You can't use this parameter with the
ForceDeleteWithoutRecoveryoption in the same API call. The default value is 30. -
force_delete_without_recovery(Optional[Boolean], default:None) –This option defaults to the value
NoForceDeleteWithoutRecovery. To immediately delete the analysis, add theForceDeleteWithoutRecoveryoption. You can't restore an analysis after it's deleted.
Raises:
-
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.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnsupportedUserEditionException–This error indicates that you are calling an operation on an Amazon Quick Suite subscription where the edition doesn't include support for that operation. Amazon Quick Suite currently has Standard Edition and Enterprise Edition. Not every operation and capability is available in every edition.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
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 4523 4524 | |