Viewing effective AI services opt-out policies - AWS Organizations

Viewing effective AI services opt-out policies

Determine the effective Artificial Intelligence (AI) services opt-out policy for an account in your organization.

What is the effective AI services opt-out policy?

The effective AI services opt-out policy specifies the final rules that apply to an AWS account. It is the aggregation of any AI services opt-out policies that the account inherits, plus any AI services opt-out policies that are directly attached to the account. When you attach an AI services opt-out policy to the organization's root, it applies to all accounts in your organization. When you attach an AI services opt-out policy to an OU, it applies to all accounts and OUs that belong to the OU. When you attach a policy directly to an account, it applies only to that one AWS account.

For example, the AI services opt-out policy attached to the organization root might specify that all accounts in the organization opt out of content use by all AWS machine learning services. A separate AI services opt-out policy attached directly to one member account specifies that it opts in to content use for only Amazon Rekognition. The combination of these AI services opt-out policies comprises the effective AI services opt-out policy. The result is that all accounts in the organization are opted out of all AWS services, with the exception of one account that opts in to Amazon Rekognition.

For information about how policies are combined into the final effective policy, see Understanding management policy inheritance.

How to view the effective AI services opt-out policy

You can view the effective AI services opt-out policy for an account from the AWS Management Console, AWS API, or AWS Command Line Interface.

Minimum permissions

To view the effective AI services opt-out policy for an account, you must have permission to run the following actions:

  • organizations:DescribeEffectivePolicy

  • organizations:DescribeOrganization – required only when using the Organizations console

AWS Management Console
To view the effective AI services opt-out policy for an account
  1. Sign in to the AWS Organizations console. You must sign in as an IAM user, assume an IAM role, or sign in as the root user (not recommended) in the organization’s management account.

  2. On the AWS accounts page, choose the name of the account for which you want to view the effective AI services opt-out policy. You might have to expand OUs (choose the ) to find the account that you want.

  3. On the Policies tab, in the AI services opt-out policies section, choose View the effective AI policy for this AWS account.

    The console displays the effective policy applied to the specified account.

    Note

    You can't copy and paste an effective policy and use it as the JSON for another AI services opt-out policy without significant changes. AI services opt-out policy documents must include the inheritance operators that specify how each setting is merged into the final effective policy.

AWS CLI & AWS SDKs
To view the effective AI services opt-out policy for an account

You can use one of the following to view the effective AI services opt-out policy:

  • AWS CLI: describe-effective-policy

    The following example shows the effective AI services opt-out policy for an account.

    $ aws organizations describe-effective-policy \ --policy-type AISERVICES_OPT_OUT_POLICY \ --target-id 123456789012 { "EffectivePolicy": { "PolicyContent": "{\"services\":{\"comprehend\":{\"opt_out_policy\":\"optOut\"}, ....TRUNCATED FOR BREVITY.... "opt_out_policy\":\"optIn\"}}}", "LastUpdatedTimestamp": "2020-12-09T12:58:53.548000-08:00", "TargetId": "123456789012", "PolicyType": "AISERVICES_OPT_OUT_POLICY" } }
  • AWS SDKs: DescribeEffectivePolicy