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
5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 | |