Skip to content

Commit d5f7e8f

Browse files
authored
chore: codegen for isa arrow functions (#1120)
1 parent 04f2fdb commit d5f7e8f

File tree

218 files changed

+44191
-69184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+44191
-69184
lines changed

Diff for: clients/client-accessanalyzer/models/index.ts

+91-141
Large diffs are not rendered by default.

Diff for: clients/client-acm-pca/models/index.ts

+117-176
Large diffs are not rendered by default.

Diff for: clients/client-acm/models/index.ts

+83-129
Large diffs are not rendered by default.

Diff for: clients/client-alexa-for-business/models/index.ts

+497-786
Large diffs are not rendered by default.

Diff for: clients/client-amplify/models/index.ts

+176-285
Large diffs are not rendered by default.

Diff for: clients/client-api-gateway/models/index.ts

+343-570
Large diffs are not rendered by default.

Diff for: clients/client-apigatewaymanagementapi/models/index.ts

+16-27
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ export interface DeleteConnectionRequest {
1010
}
1111

1212
export namespace DeleteConnectionRequest {
13-
export function isa(o: any): o is DeleteConnectionRequest {
14-
return __isa(o, "DeleteConnectionRequest");
15-
}
13+
export const isa = (o: any): o is DeleteConnectionRequest =>
14+
__isa(o, "DeleteConnectionRequest");
1615
}
1716

1817
/**
@@ -24,9 +23,8 @@ export interface ForbiddenException extends __SmithyException, $MetadataBearer {
2423
}
2524

2625
export namespace ForbiddenException {
27-
export function isa(o: any): o is ForbiddenException {
28-
return __isa(o, "ForbiddenException");
29-
}
26+
export const isa = (o: any): o is ForbiddenException =>
27+
__isa(o, "ForbiddenException");
3028
}
3129

3230
export interface GetConnectionRequest {
@@ -35,9 +33,8 @@ export interface GetConnectionRequest {
3533
}
3634

3735
export namespace GetConnectionRequest {
38-
export function isa(o: any): o is GetConnectionRequest {
39-
return __isa(o, "GetConnectionRequest");
40-
}
36+
export const isa = (o: any): o is GetConnectionRequest =>
37+
__isa(o, "GetConnectionRequest");
4138
}
4239

4340
export interface GetConnectionResponse {
@@ -55,9 +52,8 @@ export interface GetConnectionResponse {
5552
}
5653

5754
export namespace GetConnectionResponse {
58-
export function isa(o: any): o is GetConnectionResponse {
59-
return __isa(o, "GetConnectionResponse");
60-
}
55+
export const isa = (o: any): o is GetConnectionResponse =>
56+
__isa(o, "GetConnectionResponse");
6157
}
6258

6359
/**
@@ -69,9 +65,7 @@ export interface GoneException extends __SmithyException, $MetadataBearer {
6965
}
7066

7167
export namespace GoneException {
72-
export function isa(o: any): o is GoneException {
73-
return __isa(o, "GoneException");
74-
}
68+
export const isa = (o: any): o is GoneException => __isa(o, "GoneException");
7569
}
7670

7771
export interface Identity {
@@ -88,9 +82,7 @@ export interface Identity {
8882
}
8983

9084
export namespace Identity {
91-
export function isa(o: any): o is Identity {
92-
return __isa(o, "Identity");
93-
}
85+
export const isa = (o: any): o is Identity => __isa(o, "Identity");
9486
}
9587

9688
/**
@@ -104,9 +96,8 @@ export interface LimitExceededException
10496
}
10597

10698
export namespace LimitExceededException {
107-
export function isa(o: any): o is LimitExceededException {
108-
return __isa(o, "LimitExceededException");
109-
}
99+
export const isa = (o: any): o is LimitExceededException =>
100+
__isa(o, "LimitExceededException");
110101
}
111102

112103
/**
@@ -121,9 +112,8 @@ export interface PayloadTooLargeException
121112
}
122113

123114
export namespace PayloadTooLargeException {
124-
export function isa(o: any): o is PayloadTooLargeException {
125-
return __isa(o, "PayloadTooLargeException");
126-
}
115+
export const isa = (o: any): o is PayloadTooLargeException =>
116+
__isa(o, "PayloadTooLargeException");
127117
}
128118

129119
export interface PostToConnectionRequest {
@@ -140,7 +130,6 @@ export interface PostToConnectionRequest {
140130
}
141131

142132
export namespace PostToConnectionRequest {
143-
export function isa(o: any): o is PostToConnectionRequest {
144-
return __isa(o, "PostToConnectionRequest");
145-
}
133+
export const isa = (o: any): o is PostToConnectionRequest =>
134+
__isa(o, "PostToConnectionRequest");
146135
}

0 commit comments

Comments
 (0)