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}
YAML
AccountIds:- StringExcludedAccountIds:- StringExcludedOrganizationalUnitIds:- StringOrganizationalUnitIds:- StringRuleApplyOrder: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:
1Maximum:
50Update 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:
1Maximum:
50Update 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:
1Maximum:
150Update 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:
1Maximum:
150Update requires: No interruption
RuleApplyOrder-
Specifies when organization rules should be applied relative to account rules.
Required: No
Type: String
Allowed values:
BeforeAccountRules | AfterAccountRulesUpdate requires: No interruption