Attaching and detaching AI services opt-out policies - Amazon Organizations
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Attaching and detaching AI services opt-out policies

You can use Artificial Intelligence (AI) services opt-out policies on an entire organization as well as on organizational units (OUs) and individual accounts. What the AI services opt-out policy applies to depends on what organization element you attach it to:

  • When you attach an AI services opt-out policy to your organization root, the policy applies to all of that root's member OUs and accounts.

  • When you attach an AI services opt-out policy to an OU, that policy applies to the accounts that belong to the OU or any of its child OUs. Those accounts are also subject to any policy attached to the organization root.

  • When you attach an AI services opt-out policy to an account, that policy applies to only that account. The account is also subject to any policy attached to the organization root and any OUs that the account belongs to.

The aggregation of any AI services opt-out policies the account inherits from the root and parent OUs, as well as any policies directly attached to the account, is the effective policy. For information about how policies are merged to the effective policy, see Understanding management policy inheritance.

Minimum permissions

To attach AI services opt-out policies, you must have permission to run the following action:

  • organizations:AttachPolicy

Amazon Web Services Management Console

You can attach an AI services opt-out policy by either navigating to the policy or to the root, OU, or account that you want to attach the policy to.

To attach an AI services opt-out policy by navigating to the root, OU, or account
  1. Sign in to the Amazon 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 Amazon Web Services accounts page, navigate to and then choose the name of the root, OU, or account that you want to attach a policy to. You might have to expand OUs (choose the ) to find the OU or account that you want.

  3. In the Policies tab, in the entry for AI service opt-out policies, choose Attach.

  4. Find the policy that you want and choose Attach policy.

    The list of attached AI services opt-out policies on the Policies tab is updated to include the new addition. The policy change takes effect immediately.

To attach an AI services opt-out policy by navigating to the policy
  1. Sign in to the Amazon 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 AI services opt-out policies page, choose the name of the policy that you want to attach.

  3. On the Targets tab, choose Attach.

  4. Choose the radio button next to the root, OU, or account that you want to attach the policy to. You might have to expand OUs (choose the ) to find the OU or account that you want.

  5. Choose Attach policy.

    The list of attached AI services opt-out policies on the Targets tab is updated to include the new addition. The policy change takes effect immediately.

Amazon CLI & Amazon SDKs
To attach an AI services opt-out policy to the organization root, OU, or account

You can use one of the following to attach an AI services opt-out policy:

  • Amazon CLI: attach-policy

    The following example attaches a policy to an OU.

    $ aws organizations attach-policy \ --target-id ou-a1b2-f6g7h222 \ --policy-id p-i9j8k7l6m5

    This command produces no output when successful.

  • Amazon SDKs: AttachPolicy

The policy change takes effect immediately.

Detaching an AI services opt-out policy

When you sign in to your organization's management account, you can detach an AI services opt-out policy from the organization root, OU, or account that it is attached to. After you detach an AI services opt-out policy from an entity, that policy no longer applies to any account that was previously affected by the now detached entity. To detach a policy, complete the following steps.

Minimum permissions

To detach an AI services opt-out policy from the organization root, OU, or account, you must have permission to run the following action:

  • organizations:DetachPolicy

Amazon Web Services Management Console

You can detach an AI services opt-out policy by either navigating to the policy or to the root, OU, or account that you want to detach the policy from.

To detach an AI services opt-out policy by navigating to the root, OU, or account it's attached to
  1. Sign in to the Amazon 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 Amazon Web Services accounts page navigate to the Root, OU, or account that you want to detach a policy from. You might have to expand OUs (choose the ) to find the OU or account that you want. Choose the name of the Root, OU, or account.

  3. On the Policies tab, choose the radio button next to the AI services opt-out policy that you want to detach, and then choose Detach.

  4. In the confirmation dialog box, choose Detach policy.

    The list of attached AI services opt-out policies is updated. The policy change takes effect immediately.

To detach an AI services opt-out policy by navigating to the policy
  1. Sign in to the Amazon 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 AI services opt-out policies page, choose the name of the policy that you want to detach from a root, OU, or account.

  3. On the Targets tab, choose the radio button next to the root, OU, or account that you want to detach the policy from. You might have to expand OUs (choose the ) to find the OU or account that you want.

  4. Choose Detach.

  5. In the confirmation dialog box, choose Detach.

    The list of attached AI services opt-out policies is updated. The policy change takes effect immediately.

Amazon CLI & Amazon SDKs
To detach an AI services opt-out policy from the organization root, OU, or account

You can use one of the following to detach an AI services opt-out policy:

  • Amazon CLI: detach-policy

    The following example detaches a policy from an OU.

    $ aws organizations detach-policy \ --target-id ou-a1b2-f6g7h222 \ --policy-id p-i9j8k7l6m5

    This command produces no output when successful.

  • Amazon SDKs: DetachPolicy

The policy change takes effect immediately.