Skip to content

Commit 375efbf

Browse files
author
awstools
committed
feat(client-route53-recovery-cluster): Adds Owner field to ListRoutingControls API.
1 parent 81747e4 commit 375efbf

File tree

11 files changed

+95
-69
lines changed

11 files changed

+95
-69
lines changed

clients/client-route53-recovery-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ recover applications by rerouting traffic across
1212
Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
1313
on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
1414
can run API calls to get or update the state of routing controls. To implement failover, you set
15-
one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
15+
one routing control to ON and another one to OFF, to reroute traffic from one Availability Zone or Amazon Web Services Region
1616
to another. </p>
1717
<p>
1818
<i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations

clients/client-route53-recovery-cluster/src/Route53RecoveryCluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export interface Route53RecoveryCluster {
109109
* Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
110110
* on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
111111
* can run API calls to get or update the state of routing controls. To implement failover, you set
112-
* one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
112+
* one routing control to ON and another one to OFF, to reroute traffic from one Availability Zone or Amazon Web Services Region
113113
* to another. </p>
114114
* <p>
115115
* <i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations

clients/client-route53-recovery-cluster/src/Route53RecoveryClusterClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export interface Route53RecoveryClusterClientResolvedConfig extends Route53Recov
273273
* Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
274274
* on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
275275
* can run API calls to get or update the state of routing controls. To implement failover, you set
276-
* one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
276+
* one routing control to ON and another one to OFF, to reroute traffic from one Availability Zone or Amazon Web Services Region
277277
* to another. </p>
278278
* <p>
279279
* <i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations

clients/client-route53-recovery-cluster/src/commands/GetRoutingControlStateCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ export interface GetRoutingControlStateCommandOutput extends GetRoutingControlSt
4242
/**
4343
* @public
4444
* <p>Get the state for a routing control. A routing control is a simple on/off switch that you
45-
* can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
46-
* the state is Off, traffic does not flow. </p>
45+
* can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When
46+
* the state is set to OFF, traffic does not flow. </p>
4747
* <p>Before you can create a routing control, you must first create a cluster, and then host the control
4848
* in a control panel on the cluster. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
4949
* Create routing control structures</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.

clients/client-route53-recovery-cluster/src/commands/ListRoutingControlsCommand.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export interface ListRoutingControlsCommandOutput extends ListRoutingControlsRes
4646
* If you specify a control panel ARN, this call lists the routing controls in the control panel. Otherwise, it lists
4747
* all the routing controls in the cluster.</p>
4848
* <p>A routing control is a simple on/off switch in Route 53 ARC that you
49-
* can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
50-
* the state is Off, traffic does not flow.</p>
49+
* can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When
50+
* the state is set to OFF, traffic does not flow.</p>
5151
* <p>Before you can create a routing control, you must first create a cluster, and then host the control
5252
* in a control panel on the cluster. For more information, see <a href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html">
5353
* Create routing control structures</a> in the Amazon Route 53 Application Recovery Controller Developer Guide.
@@ -94,6 +94,7 @@ export interface ListRoutingControlsCommandOutput extends ListRoutingControlsRes
9494
* // RoutingControlArn: "STRING_VALUE",
9595
* // RoutingControlName: "STRING_VALUE",
9696
* // RoutingControlState: "On" || "Off",
97+
* // Owner: "STRING_VALUE",
9798
* // },
9899
* // ],
99100
* // NextToken: "STRING_VALUE",

clients/client-route53-recovery-cluster/src/commands/UpdateRoutingControlStateCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export interface UpdateRoutingControlStateCommandOutput extends UpdateRoutingCon
4141

4242
/**
4343
* @public
44-
* <p>Set the state of the routing control to reroute traffic. You can set the value to be On or
45-
* Off. When the state is On, traffic flows to a cell. When the state is Off, traffic does not
44+
* <p>Set the state of the routing control to reroute traffic. You can set the value to ON or
45+
* OFF. When the state is ON, traffic flows to a cell. When the state is OFF, traffic does not
4646
* flow.</p>
4747
* <p>With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing
4848
* control state updates that help prevent unexpected outcomes, like fail open traffic routing. However,

clients/client-route53-recovery-cluster/src/commands/UpdateRoutingControlStatesCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ export interface UpdateRoutingControlStatesCommandOutput extends UpdateRoutingCo
4141

4242
/**
4343
* @public
44-
* <p>Set multiple routing control states. You can set the value for each state to be On or Off.
45-
* When the state is On, traffic flows to a cell. When it's Off, traffic does not
44+
* <p>Set multiple routing control states. You can set the value for each state to be ON or OFF.
45+
* When the state is ON, traffic flows to a cell. When it's OFF, traffic does not
4646
* flow.</p>
4747
* <p>With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing
4848
* control state updates that help prevent unexpected outcomes, like fail open traffic routing. However,

clients/client-route53-recovery-cluster/src/endpoint/ruleset.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,27 @@ import { RuleSetObject } from "@smithy/types";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/route53-recovery-cluster.json */
88

9-
const q="required",
10-
r="fn",
11-
s="argv",
12-
t="ref";
13-
const a="isSet",
14-
b="tree",
15-
c="error",
16-
d="endpoint",
17-
e="PartitionResult",
18-
f={[q]:false,"type":"String"},
19-
g={[q]:true,"default":false,"type":"Boolean"},
20-
h={[t]:"Endpoint"},
21-
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22-
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23-
k={},
24-
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25-
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26-
n=[i],
27-
o=[j],
28-
p=[{[t]:"Region"}];
29-
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},{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]},{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:[{endpoint:{url:"https://route53-recovery-cluster-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:[{endpoint:{url:"https://route53-recovery-cluster-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:[{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]};
9+
const s="required",
10+
t="fn",
11+
u="argv",
12+
v="ref";
13+
const a=true,
14+
b="isSet",
15+
c="booleanEquals",
16+
d="error",
17+
e="endpoint",
18+
f="tree",
19+
g="PartitionResult",
20+
h={[s]:false,"type":"String"},
21+
i={[s]:true,"default":false,"type":"Boolean"},
22+
j={[v]:"Endpoint"},
23+
k={[t]:c,[u]:[{[v]:"UseFIPS"},true]},
24+
l={[t]:c,[u]:[{[v]:"UseDualStack"},true]},
25+
m={},
26+
n={[t]:"getAttr",[u]:[{[v]:g},"supportsFIPS"]},
27+
o={[t]:c,[u]:[true,{[t]:"getAttr",[u]:[{[v]:g},"supportsDualStack"]}]},
28+
p=[k],
29+
q=[l],
30+
r=[{[v]:"Region"}];
31+
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[t]:b,[u]:[j]}],rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:j,properties:m,headers:m},type:e}],type:f},{conditions:[{[t]:b,[u]:r}],rules:[{conditions:[{[t]:"aws.partition",[u]:r,assign:g}],rules:[{conditions:[k,l],rules:[{conditions:[{[t]:c,[u]:[a,n]},o],rules:[{endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:p,rules:[{conditions:[{[t]:c,[u]:[n,a]}],rules:[{endpoint:{url:"https://route53-recovery-cluster-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:q,rules:[{conditions:[o],rules:[{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://route53-recovery-cluster.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]};
3032
export const ruleSet: RuleSetObject = _data;

clients/client-route53-recovery-cluster/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted
88
* on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you
99
* can run API calls to get or update the state of routing controls. To implement failover, you set
10-
* one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region
10+
* one routing control to ON and another one to OFF, to reroute traffic from one Availability Zone or Amazon Web Services Region
1111
* to another. </p>
1212
* <p>
1313
* <i>Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations

clients/client-route53-recovery-cluster/src/models/models_0.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ export interface ListRoutingControlsRequest {
307307
/**
308308
* @public
309309
* <p>A routing control, which is a simple on/off switch that you
310-
* can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When
311-
* the state is Off, traffic does not flow. </p>
310+
* can use to route traffic to cells. When a routing control state is set to ON, traffic flows to a cell. When
311+
* the state is set to OFF, traffic does not flow. </p>
312312
*/
313313
export interface RoutingControl {
314314
/**
@@ -319,7 +319,8 @@ export interface RoutingControl {
319319

320320
/**
321321
* @public
322-
* <p>The name of the control panel where the routing control is located.</p>
322+
* <p>The name of the control panel where the routing control is located. Only ASCII characters are supported for control
323+
* panel names.</p>
323324
*/
324325
ControlPanelName?: string;
325326

@@ -337,10 +338,16 @@ export interface RoutingControl {
337338

338339
/**
339340
* @public
340-
* <p>The current state of the routing control. When a routing control state is On, traffic flows to a cell. When
341-
* the state is Off, traffic does not flow. </p>
341+
* <p>The current state of the routing control. When a routing control state is set to ON, traffic flows to a cell. When
342+
* the state is set to OFF, traffic does not flow. </p>
342343
*/
343344
RoutingControlState?: RoutingControlState;
345+
346+
/**
347+
* @public
348+
* <p>The Amazon Web Services account ID of the routing control owner.</p>
349+
*/
350+
Owner?: string;
344351
}
345352

346353
/**
@@ -420,7 +427,7 @@ export interface UpdateRoutingControlStateRequest {
420427

421428
/**
422429
* @public
423-
* <p>The state of the routing control. You can set the value to be On or Off.</p>
430+
* <p>The state of the routing control. You can set the value to ON or OFF.</p>
424431
*/
425432
RoutingControlState: RoutingControlState | undefined;
426433

0 commit comments

Comments
 (0)