WellArchitected / Client / put_agent_preferences
put_agent_preferences¶
- WellArchitected.Client.put_agent_preferences(**kwargs)¶
Creates or replaces the caller’s Well-Architected Agent preferences. Each supplied update sets the desired state of one preference. Preferences not named in the request are left unchanged. Enabling or disabling is performed synchronously, so a failure to reach the requested state is returned as a modeled exception rather than a FAILED status. On success the operation returns an empty response. Call GetAgentPreferences to read the resulting state. The account the preferences belong to is inferred from the caller’s authorization context.
See also: AWS API Documentation
Request Syntax
response = client.put_agent_preferences( preferences=[ { 'key': 'ORG_INTEGRATION', 'state': 'ENABLED'|'DISABLED' }, ] )
- Parameters:
preferences (list) –
[REQUIRED]
Preference updates to apply. A given preference key may appear at most once.
(dict) –
A caller’s requested change to one preference, supplied to PutAgentPreferences.
key (string) – [REQUIRED]
Which preference to update.
state (string) – [REQUIRED]
State to set the preference to. FAILED is an observed state only and cannot be requested.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions
WellArchitected.Client.exceptions.AccessDeniedExceptionWellArchitected.Client.exceptions.ValidationExceptionWellArchitected.Client.exceptions.InternalServerExceptionWellArchitected.Client.exceptions.ConflictExceptionWellArchitected.Client.exceptions.ThrottlingException