put_organization_enrollment_configuration
async
¶
put_organization_enrollment_configuration(
target: OrganizationTarget,
*,
config_overrides: Optional[AsyncComputeOptimizerAutomationClientConfig] = None,
organization_rule_mode: Optional[OrganizationRuleMode] = None,
client_token: Optional[ClientToken] = None,
) -> PutOrganizationEnrollmentConfigurationResponse
Creates or updates an organization enrollment configuration. The organization enrollment configuration sets the organization rule mode on the specified account, organizational unit (OU), or organization root and enables Automation for affected member accounts that have opted in to Compute Optimizer, including accounts that join later. Changes on an OU or the organization root can take up to 5 minutes. Organization enrollment configurations take precedence over settings made by AssociateAccounts and DisassociateAccounts. You must specify at least one configuration in the request.
Only the management account or a delegated administrator can perform this action.
Organization enrollment configurations can't be created for the management account.
Parameters:
-
target(OrganizationTarget) –The account, organizational unit (OU), or organization root on which to create or update the organization enrollment configuration. You can't specify the management account.
-
organization_rule_mode(Optional[OrganizationRuleMode], default:None) –The organization rule mode to set on the target. An organization enrollment configuration with either
AnyAllowedorNoneAllowedenables Automation for affected member accounts.AnyAllowedpermits organization rules to apply to those accounts, whileNoneAlloweddoesn't. -
client_token(Optional[ClientToken], default:None) –A unique identifier to ensure idempotency of the request.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ConflictException–The request conflicts with a concurrent change to the same resource. Retry the request.
-
ForbiddenException–You are not authorized to perform this action.
-
IdempotencyTokenInUseException–The specified client token is already in use.
-
IdempotentParameterMismatchException–Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.
-
InternalServerException–An internal error occurred while processing the request.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
OptInRequiredException–The account must be opted in to Compute Optimizer Automation before performing this action.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer_automation/_services/async_compute_optimizer_automation.py
2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 | |