ControlTower / Client / enable_baseline
enable_baseline#
- ControlTower.Client.enable_baseline(**kwargs)#
Enable (apply) a
Baselineto a Target. This API starts an asynchronous operation to deploy resources specified by theBaselineto the specified Target. For usage examples, see the Amazon Web Services Control Tower User Guide.See also: AWS API Documentation
Request Syntax
response = client.enable_baseline( baselineIdentifier='string', baselineVersion='string', parameters=[ { 'key': 'string', 'value': {...}|[...]|123|123.4|'string'|True|None }, ], tags={ 'string': 'string' }, targetIdentifier='string' )
- Parameters:
baselineIdentifier (string) –
[REQUIRED]
The ARN of the baseline to be enabled.
baselineVersion (string) –
[REQUIRED]
The specific version to be enabled of the specified baseline.
parameters (list) –
A list of
key-valueobjects that specify enablement parameters, wherekeyis a string andvalueis a document of any type.(dict) –
A key-value parameter to an
EnabledBaselineresource.key (string) – [REQUIRED]
A string denoting the parameter key.
value (document) – [REQUIRED]
A low-level
Documentobject of any type (for example, a Java Object).
tags (dict) –
Tags associated with input to
EnableBaseline.(string) –
(string) –
targetIdentifier (string) –
[REQUIRED]
The ARN of the target on which the baseline will be enabled. Only OUs are supported as targets.
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'operationIdentifier': 'string' }
Response Structure
(dict) –
arn (string) –
The ARN of the
EnabledBaselineresource.operationIdentifier (string) –
The ID (in UUID format) of the asynchronous
EnableBaselineoperation. ThisoperationIdentifieris used to track status through calls to theGetBaselineOperationAPI.
Exceptions
ControlTower.Client.exceptions.ValidationExceptionControlTower.Client.exceptions.ConflictExceptionControlTower.Client.exceptions.ServiceQuotaExceededExceptionControlTower.Client.exceptions.InternalServerExceptionControlTower.Client.exceptions.AccessDeniedExceptionControlTower.Client.exceptions.ThrottlingExceptionControlTower.Client.exceptions.ResourceNotFoundException