Skip to content

Commit

Permalink
feat(client-application-discovery-service): Add AWS Agentless Collect…
Browse files Browse the repository at this point in the history
…or details to the GetDiscoverySummary API response
  • Loading branch information
awstools committed Jul 18, 2022
1 parent acbacd8 commit d790bda
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,25 @@ export namespace GetDiscoverySummaryRequest {
});
}

export interface CustomerAgentlessCollectorInfo {
activeAgentlessCollectors: number | undefined;
healthyAgentlessCollectors: number | undefined;
denyListedAgentlessCollectors: number | undefined;
shutdownAgentlessCollectors: number | undefined;
unhealthyAgentlessCollectors: number | undefined;
totalAgentlessCollectors: number | undefined;
unknownAgentlessCollectors: number | undefined;
}

export namespace CustomerAgentlessCollectorInfo {
/**
* @internal
*/
export const filterSensitiveLog = (obj: CustomerAgentlessCollectorInfo): any => ({
...obj,
});
}

/**
* <p>Inventory data for installed discovery agents.</p>
*/
Expand Down Expand Up @@ -1721,6 +1740,8 @@ export interface GetDiscoverySummaryResponse {
* </p>
*/
meCollectorSummary?: CustomerMeCollectorInfo;

agentlessCollectorSummary?: CustomerAgentlessCollectorInfo;
}

export namespace GetDiscoverySummaryResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ import {
CreateTagsRequest,
CreateTagsResponse,
CustomerAgentInfo,
CustomerAgentlessCollectorInfo,
CustomerConnectorInfo,
CustomerMeCollectorInfo,
DeleteApplicationsRequest,
Expand Down Expand Up @@ -2758,6 +2759,21 @@ const deserializeAws_json1_1CustomerAgentInfo = (output: any, context: __SerdeCo
} as any;
};

const deserializeAws_json1_1CustomerAgentlessCollectorInfo = (
output: any,
context: __SerdeContext
): CustomerAgentlessCollectorInfo => {
return {
activeAgentlessCollectors: __expectInt32(output.activeAgentlessCollectors),
denyListedAgentlessCollectors: __expectInt32(output.denyListedAgentlessCollectors),
healthyAgentlessCollectors: __expectInt32(output.healthyAgentlessCollectors),
shutdownAgentlessCollectors: __expectInt32(output.shutdownAgentlessCollectors),
totalAgentlessCollectors: __expectInt32(output.totalAgentlessCollectors),
unhealthyAgentlessCollectors: __expectInt32(output.unhealthyAgentlessCollectors),
unknownAgentlessCollectors: __expectInt32(output.unknownAgentlessCollectors),
} as any;
};

const deserializeAws_json1_1CustomerConnectorInfo = (output: any, context: __SerdeContext): CustomerConnectorInfo => {
return {
activeConnectors: __expectInt32(output.activeConnectors),
Expand Down Expand Up @@ -2954,6 +2970,10 @@ const deserializeAws_json1_1GetDiscoverySummaryResponse = (
return {
agentSummary:
output.agentSummary != null ? deserializeAws_json1_1CustomerAgentInfo(output.agentSummary, context) : undefined,
agentlessCollectorSummary:
output.agentlessCollectorSummary != null
? deserializeAws_json1_1CustomerAgentlessCollectorInfo(output.agentlessCollectorSummary, context)
: undefined,
applications: __expectLong(output.applications),
connectorSummary:
output.connectorSummary != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,53 @@
"smithy.api#documentation": "<p>Inventory data for installed discovery agents.</p>"
}
},
"com.amazonaws.applicationdiscoveryservice#CustomerAgentlessCollectorInfo": {
"type": "structure",
"members": {
"activeAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"healthyAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"denyListedAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"shutdownAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"unhealthyAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"totalAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
},
"unknownAgentlessCollectors": {
"target": "com.amazonaws.applicationdiscoveryservice#Integer",
"traits": {
"smithy.api#required": {}
}
}
}
},
"com.amazonaws.applicationdiscoveryservice#CustomerConnectorInfo": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -1771,6 +1818,9 @@
},
"com.amazonaws.applicationdiscoveryservice#ExportConfigurations": {
"type": "operation",
"input": {
"target": "smithy.api#Unit"
},
"output": {
"target": "com.amazonaws.applicationdiscoveryservice#ExportConfigurationsResponse"
},
Expand Down Expand Up @@ -2104,6 +2154,9 @@
"traits": {
"smithy.api#documentation": "<p>\n Details about Migration Evaluator collectors, including collector status and health.\n </p>"
}
},
"agentlessCollectorSummary": {
"target": "com.amazonaws.applicationdiscoveryservice#CustomerAgentlessCollectorInfo"
}
}
},
Expand Down Expand Up @@ -2350,7 +2403,7 @@
"min": 1,
"max": 4000
},
"smithy.api#pattern": "^\\S+:\\/\\/\\S+\\/[\\s\\S]*\\S[\\s\\S]*$"
"smithy.api#pattern": "^\\S+://\\S+/[\\s\\S]*\\S[\\s\\S]*$"
}
},
"com.amazonaws.applicationdiscoveryservice#Integer": {
Expand Down

0 comments on commit d790bda

Please sign in to comment.