2023/06/16 - AWS Application Discovery Service - 1 updated api methods
Changes Add Amazon EC2 instance recommendations export
{'preferences': {'ec2RecommendationsPreferences': {'cpuPerformanceMetricBasis': {'name': 'string', 'percentageAdjust': 'double'}, 'enabled': 'boolean', 'excludedInstanceTypes': ['string'], 'preferredRegion': 'string', 'ramPerformanceMetricBasis': {'name': 'string', 'percentageAdjust': 'double'}, 'reservedInstanceOptions': {'offeringClass': 'STANDARD ' '| ' 'CONVERTIBLE', 'purchasingOption': 'ALL_UPFRONT ' '| ' 'PARTIAL_UPFRONT ' '| ' 'NO_UPFRONT', 'termLength': 'ONE_YEAR ' '| ' 'THREE_YEAR'}, 'tenancy': 'DEDICATED | ' 'SHARED'}}}
Begins the export of a discovered data report to an Amazon S3 bucket managed by Amazon Web Services.
If you do not specify preferences or agentIds in the filter, a summary of all servers, applications, tags, and performance is generated. This data is an aggregation of all server data collected through on-premises tooling, file import, application grouping and applying tags.
If you specify agentIds in a filter, the task exports up to 72 hours of detailed data collected by the identified Application Discovery Agent, including network, process, and performance details. A time range for exported agent data may be set by using startTime and endTime. Export of detailed agent data is limited to five concurrently running exports. Export of detailed agent data is limited to two exports per day.
If you enable ec2RecommendationsPreferences in preferences , an Amazon EC2 instance matching the characteristics of each server in Application Discovery Service is generated. Changing the attributes of the ec2RecommendationsPreferences changes the criteria of the recommendation.
See also: AWS API Documentation
Request Syntax
client.start_export_task( exportDataFormat=[ 'CSV', ], filters=[ { 'name': 'string', 'values': [ 'string', ], 'condition': 'string' }, ], startTime=datetime(2015, 1, 1), endTime=datetime(2015, 1, 1), preferences={ 'ec2RecommendationsPreferences': { 'enabled': True|False, 'cpuPerformanceMetricBasis': { 'name': 'string', 'percentageAdjust': 123.0 }, 'ramPerformanceMetricBasis': { 'name': 'string', 'percentageAdjust': 123.0 }, 'tenancy': 'DEDICATED'|'SHARED', 'excludedInstanceTypes': [ 'string', ], 'preferredRegion': 'string', 'reservedInstanceOptions': { 'purchasingOption': 'ALL_UPFRONT'|'PARTIAL_UPFRONT'|'NO_UPFRONT', 'offeringClass': 'STANDARD'|'CONVERTIBLE', 'termLength': 'ONE_YEAR'|'THREE_YEAR' } } } )
list
The file format for the returned export data. Default value is CSV. Note: The GRAPHML option has been deprecated.
(string) --
list
If a filter is present, it selects the single agentId of the Application Discovery Agent for which data is exported. The agentId can be found in the results of the DescribeAgents API or CLI. If no filter is present, startTime and endTime are ignored and exported data includes both Amazon Web Services Application Discovery Service Agentless Collector collectors data and summary data from Application Discovery Agent agents.
(dict) --
Used to select which agent's data is to be exported. A single agent ID may be selected for export using the StartExportTask action.
name (string) -- [REQUIRED]
A single ExportFilter name. Supported filters: agentIds.
values (list) -- [REQUIRED]
A single agent ID for a Discovery Agent. An agent ID can be found using the DescribeAgents action. Typically an ADS agent ID is in the form o-0123456789abcdef0.
(string) --
condition (string) -- [REQUIRED]
Supported condition: EQUALS
datetime
The start timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, data is exported starting from the first data collected by the agent.
datetime
The end timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, exported data includes the most recent data collected by the agent.
dict
Indicates the type of data that needs to be exported. Only one ExportPreferences can be enabled at any time.
ec2RecommendationsPreferences (dict) --
If enabled, exported data includes EC2 instance type matches for on-premises servers discovered through Amazon Web Services Application Discovery Service.
enabled (boolean) --
If set to true, the export preferences is set to Ec2RecommendationsExportPreferences.
cpuPerformanceMetricBasis (dict) --
The recommended EC2 instance type that matches the CPU usage metric of server performance data.
name (string) --
A utilization metric that is used by the recommendations.
percentageAdjust (float) --
Specifies the percentage of the specified utilization metric that is used by the recommendations.
ramPerformanceMetricBasis (dict) --
The recommended EC2 instance type that matches the Memory usage metric of server performance data.
name (string) --
A utilization metric that is used by the recommendations.
percentageAdjust (float) --
Specifies the percentage of the specified utilization metric that is used by the recommendations.
tenancy (string) --
The target tenancy to use for your recommended EC2 instances.
excludedInstanceTypes (list) --
An array of instance types to exclude from recommendations.
(string) --
preferredRegion (string) --
The target Amazon Web Services Region for the recommendations. You can use any of the Region codes available for the chosen service, as listed in Amazon Web Services service endpoints in the Amazon Web Services General Reference.
reservedInstanceOptions (dict) --
The contract type for a reserved instance. If blank, we assume an On-Demand instance is preferred.
purchasingOption (string) -- [REQUIRED]
The payment plan to use for your Reserved Instance.
offeringClass (string) -- [REQUIRED]
The flexibility to change the instance types needed for your Reserved Instance.
termLength (string) -- [REQUIRED]
The preferred duration of the Reserved Instance term.
dict
Response Syntax
{ 'exportId': 'string' }
Response Structure
(dict) --
exportId (string) --
A unique identifier used to query the status of an export request.