View a markdown version of this page

AWS::ComputeOptimizer::AutomationRule OrganizationConfiguration - Amazon CloudFormation
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).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::ComputeOptimizer::AutomationRule OrganizationConfiguration

Configuration settings that define the scope of an organization-wide automation rule. Each organizational unit (OU) list can contain up to 150 OUs or organization roots, and each account list can contain up to 50 accounts. Each included OU or organization root must have an effective organization rule mode of AnyAllowed. Exclusions take precedence over inclusions. An account that is in an included OU and is also excluded is excluded. The rule doesn't apply to the management account when the account is reached through an OU or the organization root.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "AccountIds" : [ String, ... ], "ExcludedAccountIds" : [ String, ... ], "ExcludedOrganizationalUnitIds" : [ String, ... ], "OrganizationalUnitIds" : [ String, ... ], "RuleApplyOrder" : String }

Properties

AccountIds

The specific Amazon account IDs where the organization rule should be applied. You can specify up to 50 account IDs.

Required: No

Type: Array of String

Minimum: 1

Maximum: 50

Update requires: No interruption

ExcludedAccountIds

The Amazon account IDs to exclude from the organization rule scope. You can specify up to 50 account IDs. An excluded account remains excluded even if it is in an included OU.

Required: No

Type: Array of String

Minimum: 1

Maximum: 50

Update requires: No interruption

ExcludedOrganizationalUnitIds

The organizational unit (OU) or organization root IDs to exclude from the organization rule scope. The rule doesn't apply to accounts in the specified OUs or their child OUs. You can specify up to 150 IDs.

Required: No

Type: Array of String

Minimum: 1

Maximum: 150

Update requires: No interruption

OrganizationalUnitIds

The organizational unit (OU) or organization root IDs to include in the organization rule scope. The rule applies to accounts in the specified OUs and their child OUs. You can specify up to 150 IDs.

Required: No

Type: Array of String

Minimum: 1

Maximum: 150

Update requires: No interruption

RuleApplyOrder

Specifies when organization rules should be applied relative to account rules.

Required: No

Type: String

Allowed values: BeforeAccountRules | AfterAccountRules

Update requires: No interruption