Skip to content

Commit cb7bcf4

Browse files
author
awstools
committed
feat(client-arc-region-switch): Updates documentation for ARC Region switch and provides stronger validation for Amazon Aurora Global Database execution block parameters.
1 parent 35dbef6 commit cb7bcf4

2 files changed

Lines changed: 30 additions & 20 deletions

File tree

clients/client-arc-region-switch/src/models/models_0.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export interface AbbreviatedExecution {
7777
endTime?: Date | undefined;
7878

7979
/**
80-
* <p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>
80+
* <p>The plan execution mode. Valid values are <code>graceful</code>, for graceful executions, or <code>ungraceful</code>, for ungraceful executions.</p>
8181
* @public
8282
*/
8383
mode: ExecutionMode | undefined;
@@ -89,7 +89,7 @@ export interface AbbreviatedExecution {
8989
executionState: ExecutionState | undefined;
9090

9191
/**
92-
* <p>The plan execution action. Valid values are <code>Activate</code>, to activate an Amazon Web Services Region, or <code>Deactivate</code>, to deactivate a Region.</p>
92+
* <p>The plan execution action. Valid values are <code>activate</code>, to activate an Amazon Web Services Region, or <code>deactivate</code>, to deactivate a Region.</p>
9393
* @public
9494
*/
9595
executionAction: ExecutionAction | undefined;
@@ -630,7 +630,7 @@ export interface TriggerCondition {
630630
associatedAlarmName: string | undefined;
631631

632632
/**
633-
* <p>The condition that must be met. Valid values include ALARM and OK.</p>
633+
* <p>The condition that must be met. Valid values include <code>green</code> and <code>red</code>.</p>
634634
* @public
635635
*/
636636
condition: AlarmCondition | undefined;
@@ -654,7 +654,7 @@ export interface Trigger {
654654
targetRegion: string | undefined;
655655

656656
/**
657-
* <p>The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.</p>
657+
* <p>The action to perform when the trigger fires. Valid values include <code>activate</code> and <code>deactivate</code>.</p>
658658
* @public
659659
*/
660660
action: WorkflowTargetAction | undefined;
@@ -1813,13 +1813,13 @@ export interface StartPlanExecutionRequest {
18131813
targetRegion: string | undefined;
18141814

18151815
/**
1816-
* <p>The action to perform. Valid values are ACTIVATE (to shift traffic to the target Region) or DEACTIVATE (to shift traffic away from the target Region).</p>
1816+
* <p>The action to perform. Valid values are <code>activate</code> (to shift traffic to the target Region) or <code>deactivate</code> (to shift traffic away from the target Region).</p>
18171817
* @public
18181818
*/
18191819
action: ExecutionAction | undefined;
18201820

18211821
/**
1822-
* <p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>
1822+
* <p>The plan execution mode. Valid values are <code>graceful</code>, for starting the execution in graceful mode, or <code>ungraceful</code>, for starting the execution in ungraceful mode.</p>
18231823
* @public
18241824
*/
18251825
mode?: ExecutionMode | undefined;
@@ -2269,7 +2269,7 @@ export interface Workflow {
22692269
steps?: Step[] | undefined;
22702270

22712271
/**
2272-
* <p>The action that the workflow performs. Valid values include ACTIVATE and DEACTIVATE.</p>
2272+
* <p>The action that the workflow performs. Valid values include <code>activate</code> and <code>deactivate</code>.</p>
22732273
* @public
22742274
*/
22752275
workflowTargetAction: WorkflowTargetAction | undefined;
@@ -2571,7 +2571,7 @@ export interface GetPlanExecutionResponse {
25712571
endTime?: Date | undefined;
25722572

25732573
/**
2574-
* <p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>
2574+
* <p>The plan execution mode. Valid values are <code>graceful</code>, for graceful executions, or <code>ungraceful</code>, for ungraceful executions.</p>
25752575
* @public
25762576
*/
25772577
mode: ExecutionMode | undefined;
@@ -2583,7 +2583,7 @@ export interface GetPlanExecutionResponse {
25832583
executionState: ExecutionState | undefined;
25842584

25852585
/**
2586-
* <p>The plan execution action. Valid values are <code>Activate</code>, to activate an Amazon Web Services Region, or <code>Deactivate</code>, to deactivate a Region.</p>
2586+
* <p>The plan execution action. Valid values are <code>activate</code>, to activate an Amazon Web Services Region, or <code>deactivate</code>, to deactivate a Region.</p>
25872587
* @public
25882588
*/
25892589
executionAction: ExecutionAction | undefined;

codegen/sdk-codegen/aws-models/arc-region-switch.json

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"mode": {
5555
"target": "com.amazonaws.arcregionswitch#ExecutionMode",
5656
"traits": {
57-
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>",
57+
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>graceful</code>, for graceful executions, or <code>ungraceful</code>, for ungraceful executions.</p>",
5858
"smithy.api#required": {}
5959
}
6060
},
@@ -68,7 +68,7 @@
6868
"executionAction": {
6969
"target": "com.amazonaws.arcregionswitch#ExecutionAction",
7070
"traits": {
71-
"smithy.api#documentation": "<p>The plan execution action. Valid values are <code>Activate</code>, to activate an Amazon Web Services Region, or <code>Deactivate</code>, to deactivate a Region.</p>",
71+
"smithy.api#documentation": "<p>The plan execution action. Valid values are <code>activate</code>, to activate an Amazon Web Services Region, or <code>deactivate</code>, to deactivate a Region.</p>",
7272
"smithy.api#required": {}
7373
}
7474
},
@@ -1346,7 +1346,10 @@
13461346
}
13471347
},
13481348
"com.amazonaws.arcregionswitch#AuroraClusterArn": {
1349-
"type": "string"
1349+
"type": "string",
1350+
"traits": {
1351+
"smithy.api#pattern": "^arn:aws[a-zA-Z-]*:rds:[a-z0-9-]+:\\d{12}:cluster:[A-Za-z][0-9A-Za-z-:._]*$"
1352+
}
13501353
},
13511354
"com.amazonaws.arcregionswitch#AuroraClusterArns": {
13521355
"type": "list",
@@ -3037,7 +3040,7 @@
30373040
"mode": {
30383041
"target": "com.amazonaws.arcregionswitch#ExecutionMode",
30393042
"traits": {
3040-
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>",
3043+
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>graceful</code>, for graceful executions, or <code>ungraceful</code>, for ungraceful executions.</p>",
30413044
"smithy.api#required": {}
30423045
}
30433046
},
@@ -3051,7 +3054,7 @@
30513054
"executionAction": {
30523055
"target": "com.amazonaws.arcregionswitch#ExecutionAction",
30533056
"traits": {
3054-
"smithy.api#documentation": "<p>The plan execution action. Valid values are <code>Activate</code>, to activate an Amazon Web Services Region, or <code>Deactivate</code>, to deactivate a Region.</p>",
3057+
"smithy.api#documentation": "<p>The plan execution action. Valid values are <code>activate</code>, to activate an Amazon Web Services Region, or <code>deactivate</code>, to deactivate a Region.</p>",
30553058
"smithy.api#required": {}
30563059
}
30573060
},
@@ -3290,7 +3293,14 @@
32903293
}
32913294
},
32923295
"com.amazonaws.arcregionswitch#GlobalClusterIdentifier": {
3293-
"type": "string"
3296+
"type": "string",
3297+
"traits": {
3298+
"smithy.api#length": {
3299+
"min": 1,
3300+
"max": 255
3301+
},
3302+
"smithy.api#pattern": "^[A-Za-z][0-9A-Za-z-:._]*$"
3303+
}
32943304
},
32953305
"com.amazonaws.arcregionswitch#IamRoleArn": {
32963306
"type": "string",
@@ -4961,15 +4971,15 @@
49614971
"action": {
49624972
"target": "com.amazonaws.arcregionswitch#ExecutionAction",
49634973
"traits": {
4964-
"smithy.api#documentation": "<p>The action to perform. Valid values are ACTIVATE (to shift traffic to the target Region) or DEACTIVATE (to shift traffic away from the target Region).</p>",
4974+
"smithy.api#documentation": "<p>The action to perform. Valid values are <code>activate</code> (to shift traffic to the target Region) or <code>deactivate</code> (to shift traffic away from the target Region).</p>",
49654975
"smithy.api#required": {}
49664976
}
49674977
},
49684978
"mode": {
49694979
"target": "com.amazonaws.arcregionswitch#ExecutionMode",
49704980
"traits": {
49714981
"smithy.api#default": "graceful",
4972-
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>Practice</code>, for testing without making actual changes, or <code>Recovery</code>, for actual traffic shifting and application recovery.</p>"
4982+
"smithy.api#documentation": "<p>The plan execution mode. Valid values are <code>graceful</code>, for starting the execution in graceful mode, or <code>ungraceful</code>, for starting the execution in ungraceful mode.</p>"
49734983
}
49744984
},
49754985
"comment": {
@@ -5285,7 +5295,7 @@
52855295
"action": {
52865296
"target": "com.amazonaws.arcregionswitch#WorkflowTargetAction",
52875297
"traits": {
5288-
"smithy.api#documentation": "<p>The action to perform when the trigger fires. Valid values include ACTIVATE and DEACTIVATE.</p>",
5298+
"smithy.api#documentation": "<p>The action to perform when the trigger fires. Valid values include <code>activate</code> and <code>deactivate</code>.</p>",
52895299
"smithy.api#required": {}
52905300
}
52915301
},
@@ -5321,7 +5331,7 @@
53215331
"condition": {
53225332
"target": "com.amazonaws.arcregionswitch#AlarmCondition",
53235333
"traits": {
5324-
"smithy.api#documentation": "<p>The condition that must be met. Valid values include ALARM and OK.</p>",
5334+
"smithy.api#documentation": "<p>The condition that must be met. Valid values include <code>green</code> and <code>red</code>.</p>",
53255335
"smithy.api#required": {}
53265336
}
53275337
}
@@ -5715,7 +5725,7 @@
57155725
"workflowTargetAction": {
57165726
"target": "com.amazonaws.arcregionswitch#WorkflowTargetAction",
57175727
"traits": {
5718-
"smithy.api#documentation": "<p>The action that the workflow performs. Valid values include ACTIVATE and DEACTIVATE.</p>",
5728+
"smithy.api#documentation": "<p>The action that the workflow performs. Valid values include <code>activate</code> and <code>deactivate</code>.</p>",
57195729
"smithy.api#required": {}
57205730
}
57215731
},

0 commit comments

Comments
 (0)