update_agent_profile
¶
update_agent_profile(
profile_arn: AgentProfileArn,
*,
config_overrides: Optional[WellArchitectedClientConfig] = None,
client_token: Optional[str] = None,
display_name: Optional[SensitiveString] = None,
description: Optional[SensitiveString] = None,
execution_role_arn: Optional[RoleArn] = None,
aggregation_configuration: Optional[AggregationConfigurations] = None,
business_overview: Optional[SensitiveString] = None,
pillars: Optional[Pillars] = None,
deletion_protection: Optional[bool] = None,
) -> UpdateAgentProfileResponse
Updates an existing optimization profile's configuration, including its pillars, execution role, and aggregation settings. Include only the fields you want to change. Any field you omit from the request keeps its current value, so you do not need to retrieve the profile first and resend the fields you are not changing.
To clear an optional text field, supply an empty string for it; the field is then unset, and a subsequent read omits it rather than returning an empty string. Omitting the field from the request leaves the stored value in place. description and businessOverview can be cleared this way. displayName cannot be cleared because a display name is required, though you can change it. pillars cannot be cleared because a profile must target at least one pillar.
aggregationConfiguration behaves differently because it is a list of per-account configurations rather than a text field. Supplying an empty list removes every account entry, but the field itself remains set: a subsequent read returns an empty list rather than omitting the field. Omitting it from the request keeps the stored entries.
Parameters:
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
profile_arn(AgentProfileArn) –The Amazon Resource Name (ARN) of the profile to update.
-
display_name(Optional[SensitiveString], default:None) –The updated display name of the profile. Omit this field to keep the current display name. A display name is required, so it cannot be cleared.
-
description(Optional[SensitiveString], default:None) –The updated description of the profile. Omit this field to keep the current description, or supply an empty string to clear it; a cleared description is read back as absent rather than as an empty string.
-
execution_role_arn(Optional[RoleArn], default:None) –The updated ARN of the IAM execution role. Omit this field to keep the current execution role.
-
aggregation_configuration(Optional[AggregationConfigurations], default:None) –The updated aggregation configuration, as a list of per-account entries. Omit this field to keep the current entries, or supply an empty list to remove them all. The field remains set either way — an emptied configuration is read back as an empty list, not as an absent field.
-
business_overview(Optional[SensitiveString], default:None) –The updated business overview for the profile. Omit this field to keep the current business overview, or supply an empty string to clear it; a cleared business overview is read back as absent rather than as an empty string.
-
pillars(Optional[Pillars], default:None) –The updated Amazon Web Services Well-Architected Framework pillars for the profile. Omit this field to keep the current pillars. A profile must target at least one pillar, so an empty list is rejected.
-
deletion_protection(Optional[bool], default:None) –Indicates whether deletion protection is enabled for the profile.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
InternalServerException–There is a problem with the Well-Architected Tool API service.
-
ResourceNotFoundException–The requested resource was not found.
-
ServiceQuotaExceededException–The user has reached their resource quota.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The user input is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wellarchitected/_services/well_architected.py
7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 | |