delete_analysis
¶
delete_analysis(
aws_account_id: AwsAccountId,
analysis_id: ShortRestrictiveResourceId,
*,
config_overrides: Optional[QuickSightClientConfig] = 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/quick_sight.py
5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 | |