Opting out of using your data for service improvement
Unless you opt out, AWS Assurance uses content from your assessments to develop and improve the service. If your organization’s data policies don’t allow this use, opt out with an AI services opt-out policy in AWS Organizations. Opting out doesn’t change your assessments or their results.
For the categories of data that AWS Assurance uses, see Data that AWS Assurance uses for service improvement. For more information about opt-out policies, see AI services opt-out policies in the AWS Organizations User Guide.
In an AI services opt-out policy, the service name key for AWS Assurance is assurance.
Accounts that aren’t in an organization
An opt-out policy requires AWS Organizations. If your account isn’t in an organization, AWS Assurance uses your content for service improvement. For details, see AWS Service Terms
To opt out, create an organization that contains only your account, and then attach the opt-out policy. For more information, see Creating and managing an organization in the AWS Organizations User Guide.
Opt out with the AWS CLI
The policy in this procedure applies only to AWS Assurance and doesn’t affect your other AWS services.
To opt out with the AWS CLI
-
If AI services opt-out policies aren’t enabled in your organization, run the following AWS CLI command to enable the policy type. Replace
root-idwith the ID of the organization root. To find the ID, runaws organizations list-roots.aws organizations enable-policy-type \ --root-idroot-id\ --policy-type AISERVICES_OPT_OUT_POLICY -
Save the following JSON policy to a file, such as
assurance-opt-out.json.{ "services": { "assurance": { "opt_out_policy": { "@@assign": "optOut" } } } } -
Run the following AWS CLI command to create the policy. Note the
PolicyIdin the response.aws organizations create-policy \ --name "AssuranceOptOut" \ --description "Opt out of AWS Assurance data use for service improvement" \ --type AISERVICES_OPT_OUT_POLICY \ --content file://assurance-opt-out.json -
Run the following AWS CLI command to attach the policy to the organization root, an organizational unit (OU), or an account. Replace
policy-idwith thePolicyIdfrom the previous step. Replacetarget-idwith the ID of the root, OU, or account.aws organizations attach-policy \ --policy-idpolicy-id\ --target-idtarget-id
The opt-out applies to new data within 10 minutes.
Verify your opt-out status
To confirm that the opt-out applies to an account, run the following AWS CLI command. Replace account-id with the ID of the account.
aws organizations describe-effective-policy \ --policy-type AISERVICES_OPT_OUT_POLICY \ --target-idaccount-id
If the opt-out applies, the effective policy sets assurance to optOut, as in the following example response:
{ "EffectivePolicy": { "PolicyContent": "{\"services\":{\"assurance\":{\"opt_out_policy\":\"optOut\"}}}", "TargetId": "123456789012", "PolicyType": "AISERVICES_OPT_OUT_POLICY" } }
If assurance doesn’t appear in the response, confirm that you enabled the policy type. Also confirm that you attached the policy to the account, or to an OU or root that contains the account.
What happens when you opt out
After you opt out, AWS Assurance stops collecting data from your assessments to develop and improve the service. If AWS Assurance can’t determine your opt-out status, such as during a temporary AWS Organizations error, your data stays out of service improvement.
AWS Assurance applies the opt-out status of the account that owns an environment to all assessments in that environment, including multi-account assessments of member accounts. For an organization environment, that account is the management account, even if a delegated administrator created the environment. Opt-out policies that apply only to member accounts have no effect. To check the status, follow Verify your opt-out status with the ID of the management account.
Data that AWS Assurance uses for service improvement
Unless you opt out, AWS Assurance collects and uses the following categories of data from each assessment to develop and improve the service:
-
Result – The result that
GetAssessmentreturns. It includes a summary, and the status (met,partial,not_met,unable_to_assess, ornot_applicable), confidence, and rationale of each requirement. The result can name your resources, evidence documents, and comment authors, and it can quote your evidence. -
Status and score – The assessment status and the outcome percentage.
-
Timing – When the assessment was created and last updated, and how many times it was retried.
-
Identifiers – The account ID, environment ID, project name, framework name, framework version, and control ID of the assessment, and the IDs that AWS Assurance assigns to the assessment run. For a custom framework, the framework name and control ID are the ones that you chose.
Data that AWS Assurance never uses for service improvement
Whether or not you opt out, AWS Assurance never uses the following data to develop and improve the service:
-
The contents of your evidence files, your chat messages, and the definitions of your custom frameworks, such as control groups, control descriptions, and requirements. An assessment result can still name or quote your evidence. For a custom framework, the identifiers include the framework name and control ID that you chose, and the rationale in a result can restate your requirement text. For more information, see the previous section.
-
Assessment results that are encrypted with a customer managed key. For these assessments, AWS Assurance collects only the status and score, the timing, and the identifiers.
-
Account metadata and billing information. The only account data that AWS Assurance collects is the account ID.
-
AWS Identity and Access Management (IAM) credentials and access keys.