Skip to content

Commit 8eff087

Browse files
authored
feat: add filterSensitiveLog method to Structure namespaces (#1130)
1 parent 4895ac7 commit 8eff087

File tree

225 files changed

+135272
-1
lines changed

Some content is hidden

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

225 files changed

+135272
-1
lines changed

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

+238
Large diffs are not rendered by default.

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

+283
Large diffs are not rendered by default.

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

+211
Large diffs are not rendered by default.

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

+1,343
Large diffs are not rendered by default.

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

+468
Large diffs are not rendered by default.

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

+942
Large diffs are not rendered by default.

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

+29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
SENSITIVE_STRING,
23
SmithyException as __SmithyException,
34
isa as __isa
45
} from "@aws-sdk/smithy-client";
@@ -10,6 +11,9 @@ export interface DeleteConnectionRequest {
1011
}
1112

1213
export namespace DeleteConnectionRequest {
14+
export const filterSensitiveLog = (obj: DeleteConnectionRequest): any => ({
15+
...obj
16+
});
1317
export const isa = (o: any): o is DeleteConnectionRequest =>
1418
__isa(o, "DeleteConnectionRequest");
1519
}
@@ -23,6 +27,9 @@ export interface ForbiddenException extends __SmithyException, $MetadataBearer {
2327
}
2428

2529
export namespace ForbiddenException {
30+
export const filterSensitiveLog = (obj: ForbiddenException): any => ({
31+
...obj
32+
});
2633
export const isa = (o: any): o is ForbiddenException =>
2734
__isa(o, "ForbiddenException");
2835
}
@@ -33,6 +40,9 @@ export interface GetConnectionRequest {
3340
}
3441

3542
export namespace GetConnectionRequest {
43+
export const filterSensitiveLog = (obj: GetConnectionRequest): any => ({
44+
...obj
45+
});
3646
export const isa = (o: any): o is GetConnectionRequest =>
3747
__isa(o, "GetConnectionRequest");
3848
}
@@ -52,6 +62,10 @@ export interface GetConnectionResponse {
5262
}
5363

5464
export namespace GetConnectionResponse {
65+
export const filterSensitiveLog = (obj: GetConnectionResponse): any => ({
66+
...obj,
67+
...(obj.Identity && { Identity: Identity.filterSensitiveLog(obj.Identity) })
68+
});
5569
export const isa = (o: any): o is GetConnectionResponse =>
5670
__isa(o, "GetConnectionResponse");
5771
}
@@ -65,6 +79,9 @@ export interface GoneException extends __SmithyException, $MetadataBearer {
6579
}
6680

6781
export namespace GoneException {
82+
export const filterSensitiveLog = (obj: GoneException): any => ({
83+
...obj
84+
});
6885
export const isa = (o: any): o is GoneException => __isa(o, "GoneException");
6986
}
7087

@@ -82,6 +99,9 @@ export interface Identity {
8299
}
83100

84101
export namespace Identity {
102+
export const filterSensitiveLog = (obj: Identity): any => ({
103+
...obj
104+
});
85105
export const isa = (o: any): o is Identity => __isa(o, "Identity");
86106
}
87107

@@ -96,6 +116,9 @@ export interface LimitExceededException
96116
}
97117

98118
export namespace LimitExceededException {
119+
export const filterSensitiveLog = (obj: LimitExceededException): any => ({
120+
...obj
121+
});
99122
export const isa = (o: any): o is LimitExceededException =>
100123
__isa(o, "LimitExceededException");
101124
}
@@ -112,6 +135,9 @@ export interface PayloadTooLargeException
112135
}
113136

114137
export namespace PayloadTooLargeException {
138+
export const filterSensitiveLog = (obj: PayloadTooLargeException): any => ({
139+
...obj
140+
});
115141
export const isa = (o: any): o is PayloadTooLargeException =>
116142
__isa(o, "PayloadTooLargeException");
117143
}
@@ -130,6 +156,9 @@ export interface PostToConnectionRequest {
130156
}
131157

132158
export namespace PostToConnectionRequest {
159+
export const filterSensitiveLog = (obj: PostToConnectionRequest): any => ({
160+
...obj
161+
});
133162
export const isa = (o: any): o is PostToConnectionRequest =>
134163
__isa(o, "PostToConnectionRequest");
135164
}

0 commit comments

Comments
 (0)