Skip to content

Commit d790bda

Browse files
author
awstools
committed
feat(client-application-discovery-service): Add AWS Agentless Collector details to the GetDiscoverySummary API response
1 parent acbacd8 commit d790bda

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,25 @@ export namespace GetDiscoverySummaryRequest {
15211521
});
15221522
}
15231523

1524+
export interface CustomerAgentlessCollectorInfo {
1525+
activeAgentlessCollectors: number | undefined;
1526+
healthyAgentlessCollectors: number | undefined;
1527+
denyListedAgentlessCollectors: number | undefined;
1528+
shutdownAgentlessCollectors: number | undefined;
1529+
unhealthyAgentlessCollectors: number | undefined;
1530+
totalAgentlessCollectors: number | undefined;
1531+
unknownAgentlessCollectors: number | undefined;
1532+
}
1533+
1534+
export namespace CustomerAgentlessCollectorInfo {
1535+
/**
1536+
* @internal
1537+
*/
1538+
export const filterSensitiveLog = (obj: CustomerAgentlessCollectorInfo): any => ({
1539+
...obj,
1540+
});
1541+
}
1542+
15241543
/**
15251544
* <p>Inventory data for installed discovery agents.</p>
15261545
*/
@@ -1721,6 +1740,8 @@ export interface GetDiscoverySummaryResponse {
17211740
* </p>
17221741
*/
17231742
meCollectorSummary?: CustomerMeCollectorInfo;
1743+
1744+
agentlessCollectorSummary?: CustomerAgentlessCollectorInfo;
17241745
}
17251746

17261747
export namespace GetDiscoverySummaryResponse {

clients/client-application-discovery-service/src/protocols/Aws_json1_1.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ import {
107107
CreateTagsRequest,
108108
CreateTagsResponse,
109109
CustomerAgentInfo,
110+
CustomerAgentlessCollectorInfo,
110111
CustomerConnectorInfo,
111112
CustomerMeCollectorInfo,
112113
DeleteApplicationsRequest,
@@ -2758,6 +2759,21 @@ const deserializeAws_json1_1CustomerAgentInfo = (output: any, context: __SerdeCo
27582759
} as any;
27592760
};
27602761

2762+
const deserializeAws_json1_1CustomerAgentlessCollectorInfo = (
2763+
output: any,
2764+
context: __SerdeContext
2765+
): CustomerAgentlessCollectorInfo => {
2766+
return {
2767+
activeAgentlessCollectors: __expectInt32(output.activeAgentlessCollectors),
2768+
denyListedAgentlessCollectors: __expectInt32(output.denyListedAgentlessCollectors),
2769+
healthyAgentlessCollectors: __expectInt32(output.healthyAgentlessCollectors),
2770+
shutdownAgentlessCollectors: __expectInt32(output.shutdownAgentlessCollectors),
2771+
totalAgentlessCollectors: __expectInt32(output.totalAgentlessCollectors),
2772+
unhealthyAgentlessCollectors: __expectInt32(output.unhealthyAgentlessCollectors),
2773+
unknownAgentlessCollectors: __expectInt32(output.unknownAgentlessCollectors),
2774+
} as any;
2775+
};
2776+
27612777
const deserializeAws_json1_1CustomerConnectorInfo = (output: any, context: __SerdeContext): CustomerConnectorInfo => {
27622778
return {
27632779
activeConnectors: __expectInt32(output.activeConnectors),
@@ -2954,6 +2970,10 @@ const deserializeAws_json1_1GetDiscoverySummaryResponse = (
29542970
return {
29552971
agentSummary:
29562972
output.agentSummary != null ? deserializeAws_json1_1CustomerAgentInfo(output.agentSummary, context) : undefined,
2973+
agentlessCollectorSummary:
2974+
output.agentlessCollectorSummary != null
2975+
? deserializeAws_json1_1CustomerAgentlessCollectorInfo(output.agentlessCollectorSummary, context)
2976+
: undefined,
29572977
applications: __expectLong(output.applications),
29582978
connectorSummary:
29592979
output.connectorSummary != null

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

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,53 @@
942942
"smithy.api#documentation": "<p>Inventory data for installed discovery agents.</p>"
943943
}
944944
},
945+
"com.amazonaws.applicationdiscoveryservice#CustomerAgentlessCollectorInfo": {
946+
"type": "structure",
947+
"members": {
948+
"activeAgentlessCollectors": {
949+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
950+
"traits": {
951+
"smithy.api#required": {}
952+
}
953+
},
954+
"healthyAgentlessCollectors": {
955+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
956+
"traits": {
957+
"smithy.api#required": {}
958+
}
959+
},
960+
"denyListedAgentlessCollectors": {
961+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
962+
"traits": {
963+
"smithy.api#required": {}
964+
}
965+
},
966+
"shutdownAgentlessCollectors": {
967+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
968+
"traits": {
969+
"smithy.api#required": {}
970+
}
971+
},
972+
"unhealthyAgentlessCollectors": {
973+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
974+
"traits": {
975+
"smithy.api#required": {}
976+
}
977+
},
978+
"totalAgentlessCollectors": {
979+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
980+
"traits": {
981+
"smithy.api#required": {}
982+
}
983+
},
984+
"unknownAgentlessCollectors": {
985+
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
986+
"traits": {
987+
"smithy.api#required": {}
988+
}
989+
}
990+
}
991+
},
945992
"com.amazonaws.applicationdiscoveryservice#CustomerConnectorInfo": {
946993
"type": "structure",
947994
"members": {
@@ -1771,6 +1818,9 @@
17711818
},
17721819
"com.amazonaws.applicationdiscoveryservice#ExportConfigurations": {
17731820
"type": "operation",
1821+
"input": {
1822+
"target": "smithy.api#Unit"
1823+
},
17741824
"output": {
17751825
"target": "com.amazonaws.applicationdiscoveryservice#ExportConfigurationsResponse"
17761826
},
@@ -2104,6 +2154,9 @@
21042154
"traits": {
21052155
"smithy.api#documentation": "<p>\n Details about Migration Evaluator collectors, including collector status and health.\n </p>"
21062156
}
2157+
},
2158+
"agentlessCollectorSummary": {
2159+
"target": "com.amazonaws.applicationdiscoveryservice#CustomerAgentlessCollectorInfo"
21072160
}
21082161
}
21092162
},
@@ -2350,7 +2403,7 @@
23502403
"min": 1,
23512404
"max": 4000
23522405
},
2353-
"smithy.api#pattern": "^\\S+:\\/\\/\\S+\\/[\\s\\S]*\\S[\\s\\S]*$"
2406+
"smithy.api#pattern": "^\\S+://\\S+/[\\s\\S]*\\S[\\s\\S]*$"
23542407
}
23552408
},
23562409
"com.amazonaws.applicationdiscoveryservice#Integer": {

0 commit comments

Comments
 (0)