@aws-sdk/client-ssm-contacts 3.288.0 → 3.290.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/commands/AcceptPageCommand.d.ts +31 -0
- package/dist-types/commands/ActivateContactChannelCommand.d.ts +30 -0
- package/dist-types/commands/CreateContactChannelCommand.d.ts +42 -0
- package/dist-types/commands/CreateContactCommand.d.ts +45 -0
- package/dist-types/commands/DeactivateContactChannelCommand.d.ts +29 -0
- package/dist-types/commands/DeleteContactChannelCommand.d.ts +29 -0
- package/dist-types/commands/DeleteContactCommand.d.ts +29 -0
- package/dist-types/commands/DescribeEngagementCommand.d.ts +44 -0
- package/dist-types/commands/DescribePageCommand.d.ts +47 -0
- package/dist-types/commands/GetContactChannelCommand.d.ts +44 -0
- package/dist-types/commands/GetContactCommand.d.ts +133 -0
- package/dist-types/commands/GetContactPolicyCommand.d.ts +35 -0
- package/dist-types/commands/ListContactChannelsCommand.d.ts +48 -0
- package/dist-types/commands/ListContactsCommand.d.ts +54 -0
- package/dist-types/commands/ListEngagementsCommand.d.ts +54 -0
- package/dist-types/commands/ListPageReceiptsCommand.d.ts +53 -0
- package/dist-types/commands/ListPagesByContactCommand.d.ts +44 -0
- package/dist-types/commands/ListPagesByEngagementCommand.d.ts +42 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/commands/PutContactPolicyCommand.d.ts +33 -0
- package/dist-types/commands/SendActivationCodeCommand.d.ts +35 -0
- package/dist-types/commands/StartEngagementCommand.d.ts +63 -0
- package/dist-types/commands/StopEngagementCommand.d.ts +29 -0
- package/dist-types/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +32 -0
- package/dist-types/commands/UpdateContactChannelCommand.d.ts +39 -0
- package/dist-types/commands/UpdateContactCommand.d.ts +72 -0
- package/package.json +29 -29
|
@@ -29,6 +29,37 @@ export interface AcceptPageCommandOutput extends AcceptPageResult, __MetadataBea
|
|
|
29
29
|
* @see {@link AcceptPageCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link InternalServerException} (server fault)
|
|
36
|
+
* <p>Unexpected error occurred while
|
|
37
|
+
* processing the request.</p>
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
40
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
43
|
+
* <p>The request was denied due to request throttling.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ValidationException} (client fault)
|
|
46
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
47
|
+
* service.</p>
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* @example To accept a page during and engagement
|
|
51
|
+
* ```javascript
|
|
52
|
+
* // The following accept-page operation uses an accept code sent to the contact channel to accept a page.
|
|
53
|
+
* const input = {
|
|
54
|
+
* "AcceptCode": "425440",
|
|
55
|
+
* "AcceptType": "READ",
|
|
56
|
+
* "PageId": "arn:aws:ssm-contacts:us-east-2:682428703967:page/akuam/94ea0c7b-56d9-46c3-b84a-a37c8b067ad3"
|
|
57
|
+
* };
|
|
58
|
+
* const command = new AcceptPageCommand(input);
|
|
59
|
+
* await client.send(command);
|
|
60
|
+
* // example id: to-accept-a-page-during-and-engagement-1630357840187
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
32
63
|
*/
|
|
33
64
|
export declare class AcceptPageCommand extends $Command<AcceptPageCommandInput, AcceptPageCommandOutput, SSMContactsClientResolvedConfig> {
|
|
34
65
|
readonly input: AcceptPageCommandInput;
|
|
@@ -30,6 +30,36 @@ export interface ActivateContactChannelCommandOutput extends ActivateContactChan
|
|
|
30
30
|
* @see {@link ActivateContactChannelCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
34
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link InternalServerException} (server fault)
|
|
37
|
+
* <p>Unexpected error occurred while
|
|
38
|
+
* processing the request.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
41
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
44
|
+
* <p>The request was denied due to request throttling.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ValidationException} (client fault)
|
|
47
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
48
|
+
* service.</p>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @example Activate a contact's contact channel
|
|
52
|
+
* ```javascript
|
|
53
|
+
* // The following activate-contact-channel example activates a contact channel and makes it usable as part of an incident.
|
|
54
|
+
* const input = {
|
|
55
|
+
* "ActivationCode": "466136",
|
|
56
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d"
|
|
57
|
+
* };
|
|
58
|
+
* const command = new ActivateContactChannelCommand(input);
|
|
59
|
+
* await client.send(command);
|
|
60
|
+
* // example id: activate-a-contacts-contact-channel-1630359780075
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
33
63
|
*/
|
|
34
64
|
export declare class ActivateContactChannelCommand extends $Command<ActivateContactChannelCommandInput, ActivateContactChannelCommandOutput, SSMContactsClientResolvedConfig> {
|
|
35
65
|
readonly input: ActivateContactChannelCommandInput;
|
|
@@ -29,6 +29,48 @@ export interface CreateContactChannelCommandOutput extends CreateContactChannelR
|
|
|
29
29
|
* @see {@link CreateContactChannelCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link ConflictException} (client fault)
|
|
36
|
+
* <p>Updating or deleting a resource causes an inconsistent state.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
39
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link InternalServerException} (server fault)
|
|
42
|
+
* <p>Unexpected error occurred while
|
|
43
|
+
* processing the request.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To create a contact channel
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // Creates a contact channel of type SMS for the contact Akua Mansa. Contact channels can be created of type SMS, EMAIL, or VOICE.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
58
|
+
* "DeliveryAddress": {
|
|
59
|
+
* "SimpleAddress": "+15005550199"
|
|
60
|
+
* },
|
|
61
|
+
* "Name": "akuas sms-test",
|
|
62
|
+
* "Type": "SMS"
|
|
63
|
+
* };
|
|
64
|
+
* const command = new CreateContactChannelCommand(input);
|
|
65
|
+
* const response = await client.send(command);
|
|
66
|
+
* /* response ==
|
|
67
|
+
* {
|
|
68
|
+
* "ContactChannelArn": "arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/02f506b9-ea5d-4764-af89-2daa793ff024"
|
|
69
|
+
* }
|
|
70
|
+
* *\/
|
|
71
|
+
* // example id: to-create-a-contact-channel-1630360447010
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
32
74
|
*/
|
|
33
75
|
export declare class CreateContactChannelCommand extends $Command<CreateContactChannelCommandInput, CreateContactChannelCommandOutput, SSMContactsClientResolvedConfig> {
|
|
34
76
|
readonly input: CreateContactChannelCommandInput;
|
|
@@ -31,6 +31,51 @@ export interface CreateContactCommandOutput extends CreateContactResult, __Metad
|
|
|
31
31
|
* @see {@link CreateContactCommandOutput} for command's `response` shape.
|
|
32
32
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
33
33
|
*
|
|
34
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
35
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ConflictException} (client fault)
|
|
38
|
+
* <p>Updating or deleting a resource causes an inconsistent state.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
41
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link InternalServerException} (server fault)
|
|
44
|
+
* <p>Unexpected error occurred while
|
|
45
|
+
* processing the request.</p>
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
48
|
+
* <p>Request would cause a service quota to be exceeded.</p>
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
51
|
+
* <p>The request was denied due to request throttling.</p>
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ValidationException} (client fault)
|
|
54
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
55
|
+
* service.</p>
|
|
56
|
+
*
|
|
57
|
+
*
|
|
58
|
+
* @example To create a contact
|
|
59
|
+
* ```javascript
|
|
60
|
+
* // The following create-contact example creates a contact in your environment with a blank plan. The plan can be updated after creating contact channels. Use the create-contact-channel operation with the output ARN of this command. After you have created contact channels for this contact use update-contact to update the plan.
|
|
61
|
+
* const input = {
|
|
62
|
+
* "Alias": "akuam",
|
|
63
|
+
* "DisplayName": "Akua Mansa",
|
|
64
|
+
* "Plan": {
|
|
65
|
+
* "Stages": []
|
|
66
|
+
* },
|
|
67
|
+
* "Type": "PERSONAL"
|
|
68
|
+
* };
|
|
69
|
+
* const command = new CreateContactCommand(input);
|
|
70
|
+
* const response = await client.send(command);
|
|
71
|
+
* /* response ==
|
|
72
|
+
* {
|
|
73
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam"
|
|
74
|
+
* }
|
|
75
|
+
* *\/
|
|
76
|
+
* // example id: to-create-a-contact-1630360152750
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
34
79
|
*/
|
|
35
80
|
export declare class CreateContactCommand extends $Command<CreateContactCommandInput, CreateContactCommandOutput, SSMContactsClientResolvedConfig> {
|
|
36
81
|
readonly input: CreateContactCommandInput;
|
|
@@ -30,6 +30,35 @@ export interface DeactivateContactChannelCommandOutput extends DeactivateContact
|
|
|
30
30
|
* @see {@link DeactivateContactChannelCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
34
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link InternalServerException} (server fault)
|
|
37
|
+
* <p>Unexpected error occurred while
|
|
38
|
+
* processing the request.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
41
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
44
|
+
* <p>The request was denied due to request throttling.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ValidationException} (client fault)
|
|
47
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
48
|
+
* service.</p>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @example To deactivate a contact channel
|
|
52
|
+
* ```javascript
|
|
53
|
+
* // The following ``deactivate-contact-channel`` example deactivates a contact channel. Deactivating a contact channel means the contact channel will no longer be paged during an incident. You can also reactivate a contact channel at any time using the activate-contact-channel operation.
|
|
54
|
+
* const input = {
|
|
55
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d"
|
|
56
|
+
* };
|
|
57
|
+
* const command = new DeactivateContactChannelCommand(input);
|
|
58
|
+
* await client.send(command);
|
|
59
|
+
* // example id: to-deactivate-a-contact-channel-1630360853894
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
33
62
|
*/
|
|
34
63
|
export declare class DeactivateContactChannelCommand extends $Command<DeactivateContactChannelCommandInput, DeactivateContactChannelCommandOutput, SSMContactsClientResolvedConfig> {
|
|
35
64
|
readonly input: DeactivateContactChannelCommandInput;
|
|
@@ -32,6 +32,35 @@ export interface DeleteContactChannelCommandOutput extends DeleteContactChannelR
|
|
|
32
32
|
* @see {@link DeleteContactChannelCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
36
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServerException} (server fault)
|
|
39
|
+
* <p>Unexpected error occurred while
|
|
40
|
+
* processing the request.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
43
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To delete a contact channel
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following delete-contact-channel example deletes a contact channel. Deleting a contact channel ensures the contact channel will not be paged during an incident.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-1:111122223333:contact-channel/akuam/13149bad-52ee-45ea-ae1e-45857f78f9b2"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new DeleteContactChannelCommand(input);
|
|
60
|
+
* await client.send(command);
|
|
61
|
+
* // example id: to-delete-a-contact-channel-1630364616682
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
35
64
|
*/
|
|
36
65
|
export declare class DeleteContactChannelCommand extends $Command<DeleteContactChannelCommandInput, DeleteContactChannelCommandOutput, SSMContactsClientResolvedConfig> {
|
|
37
66
|
readonly input: DeleteContactChannelCommandInput;
|
|
@@ -32,6 +32,35 @@ export interface DeleteContactCommandOutput extends DeleteContactResult, __Metad
|
|
|
32
32
|
* @see {@link DeleteContactCommandOutput} for command's `response` shape.
|
|
33
33
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
34
34
|
*
|
|
35
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
36
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServerException} (server fault)
|
|
39
|
+
* <p>Unexpected error occurred while
|
|
40
|
+
* processing the request.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
43
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To delete a contact
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following delete-contact example deletes a contact. The contact will no longer be reachable from any escalation plan that refers to them.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-1:111122223333:contact/alejr"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new DeleteContactCommand(input);
|
|
60
|
+
* await client.send(command);
|
|
61
|
+
* // example id: to-delete-a-contact-1630361093863
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
35
64
|
*/
|
|
36
65
|
export declare class DeleteContactCommand extends $Command<DeleteContactCommandInput, DeleteContactCommandOutput, SSMContactsClientResolvedConfig> {
|
|
37
66
|
readonly input: DeleteContactCommandInput;
|
|
@@ -30,6 +30,50 @@ export interface DescribeEngagementCommandOutput extends DescribeEngagementResul
|
|
|
30
30
|
* @see {@link DescribeEngagementCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
34
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
37
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link InternalServerException} (server fault)
|
|
40
|
+
* <p>Unexpected error occurred while
|
|
41
|
+
* processing the request.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
44
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
47
|
+
* <p>The request was denied due to request throttling.</p>
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link ValidationException} (client fault)
|
|
50
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
51
|
+
* service.</p>
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
* @example To describe the details of an engagement
|
|
55
|
+
* ```javascript
|
|
56
|
+
* // The following describe-engagement example lists the details of an engagement to a contact or escalation plan. The subject and content are sent to the contact channels.
|
|
57
|
+
* const input = {
|
|
58
|
+
* "EngagementId": "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356"
|
|
59
|
+
* };
|
|
60
|
+
* const command = new DescribeEngagementCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* /* response ==
|
|
63
|
+
* {
|
|
64
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
65
|
+
* "Content": "Testing engagements",
|
|
66
|
+
* "EngagementArn": "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/example_escalation/69e40ce1-8dbb-4d57-8962-5fbe7fc53356",
|
|
67
|
+
* "PublicContent": "Testing engagements",
|
|
68
|
+
* "PublicSubject": "test",
|
|
69
|
+
* "Sender": "tester",
|
|
70
|
+
* "StartTime": "2021-05-18T18:25:41.151000+00:00",
|
|
71
|
+
* "Subject": "test"
|
|
72
|
+
* }
|
|
73
|
+
* *\/
|
|
74
|
+
* // example id: to-describe-the-details-of-an-engagement-1630364719475
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
33
77
|
*/
|
|
34
78
|
export declare class DescribeEngagementCommand extends $Command<DescribeEngagementCommandInput, DescribeEngagementCommandOutput, SSMContactsClientResolvedConfig> {
|
|
35
79
|
readonly input: DescribeEngagementCommandInput;
|
|
@@ -29,6 +29,53 @@ export interface DescribePageCommandOutput extends DescribePageResult, __Metadat
|
|
|
29
29
|
* @see {@link DescribePageCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
36
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServerException} (server fault)
|
|
39
|
+
* <p>Unexpected error occurred while
|
|
40
|
+
* processing the request.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
43
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To list the details of a page to a contact channel
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following describe-page example lists details of a page to a contact channel. The page will include the subject and content provided.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "PageId": "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new DescribePageCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* /* response ==
|
|
62
|
+
* {
|
|
63
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
64
|
+
* "Content": "Testing engagements",
|
|
65
|
+
* "DeliveryTime": "2021-05-18T18:43:55.265000+00:00",
|
|
66
|
+
* "EngagementArn": "arn:aws:ssm-contacts:us-east-2:111122223333:engagement/akuam/78a29753-3674-4ac5-9f83-0468563567f0",
|
|
67
|
+
* "PageArn": "arn:aws:ssm-contacts:us-east-2:111122223333:page/akuam/ad0052bd-e606-498a-861b-25726292eb93",
|
|
68
|
+
* "PublicContent": "Testing engagements",
|
|
69
|
+
* "PublicSubject": "test",
|
|
70
|
+
* "ReadTime": "2021-05-18T18:43:55.708000+00:00",
|
|
71
|
+
* "Sender": "tester",
|
|
72
|
+
* "SentTime": "2021-05-18T18:43:29.301000+00:00",
|
|
73
|
+
* "Subject": "test"
|
|
74
|
+
* }
|
|
75
|
+
* *\/
|
|
76
|
+
* // example id: to-list-the-details-of-a-page-to-a-contact-channel-1630364907282
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
32
79
|
*/
|
|
33
80
|
export declare class DescribePageCommand extends $Command<DescribePageCommandInput, DescribePageCommandOutput, SSMContactsClientResolvedConfig> {
|
|
34
81
|
readonly input: DescribePageCommandInput;
|
|
@@ -29,6 +29,50 @@ export interface GetContactChannelCommandOutput extends GetContactChannelResult,
|
|
|
29
29
|
* @see {@link GetContactChannelCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
36
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServerException} (server fault)
|
|
39
|
+
* <p>Unexpected error occurred while
|
|
40
|
+
* processing the request.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
43
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example To list the details of a contact channel
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following get-contact-channel example lists the details of a contact channel.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new GetContactChannelCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* /* response ==
|
|
62
|
+
* {
|
|
63
|
+
* "ActivationStatus": "ACTIVATED",
|
|
64
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
65
|
+
* "ContactChannelArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/fc7405c4-46b2-48b7-87b2-93e2f225b90d",
|
|
66
|
+
* "DeliveryAddress": {
|
|
67
|
+
* "SimpleAddress": "+15005550199"
|
|
68
|
+
* },
|
|
69
|
+
* "Name": "akuas sms",
|
|
70
|
+
* "Type": "SMS"
|
|
71
|
+
* }
|
|
72
|
+
* *\/
|
|
73
|
+
* // example id: to-list-the-details-of-a-contact-channel-1630365682730
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
32
76
|
*/
|
|
33
77
|
export declare class GetContactChannelCommand extends $Command<GetContactChannelCommandInput, GetContactChannelCommandOutput, SSMContactsClientResolvedConfig> {
|
|
34
78
|
readonly input: GetContactChannelCommandInput;
|
|
@@ -29,6 +29,139 @@ export interface GetContactCommandOutput extends GetContactResult, __MetadataBea
|
|
|
29
29
|
* @see {@link GetContactCommandOutput} for command's `response` shape.
|
|
30
30
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
31
31
|
*
|
|
32
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
33
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link DataEncryptionException} (client fault)
|
|
36
|
+
* <p>The operation failed to due an encryption key error.</p>
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link InternalServerException} (server fault)
|
|
39
|
+
* <p>Unexpected error occurred while
|
|
40
|
+
* processing the request.</p>
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
43
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
46
|
+
* <p>The request was denied due to request throttling.</p>
|
|
47
|
+
*
|
|
48
|
+
* @throws {@link ValidationException} (client fault)
|
|
49
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
50
|
+
* service.</p>
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @example Example 1: To describe a contact plan
|
|
54
|
+
* ```javascript
|
|
55
|
+
* // The following get-contact example describes a contact.
|
|
56
|
+
* const input = {
|
|
57
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam"
|
|
58
|
+
* };
|
|
59
|
+
* const command = new GetContactCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* /* response ==
|
|
62
|
+
* {
|
|
63
|
+
* "Alias": "akuam",
|
|
64
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
65
|
+
* "DisplayName": "Akua Mansa",
|
|
66
|
+
* "Plan": {
|
|
67
|
+
* "Stages": [
|
|
68
|
+
* {
|
|
69
|
+
* "DurationInMinutes": 5,
|
|
70
|
+
* "Targets": [
|
|
71
|
+
* {
|
|
72
|
+
* "ChannelTargetInfo": {
|
|
73
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/beb25840-5ac8-4644-95cc-7a8de390fa65",
|
|
74
|
+
* "RetryIntervalInMinutes": 1
|
|
75
|
+
* }
|
|
76
|
+
* }
|
|
77
|
+
* ]
|
|
78
|
+
* },
|
|
79
|
+
* {
|
|
80
|
+
* "DurationInMinutes": 5,
|
|
81
|
+
* "Targets": [
|
|
82
|
+
* {
|
|
83
|
+
* "ChannelTargetInfo": {
|
|
84
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/49f3c24d-5f9f-4638-ae25-3f49e04229ad",
|
|
85
|
+
* "RetryIntervalInMinutes": 1
|
|
86
|
+
* }
|
|
87
|
+
* }
|
|
88
|
+
* ]
|
|
89
|
+
* },
|
|
90
|
+
* {
|
|
91
|
+
* "DurationInMinutes": 5,
|
|
92
|
+
* "Targets": [
|
|
93
|
+
* {
|
|
94
|
+
* "ChannelTargetInfo": {
|
|
95
|
+
* "ContactChannelId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact-channel/akuam/77d4f447-f619-4954-afff-85551e369c2a",
|
|
96
|
+
* "RetryIntervalInMinutes": 1
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* ]
|
|
100
|
+
* }
|
|
101
|
+
* ]
|
|
102
|
+
* },
|
|
103
|
+
* "Type": "PERSONAL"
|
|
104
|
+
* }
|
|
105
|
+
* *\/
|
|
106
|
+
* // example id: example-1-to-describe-a-contact-plan-1630365360005
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @example Example 2: To describe an escalation plan
|
|
110
|
+
* ```javascript
|
|
111
|
+
* // The following get-contact example describes an escalation plan.
|
|
112
|
+
* const input = {
|
|
113
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation"
|
|
114
|
+
* };
|
|
115
|
+
* const command = new GetContactCommand(input);
|
|
116
|
+
* const response = await client.send(command);
|
|
117
|
+
* /* response ==
|
|
118
|
+
* {
|
|
119
|
+
* "Alias": "example_escalation",
|
|
120
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/example_escalation",
|
|
121
|
+
* "DisplayName": "Example Escalation Plan",
|
|
122
|
+
* "Plan": {
|
|
123
|
+
* "Stages": [
|
|
124
|
+
* {
|
|
125
|
+
* "DurationInMinutes": 5,
|
|
126
|
+
* "Targets": [
|
|
127
|
+
* {
|
|
128
|
+
* "ContactTargetInfo": {
|
|
129
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/akuam",
|
|
130
|
+
* "IsEssential": true
|
|
131
|
+
* }
|
|
132
|
+
* }
|
|
133
|
+
* ]
|
|
134
|
+
* },
|
|
135
|
+
* {
|
|
136
|
+
* "DurationInMinutes": 5,
|
|
137
|
+
* "Targets": [
|
|
138
|
+
* {
|
|
139
|
+
* "ContactTargetInfo": {
|
|
140
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/alejr",
|
|
141
|
+
* "IsEssential": false
|
|
142
|
+
* }
|
|
143
|
+
* }
|
|
144
|
+
* ]
|
|
145
|
+
* },
|
|
146
|
+
* {
|
|
147
|
+
* "DurationInMinutes": 0,
|
|
148
|
+
* "Targets": [
|
|
149
|
+
* {
|
|
150
|
+
* "ContactTargetInfo": {
|
|
151
|
+
* "ContactId": "arn:aws:ssm-contacts:us-east-2:111122223333:contact/anasi",
|
|
152
|
+
* "IsEssential": false
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* ]
|
|
156
|
+
* }
|
|
157
|
+
* ]
|
|
158
|
+
* },
|
|
159
|
+
* "Type": "ESCALATION"
|
|
160
|
+
* }
|
|
161
|
+
* *\/
|
|
162
|
+
* // example id: example-2-to-describe-an-escalation-plan-1630365515731
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
32
165
|
*/
|
|
33
166
|
export declare class GetContactCommand extends $Command<GetContactCommandInput, GetContactCommandOutput, SSMContactsClientResolvedConfig> {
|
|
34
167
|
readonly input: GetContactCommandInput;
|
|
@@ -30,6 +30,41 @@ export interface GetContactPolicyCommandOutput extends GetContactPolicyResult, _
|
|
|
30
30
|
* @see {@link GetContactPolicyCommandOutput} for command's `response` shape.
|
|
31
31
|
* @see {@link SSMContactsClientResolvedConfig | config} for SSMContactsClient's `config` shape.
|
|
32
32
|
*
|
|
33
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
34
|
+
* <p>You don't have sufficient access to perform this operation.</p>
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link InternalServerException} (server fault)
|
|
37
|
+
* <p>Unexpected error occurred while
|
|
38
|
+
* processing the request.</p>
|
|
39
|
+
*
|
|
40
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
41
|
+
* <p>Request references a resource that doesn't exist.</p>
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
44
|
+
* <p>The request was denied due to request throttling.</p>
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link ValidationException} (client fault)
|
|
47
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
48
|
+
* service.</p>
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
* @example To list the resource policies of a contact
|
|
52
|
+
* ```javascript
|
|
53
|
+
* // The following get-contact-policy example lists the resource policies associated with the specified contact.
|
|
54
|
+
* const input = {
|
|
55
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam"
|
|
56
|
+
* };
|
|
57
|
+
* const command = new GetContactPolicyCommand(input);
|
|
58
|
+
* const response = await client.send(command);
|
|
59
|
+
* /* response ==
|
|
60
|
+
* {
|
|
61
|
+
* "ContactArn": "arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam",
|
|
62
|
+
* "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"SharePolicyForDocumentationDralia\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"222233334444\"},\"Action\":[\"ssm-contacts:GetContact\",\"ssm-contacts:StartEngagement\",\"ssm-contacts:DescribeEngagement\",\"ssm-contacts:ListPagesByEngagement\",\"ssm-contacts:StopEngagement\"],\"Resource\":[\"arn:aws:ssm-contacts:*:111122223333:contact/akuam\",\"arn:aws:ssm-contacts:*:111122223333:engagement/akuam/*\"]}]}"
|
|
63
|
+
* }
|
|
64
|
+
* *\/
|
|
65
|
+
* // example id: to-list-the-details-of-a-contact-channel-1630365682730
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
33
68
|
*/
|
|
34
69
|
export declare class GetContactPolicyCommand extends $Command<GetContactPolicyCommandInput, GetContactPolicyCommandOutput, SSMContactsClientResolvedConfig> {
|
|
35
70
|
readonly input: GetContactPolicyCommandInput;
|