Skip to content

Commit 2054e2c

Browse files
author
awstools
committed
feat(client-api-gateway): This release adds RootResourceId to GetRestApi response.
1 parent f19b2c1 commit 2054e2c

File tree

15 files changed

+12934
-13931
lines changed

15 files changed

+12934
-13931
lines changed

clients/client-api-gateway/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AWS SDK for JavaScript APIGateway Client for Node.js, Browser and React Native.
88

99
<fullname>Amazon API Gateway</fullname>
1010

11-
<p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
11+
<p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
1212

1313
## Installing
1414

clients/client-api-gateway/src/APIGateway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,7 @@ export interface APIGateway {
23172317
/**
23182318
* @public
23192319
* <fullname>Amazon API Gateway</fullname>
2320-
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
2320+
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
23212321
*/
23222322
export class APIGateway extends APIGatewayClient implements APIGateway {}
23232323
createAggregatedClient(commands, APIGateway);

clients/client-api-gateway/src/APIGatewayClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ export interface APIGatewayClientResolvedConfig extends APIGatewayClientResolved
711711
/**
712712
* @public
713713
* <fullname>Amazon API Gateway</fullname>
714-
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
714+
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
715715
*/
716716
export class APIGatewayClient extends __Client<
717717
__HttpHandlerOptions,

clients/client-api-gateway/src/commands/CreateRestApiCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export interface CreateRestApiCommandOutput extends RestApi, __MetadataBearer {}
9696
* // "<keys>": "STRING_VALUE",
9797
* // },
9898
* // disableExecuteApiEndpoint: true || false,
99+
* // rootResourceId: "STRING_VALUE",
99100
* // };
100101
*
101102
* ```

clients/client-api-gateway/src/commands/GetRestApiCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export interface GetRestApiCommandOutput extends RestApi, __MetadataBearer {}
7575
* // "<keys>": "STRING_VALUE",
7676
* // },
7777
* // disableExecuteApiEndpoint: true || false,
78+
* // rootResourceId: "STRING_VALUE",
7879
* // };
7980
*
8081
* ```

clients/client-api-gateway/src/commands/GetRestApisCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export interface GetRestApisCommandOutput extends RestApis, __MetadataBearer {}
7878
* // "<keys>": "STRING_VALUE",
7979
* // },
8080
* // disableExecuteApiEndpoint: true || false,
81+
* // rootResourceId: "STRING_VALUE",
8182
* // },
8283
* // ],
8384
* // position: "STRING_VALUE",

clients/client-api-gateway/src/commands/ImportRestApiCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export interface ImportRestApiCommandOutput extends RestApi, __MetadataBearer {}
8787
* // "<keys>": "STRING_VALUE",
8888
* // },
8989
* // disableExecuteApiEndpoint: true || false,
90+
* // rootResourceId: "STRING_VALUE",
9091
* // };
9192
*
9293
* ```

clients/client-api-gateway/src/commands/PutRestApiCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface PutRestApiCommandOutput extends RestApi, __MetadataBearer {}
9090
* // "<keys>": "STRING_VALUE",
9191
* // },
9292
* // disableExecuteApiEndpoint: true || false,
93+
* // rootResourceId: "STRING_VALUE",
9394
* // };
9495
*
9596
* ```

clients/client-api-gateway/src/commands/UpdateRestApiCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export interface UpdateRestApiCommandOutput extends RestApi, __MetadataBearer {}
8383
* // "<keys>": "STRING_VALUE",
8484
* // },
8585
* // disableExecuteApiEndpoint: true || false,
86+
* // rootResourceId: "STRING_VALUE",
8687
* // };
8788
*
8889
* ```

clients/client-api-gateway/src/endpoint/EndpointParameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const resolveClientEndpointParameters = <T>(
2727
};
2828

2929
export interface EndpointParameters extends __EndpointParameters {
30-
Region: string;
30+
Region?: string;
3131
UseDualStack?: boolean;
3232
UseFIPS?: boolean;
3333
Endpoint?: string;

clients/client-api-gateway/src/endpoint/ruleset.ts

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,25 @@ import { RuleSetObject } from "@smithy/types";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/api-gateway.json */
88

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

clients/client-api-gateway/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* eslint-disable */
33
/**
44
* <fullname>Amazon API Gateway</fullname>
5-
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
5+
* <p>Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.</p>
66
*
77
* @packageDocumentation
88
*/

0 commit comments

Comments
 (0)