create_alert_manager_definition
async
¶
create_alert_manager_definition(
workspace_id: WorkspaceId,
data: AlertManagerDefinitionData,
*,
config_overrides: Optional[AsyncampClientConfig] = None,
client_token: Optional[IdempotencyToken] = None,
) -> CreateAlertManagerDefinitionResponse
The CreateAlertManagerDefinition operation creates the alert manager definition in a workspace. If a workspace already has an alert manager definition, don't use this operation to update it. Instead, use PutAlertManagerDefinition.
Parameters:
-
workspace_id(WorkspaceId) –The ID of the workspace to add the alert manager definition to.
-
data(AlertManagerDefinitionData) –The alert manager definition to add. A base64-encoded version of the YAML alert manager definition file.
For details about the alert manager definition, see AlertManagedDefinitionData.
-
client_token(Optional[IdempotencyToken], default:None) –A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request would cause an inconsistent state.
-
InternalServerException–An unexpected error occurred during the processing of the request.
-
ResourceNotFoundException–The request references a resources that doesn't exist.
-
ServiceQuotaExceededException–Completing the request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amp/_services/async_amp.py
1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 | |