Skip to content

feat: add filterSensitiveLog method to Structure namespaces #1130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
May 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
238 changes: 238 additions & 0 deletions clients/client-accessanalyzer/models/index.ts

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions clients/client-acm-pca/models/index.ts

Large diffs are not rendered by default.

211 changes: 211 additions & 0 deletions clients/client-acm/models/index.ts

Large diffs are not rendered by default.

1,343 changes: 1,343 additions & 0 deletions clients/client-alexa-for-business/models/index.ts

Large diffs are not rendered by default.

468 changes: 468 additions & 0 deletions clients/client-amplify/models/index.ts

Large diffs are not rendered by default.

942 changes: 942 additions & 0 deletions clients/client-api-gateway/models/index.ts

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions clients/client-apigatewaymanagementapi/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
SENSITIVE_STRING,
SmithyException as __SmithyException,
isa as __isa
} from "@aws-sdk/smithy-client";
Expand All @@ -10,6 +11,9 @@ export interface DeleteConnectionRequest {
}

export namespace DeleteConnectionRequest {
export const filterSensitiveLog = (obj: DeleteConnectionRequest): any => ({
...obj
});
export const isa = (o: any): o is DeleteConnectionRequest =>
__isa(o, "DeleteConnectionRequest");
}
Expand All @@ -23,6 +27,9 @@ export interface ForbiddenException extends __SmithyException, $MetadataBearer {
}

export namespace ForbiddenException {
export const filterSensitiveLog = (obj: ForbiddenException): any => ({
...obj
});
export const isa = (o: any): o is ForbiddenException =>
__isa(o, "ForbiddenException");
}
Expand All @@ -33,6 +40,9 @@ export interface GetConnectionRequest {
}

export namespace GetConnectionRequest {
export const filterSensitiveLog = (obj: GetConnectionRequest): any => ({
...obj
});
export const isa = (o: any): o is GetConnectionRequest =>
__isa(o, "GetConnectionRequest");
}
Expand All @@ -52,6 +62,10 @@ export interface GetConnectionResponse {
}

export namespace GetConnectionResponse {
export const filterSensitiveLog = (obj: GetConnectionResponse): any => ({
...obj,
...(obj.Identity && { Identity: Identity.filterSensitiveLog(obj.Identity) })
});
export const isa = (o: any): o is GetConnectionResponse =>
__isa(o, "GetConnectionResponse");
}
Expand All @@ -65,6 +79,9 @@ export interface GoneException extends __SmithyException, $MetadataBearer {
}

export namespace GoneException {
export const filterSensitiveLog = (obj: GoneException): any => ({
...obj
});
export const isa = (o: any): o is GoneException => __isa(o, "GoneException");
}

Expand All @@ -82,6 +99,9 @@ export interface Identity {
}

export namespace Identity {
export const filterSensitiveLog = (obj: Identity): any => ({
...obj
});
export const isa = (o: any): o is Identity => __isa(o, "Identity");
}

Expand All @@ -96,6 +116,9 @@ export interface LimitExceededException
}

export namespace LimitExceededException {
export const filterSensitiveLog = (obj: LimitExceededException): any => ({
...obj
});
export const isa = (o: any): o is LimitExceededException =>
__isa(o, "LimitExceededException");
}
Expand All @@ -112,6 +135,9 @@ export interface PayloadTooLargeException
}

export namespace PayloadTooLargeException {
export const filterSensitiveLog = (obj: PayloadTooLargeException): any => ({
...obj
});
export const isa = (o: any): o is PayloadTooLargeException =>
__isa(o, "PayloadTooLargeException");
}
Expand All @@ -130,6 +156,9 @@ export interface PostToConnectionRequest {
}

export namespace PostToConnectionRequest {
export const filterSensitiveLog = (obj: PostToConnectionRequest): any => ({
...obj
});
export const isa = (o: any): o is PostToConnectionRequest =>
__isa(o, "PostToConnectionRequest");
}
Loading