@@ -36,11 +36,6 @@ export abstract class DynamoDBDocumentClientCommand<
36
36
37
37
public abstract middlewareStack : MiddlewareStack < Input | BaseInput , Output | BaseOutput > ;
38
38
39
- private static defaultLogFilterOverrides = {
40
- overrideInputFilterSensitiveLog ( ...args : any [ ] ) { } ,
41
- overrideOutputFilterSensitiveLog ( ...args : any [ ] ) { } ,
42
- } ;
43
-
44
39
protected addMarshallingMiddleware ( configuration : DynamoDBDocumentClientResolvedConfig ) : void {
45
40
const { marshallOptions = { } , unmarshallOptions = { } } = configuration . translateConfig || { } ;
46
41
@@ -54,13 +49,6 @@ export abstract class DynamoDBDocumentClientCommand<
54
49
) : Promise < InitializeHandlerOutput < Output | BaseOutput > > => {
55
50
setFeature ( context , "DDB_MAPPER" , "d" ) ;
56
51
args . input = marshallInput ( args . input , this . inputKeyNodes , marshallOptions ) ;
57
- context . dynamoDbDocumentClientOptions =
58
- context . dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand . defaultLogFilterOverrides ;
59
-
60
- const input = args . input ;
61
- context . dynamoDbDocumentClientOptions . overrideInputFilterSensitiveLog = ( ) => {
62
- return context . inputFilterSensitiveLog ?.( input ) ;
63
- } ;
64
52
return next ( args ) ;
65
53
} ,
66
54
{
@@ -76,21 +64,6 @@ export abstract class DynamoDBDocumentClientCommand<
76
64
args : DeserializeHandlerArguments < Input | BaseInput >
77
65
) : Promise < DeserializeHandlerOutput < Output | BaseOutput > > => {
78
66
const deserialized = await next ( args ) ;
79
-
80
- /**
81
- * The original filter function is based on the shape of the
82
- * base DynamoDB type, whereas the returned output will be
83
- * unmarshalled. Therefore the filter log needs to be modified
84
- * to act on the original output structure.
85
- */
86
- const output = deserialized . output ;
87
- context . dynamoDbDocumentClientOptions =
88
- context . dynamoDbDocumentClientOptions || DynamoDBDocumentClientCommand . defaultLogFilterOverrides ;
89
-
90
- context . dynamoDbDocumentClientOptions . overrideOutputFilterSensitiveLog = ( ) => {
91
- return context . outputFilterSensitiveLog ?.( output ) ;
92
- } ;
93
-
94
67
deserialized . output = unmarshallOutput ( deserialized . output , this . outputKeyNodes , unmarshallOptions ) ;
95
68
return deserialized ;
96
69
} ,
0 commit comments