start_engagement
async
¶
start_engagement(
contact_id: SsmContactsArn,
sender: Sender,
subject: Subject,
content: Content,
*,
config_overrides: Optional[AsyncSSMContactsClientConfig] = None,
public_subject: Optional[PublicSubject] = None,
public_content: Optional[PublicContent] = None,
incident_id: Optional[IncidentId] = None,
idempotency_token: Optional[IdempotencyToken] = None,
) -> StartEngagementResult
Starts an engagement to a contact or escalation plan. The engagement engages each contact specified in the incident.
Parameters:
-
contact_id(SsmContactsArn) –The Amazon Resource Name (ARN) of the contact being engaged.
-
sender(Sender) –The user that started the engagement.
-
subject(Subject) –The secure subject of the message that was sent to the contact. Use this field for engagements to
VOICEorEMAIL. -
content(Content) –The secure content of the message that was sent to the contact. Use this field for engagements to
VOICEorEMAIL. -
public_subject(Optional[PublicSubject], default:None) –The insecure subject of the message that was sent to the contact. Use this field for engagements to
SMS. -
public_content(Optional[PublicContent], default:None) –The insecure content of the message that was sent to the contact. Use this field for engagements to
SMS. -
incident_id(Optional[IncidentId], default:None) –The ARN of the incident that the engagement is part of.
-
idempotency_token(Optional[IdempotencyToken], default:None) –A token ensuring that the operation is called only once with the specified details.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this operation.
-
DataEncryptionException–The operation failed to due an encryption key error.
-
InternalServerException–Unexpected error occurred while processing the request.
-
ResourceNotFoundException–Request references a resource that doesn't exist.
-
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_ssm_contacts/_services/async_ssm_contacts.py
2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 | |