Skip to content

Commit

Permalink
feat(client-ssm-incidents): Increased maximum length of "TriggerDetai…
Browse files Browse the repository at this point in the history
…ls.rawData" to 10K characters and "IncidentSummary" to 8K characters.
  • Loading branch information
awstools committed Mar 28, 2023
1 parent bfff52b commit 94fe54f
Show file tree
Hide file tree
Showing 16 changed files with 5,533 additions and 6,086 deletions.
42 changes: 20 additions & 22 deletions clients/client-ssm-incidents/src/SSMIncidents.ts
Expand Up @@ -159,7 +159,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>A replication set replicates and encrypts your data to the provided Regions with the
* provided KMS key. </p>
* provided KMS key. </p>
*/
public createReplicationSet(
args: CreateReplicationSetCommandInput,
Expand Down Expand Up @@ -192,9 +192,9 @@ export class SSMIncidents extends SSMIncidentsClient {

/**
* @public
* <p>Creates a response plan that automates the initial response to incidents. A response
* plan engages contacts, starts chat channel collaboration, and initiates runbooks at the
* beginning of an incident.</p>
* <p>Creates a response plan that automates the initial response to incidents. A response plan
* engages contacts, starts chat channel collaboration, and initiates runbooks at the beginning
* of an incident.</p>
*/
public createResponsePlan(
args: CreateResponsePlanCommandInput,
Expand Down Expand Up @@ -228,9 +228,9 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Creates a custom timeline event on the incident details page of an incident record.
* Timeline events are automatically created by Incident Manager, marking key moment during an
* incident. You can create custom timeline events to mark important events that are
* automatically detected by Incident Manager.</p>
* Incident Manager automatically creates timeline events that mark key moments during an incident.
* You can create custom timeline events to mark important events that Incident Manager can detect
* automatically.</p>
*/
public createTimelineEvent(
args: CreateTimelineEventCommandInput,
Expand Down Expand Up @@ -297,7 +297,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Deletes all Regions in your replication set. Deleting the replication set deletes all
* Incident Manager data.</p>
* Incident Manager data.</p>
*/
public deleteReplicationSet(
args: DeleteReplicationSetCommandInput,
Expand Down Expand Up @@ -331,7 +331,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Deletes the resource policy that Resource Access Manager uses to share your Incident Manager
* resource.</p>
* resource.</p>
*/
public deleteResourcePolicy(
args: DeleteResourcePolicyCommandInput,
Expand Down Expand Up @@ -364,8 +364,8 @@ export class SSMIncidents extends SSMIncidentsClient {

/**
* @public
* <p>Deletes the specified response plan. Deleting a response plan stops all linked CloudWatch alarms and EventBridge events from creating an incident with this
* response plan.</p>
* <p>Deletes the specified response plan. Deleting a response plan stops all linked CloudWatch alarms and EventBridge events from creating an incident with this response
* plan.</p>
*/
public deleteResponsePlan(
args: DeleteResponsePlanCommandInput,
Expand Down Expand Up @@ -597,7 +597,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Lists all incident records in your account. Use this command to retrieve the Amazon
* Resource Name (ARN) of the incident record you want to update. </p>
* Resource Name (ARN) of the incident record you want to update. </p>
*/
public listIncidentRecords(
args: ListIncidentRecordsCommandInput,
Expand Down Expand Up @@ -796,9 +796,8 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
* share the response plan using Resource Access Manager (RAM). For more
* 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
* management</a>.</p>
* share the response plan using Resource Access Manager (RAM). For more
* 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 management</a>.</p>
*/
public putResourcePolicy(
args: PutResourcePolicyCommandInput,
Expand Down Expand Up @@ -832,7 +831,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Used to start an incident from CloudWatch alarms, EventBridge events, or
* manually. </p>
* manually. </p>
*/
public startIncident(
args: StartIncidentCommandInput,
Expand Down Expand Up @@ -926,7 +925,7 @@ export class SSMIncidents extends SSMIncidentsClient {
/**
* @public
* <p>Update deletion protection to either allow or deny deletion of the final Region in a
* replication set.</p>
* replication set.</p>
*/
public updateDeletionProtection(
args: UpdateDeletionProtectionCommandInput,
Expand Down Expand Up @@ -959,9 +958,9 @@ export class SSMIncidents extends SSMIncidentsClient {

/**
* @public
* <p>Update the details of an incident record. You can use this operation to update an
* incident record from the defined chat channel. For more information about using actions
* in chat channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
* <p>Update the details of an incident record. You can use this operation to update an incident
* record from the defined chat channel. For more information about using actions in chat
* channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
*/
public updateIncidentRecord(
args: UpdateIncidentRecordCommandInput,
Expand Down Expand Up @@ -1093,8 +1092,7 @@ export class SSMIncidents extends SSMIncidentsClient {

/**
* @public
* <p>Updates a timeline event. You can update events of type <code>Custom
* Event</code>.</p>
* <p>Updates a timeline event. You can update events of type <code>Custom Event</code>.</p>
*/
public updateTimelineEvent(
args: UpdateTimelineEventCommandInput,
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface CreateReplicationSetCommandOutput extends CreateReplicationSetO
/**
* @public
* <p>A replication set replicates and encrypts your data to the provided Regions with the
* provided KMS key. </p>
* provided KMS key. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -35,9 +35,9 @@ export interface CreateResponsePlanCommandOutput extends CreateResponsePlanOutpu

/**
* @public
* <p>Creates a response plan that automates the initial response to incidents. A response
* plan engages contacts, starts chat channel collaboration, and initiates runbooks at the
* beginning of an incident.</p>
* <p>Creates a response plan that automates the initial response to incidents. A response plan
* engages contacts, starts chat channel collaboration, and initiates runbooks at the beginning
* of an incident.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,9 +36,9 @@ export interface CreateTimelineEventCommandOutput extends CreateTimelineEventOut
/**
* @public
* <p>Creates a custom timeline event on the incident details page of an incident record.
* Timeline events are automatically created by Incident Manager, marking key moment during an
* incident. You can create custom timeline events to mark important events that are
* automatically detected by Incident Manager.</p>
* Incident Manager automatically creates timeline events that mark key moments during an incident.
* You can create custom timeline events to mark important events that Incident Manager can detect
* automatically.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface DeleteReplicationSetCommandOutput extends DeleteReplicationSetO
/**
* @public
* <p>Deletes all Regions in your replication set. Deleting the replication set deletes all
* Incident Manager data.</p>
* Incident Manager data.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyO
/**
* @public
* <p>Deletes the resource policy that Resource Access Manager uses to share your Incident Manager
* resource.</p>
* resource.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -35,8 +35,8 @@ export interface DeleteResponsePlanCommandOutput extends DeleteResponsePlanOutpu

/**
* @public
* <p>Deletes the specified response plan. Deleting a response plan stops all linked CloudWatch alarms and EventBridge events from creating an incident with this
* response plan.</p>
* <p>Deletes the specified response plan. Deleting a response plan stops all linked CloudWatch alarms and EventBridge events from creating an incident with this response
* plan.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface ListIncidentRecordsCommandOutput extends ListIncidentRecordsOut
/**
* @public
* <p>Lists all incident records in your account. Use this command to retrieve the Amazon
* Resource Name (ARN) of the incident record you want to update. </p>
* Resource Name (ARN) of the incident record you want to update. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,9 +36,8 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput,
/**
* @public
* <p>Adds a resource policy to the specified response plan. The resource policy is used to
* share the response plan using Resource Access Manager (RAM). For more
* 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
* management</a>.</p>
* share the response plan using Resource Access Manager (RAM). For more
* 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 management</a>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface StartIncidentCommandOutput extends StartIncidentOutput, __Metad
/**
* @public
* <p>Used to start an incident from CloudWatch alarms, EventBridge events, or
* manually. </p>
* manually. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -36,7 +36,7 @@ export interface UpdateDeletionProtectionCommandOutput extends UpdateDeletionPro
/**
* @public
* <p>Update deletion protection to either allow or deny deletion of the final Region in a
* replication set.</p>
* replication set.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -35,9 +35,9 @@ export interface UpdateIncidentRecordCommandOutput extends UpdateIncidentRecordO

/**
* @public
* <p>Update the details of an incident record. You can use this operation to update an
* incident record from the defined chat channel. For more information about using actions
* in chat channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
* <p>Update the details of an incident record. You can use this operation to update an incident
* record from the defined chat channel. For more information about using actions in chat
* channels, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/chat.html#chat-interact">Interacting through chat</a>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Expand Up @@ -35,8 +35,7 @@ export interface UpdateTimelineEventCommandOutput extends UpdateTimelineEventOut

/**
* @public
* <p>Updates a timeline event. You can update events of type <code>Custom
* Event</code>.</p>
* <p>Updates a timeline event. You can update events of type <code>Custom Event</code>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
35 changes: 18 additions & 17 deletions clients/client-ssm-incidents/src/endpoint/ruleset.ts
Expand Up @@ -6,24 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
or see "smithy.rules#endpointRuleSet"
in codegen/sdk-codegen/aws-models/ssm-incidents.json */

const p="required",
q="fn",
r="argv",
s="ref";
const a="PartitionResult",
const q="required",
r="fn",
s="argv",
t="ref";
const a="isSet",
b="tree",
c="error",
d="endpoint",
e={[p]:false,"type":"String"},
f={[p]:true,"default":false,"type":"Boolean"},
g={[s]:"Endpoint"},
h={[q]:"booleanEquals",[r]:[{[s]:"UseFIPS"},true]},
i={[q]:"booleanEquals",[r]:[{[s]:"UseDualStack"},true]},
j={},
k={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsFIPS"]}]},
l={[q]:"booleanEquals",[r]:[true,{[q]:"getAttr",[r]:[{[s]:a},"supportsDualStack"]}]},
m=[g],
n=[h],
o=[i];
const _data={version:"1.0",parameters:{Region:e,UseDualStack:f,UseFIPS:f,Endpoint:e},rules:[{conditions:[{[q]:"aws.partition",[r]:[{[s]:"Region"}],assign:a}],type:b,rules:[{conditions:[{[q]:"isSet",[r]:m},{[q]:"parseURL",[r]:m,assign:"url"}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:g,properties:j,headers:j},type:d}]}]},{conditions:[h,i],type:b,rules:[{conditions:[k,l],type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[k],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[l],type:b,rules:[{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:j,headers:j},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dnsSuffix}",properties:j,headers:j},type:d}]}]};
e="PartitionResult",
f={[q]:false,"type":"String"},
g={[q]:true,"default":false,"type":"Boolean"},
h={[t]:"Endpoint"},
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
k={},
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
n=[i],
o=[j],
p=[{[t]:"Region"}];
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ssm-incidents-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://ssm-incidents.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
export const ruleSet: RuleSetObject = _data;

0 comments on commit 94fe54f

Please sign in to comment.