Skip to content

Commit dc1464e

Browse files
author
awstools
committed
feat(client-ssm-incidents): Adds support for tagging replication-set on creation.
1 parent 4081f69 commit dc1464e

File tree

5 files changed

+281
-454
lines changed

5 files changed

+281
-454
lines changed

clients/client-ssm-incidents/src/SSMIncidents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ export class SSMIncidents extends SSMIncidentsClient {
776776
/**
777777
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
778778
* share the response plan using Resource Access Manager (RAM). For more
779-
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
780-
* cross-account functionality</a>.</p>
779+
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/incident-manager-cross-account-cross-region.html">Cross-Region and cross-account incident
780+
* management</a>.</p>
781781
*/
782782
public putResourcePolicy(
783783
args: PutResourcePolicyCommandInput,

clients/client-ssm-incidents/src/commands/PutResourcePolicyCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput,
3131
/**
3232
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
3333
* share the response plan using Resource Access Manager (RAM). For more
34-
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
35-
* cross-account functionality</a>.</p>
34+
* information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/incident-manager-cross-account-cross-region.html">Cross-Region and cross-account incident
35+
* management</a>.</p>
3636
* @example
3737
* Use a bare-bones client and the command you need to make an API call.
3838
* ```javascript

clients/client-ssm-incidents/src/models/models_0.ts

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,15 @@ export interface CreateReplicationSetInput {
409409
regions: Record<string, RegionMapInputValue> | undefined;
410410

411411
/**
412-
* <p>A token ensuring that the operation is called only once with the specified
412+
* <p>A token that ensures that the operation is called only once with the specified
413413
* details.</p>
414414
*/
415415
clientToken?: string;
416+
417+
/**
418+
* <p>A list of tags to add to the replication set.</p>
419+
*/
420+
tags?: Record<string, string>;
416421
}
417422

418423
export interface CreateReplicationSetOutput {
@@ -604,7 +609,9 @@ export interface IncidentTemplate {
604609
notificationTargets?: NotificationTargetItem[];
605610

606611
/**
607-
* <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.</p>
612+
* <p>Tags to assign to the template. When the <code>StartIncident</code> API action is
613+
* called, Incident Manager assigns the tags specified in the template to the
614+
* incident.</p>
608615
*/
609616
incidentTags?: Record<string, string>;
610617
}
@@ -638,8 +645,8 @@ export interface CreateResponsePlanInput {
638645
chatChannel?: ChatChannel;
639646

640647
/**
641-
* <p>The contacts and escalation plans that the response plan engages during an
642-
* incident.</p>
648+
* <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
649+
* plan engages during an incident.</p>
643650
*/
644651
engagements?: string[];
645652

@@ -1106,12 +1113,13 @@ export interface GetReplicationSetOutput {
11061113

11071114
export interface GetResourcePoliciesInput {
11081115
/**
1109-
* <p>The Amazon Resource Name (ARN) of the response plan with the attached resource policy. </p>
1116+
* <p>The Amazon Resource Name (ARN) of the response plan with the attached resource policy.
1117+
* </p>
11101118
*/
11111119
resourceArn: string | undefined;
11121120

11131121
/**
1114-
* <p>The maximum number of resource policies to display per page of results.</p>
1122+
* <p>The maximum number of resource policies to display for each page of results.</p>
11151123
*/
11161124
maxResults?: number;
11171125

@@ -1189,8 +1197,8 @@ export interface GetResponsePlanOutput {
11891197
chatChannel?: ChatChannel;
11901198

11911199
/**
1192-
* <p>The contacts and escalation plans that the response plan engages during an
1193-
* incident.</p>
1200+
* <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
1201+
* plan engages during an incident.</p>
11941202
*/
11951203
engagements?: string[];
11961204

@@ -1667,7 +1675,7 @@ export interface ListTimelineEventsOutput {
16671675

16681676
export interface PutResourcePolicyInput {
16691677
/**
1670-
* <p>The Amazon Resource Name (ARN) of the response plan you're adding the resource policy
1678+
* <p>The Amazon Resource Name (ARN) of the response plan to add the resource policy
16711679
* to.</p>
16721680
*/
16731681
resourceArn: string | undefined;
@@ -1840,7 +1848,7 @@ export interface TagResourceRequest {
18401848
resourceArn: string | undefined;
18411849

18421850
/**
1843-
* <p>A list of tags that you are adding to the response plan.</p>
1851+
* <p>A list of tags to add to the response plan.</p>
18441852
*/
18451853
tags: Record<string, string> | undefined;
18461854
}
@@ -1854,7 +1862,7 @@ export interface UntagResourceRequest {
18541862
resourceArn: string | undefined;
18551863

18561864
/**
1857-
* <p>The name of the tag you're removing from the response plan.</p>
1865+
* <p>The name of the tag to remove from the response plan.</p>
18581866
*/
18591867
tagKeys: string[] | undefined;
18601868
}
@@ -1863,17 +1871,17 @@ export interface UntagResourceResponse {}
18631871

18641872
export interface UpdateDeletionProtectionInput {
18651873
/**
1866-
* <p>The Amazon Resource Name (ARN) of the replication set you're updating.</p>
1874+
* <p>The Amazon Resource Name (ARN) of the replication set to update.</p>
18671875
*/
18681876
arn: string | undefined;
18691877

18701878
/**
1871-
* <p>Details if deletion protection is enabled or disabled in your account.</p>
1879+
* <p>Specifies if deletion protection is turned on or off in your account. </p>
18721880
*/
18731881
deletionProtected: boolean | undefined;
18741882

18751883
/**
1876-
* <p>A token ensuring that the operation is called only once with the specified
1884+
* <p>A token that ensures that the operation is called only once with the specified
18771885
* details.</p>
18781886
*/
18791887
clientToken?: string;
@@ -2042,7 +2050,7 @@ export interface UpdateReplicationSetInput {
20422050
actions: UpdateReplicationSetAction[] | undefined;
20432051

20442052
/**
2045-
* <p>A token ensuring that the operation is called only once with the specified
2053+
* <p>A token that ensures that the operation is called only once with the specified
20462054
* details.</p>
20472055
*/
20482056
clientToken?: string;
@@ -2130,8 +2138,8 @@ export interface UpdateResponsePlanInput {
21302138
chatChannel?: ChatChannel;
21312139

21322140
/**
2133-
* <p>The contacts and escalation plans that Incident Manager engages at the start of the
2134-
* incident.</p>
2141+
* <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
2142+
* plan engages during an incident.</p>
21352143
*/
21362144
engagements?: string[];
21372145

@@ -2141,9 +2149,10 @@ export interface UpdateResponsePlanInput {
21412149
actions?: Action[];
21422150

21432151
/**
2144-
* <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.
2145-
* To call this action, you must also have permission to call the <code>TagResource</code>
2146-
* API action for the incident record resource.</p>
2152+
* <p>Tags to assign to the template. When the <code>StartIncident</code> API action is
2153+
* called, Incident Manager assigns the tags specified in the template to the
2154+
* incident. To call this action, you must also have permission to call the
2155+
* <code>TagResource</code> API action for the incident record resource.</p>
21472156
*/
21482157
incidentTemplateTags?: Record<string, string>;
21492158
}

clients/client-ssm-incidents/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export const serializeAws_restJson1CreateReplicationSetCommand = async (
146146
body = JSON.stringify({
147147
clientToken: input.clientToken ?? generateIdempotencyToken(),
148148
...(input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
149+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
149150
});
150151
return new __HttpRequest({
151152
protocol,

0 commit comments

Comments
 (0)