CostExplorer.Client.
get_rightsizing_recommendation
(**kwargs)¶Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.
Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide .
See also: AWS API Documentation
Request Syntax
response = client.get_rightsizing_recommendation(
Filter={
'Or': [
{'... recursive ...'},
],
'And': [
{'... recursive ...'},
],
'Not': {'... recursive ...'},
'Dimensions': {
'Key': 'AZ'|'INSTANCE_TYPE'|'LINKED_ACCOUNT'|'LINKED_ACCOUNT_NAME'|'OPERATION'|'PURCHASE_TYPE'|'REGION'|'SERVICE'|'SERVICE_CODE'|'USAGE_TYPE'|'USAGE_TYPE_GROUP'|'RECORD_TYPE'|'OPERATING_SYSTEM'|'TENANCY'|'SCOPE'|'PLATFORM'|'SUBSCRIPTION_ID'|'LEGAL_ENTITY_NAME'|'DEPLOYMENT_OPTION'|'DATABASE_ENGINE'|'CACHE_ENGINE'|'INSTANCE_TYPE_FAMILY'|'BILLING_ENTITY'|'RESERVATION_ID'|'RESOURCE_ID'|'RIGHTSIZING_TYPE'|'SAVINGS_PLANS_TYPE'|'SAVINGS_PLAN_ARN'|'PAYMENT_OPTION'|'AGREEMENT_END_DATE_TIME_AFTER'|'AGREEMENT_END_DATE_TIME_BEFORE'|'INVOICING_ENTITY'|'ANOMALY_TOTAL_IMPACT_ABSOLUTE'|'ANOMALY_TOTAL_IMPACT_PERCENTAGE',
'Values': [
'string',
],
'MatchOptions': [
'EQUALS'|'ABSENT'|'STARTS_WITH'|'ENDS_WITH'|'CONTAINS'|'CASE_SENSITIVE'|'CASE_INSENSITIVE'|'GREATER_THAN_OR_EQUAL',
]
},
'Tags': {
'Key': 'string',
'Values': [
'string',
],
'MatchOptions': [
'EQUALS'|'ABSENT'|'STARTS_WITH'|'ENDS_WITH'|'CONTAINS'|'CASE_SENSITIVE'|'CASE_INSENSITIVE'|'GREATER_THAN_OR_EQUAL',
]
},
'CostCategories': {
'Key': 'string',
'Values': [
'string',
],
'MatchOptions': [
'EQUALS'|'ABSENT'|'STARTS_WITH'|'ENDS_WITH'|'CONTAINS'|'CASE_SENSITIVE'|'CASE_INSENSITIVE'|'GREATER_THAN_OR_EQUAL',
]
}
},
Configuration={
'RecommendationTarget': 'SAME_INSTANCE_FAMILY'|'CROSS_INSTANCE_FAMILY',
'BenefitsConsidered': True|False
},
Service='string',
PageSize=123,
NextPageToken='string'
)
Use Expression
to filter in various Cost Explorer APIs.
Not all Expression
types are supported in each API. Refer to the documentation for each specific API to see what is supported.
There are two patterns:
CostCategories
, Tags
, and Dimensions
.CostCategories
field to define a filter that acts on Cost Categories.Tags
field to define a filter that acts on Cost Allocation Tags.Dimensions
field to define a filter that acts on the DimensionValues.REGION==us-east-1 OR REGION==us-west-1
. For GetRightsizingRecommendation
, the Region is a full name (for example, REGION==US East (N. Virginia)
.Expression
for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", “us-west-1” ] } }
OR
when applying the filter.Expression
for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }
Expression
types with logical operations.Expression
types and the logical operators AND/OR/NOT
to create a list of one or more Expression
objects. By doing this, you can filter by more advanced options.((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer)
.Expression
for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }
Note
Because each Expression
can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation
action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT
, REGION
, or RIGHTSIZING_TYPE
.
For the GetReservationPurchaseRecommendation
action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT
.
Return results that match either Dimension
object.
Use Expression
to filter in various Cost Explorer APIs.
Not all Expression
types are supported in each API. Refer to the documentation for each specific API to see what is supported.
There are two patterns:
CostCategories
, Tags
, and Dimensions
.CostCategories
field to define a filter that acts on Cost Categories.Tags
field to define a filter that acts on Cost Allocation Tags.Dimensions
field to define a filter that acts on the DimensionValues.REGION==us-east-1 OR REGION==us-west-1
. For GetRightsizingRecommendation
, the Region is a full name (for example, REGION==US East (N. Virginia)
.Expression
for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", “us-west-1” ] } }
OR
when applying the filter.Expression
for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }
Expression
types with logical operations.Expression
types and the logical operators AND/OR/NOT
to create a list of one or more Expression
objects. By doing this, you can filter by more advanced options.((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer)
.Expression
for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }
Note
Because each Expression
can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation
action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT
, REGION
, or RIGHTSIZING_TYPE
.
For the GetReservationPurchaseRecommendation
action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT
.
Return results that match both Dimension
objects.
Use Expression
to filter in various Cost Explorer APIs.
Not all Expression
types are supported in each API. Refer to the documentation for each specific API to see what is supported.
There are two patterns:
CostCategories
, Tags
, and Dimensions
.CostCategories
field to define a filter that acts on Cost Categories.Tags
field to define a filter that acts on Cost Allocation Tags.Dimensions
field to define a filter that acts on the DimensionValues.REGION==us-east-1 OR REGION==us-west-1
. For GetRightsizingRecommendation
, the Region is a full name (for example, REGION==US East (N. Virginia)
.Expression
for this example is as follows: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", “us-west-1” ] } }
OR
when applying the filter.Expression
for this example is as follows: { "Dimensions": { "Key": "LINKED_ACCOUNT_NAME", "MatchOptions": [ "STARTS_WITH" ], "Values": [ "a" ] } }
Expression
types with logical operations.Expression
types and the logical operators AND/OR/NOT
to create a list of one or more Expression
objects. By doing this, you can filter by more advanced options.((REGION == us-east-1 OR REGION == us-west-1) OR (TAG.Type == Type1)) AND (USAGE_TYPE != DataTransfer)
.Expression
for this example is as follows: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ] }}, {"Tags": { "Key": "TagName", "Values": ["Value1"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"] }}} ] }
Note
Because each Expression
can have only one operator, the service returns an error if more than one is specified. The following example shows an Expression
object that creates an error: { "And": [ ... ], "Dimensions": { "Key": "USAGE_TYPE", "Values": [ "DataTransfer" ] } }
The following is an example of the corresponding error message: "Expression has more than one roots. Only one root operator is allowed for each expression: And, Or, Not, Dimensions, Tags, CostCategories"
Note
For the GetRightsizingRecommendation
action, a combination of OR and NOT isn't supported. OR isn't supported between different dimensions, or dimensions and tags. NOT operators aren't supported. Dimensions are also limited to LINKED_ACCOUNT
, REGION
, or RIGHTSIZING_TYPE
.
For the GetReservationPurchaseRecommendation
action, only NOT is supported. AND and OR aren't supported. Dimensions are limited to LINKED_ACCOUNT
.
Return results that don't match a Dimension
object.
The specific Dimension
to use for Expression
.
The names of the metadata types that you can use to filter and group your results. For example, AZ
returns a list of Availability Zones.
Not all dimensions are supported in each API. Refer to the documentation for each specific API to see what is supported.
LINK_ACCOUNT_NAME
andSERVICE_CODE
can only be used in CostCategoryRule.
ANOMALY_TOTAL_IMPACT_ABSOLUTE
andANOMALY_TOTAL_IMPACT_PERCENTAGE
can only be used in AnomalySubscriptions.
The metadata values that you can use to filter and group your results. You can use GetDimensionValues
to find specific values.
The match options that you can use to filter your results.
MatchOptions
is only applicable for actions related to Cost Category and Anomaly Subscriptions. Refer to the documentation for each specific API to see what is supported.
The default values for MatchOptions
are EQUALS
and CASE_SENSITIVE
.
The specific Tag
to use for Expression
.
The key for the tag.
The specific value of the tag.
The match options that you can use to filter your results. MatchOptions
is only applicable for actions related to Cost Category. The default values for MatchOptions
are EQUALS
and CASE_SENSITIVE
.
The filter that's based on CostCategory
values.
The unique name of the Cost Category.
The specific value of the Cost Category.
The match options that you can use to filter your results. MatchOptions is only applicable for actions related to cost category. The default values for MatchOptions
is EQUALS
and CASE_SENSITIVE
.
You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
The option to see recommendations within the same instance family or recommendations for instances across other families. The default value is SAME_INSTANCE_FAMILY
.
The option to consider RI or Savings Plans discount benefits in your savings calculation. The default value is TRUE
.
[REQUIRED]
The specific service that you want recommendations for. The only valid value for GetRightsizingRecommendation
is " AmazonEC2
".
dict
Response Syntax
{
'Metadata': {
'RecommendationId': 'string',
'GenerationTimestamp': 'string',
'LookbackPeriodInDays': 'SEVEN_DAYS'|'THIRTY_DAYS'|'SIXTY_DAYS',
'AdditionalMetadata': 'string'
},
'Summary': {
'TotalRecommendationCount': 'string',
'EstimatedTotalMonthlySavingsAmount': 'string',
'SavingsCurrencyCode': 'string',
'SavingsPercentage': 'string'
},
'RightsizingRecommendations': [
{
'AccountId': 'string',
'CurrentInstance': {
'ResourceId': 'string',
'InstanceName': 'string',
'Tags': [
{
'Key': 'string',
'Values': [
'string',
],
'MatchOptions': [
'EQUALS'|'ABSENT'|'STARTS_WITH'|'ENDS_WITH'|'CONTAINS'|'CASE_SENSITIVE'|'CASE_INSENSITIVE'|'GREATER_THAN_OR_EQUAL',
]
},
],
'ResourceDetails': {
'EC2ResourceDetails': {
'HourlyOnDemandRate': 'string',
'InstanceType': 'string',
'Platform': 'string',
'Region': 'string',
'Sku': 'string',
'Memory': 'string',
'NetworkPerformance': 'string',
'Storage': 'string',
'Vcpu': 'string'
}
},
'ResourceUtilization': {
'EC2ResourceUtilization': {
'MaxCpuUtilizationPercentage': 'string',
'MaxMemoryUtilizationPercentage': 'string',
'MaxStorageUtilizationPercentage': 'string',
'EBSResourceUtilization': {
'EbsReadOpsPerSecond': 'string',
'EbsWriteOpsPerSecond': 'string',
'EbsReadBytesPerSecond': 'string',
'EbsWriteBytesPerSecond': 'string'
},
'DiskResourceUtilization': {
'DiskReadOpsPerSecond': 'string',
'DiskWriteOpsPerSecond': 'string',
'DiskReadBytesPerSecond': 'string',
'DiskWriteBytesPerSecond': 'string'
},
'NetworkResourceUtilization': {
'NetworkInBytesPerSecond': 'string',
'NetworkOutBytesPerSecond': 'string',
'NetworkPacketsInPerSecond': 'string',
'NetworkPacketsOutPerSecond': 'string'
}
}
},
'ReservationCoveredHoursInLookbackPeriod': 'string',
'SavingsPlansCoveredHoursInLookbackPeriod': 'string',
'OnDemandHoursInLookbackPeriod': 'string',
'TotalRunningHoursInLookbackPeriod': 'string',
'MonthlyCost': 'string',
'CurrencyCode': 'string'
},
'RightsizingType': 'TERMINATE'|'MODIFY',
'ModifyRecommendationDetail': {
'TargetInstances': [
{
'EstimatedMonthlyCost': 'string',
'EstimatedMonthlySavings': 'string',
'CurrencyCode': 'string',
'DefaultTargetInstance': True|False,
'ResourceDetails': {
'EC2ResourceDetails': {
'HourlyOnDemandRate': 'string',
'InstanceType': 'string',
'Platform': 'string',
'Region': 'string',
'Sku': 'string',
'Memory': 'string',
'NetworkPerformance': 'string',
'Storage': 'string',
'Vcpu': 'string'
}
},
'ExpectedResourceUtilization': {
'EC2ResourceUtilization': {
'MaxCpuUtilizationPercentage': 'string',
'MaxMemoryUtilizationPercentage': 'string',
'MaxStorageUtilizationPercentage': 'string',
'EBSResourceUtilization': {
'EbsReadOpsPerSecond': 'string',
'EbsWriteOpsPerSecond': 'string',
'EbsReadBytesPerSecond': 'string',
'EbsWriteBytesPerSecond': 'string'
},
'DiskResourceUtilization': {
'DiskReadOpsPerSecond': 'string',
'DiskWriteOpsPerSecond': 'string',
'DiskReadBytesPerSecond': 'string',
'DiskWriteBytesPerSecond': 'string'
},
'NetworkResourceUtilization': {
'NetworkInBytesPerSecond': 'string',
'NetworkOutBytesPerSecond': 'string',
'NetworkPacketsInPerSecond': 'string',
'NetworkPacketsOutPerSecond': 'string'
}
}
},
'PlatformDifferences': [
'HYPERVISOR'|'NETWORK_INTERFACE'|'STORAGE_INTERFACE'|'INSTANCE_STORE_AVAILABILITY'|'VIRTUALIZATION_TYPE',
]
},
]
},
'TerminateRecommendationDetail': {
'EstimatedMonthlySavings': 'string',
'CurrencyCode': 'string'
},
'FindingReasonCodes': [
'CPU_OVER_PROVISIONED'|'CPU_UNDER_PROVISIONED'|'MEMORY_OVER_PROVISIONED'|'MEMORY_UNDER_PROVISIONED'|'EBS_THROUGHPUT_OVER_PROVISIONED'|'EBS_THROUGHPUT_UNDER_PROVISIONED'|'EBS_IOPS_OVER_PROVISIONED'|'EBS_IOPS_UNDER_PROVISIONED'|'NETWORK_BANDWIDTH_OVER_PROVISIONED'|'NETWORK_BANDWIDTH_UNDER_PROVISIONED'|'NETWORK_PPS_OVER_PROVISIONED'|'NETWORK_PPS_UNDER_PROVISIONED'|'DISK_IOPS_OVER_PROVISIONED'|'DISK_IOPS_UNDER_PROVISIONED'|'DISK_THROUGHPUT_OVER_PROVISIONED'|'DISK_THROUGHPUT_UNDER_PROVISIONED',
]
},
],
'NextPageToken': 'string',
'Configuration': {
'RecommendationTarget': 'SAME_INSTANCE_FAMILY'|'CROSS_INSTANCE_FAMILY',
'BenefitsConsidered': True|False
}
}
Response Structure
(dict) --
Metadata (dict) --
Information regarding this specific recommendation set.
RecommendationId (string) --
The ID for this specific recommendation.
GenerationTimestamp (string) --
The timestamp for when Amazon Web Services made this recommendation.
LookbackPeriodInDays (string) --
The number of days of previous usage that Amazon Web Services considers when making this recommendation.
AdditionalMetadata (string) --
Additional metadata that might be applicable to the recommendation.
Summary (dict) --
Summary of this recommendation set.
TotalRecommendationCount (string) --
The total number of instance recommendations.
EstimatedTotalMonthlySavingsAmount (string) --
The estimated total savings resulting from modifications, on a monthly basis.
SavingsCurrencyCode (string) --
The currency code that Amazon Web Services used to calculate the savings.
SavingsPercentage (string) --
The savings percentage based on the recommended modifications. It's relative to the total On-Demand costs that are associated with these instances.
RightsizingRecommendations (list) --
Recommendations to rightsize resources.
(dict) --
Recommendations to rightsize resources.
AccountId (string) --
The account that this recommendation is for.
CurrentInstance (dict) --
Context regarding the current instance.
ResourceId (string) --
Resource ID of the current instance.
InstanceName (string) --
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
Tags (list) --
Cost allocation resource tags that are applied to the instance.
(dict) --
The values that are available for a tag.
If Values
and Key
aren't specified, the ABSENT
MatchOption
is applied to all tags. That is, it's filtered on resources with no tags.
If Key
is provided and Values
isn't specified, the ABSENT
MatchOption
is applied to the tag Key
only. That is, it's filtered on resources without the given tag key.
Key (string) --
The key for the tag.
Values (list) --
The specific value of the tag.
MatchOptions (list) --
The match options that you can use to filter your results. MatchOptions
is only applicable for actions related to Cost Category. The default values for MatchOptions
are EQUALS
and CASE_SENSITIVE
.
ResourceDetails (dict) --
Details about the resource and utilization.
EC2ResourceDetails (dict) --
Details for the Amazon EC2 resource.
HourlyOnDemandRate (string) --
The hourly public On-Demand rate for the instance type.
InstanceType (string) --
The type of Amazon Web Services instance.
Platform (string) --
The platform of the Amazon Web Services instance. The platform is the specific combination of operating system, license model, and software on an instance.
Region (string) --
The Amazon Web Services Region of the instance.
Sku (string) --
The SKU of the product.
Memory (string) --
The memory capacity of the Amazon Web Services instance.
NetworkPerformance (string) --
The network performance capacity of the Amazon Web Services instance.
Storage (string) --
The disk storage of the Amazon Web Services instance. This doesn't include EBS storage.
Vcpu (string) --
The number of VCPU cores in the Amazon Web Services instance type.
ResourceUtilization (dict) --
Utilization information of the current instance during the lookback period.
EC2ResourceUtilization (dict) --
The utilization of current Amazon EC2 instance.
MaxCpuUtilizationPercentage (string) --
The maximum observed or expected CPU utilization of the instance.
MaxMemoryUtilizationPercentage (string) --
The maximum observed or expected memory utilization of the instance.
MaxStorageUtilizationPercentage (string) --
The maximum observed or expected storage utilization of the instance. This doesn't include EBS storage.
EBSResourceUtilization (dict) --
The EBS field that contains a list of EBS metrics that are associated with the current instance.
EbsReadOpsPerSecond (string) --
The maximum number of read operations per second.
EbsWriteOpsPerSecond (string) --
The maximum number of write operations per second.
EbsReadBytesPerSecond (string) --
The maximum size of read operations per second
EbsWriteBytesPerSecond (string) --
The maximum size of write operations per second.
DiskResourceUtilization (dict) --
The field that contains a list of disk (local storage) metrics that are associated with the current instance.
DiskReadOpsPerSecond (string) --
The maximum number of read operations per second.
DiskWriteOpsPerSecond (string) --
The maximum number of write operations per second.
DiskReadBytesPerSecond (string) --
The maximum read throughput operations per second.
DiskWriteBytesPerSecond (string) --
The maximum write throughput operations per second.
NetworkResourceUtilization (dict) --
The network field that contains a list of network metrics that are associated with the current instance.
NetworkInBytesPerSecond (string) --
The network inbound throughput utilization measured in Bytes per second (Bps).
NetworkOutBytesPerSecond (string) --
The network outbound throughput utilization measured in Bytes per second (Bps).
NetworkPacketsInPerSecond (string) --
The network inbound packets that are measured in packets per second.
NetworkPacketsOutPerSecond (string) --
The network outbound packets that are measured in packets per second.
ReservationCoveredHoursInLookbackPeriod (string) --
The number of hours during the lookback period that's covered by reservations.
SavingsPlansCoveredHoursInLookbackPeriod (string) --
The number of hours during the lookback period that's covered by Savings Plans.
OnDemandHoursInLookbackPeriod (string) --
The number of hours during the lookback period that's billed at On-Demand rates.
TotalRunningHoursInLookbackPeriod (string) --
The total number of hours that the instance ran during the lookback period.
MonthlyCost (string) --
The current On-Demand cost of operating this instance on a monthly basis.
CurrencyCode (string) --
The currency code that Amazon Web Services used to calculate the costs for this instance.
RightsizingType (string) --
A recommendation to either terminate or modify the resource.
ModifyRecommendationDetail (dict) --
The details for the modification recommendations.
TargetInstances (list) --
Determines whether this instance type is the Amazon Web Services default recommendation.
(dict) --
Details on recommended instance.
EstimatedMonthlyCost (string) --
The expected cost to operate this instance type on a monthly basis.
EstimatedMonthlySavings (string) --
The estimated savings that result from modification, on a monthly basis.
CurrencyCode (string) --
The currency code that Amazon Web Services used to calculate the costs for this instance.
DefaultTargetInstance (boolean) --
Determines whether this recommendation is the defaulted Amazon Web Services recommendation.
ResourceDetails (dict) --
Details on the target instance type.
EC2ResourceDetails (dict) --
Details for the Amazon EC2 resource.
HourlyOnDemandRate (string) --
The hourly public On-Demand rate for the instance type.
InstanceType (string) --
The type of Amazon Web Services instance.
Platform (string) --
The platform of the Amazon Web Services instance. The platform is the specific combination of operating system, license model, and software on an instance.
Region (string) --
The Amazon Web Services Region of the instance.
Sku (string) --
The SKU of the product.
Memory (string) --
The memory capacity of the Amazon Web Services instance.
NetworkPerformance (string) --
The network performance capacity of the Amazon Web Services instance.
Storage (string) --
The disk storage of the Amazon Web Services instance. This doesn't include EBS storage.
Vcpu (string) --
The number of VCPU cores in the Amazon Web Services instance type.
ExpectedResourceUtilization (dict) --
The expected utilization metrics for target instance type.
EC2ResourceUtilization (dict) --
The utilization of current Amazon EC2 instance.
MaxCpuUtilizationPercentage (string) --
The maximum observed or expected CPU utilization of the instance.
MaxMemoryUtilizationPercentage (string) --
The maximum observed or expected memory utilization of the instance.
MaxStorageUtilizationPercentage (string) --
The maximum observed or expected storage utilization of the instance. This doesn't include EBS storage.
EBSResourceUtilization (dict) --
The EBS field that contains a list of EBS metrics that are associated with the current instance.
EbsReadOpsPerSecond (string) --
The maximum number of read operations per second.
EbsWriteOpsPerSecond (string) --
The maximum number of write operations per second.
EbsReadBytesPerSecond (string) --
The maximum size of read operations per second
EbsWriteBytesPerSecond (string) --
The maximum size of write operations per second.
DiskResourceUtilization (dict) --
The field that contains a list of disk (local storage) metrics that are associated with the current instance.
DiskReadOpsPerSecond (string) --
The maximum number of read operations per second.
DiskWriteOpsPerSecond (string) --
The maximum number of write operations per second.
DiskReadBytesPerSecond (string) --
The maximum read throughput operations per second.
DiskWriteBytesPerSecond (string) --
The maximum write throughput operations per second.
NetworkResourceUtilization (dict) --
The network field that contains a list of network metrics that are associated with the current instance.
NetworkInBytesPerSecond (string) --
The network inbound throughput utilization measured in Bytes per second (Bps).
NetworkOutBytesPerSecond (string) --
The network outbound throughput utilization measured in Bytes per second (Bps).
NetworkPacketsInPerSecond (string) --
The network inbound packets that are measured in packets per second.
NetworkPacketsOutPerSecond (string) --
The network outbound packets that are measured in packets per second.
PlatformDifferences (list) --
Explains the actions that you might need to take to successfully migrate your workloads from the current instance type to the recommended instance type.
TerminateRecommendationDetail (dict) --
The details for termination recommendations.
EstimatedMonthlySavings (string) --
The estimated savings that result from modification, on a monthly basis.
CurrencyCode (string) --
The currency code that Amazon Web Services used to calculate the costs for this instance.
FindingReasonCodes (list) --
The list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
NextPageToken (string) --
The token to retrieve the next set of results.
Configuration (dict) --
You can use Configuration to customize recommendations across two attributes. You can choose to view recommendations for instances within the same instance families or across different instance families. You can also choose to view your estimated savings that are associated with recommendations with consideration of existing Savings Plans or RI benefits, or neither.
RecommendationTarget (string) --
The option to see recommendations within the same instance family or recommendations for instances across other families. The default value is SAME_INSTANCE_FAMILY
.
BenefitsConsidered (boolean) --
The option to consider RI or Savings Plans discount benefits in your savings calculation. The default value is TRUE
.
Exceptions
CostExplorer.Client.exceptions.LimitExceededException
CostExplorer.Client.exceptions.InvalidNextTokenException