Skip to content

Commit b4f1bba

Browse files
author
awstools
committed
feat(client-application-discovery-service): Add sensitive protection for customer information
1 parent 1e90e46 commit b4f1bba

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

clients/client-application-discovery-service/src/commands/DescribeAgentsCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import {
1818
ServiceInputTypes,
1919
ServiceOutputTypes,
2020
} from "../ApplicationDiscoveryServiceClient";
21-
import { DescribeAgentsRequest, DescribeAgentsResponse } from "../models/models_0";
21+
import {
22+
DescribeAgentsRequest,
23+
DescribeAgentsResponse,
24+
DescribeAgentsResponseFilterSensitiveLog,
25+
} from "../models/models_0";
2226
import { de_DescribeAgentsCommand, se_DescribeAgentsCommand } from "../protocols/Aws_json1_1";
2327

2428
/**
@@ -168,7 +172,7 @@ export class DescribeAgentsCommand extends $Command<
168172
clientName,
169173
commandName,
170174
inputFilterSensitiveLog: (_: any) => _,
171-
outputFilterSensitiveLog: (_: any) => _,
175+
outputFilterSensitiveLog: DescribeAgentsResponseFilterSensitiveLog,
172176
};
173177
const { requestHandler } = configuration;
174178
return stack.resolve(

clients/client-application-discovery-service/src/models/models_0.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// smithy-typescript generated code
2-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2+
import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client";
33

44
import { ApplicationDiscoveryServiceServiceException as __BaseException } from "./ApplicationDiscoveryServiceServiceException";
55

@@ -2428,3 +2428,26 @@ export interface UpdateApplicationRequest {
24282428
* @public
24292429
*/
24302430
export interface UpdateApplicationResponse {}
2431+
2432+
/**
2433+
* @internal
2434+
*/
2435+
export const AgentNetworkInfoFilterSensitiveLog = (obj: AgentNetworkInfo): any => ({
2436+
...obj,
2437+
});
2438+
2439+
/**
2440+
* @internal
2441+
*/
2442+
export const AgentInfoFilterSensitiveLog = (obj: AgentInfo): any => ({
2443+
...obj,
2444+
...(obj.agentNetworkInfoList && { agentNetworkInfoList: SENSITIVE_STRING }),
2445+
});
2446+
2447+
/**
2448+
* @internal
2449+
*/
2450+
export const DescribeAgentsResponseFilterSensitiveLog = (obj: DescribeAgentsResponse): any => ({
2451+
...obj,
2452+
...(obj.agentsInfo && { agentsInfo: obj.agentsInfo.map((item) => AgentInfoFilterSensitiveLog(item)) }),
2453+
});

codegen/sdk-codegen/aws-models/application-discovery-service.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,8 @@
969969
}
970970
},
971971
"traits": {
972-
"smithy.api#documentation": "<p>Network details about the host where the agent/collector resides.</p>"
972+
"smithy.api#documentation": "<p>Network details about the host where the agent/collector resides.</p>",
973+
"smithy.api#sensitive": {}
973974
}
974975
},
975976
"com.amazonaws.applicationdiscoveryservice#AgentNetworkInfoList": {
@@ -4515,8 +4516,8 @@
45154516
"type": "double",
45164517
"traits": {
45174518
"smithy.api#range": {
4518-
"min": 0,
4519-
"max": 100
4519+
"min": 0.0,
4520+
"max": 100.0
45204521
}
45214522
}
45224523
},
@@ -4548,4 +4549,4 @@
45484549
}
45494550
}
45504551
}
4551-
}
4552+
}

0 commit comments

Comments
 (0)