Assurance / Client / delete_framework
delete_framework¶
- Assurance.Client.delete_framework(**kwargs)¶
Deletes a custom framework that you no longer need. You can delete only custom frameworks. Managed frameworks are read-only. Before you delete a framework, you must disable it in every project where it is enabled. Otherwise, you receive a
ConflictException.A framework in
PENDINGstatus must be empty (no control groups or controls) before you delete it. Otherwise, you receive aConflictException. When you delete anACTIVE(published) framework, AWS Assurance also deletes its control groups and controls.In every project, AWS Assurance also deletes your data for this framework version:
Assessments and their results
Annotations
Tasks, task history, and comments
Decisions that mark a control or requirement as not applicable, and their justifications
Consider this data permanently deleted as soon as the operation succeeds. Your evidence remains available, but it is no longer linked to the framework’s controls.
To keep an assessment report, export it before you disable the framework. First, call
StartAssessmentReportExport. Then wait untilGetAssessmentReportExportreportsCOMPLETED. Finally, get the report withGetAssessmentReportContent.The deletion can continue after the operation returns and might take some time. For example, the deletion might take longer while an assessment that uses the framework is still running. Until the deletion completes, creating a framework with the same name and version returns a
ConflictException.See also: AWS API Documentation
Request Syntax
response = client.delete_framework( environmentArn='string', framework='string', frameworkVersion='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
framework (string) –
[REQUIRED]
The name of the compliance framework.
frameworkVersion (string) –
[REQUIRED]
The version of the compliance framework.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions