Typed dictionaries
Index > CostExplorer > Typed dictionaries
Auto-generated documentation for CostExplorer type annotations stubs module mypy-boto3-ce.
AnomalyDateIntervalTypeDef
Usage Example
from mypy_boto3_ce.type_defs import AnomalyDateIntervalTypeDef
def get_value() -> AnomalyDateIntervalTypeDef:
return {
"StartDate": ...,
}
AnomalyMonitorTypeDef
Usage Example
from mypy_boto3_ce.type_defs import AnomalyMonitorTypeDef
def get_value() -> AnomalyMonitorTypeDef:
return {
"MonitorName": ...,
"MonitorType": ...,
}
Definition
class AnomalyMonitorTypeDef(TypedDict):
MonitorName: str,
MonitorType: MonitorTypeType, # (1)
MonitorArn: NotRequired[str],
CreationDate: NotRequired[str],
LastUpdatedDate: NotRequired[str],
LastEvaluatedDate: NotRequired[str],
MonitorDimension: NotRequired[MonitorDimensionType], # (2)
MonitorSpecification: NotRequired[ExpressionTypeDef], # (3)
DimensionalValueCount: NotRequired[int],
- See MonitorTypeType
- See MonitorDimensionType
- See ExpressionTypeDef
AnomalyScoreTypeDef
Usage Example
from mypy_boto3_ce.type_defs import AnomalyScoreTypeDef
def get_value() -> AnomalyScoreTypeDef:
return {
"MaxScore": ...,
"CurrentScore": ...,
}
SubscriberTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SubscriberTypeDef
def get_value() -> SubscriberTypeDef:
return {
"Address": ...,
}
Definition
class SubscriberTypeDef(TypedDict):
Address: NotRequired[str],
Type: NotRequired[SubscriberTypeType], # (1)
Status: NotRequired[SubscriberStatusType], # (2)
ImpactTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ImpactTypeDef
def get_value() -> ImpactTypeDef:
return {
"MaxImpact": ...,
}
Definition
class ImpactTypeDef(TypedDict):
MaxImpact: float,
TotalImpact: NotRequired[float],
TotalActualSpend: NotRequired[float],
TotalExpectedSpend: NotRequired[float],
TotalImpactPercentage: NotRequired[float],
RootCauseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RootCauseTypeDef
def get_value() -> RootCauseTypeDef:
return {
"Service": ...,
}
Definition
class RootCauseTypeDef(TypedDict):
Service: NotRequired[str],
Region: NotRequired[str],
LinkedAccount: NotRequired[str],
UsageType: NotRequired[str],
LinkedAccountName: NotRequired[str],
CostAllocationTagStatusEntryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostAllocationTagStatusEntryTypeDef
def get_value() -> CostAllocationTagStatusEntryTypeDef:
return {
"TagKey": ...,
"Status": ...,
}
Definition
class CostAllocationTagStatusEntryTypeDef(TypedDict):
TagKey: str,
Status: CostAllocationTagStatusType, # (1)
CostAllocationTagTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostAllocationTagTypeDef
def get_value() -> CostAllocationTagTypeDef:
return {
"TagKey": ...,
"Type": ...,
"Status": ...,
}
Definition
class CostAllocationTagTypeDef(TypedDict):
TagKey: str,
Type: CostAllocationTagTypeType, # (1)
Status: CostAllocationTagStatusType, # (2)
CostCategoryInheritedValueDimensionTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryInheritedValueDimensionTypeDef
def get_value() -> CostCategoryInheritedValueDimensionTypeDef:
return {
"DimensionName": ...,
}
Definition
class CostCategoryInheritedValueDimensionTypeDef(TypedDict):
DimensionName: NotRequired[CostCategoryInheritedValueDimensionNameType], # (1)
DimensionKey: NotRequired[str],
CostCategoryProcessingStatusTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryProcessingStatusTypeDef
def get_value() -> CostCategoryProcessingStatusTypeDef:
return {
"Component": ...,
}
Definition
class CostCategoryProcessingStatusTypeDef(TypedDict):
Component: NotRequired[CostCategoryStatusComponentType], # (1)
Status: NotRequired[CostCategoryStatusType], # (2)
CostCategorySplitChargeRuleParameterTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategorySplitChargeRuleParameterTypeDef
def get_value() -> CostCategorySplitChargeRuleParameterTypeDef:
return {
"Type": ...,
"Values": ...,
}
Definition
class CostCategorySplitChargeRuleParameterTypeDef(TypedDict):
Type: CostCategorySplitChargeRuleParameterTypeType, # (1)
Values: Sequence[str],
CostCategoryValuesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryValuesTypeDef
def get_value() -> CostCategoryValuesTypeDef:
return {
"Key": ...,
}
Definition
class CostCategoryValuesTypeDef(TypedDict):
Key: NotRequired[str],
Values: NotRequired[Sequence[str]],
MatchOptions: NotRequired[Sequence[MatchOptionType]], # (1)
- See MatchOptionType
DateIntervalTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DateIntervalTypeDef
def get_value() -> DateIntervalTypeDef:
return {
"Start": ...,
"End": ...,
}
CoverageCostTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CoverageCostTypeDef
def get_value() -> CoverageCostTypeDef:
return {
"OnDemandCost": ...,
}
CoverageHoursTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CoverageHoursTypeDef
def get_value() -> CoverageHoursTypeDef:
return {
"OnDemandHours": ...,
}
Definition
class CoverageHoursTypeDef(TypedDict):
OnDemandHours: NotRequired[str],
ReservedHours: NotRequired[str],
TotalRunningHours: NotRequired[str],
CoverageHoursPercentage: NotRequired[str],
CoverageNormalizedUnitsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CoverageNormalizedUnitsTypeDef
def get_value() -> CoverageNormalizedUnitsTypeDef:
return {
"OnDemandNormalizedUnits": ...,
}
Definition
class CoverageNormalizedUnitsTypeDef(TypedDict):
OnDemandNormalizedUnits: NotRequired[str],
ReservedNormalizedUnits: NotRequired[str],
TotalRunningNormalizedUnits: NotRequired[str],
CoverageNormalizedUnitsPercentage: NotRequired[str],
ResourceTagTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ResourceTagTypeDef
def get_value() -> ResourceTagTypeDef:
return {
"Key": ...,
"Value": ...,
}
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
Definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
TagValuesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import TagValuesTypeDef
def get_value() -> TagValuesTypeDef:
return {
"Key": ...,
}
Definition
class TagValuesTypeDef(TypedDict):
Key: NotRequired[str],
Values: NotRequired[Sequence[str]],
MatchOptions: NotRequired[Sequence[MatchOptionType]], # (1)
- See MatchOptionType
DeleteAnomalyMonitorRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DeleteAnomalyMonitorRequestRequestTypeDef
def get_value() -> DeleteAnomalyMonitorRequestRequestTypeDef:
return {
"MonitorArn": ...,
}
DeleteAnomalySubscriptionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DeleteAnomalySubscriptionRequestRequestTypeDef
def get_value() -> DeleteAnomalySubscriptionRequestRequestTypeDef:
return {
"SubscriptionArn": ...,
}
DeleteCostCategoryDefinitionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DeleteCostCategoryDefinitionRequestRequestTypeDef
def get_value() -> DeleteCostCategoryDefinitionRequestRequestTypeDef:
return {
"CostCategoryArn": ...,
}
DescribeCostCategoryDefinitionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DescribeCostCategoryDefinitionRequestRequestTypeDef
def get_value() -> DescribeCostCategoryDefinitionRequestRequestTypeDef:
return {
"CostCategoryArn": ...,
}
Definition
class DescribeCostCategoryDefinitionRequestRequestTypeDef(TypedDict):
CostCategoryArn: str,
EffectiveOn: NotRequired[str],
DimensionValuesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DimensionValuesTypeDef
def get_value() -> DimensionValuesTypeDef:
return {
"Key": ...,
}
Definition
class DimensionValuesTypeDef(TypedDict):
Key: NotRequired[DimensionType], # (1)
Values: NotRequired[Sequence[str]],
MatchOptions: NotRequired[Sequence[MatchOptionType]], # (2)
- See DimensionType
- See MatchOptionType
DimensionValuesWithAttributesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DimensionValuesWithAttributesTypeDef
def get_value() -> DimensionValuesWithAttributesTypeDef:
return {
"Value": ...,
}
Definition
class DimensionValuesWithAttributesTypeDef(TypedDict):
Value: NotRequired[str],
Attributes: NotRequired[Dict[str, str]],
DiskResourceUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DiskResourceUtilizationTypeDef
def get_value() -> DiskResourceUtilizationTypeDef:
return {
"DiskReadOpsPerSecond": ...,
}
Definition
class DiskResourceUtilizationTypeDef(TypedDict):
DiskReadOpsPerSecond: NotRequired[str],
DiskWriteOpsPerSecond: NotRequired[str],
DiskReadBytesPerSecond: NotRequired[str],
DiskWriteBytesPerSecond: NotRequired[str],
EBSResourceUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import EBSResourceUtilizationTypeDef
def get_value() -> EBSResourceUtilizationTypeDef:
return {
"EbsReadOpsPerSecond": ...,
}
Definition
class EBSResourceUtilizationTypeDef(TypedDict):
EbsReadOpsPerSecond: NotRequired[str],
EbsWriteOpsPerSecond: NotRequired[str],
EbsReadBytesPerSecond: NotRequired[str],
EbsWriteBytesPerSecond: NotRequired[str],
EC2InstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import EC2InstanceDetailsTypeDef
def get_value() -> EC2InstanceDetailsTypeDef:
return {
"Family": ...,
}
Definition
class EC2InstanceDetailsTypeDef(TypedDict):
Family: NotRequired[str],
InstanceType: NotRequired[str],
Region: NotRequired[str],
AvailabilityZone: NotRequired[str],
Platform: NotRequired[str],
Tenancy: NotRequired[str],
CurrentGeneration: NotRequired[bool],
SizeFlexEligible: NotRequired[bool],
EC2ResourceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import EC2ResourceDetailsTypeDef
def get_value() -> EC2ResourceDetailsTypeDef:
return {
"HourlyOnDemandRate": ...,
}
Definition
class EC2ResourceDetailsTypeDef(TypedDict):
HourlyOnDemandRate: NotRequired[str],
InstanceType: NotRequired[str],
Platform: NotRequired[str],
Region: NotRequired[str],
Sku: NotRequired[str],
Memory: NotRequired[str],
NetworkPerformance: NotRequired[str],
Storage: NotRequired[str],
Vcpu: NotRequired[str],
NetworkResourceUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import NetworkResourceUtilizationTypeDef
def get_value() -> NetworkResourceUtilizationTypeDef:
return {
"NetworkInBytesPerSecond": ...,
}
Definition
class NetworkResourceUtilizationTypeDef(TypedDict):
NetworkInBytesPerSecond: NotRequired[str],
NetworkOutBytesPerSecond: NotRequired[str],
NetworkPacketsInPerSecond: NotRequired[str],
NetworkPacketsOutPerSecond: NotRequired[str],
EC2SpecificationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import EC2SpecificationTypeDef
def get_value() -> EC2SpecificationTypeDef:
return {
"OfferingClass": ...,
}
Definition
class EC2SpecificationTypeDef(TypedDict):
OfferingClass: NotRequired[OfferingClassType], # (1)
ESInstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ESInstanceDetailsTypeDef
def get_value() -> ESInstanceDetailsTypeDef:
return {
"InstanceClass": ...,
}
Definition
class ESInstanceDetailsTypeDef(TypedDict):
InstanceClass: NotRequired[str],
InstanceSize: NotRequired[str],
Region: NotRequired[str],
CurrentGeneration: NotRequired[bool],
SizeFlexEligible: NotRequired[bool],
ElastiCacheInstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ElastiCacheInstanceDetailsTypeDef
def get_value() -> ElastiCacheInstanceDetailsTypeDef:
return {
"Family": ...,
}
Definition
class ElastiCacheInstanceDetailsTypeDef(TypedDict):
Family: NotRequired[str],
NodeType: NotRequired[str],
Region: NotRequired[str],
ProductDescription: NotRequired[str],
CurrentGeneration: NotRequired[bool],
SizeFlexEligible: NotRequired[bool],
GenerationSummaryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GenerationSummaryTypeDef
def get_value() -> GenerationSummaryTypeDef:
return {
"RecommendationId": ...,
}
Definition
class GenerationSummaryTypeDef(TypedDict):
RecommendationId: NotRequired[str],
GenerationStatus: NotRequired[GenerationStatusType], # (1)
GenerationStartedTime: NotRequired[str],
GenerationCompletionTime: NotRequired[str],
EstimatedCompletionTime: NotRequired[str],
TotalImpactFilterTypeDef
Usage Example
from mypy_boto3_ce.type_defs import TotalImpactFilterTypeDef
def get_value() -> TotalImpactFilterTypeDef:
return {
"NumericOperator": ...,
"StartValue": ...,
}
Definition
class TotalImpactFilterTypeDef(TypedDict):
NumericOperator: NumericOperatorType, # (1)
StartValue: float,
EndValue: NotRequired[float],
GetAnomalyMonitorsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomalyMonitorsRequestRequestTypeDef
def get_value() -> GetAnomalyMonitorsRequestRequestTypeDef:
return {
"MonitorArnList": ...,
}
Definition
class GetAnomalyMonitorsRequestRequestTypeDef(TypedDict):
MonitorArnList: NotRequired[Sequence[str]],
NextPageToken: NotRequired[str],
MaxResults: NotRequired[int],
GetAnomalySubscriptionsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomalySubscriptionsRequestRequestTypeDef
def get_value() -> GetAnomalySubscriptionsRequestRequestTypeDef:
return {
"SubscriptionArnList": ...,
}
Definition
class GetAnomalySubscriptionsRequestRequestTypeDef(TypedDict):
SubscriptionArnList: NotRequired[Sequence[str]],
MonitorArn: NotRequired[str],
NextPageToken: NotRequired[str],
MaxResults: NotRequired[int],
GroupDefinitionTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GroupDefinitionTypeDef
def get_value() -> GroupDefinitionTypeDef:
return {
"Type": ...,
}
Definition
class GroupDefinitionTypeDef(TypedDict):
Type: NotRequired[GroupDefinitionTypeType], # (1)
Key: NotRequired[str],
SortDefinitionTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SortDefinitionTypeDef
def get_value() -> SortDefinitionTypeDef:
return {
"Key": ...,
}
Definition
class SortDefinitionTypeDef(TypedDict):
Key: str,
SortOrder: NotRequired[SortOrderType], # (1)
- See SortOrderType
MetricValueTypeDef
Usage Example
from mypy_boto3_ce.type_defs import MetricValueTypeDef
def get_value() -> MetricValueTypeDef:
return {
"Amount": ...,
}
ReservationPurchaseRecommendationMetadataTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationPurchaseRecommendationMetadataTypeDef
def get_value() -> ReservationPurchaseRecommendationMetadataTypeDef:
return {
"RecommendationId": ...,
}
Definition
class ReservationPurchaseRecommendationMetadataTypeDef(TypedDict):
RecommendationId: NotRequired[str],
GenerationTimestamp: NotRequired[str],
ReservationAggregatesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationAggregatesTypeDef
def get_value() -> ReservationAggregatesTypeDef:
return {
"UtilizationPercentage": ...,
}
Definition
class ReservationAggregatesTypeDef(TypedDict):
UtilizationPercentage: NotRequired[str],
UtilizationPercentageInUnits: NotRequired[str],
PurchasedHours: NotRequired[str],
PurchasedUnits: NotRequired[str],
TotalActualHours: NotRequired[str],
TotalActualUnits: NotRequired[str],
UnusedHours: NotRequired[str],
UnusedUnits: NotRequired[str],
OnDemandCostOfRIHoursUsed: NotRequired[str],
NetRISavings: NotRequired[str],
TotalPotentialRISavings: NotRequired[str],
AmortizedUpfrontFee: NotRequired[str],
AmortizedRecurringFee: NotRequired[str],
TotalAmortizedFee: NotRequired[str],
RICostForUnusedHours: NotRequired[str],
RealizedSavings: NotRequired[str],
UnrealizedSavings: NotRequired[str],
RightsizingRecommendationConfigurationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RightsizingRecommendationConfigurationTypeDef
def get_value() -> RightsizingRecommendationConfigurationTypeDef:
return {
"RecommendationTarget": ...,
"BenefitsConsidered": ...,
}
Definition
class RightsizingRecommendationConfigurationTypeDef(TypedDict):
RecommendationTarget: RecommendationTargetType, # (1)
BenefitsConsidered: bool,
RightsizingRecommendationMetadataTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RightsizingRecommendationMetadataTypeDef
def get_value() -> RightsizingRecommendationMetadataTypeDef:
return {
"RecommendationId": ...,
}
Definition
class RightsizingRecommendationMetadataTypeDef(TypedDict):
RecommendationId: NotRequired[str],
GenerationTimestamp: NotRequired[str],
LookbackPeriodInDays: NotRequired[LookbackPeriodInDaysType], # (1)
AdditionalMetadata: NotRequired[str],
RightsizingRecommendationSummaryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RightsizingRecommendationSummaryTypeDef
def get_value() -> RightsizingRecommendationSummaryTypeDef:
return {
"TotalRecommendationCount": ...,
}
Definition
class RightsizingRecommendationSummaryTypeDef(TypedDict):
TotalRecommendationCount: NotRequired[str],
EstimatedTotalMonthlySavingsAmount: NotRequired[str],
SavingsCurrencyCode: NotRequired[str],
SavingsPercentage: NotRequired[str],
GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef
def get_value() -> GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef:
return {
"SavingsPlansType": ...,
"TermInYears": ...,
"PaymentOption": ...,
"LookbackPeriodInDays": ...,
}
Definition
class GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef(TypedDict):
SavingsPlansType: SupportedSavingsPlansTypeType, # (1)
TermInYears: TermInYearsType, # (2)
PaymentOption: PaymentOptionType, # (3)
LookbackPeriodInDays: LookbackPeriodInDaysType, # (4)
AccountScope: NotRequired[AccountScopeType], # (5)
NextPageToken: NotRequired[str],
PageSize: NotRequired[int],
Filter: NotRequired[ExpressionTypeDef], # (6)
- See SupportedSavingsPlansTypeType
- See TermInYearsType
- See PaymentOptionType
- See LookbackPeriodInDaysType
- See AccountScopeType
- See ExpressionTypeDef
SavingsPlansPurchaseRecommendationMetadataTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansPurchaseRecommendationMetadataTypeDef
def get_value() -> SavingsPlansPurchaseRecommendationMetadataTypeDef:
return {
"RecommendationId": ...,
}
Definition
class SavingsPlansPurchaseRecommendationMetadataTypeDef(TypedDict):
RecommendationId: NotRequired[str],
GenerationTimestamp: NotRequired[str],
AdditionalMetadata: NotRequired[str],
RDSInstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RDSInstanceDetailsTypeDef
def get_value() -> RDSInstanceDetailsTypeDef:
return {
"Family": ...,
}
Definition
class RDSInstanceDetailsTypeDef(TypedDict):
Family: NotRequired[str],
InstanceType: NotRequired[str],
Region: NotRequired[str],
DatabaseEngine: NotRequired[str],
DatabaseEdition: NotRequired[str],
DeploymentOption: NotRequired[str],
LicenseModel: NotRequired[str],
CurrentGeneration: NotRequired[bool],
SizeFlexEligible: NotRequired[bool],
RedshiftInstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RedshiftInstanceDetailsTypeDef
def get_value() -> RedshiftInstanceDetailsTypeDef:
return {
"Family": ...,
}
Definition
class RedshiftInstanceDetailsTypeDef(TypedDict):
Family: NotRequired[str],
NodeType: NotRequired[str],
Region: NotRequired[str],
CurrentGeneration: NotRequired[bool],
SizeFlexEligible: NotRequired[bool],
ListCostAllocationTagsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListCostAllocationTagsRequestRequestTypeDef
def get_value() -> ListCostAllocationTagsRequestRequestTypeDef:
return {
"Status": ...,
}
Definition
class ListCostAllocationTagsRequestRequestTypeDef(TypedDict):
Status: NotRequired[CostAllocationTagStatusType], # (1)
TagKeys: NotRequired[Sequence[str]],
Type: NotRequired[CostAllocationTagTypeType], # (2)
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListCostCategoryDefinitionsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListCostCategoryDefinitionsRequestRequestTypeDef
def get_value() -> ListCostCategoryDefinitionsRequestRequestTypeDef:
return {
"EffectiveOn": ...,
}
Definition
class ListCostCategoryDefinitionsRequestRequestTypeDef(TypedDict):
EffectiveOn: NotRequired[str],
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef
def get_value() -> ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef:
return {
"GenerationStatus": ...,
}
Definition
class ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef(TypedDict):
GenerationStatus: NotRequired[GenerationStatusType], # (1)
RecommendationIds: NotRequired[Sequence[str]],
PageSize: NotRequired[int],
NextPageToken: NotRequired[str],
ListTagsForResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListTagsForResourceRequestRequestTypeDef
def get_value() -> ListTagsForResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
}
ProvideAnomalyFeedbackRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ProvideAnomalyFeedbackRequestRequestTypeDef
def get_value() -> ProvideAnomalyFeedbackRequestRequestTypeDef:
return {
"AnomalyId": ...,
"Feedback": ...,
}
Definition
class ProvideAnomalyFeedbackRequestRequestTypeDef(TypedDict):
AnomalyId: str,
Feedback: AnomalyFeedbackTypeType, # (1)
ReservationPurchaseRecommendationSummaryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationPurchaseRecommendationSummaryTypeDef
def get_value() -> ReservationPurchaseRecommendationSummaryTypeDef:
return {
"TotalEstimatedMonthlySavingsAmount": ...,
}
Definition
class ReservationPurchaseRecommendationSummaryTypeDef(TypedDict):
TotalEstimatedMonthlySavingsAmount: NotRequired[str],
TotalEstimatedMonthlySavingsPercentage: NotRequired[str],
CurrencyCode: NotRequired[str],
TerminateRecommendationDetailTypeDef
Usage Example
from mypy_boto3_ce.type_defs import TerminateRecommendationDetailTypeDef
def get_value() -> TerminateRecommendationDetailTypeDef:
return {
"EstimatedMonthlySavings": ...,
}
Definition
class TerminateRecommendationDetailTypeDef(TypedDict):
EstimatedMonthlySavings: NotRequired[str],
CurrencyCode: NotRequired[str],
SavingsPlansAmortizedCommitmentTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansAmortizedCommitmentTypeDef
def get_value() -> SavingsPlansAmortizedCommitmentTypeDef:
return {
"AmortizedRecurringCommitment": ...,
}
Definition
class SavingsPlansAmortizedCommitmentTypeDef(TypedDict):
AmortizedRecurringCommitment: NotRequired[str],
AmortizedUpfrontCommitment: NotRequired[str],
TotalAmortizedCommitment: NotRequired[str],
SavingsPlansCoverageDataTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansCoverageDataTypeDef
def get_value() -> SavingsPlansCoverageDataTypeDef:
return {
"SpendCoveredBySavingsPlans": ...,
}
Definition
class SavingsPlansCoverageDataTypeDef(TypedDict):
SpendCoveredBySavingsPlans: NotRequired[str],
OnDemandCost: NotRequired[str],
TotalCost: NotRequired[str],
CoveragePercentage: NotRequired[str],
SavingsPlansDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansDetailsTypeDef
def get_value() -> SavingsPlansDetailsTypeDef:
return {
"Region": ...,
}
Definition
class SavingsPlansDetailsTypeDef(TypedDict):
Region: NotRequired[str],
InstanceFamily: NotRequired[str],
OfferingId: NotRequired[str],
SavingsPlansPurchaseRecommendationSummaryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansPurchaseRecommendationSummaryTypeDef
def get_value() -> SavingsPlansPurchaseRecommendationSummaryTypeDef:
return {
"EstimatedROI": ...,
}
Definition
class SavingsPlansPurchaseRecommendationSummaryTypeDef(TypedDict):
EstimatedROI: NotRequired[str],
CurrencyCode: NotRequired[str],
EstimatedTotalCost: NotRequired[str],
CurrentOnDemandSpend: NotRequired[str],
EstimatedSavingsAmount: NotRequired[str],
TotalRecommendationCount: NotRequired[str],
DailyCommitmentToPurchase: NotRequired[str],
HourlyCommitmentToPurchase: NotRequired[str],
EstimatedSavingsPercentage: NotRequired[str],
EstimatedMonthlySavingsAmount: NotRequired[str],
EstimatedOnDemandCostWithCurrentCommitment: NotRequired[str],
SavingsPlansSavingsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansSavingsTypeDef
def get_value() -> SavingsPlansSavingsTypeDef:
return {
"NetSavings": ...,
}
Definition
class SavingsPlansSavingsTypeDef(TypedDict):
NetSavings: NotRequired[str],
OnDemandCostEquivalent: NotRequired[str],
SavingsPlansUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansUtilizationTypeDef
def get_value() -> SavingsPlansUtilizationTypeDef:
return {
"TotalCommitment": ...,
}
Definition
class SavingsPlansUtilizationTypeDef(TypedDict):
TotalCommitment: NotRequired[str],
UsedCommitment: NotRequired[str],
UnusedCommitment: NotRequired[str],
UtilizationPercentage: NotRequired[str],
UntagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UntagResourceRequestRequestTypeDef
def get_value() -> UntagResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
"ResourceTagKeys": ...,
}
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
ResourceTagKeys: Sequence[str],
UpdateAnomalyMonitorRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateAnomalyMonitorRequestRequestTypeDef
def get_value() -> UpdateAnomalyMonitorRequestRequestTypeDef:
return {
"MonitorArn": ...,
}
Definition
class UpdateAnomalyMonitorRequestRequestTypeDef(TypedDict):
MonitorArn: str,
MonitorName: NotRequired[str],
UpdateCostAllocationTagsStatusErrorTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateCostAllocationTagsStatusErrorTypeDef
def get_value() -> UpdateCostAllocationTagsStatusErrorTypeDef:
return {
"TagKey": ...,
}
Definition
class UpdateCostAllocationTagsStatusErrorTypeDef(TypedDict):
TagKey: NotRequired[str],
Code: NotRequired[str],
Message: NotRequired[str],
AnomalySubscriptionTypeDef
Usage Example
from mypy_boto3_ce.type_defs import AnomalySubscriptionTypeDef
def get_value() -> AnomalySubscriptionTypeDef:
return {
"MonitorArnList": ...,
"Subscribers": ...,
"Frequency": ...,
"SubscriptionName": ...,
}
Definition
class AnomalySubscriptionTypeDef(TypedDict):
MonitorArnList: Sequence[str],
Subscribers: Sequence[SubscriberTypeDef], # (1)
Frequency: AnomalySubscriptionFrequencyType, # (2)
SubscriptionName: str,
SubscriptionArn: NotRequired[str],
AccountId: NotRequired[str],
Threshold: NotRequired[float],
ThresholdExpression: NotRequired[ExpressionTypeDef], # (3)
UpdateAnomalySubscriptionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateAnomalySubscriptionRequestRequestTypeDef
def get_value() -> UpdateAnomalySubscriptionRequestRequestTypeDef:
return {
"SubscriptionArn": ...,
}
Definition
class UpdateAnomalySubscriptionRequestRequestTypeDef(TypedDict):
SubscriptionArn: str,
Threshold: NotRequired[float],
Frequency: NotRequired[AnomalySubscriptionFrequencyType], # (1)
MonitorArnList: NotRequired[Sequence[str]],
Subscribers: NotRequired[Sequence[SubscriberTypeDef]], # (2)
SubscriptionName: NotRequired[str],
ThresholdExpression: NotRequired[ExpressionTypeDef], # (3)
AnomalyTypeDef
Usage Example
from mypy_boto3_ce.type_defs import AnomalyTypeDef
def get_value() -> AnomalyTypeDef:
return {
"AnomalyId": ...,
"AnomalyScore": ...,
"Impact": ...,
"MonitorArn": ...,
}
Definition
class AnomalyTypeDef(TypedDict):
AnomalyId: str,
AnomalyScore: AnomalyScoreTypeDef, # (2)
Impact: ImpactTypeDef, # (3)
MonitorArn: str,
AnomalyStartDate: NotRequired[str],
AnomalyEndDate: NotRequired[str],
DimensionValue: NotRequired[str],
RootCauses: NotRequired[List[RootCauseTypeDef]], # (1)
Feedback: NotRequired[AnomalyFeedbackTypeType], # (4)
- See RootCauseTypeDef
- See AnomalyScoreTypeDef
- See ImpactTypeDef
- See AnomalyFeedbackTypeType
UpdateCostAllocationTagsStatusRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateCostAllocationTagsStatusRequestRequestTypeDef
def get_value() -> UpdateCostAllocationTagsStatusRequestRequestTypeDef:
return {
"CostAllocationTagsStatus": ...,
}
Definition
class UpdateCostAllocationTagsStatusRequestRequestTypeDef(TypedDict):
CostAllocationTagsStatus: Sequence[CostAllocationTagStatusEntryTypeDef], # (1)
CostCategoryRuleTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryRuleTypeDef
def get_value() -> CostCategoryRuleTypeDef:
return {
"Value": ...,
}
Definition
class CostCategoryRuleTypeDef(TypedDict):
Value: NotRequired[str],
Rule: NotRequired[ExpressionTypeDef], # (1)
InheritedValue: NotRequired[CostCategoryInheritedValueDimensionTypeDef], # (2)
Type: NotRequired[CostCategoryRuleTypeType], # (3)
CostCategoryReferenceTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryReferenceTypeDef
def get_value() -> CostCategoryReferenceTypeDef:
return {
"CostCategoryArn": ...,
}
Definition
class CostCategoryReferenceTypeDef(TypedDict):
CostCategoryArn: NotRequired[str],
Name: NotRequired[str],
EffectiveStart: NotRequired[str],
EffectiveEnd: NotRequired[str],
NumberOfRules: NotRequired[int],
ProcessingStatus: NotRequired[List[CostCategoryProcessingStatusTypeDef]], # (1)
Values: NotRequired[List[str]],
DefaultValue: NotRequired[str],
CostCategorySplitChargeRuleTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategorySplitChargeRuleTypeDef
def get_value() -> CostCategorySplitChargeRuleTypeDef:
return {
"Source": ...,
"Targets": ...,
"Method": ...,
}
Definition
class CostCategorySplitChargeRuleTypeDef(TypedDict):
Source: str,
Targets: Sequence[str],
Method: CostCategorySplitChargeMethodType, # (1)
Parameters: NotRequired[Sequence[CostCategorySplitChargeRuleParameterTypeDef]], # (2)
ForecastResultTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ForecastResultTypeDef
def get_value() -> ForecastResultTypeDef:
return {
"TimePeriod": ...,
}
Definition
class ForecastResultTypeDef(TypedDict):
TimePeriod: NotRequired[DateIntervalTypeDef], # (1)
MeanValue: NotRequired[str],
PredictionIntervalLowerBound: NotRequired[str],
PredictionIntervalUpperBound: NotRequired[str],
GetCostForecastRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostForecastRequestRequestTypeDef
def get_value() -> GetCostForecastRequestRequestTypeDef:
return {
"TimePeriod": ...,
"Metric": ...,
"Granularity": ...,
}
Definition
class GetCostForecastRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Metric: MetricType, # (2)
Granularity: GranularityType, # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
PredictionIntervalLevel: NotRequired[int],
- See DateIntervalTypeDef
- See MetricType
- See GranularityType
- See ExpressionTypeDef
GetUsageForecastRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetUsageForecastRequestRequestTypeDef
def get_value() -> GetUsageForecastRequestRequestTypeDef:
return {
"TimePeriod": ...,
"Metric": ...,
"Granularity": ...,
}
Definition
class GetUsageForecastRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Metric: MetricType, # (2)
Granularity: GranularityType, # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
PredictionIntervalLevel: NotRequired[int],
- See DateIntervalTypeDef
- See MetricType
- See GranularityType
- See ExpressionTypeDef
CoverageTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CoverageTypeDef
def get_value() -> CoverageTypeDef:
return {
"CoverageHours": ...,
}
Definition
class CoverageTypeDef(TypedDict):
CoverageHours: NotRequired[CoverageHoursTypeDef], # (1)
CoverageNormalizedUnits: NotRequired[CoverageNormalizedUnitsTypeDef], # (2)
CoverageCost: NotRequired[CoverageCostTypeDef], # (3)
CreateAnomalyMonitorRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateAnomalyMonitorRequestRequestTypeDef
def get_value() -> CreateAnomalyMonitorRequestRequestTypeDef:
return {
"AnomalyMonitor": ...,
}
Definition
class CreateAnomalyMonitorRequestRequestTypeDef(TypedDict):
AnomalyMonitor: AnomalyMonitorTypeDef, # (1)
ResourceTags: NotRequired[Sequence[ResourceTagTypeDef]], # (2)
TagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import TagResourceRequestRequestTypeDef
def get_value() -> TagResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
"ResourceTags": ...,
}
Definition
class TagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
ResourceTags: Sequence[ResourceTagTypeDef], # (1)
CreateAnomalyMonitorResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateAnomalyMonitorResponseTypeDef
def get_value() -> CreateAnomalyMonitorResponseTypeDef:
return {
"MonitorArn": ...,
"ResponseMetadata": ...,
}
Definition
class CreateAnomalyMonitorResponseTypeDef(TypedDict):
MonitorArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreateAnomalySubscriptionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateAnomalySubscriptionResponseTypeDef
def get_value() -> CreateAnomalySubscriptionResponseTypeDef:
return {
"SubscriptionArn": ...,
"ResponseMetadata": ...,
}
Definition
class CreateAnomalySubscriptionResponseTypeDef(TypedDict):
SubscriptionArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreateCostCategoryDefinitionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateCostCategoryDefinitionResponseTypeDef
def get_value() -> CreateCostCategoryDefinitionResponseTypeDef:
return {
"CostCategoryArn": ...,
"EffectiveStart": ...,
"ResponseMetadata": ...,
}
Definition
class CreateCostCategoryDefinitionResponseTypeDef(TypedDict):
CostCategoryArn: str,
EffectiveStart: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DeleteCostCategoryDefinitionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DeleteCostCategoryDefinitionResponseTypeDef
def get_value() -> DeleteCostCategoryDefinitionResponseTypeDef:
return {
"CostCategoryArn": ...,
"EffectiveEnd": ...,
"ResponseMetadata": ...,
}
Definition
class DeleteCostCategoryDefinitionResponseTypeDef(TypedDict):
CostCategoryArn: str,
EffectiveEnd: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetAnomalyMonitorsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomalyMonitorsResponseTypeDef
def get_value() -> GetAnomalyMonitorsResponseTypeDef:
return {
"AnomalyMonitors": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetAnomalyMonitorsResponseTypeDef(TypedDict):
AnomalyMonitors: List[AnomalyMonitorTypeDef], # (1)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetCostCategoriesResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostCategoriesResponseTypeDef
def get_value() -> GetCostCategoriesResponseTypeDef:
return {
"NextPageToken": ...,
"CostCategoryNames": ...,
"CostCategoryValues": ...,
"ReturnSize": ...,
"TotalSize": ...,
"ResponseMetadata": ...,
}
Definition
class GetCostCategoriesResponseTypeDef(TypedDict):
NextPageToken: str,
CostCategoryNames: List[str],
CostCategoryValues: List[str],
ReturnSize: int,
TotalSize: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetTagsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetTagsResponseTypeDef
def get_value() -> GetTagsResponseTypeDef:
return {
"NextPageToken": ...,
"Tags": ...,
"ReturnSize": ...,
"TotalSize": ...,
"ResponseMetadata": ...,
}
Definition
class GetTagsResponseTypeDef(TypedDict):
NextPageToken: str,
Tags: List[str],
ReturnSize: int,
TotalSize: int,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListCostAllocationTagsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListCostAllocationTagsResponseTypeDef
def get_value() -> ListCostAllocationTagsResponseTypeDef:
return {
"CostAllocationTags": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListCostAllocationTagsResponseTypeDef(TypedDict):
CostAllocationTags: List[CostAllocationTagTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListTagsForResourceResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
return {
"ResourceTags": ...,
"ResponseMetadata": ...,
}
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
ResourceTags: List[ResourceTagTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ProvideAnomalyFeedbackResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ProvideAnomalyFeedbackResponseTypeDef
def get_value() -> ProvideAnomalyFeedbackResponseTypeDef:
return {
"AnomalyId": ...,
"ResponseMetadata": ...,
}
Definition
class ProvideAnomalyFeedbackResponseTypeDef(TypedDict):
AnomalyId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
StartSavingsPlansPurchaseRecommendationGenerationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import StartSavingsPlansPurchaseRecommendationGenerationResponseTypeDef
def get_value() -> StartSavingsPlansPurchaseRecommendationGenerationResponseTypeDef:
return {
"RecommendationId": ...,
"GenerationStartedTime": ...,
"EstimatedCompletionTime": ...,
"ResponseMetadata": ...,
}
Definition
class StartSavingsPlansPurchaseRecommendationGenerationResponseTypeDef(TypedDict):
RecommendationId: str,
GenerationStartedTime: str,
EstimatedCompletionTime: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UpdateAnomalyMonitorResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateAnomalyMonitorResponseTypeDef
def get_value() -> UpdateAnomalyMonitorResponseTypeDef:
return {
"MonitorArn": ...,
"ResponseMetadata": ...,
}
Definition
class UpdateAnomalyMonitorResponseTypeDef(TypedDict):
MonitorArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UpdateAnomalySubscriptionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateAnomalySubscriptionResponseTypeDef
def get_value() -> UpdateAnomalySubscriptionResponseTypeDef:
return {
"SubscriptionArn": ...,
"ResponseMetadata": ...,
}
Definition
class UpdateAnomalySubscriptionResponseTypeDef(TypedDict):
SubscriptionArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UpdateCostCategoryDefinitionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateCostCategoryDefinitionResponseTypeDef
def get_value() -> UpdateCostCategoryDefinitionResponseTypeDef:
return {
"CostCategoryArn": ...,
"EffectiveStart": ...,
"ResponseMetadata": ...,
}
Definition
class UpdateCostCategoryDefinitionResponseTypeDef(TypedDict):
CostCategoryArn: str,
EffectiveStart: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ExpressionTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ExpressionTypeDef
def get_value() -> ExpressionTypeDef:
return {
"Or": ...,
}
Definition
class ExpressionTypeDef(TypedDict):
Or: NotRequired[Sequence[ExpressionTypeDef]], # (1)
And: NotRequired[Sequence[ExpressionTypeDef]], # (1)
Not: NotRequired[ExpressionTypeDef], # (3)
Dimensions: NotRequired[DimensionValuesTypeDef], # (4)
Tags: NotRequired[TagValuesTypeDef], # (5)
CostCategories: NotRequired[CostCategoryValuesTypeDef], # (6)
- See ExpressionTypeDef
- See ExpressionTypeDef
- See ExpressionTypeDef
- See DimensionValuesTypeDef
- See TagValuesTypeDef
- See CostCategoryValuesTypeDef
GetDimensionValuesResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetDimensionValuesResponseTypeDef
def get_value() -> GetDimensionValuesResponseTypeDef:
return {
"DimensionValues": ...,
"ReturnSize": ...,
"TotalSize": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetDimensionValuesResponseTypeDef(TypedDict):
DimensionValues: List[DimensionValuesWithAttributesTypeDef], # (1)
ReturnSize: int,
TotalSize: int,
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ResourceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ResourceDetailsTypeDef
def get_value() -> ResourceDetailsTypeDef:
return {
"EC2ResourceDetails": ...,
}
Definition
class ResourceDetailsTypeDef(TypedDict):
EC2ResourceDetails: NotRequired[EC2ResourceDetailsTypeDef], # (1)
EC2ResourceUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import EC2ResourceUtilizationTypeDef
def get_value() -> EC2ResourceUtilizationTypeDef:
return {
"MaxCpuUtilizationPercentage": ...,
}
Definition
class EC2ResourceUtilizationTypeDef(TypedDict):
MaxCpuUtilizationPercentage: NotRequired[str],
MaxMemoryUtilizationPercentage: NotRequired[str],
MaxStorageUtilizationPercentage: NotRequired[str],
EBSResourceUtilization: NotRequired[EBSResourceUtilizationTypeDef], # (1)
DiskResourceUtilization: NotRequired[DiskResourceUtilizationTypeDef], # (2)
NetworkResourceUtilization: NotRequired[NetworkResourceUtilizationTypeDef], # (3)
- See EBSResourceUtilizationTypeDef
- See DiskResourceUtilizationTypeDef
- See NetworkResourceUtilizationTypeDef
ServiceSpecificationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ServiceSpecificationTypeDef
def get_value() -> ServiceSpecificationTypeDef:
return {
"EC2Specification": ...,
}
Definition
class ServiceSpecificationTypeDef(TypedDict):
EC2Specification: NotRequired[EC2SpecificationTypeDef], # (1)
ListSavingsPlansPurchaseRecommendationGenerationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListSavingsPlansPurchaseRecommendationGenerationResponseTypeDef
def get_value() -> ListSavingsPlansPurchaseRecommendationGenerationResponseTypeDef:
return {
"GenerationSummaryList": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListSavingsPlansPurchaseRecommendationGenerationResponseTypeDef(TypedDict):
GenerationSummaryList: List[GenerationSummaryTypeDef], # (1)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetAnomaliesRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomaliesRequestRequestTypeDef
def get_value() -> GetAnomaliesRequestRequestTypeDef:
return {
"DateInterval": ...,
}
Definition
class GetAnomaliesRequestRequestTypeDef(TypedDict):
DateInterval: AnomalyDateIntervalTypeDef, # (1)
MonitorArn: NotRequired[str],
Feedback: NotRequired[AnomalyFeedbackTypeType], # (2)
TotalImpact: NotRequired[TotalImpactFilterTypeDef], # (3)
NextPageToken: NotRequired[str],
MaxResults: NotRequired[int],
GetCostAndUsageRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostAndUsageRequestRequestTypeDef
def get_value() -> GetCostAndUsageRequestRequestTypeDef:
return {
"TimePeriod": ...,
"Granularity": ...,
"Metrics": ...,
}
Definition
class GetCostAndUsageRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Granularity: GranularityType, # (2)
Metrics: Sequence[str],
Filter: NotRequired[ExpressionTypeDef], # (3)
GroupBy: NotRequired[Sequence[GroupDefinitionTypeDef]], # (4)
NextPageToken: NotRequired[str],
- See DateIntervalTypeDef
- See GranularityType
- See ExpressionTypeDef
- See GroupDefinitionTypeDef
GetCostAndUsageWithResourcesRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostAndUsageWithResourcesRequestRequestTypeDef
def get_value() -> GetCostAndUsageWithResourcesRequestRequestTypeDef:
return {
"TimePeriod": ...,
"Granularity": ...,
"Filter": ...,
}
Definition
class GetCostAndUsageWithResourcesRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Granularity: GranularityType, # (2)
Filter: ExpressionTypeDef, # (3)
Metrics: NotRequired[Sequence[str]],
GroupBy: NotRequired[Sequence[GroupDefinitionTypeDef]], # (4)
NextPageToken: NotRequired[str],
- See DateIntervalTypeDef
- See GranularityType
- See ExpressionTypeDef
- See GroupDefinitionTypeDef
GetCostCategoriesRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostCategoriesRequestRequestTypeDef
def get_value() -> GetCostCategoriesRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetCostCategoriesRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
SearchString: NotRequired[str],
CostCategoryName: NotRequired[str],
Filter: NotRequired[ExpressionTypeDef], # (2)
SortBy: NotRequired[Sequence[SortDefinitionTypeDef]], # (3)
MaxResults: NotRequired[int],
NextPageToken: NotRequired[str],
GetDimensionValuesRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetDimensionValuesRequestRequestTypeDef
def get_value() -> GetDimensionValuesRequestRequestTypeDef:
return {
"TimePeriod": ...,
"Dimension": ...,
}
Definition
class GetDimensionValuesRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Dimension: DimensionType, # (2)
SearchString: NotRequired[str],
Context: NotRequired[ContextType], # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
SortBy: NotRequired[Sequence[SortDefinitionTypeDef]], # (5)
MaxResults: NotRequired[int],
NextPageToken: NotRequired[str],
- See DateIntervalTypeDef
- See DimensionType
- See ContextType
- See ExpressionTypeDef
- See SortDefinitionTypeDef
GetReservationCoverageRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationCoverageRequestRequestTypeDef
def get_value() -> GetReservationCoverageRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetReservationCoverageRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
GroupBy: NotRequired[Sequence[GroupDefinitionTypeDef]], # (2)
Granularity: NotRequired[GranularityType], # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
Metrics: NotRequired[Sequence[str]],
NextPageToken: NotRequired[str],
SortBy: NotRequired[SortDefinitionTypeDef], # (5)
MaxResults: NotRequired[int],
- See DateIntervalTypeDef
- See GroupDefinitionTypeDef
- See GranularityType
- See ExpressionTypeDef
- See SortDefinitionTypeDef
GetReservationUtilizationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationUtilizationRequestRequestTypeDef
def get_value() -> GetReservationUtilizationRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetReservationUtilizationRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
GroupBy: NotRequired[Sequence[GroupDefinitionTypeDef]], # (2)
Granularity: NotRequired[GranularityType], # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
SortBy: NotRequired[SortDefinitionTypeDef], # (5)
NextPageToken: NotRequired[str],
MaxResults: NotRequired[int],
- See DateIntervalTypeDef
- See GroupDefinitionTypeDef
- See GranularityType
- See ExpressionTypeDef
- See SortDefinitionTypeDef
GetSavingsPlansCoverageRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansCoverageRequestRequestTypeDef
def get_value() -> GetSavingsPlansCoverageRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetSavingsPlansCoverageRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
GroupBy: NotRequired[Sequence[GroupDefinitionTypeDef]], # (2)
Granularity: NotRequired[GranularityType], # (3)
Filter: NotRequired[ExpressionTypeDef], # (4)
Metrics: NotRequired[Sequence[str]],
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
SortBy: NotRequired[SortDefinitionTypeDef], # (5)
- See DateIntervalTypeDef
- See GroupDefinitionTypeDef
- See GranularityType
- See ExpressionTypeDef
- See SortDefinitionTypeDef
GetSavingsPlansUtilizationDetailsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansUtilizationDetailsRequestRequestTypeDef
def get_value() -> GetSavingsPlansUtilizationDetailsRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetSavingsPlansUtilizationDetailsRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Filter: NotRequired[ExpressionTypeDef], # (2)
DataType: NotRequired[Sequence[SavingsPlansDataTypeType]], # (3)
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
SortBy: NotRequired[SortDefinitionTypeDef], # (4)
- See DateIntervalTypeDef
- See ExpressionTypeDef
- See SavingsPlansDataTypeType
- See SortDefinitionTypeDef
GetSavingsPlansUtilizationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansUtilizationRequestRequestTypeDef
def get_value() -> GetSavingsPlansUtilizationRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetSavingsPlansUtilizationRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Granularity: NotRequired[GranularityType], # (2)
Filter: NotRequired[ExpressionTypeDef], # (3)
SortBy: NotRequired[SortDefinitionTypeDef], # (4)
- See DateIntervalTypeDef
- See GranularityType
- See ExpressionTypeDef
- See SortDefinitionTypeDef
GetTagsRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetTagsRequestRequestTypeDef
def get_value() -> GetTagsRequestRequestTypeDef:
return {
"TimePeriod": ...,
}
Definition
class GetTagsRequestRequestTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
SearchString: NotRequired[str],
TagKey: NotRequired[str],
Filter: NotRequired[ExpressionTypeDef], # (2)
SortBy: NotRequired[Sequence[SortDefinitionTypeDef]], # (3)
MaxResults: NotRequired[int],
NextPageToken: NotRequired[str],
GroupTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GroupTypeDef
def get_value() -> GroupTypeDef:
return {
"Keys": ...,
}
Definition
class GroupTypeDef(TypedDict):
Keys: NotRequired[List[str]],
Metrics: NotRequired[Dict[str, MetricValueTypeDef]], # (1)
ReservationUtilizationGroupTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationUtilizationGroupTypeDef
def get_value() -> ReservationUtilizationGroupTypeDef:
return {
"Key": ...,
}
Definition
class ReservationUtilizationGroupTypeDef(TypedDict):
Key: NotRequired[str],
Value: NotRequired[str],
Attributes: NotRequired[Dict[str, str]],
Utilization: NotRequired[ReservationAggregatesTypeDef], # (1)
GetRightsizingRecommendationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetRightsizingRecommendationRequestRequestTypeDef
def get_value() -> GetRightsizingRecommendationRequestRequestTypeDef:
return {
"Service": ...,
}
Definition
class GetRightsizingRecommendationRequestRequestTypeDef(TypedDict):
Service: str,
Filter: NotRequired[ExpressionTypeDef], # (1)
Configuration: NotRequired[RightsizingRecommendationConfigurationTypeDef], # (2)
PageSize: NotRequired[int],
NextPageToken: NotRequired[str],
InstanceDetailsTypeDef
Usage Example
from mypy_boto3_ce.type_defs import InstanceDetailsTypeDef
def get_value() -> InstanceDetailsTypeDef:
return {
"EC2InstanceDetails": ...,
}
Definition
class InstanceDetailsTypeDef(TypedDict):
EC2InstanceDetails: NotRequired[EC2InstanceDetailsTypeDef], # (1)
RDSInstanceDetails: NotRequired[RDSInstanceDetailsTypeDef], # (2)
RedshiftInstanceDetails: NotRequired[RedshiftInstanceDetailsTypeDef], # (3)
ElastiCacheInstanceDetails: NotRequired[ElastiCacheInstanceDetailsTypeDef], # (4)
ESInstanceDetails: NotRequired[ESInstanceDetailsTypeDef], # (5)
- See EC2InstanceDetailsTypeDef
- See RDSInstanceDetailsTypeDef
- See RedshiftInstanceDetailsTypeDef
- See ElastiCacheInstanceDetailsTypeDef
- See ESInstanceDetailsTypeDef
SavingsPlansCoverageTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansCoverageTypeDef
def get_value() -> SavingsPlansCoverageTypeDef:
return {
"Attributes": ...,
}
Definition
class SavingsPlansCoverageTypeDef(TypedDict):
Attributes: NotRequired[Dict[str, str]],
Coverage: NotRequired[SavingsPlansCoverageDataTypeDef], # (1)
TimePeriod: NotRequired[DateIntervalTypeDef], # (2)
SavingsPlansPurchaseRecommendationDetailTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansPurchaseRecommendationDetailTypeDef
def get_value() -> SavingsPlansPurchaseRecommendationDetailTypeDef:
return {
"SavingsPlansDetails": ...,
}
Definition
class SavingsPlansPurchaseRecommendationDetailTypeDef(TypedDict):
SavingsPlansDetails: NotRequired[SavingsPlansDetailsTypeDef], # (1)
AccountId: NotRequired[str],
UpfrontCost: NotRequired[str],
EstimatedROI: NotRequired[str],
CurrencyCode: NotRequired[str],
EstimatedSPCost: NotRequired[str],
EstimatedOnDemandCost: NotRequired[str],
EstimatedOnDemandCostWithCurrentCommitment: NotRequired[str],
EstimatedSavingsAmount: NotRequired[str],
EstimatedSavingsPercentage: NotRequired[str],
HourlyCommitmentToPurchase: NotRequired[str],
EstimatedAverageUtilization: NotRequired[str],
EstimatedMonthlySavingsAmount: NotRequired[str],
CurrentMinimumHourlyOnDemandSpend: NotRequired[str],
CurrentMaximumHourlyOnDemandSpend: NotRequired[str],
CurrentAverageHourlyOnDemandSpend: NotRequired[str],
SavingsPlansUtilizationAggregatesTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansUtilizationAggregatesTypeDef
def get_value() -> SavingsPlansUtilizationAggregatesTypeDef:
return {
"Utilization": ...,
}
Definition
class SavingsPlansUtilizationAggregatesTypeDef(TypedDict):
Utilization: SavingsPlansUtilizationTypeDef, # (1)
Savings: NotRequired[SavingsPlansSavingsTypeDef], # (2)
AmortizedCommitment: NotRequired[SavingsPlansAmortizedCommitmentTypeDef], # (3)
- See SavingsPlansUtilizationTypeDef
- See SavingsPlansSavingsTypeDef
- See SavingsPlansAmortizedCommitmentTypeDef
SavingsPlansUtilizationByTimeTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansUtilizationByTimeTypeDef
def get_value() -> SavingsPlansUtilizationByTimeTypeDef:
return {
"TimePeriod": ...,
"Utilization": ...,
}
Definition
class SavingsPlansUtilizationByTimeTypeDef(TypedDict):
TimePeriod: DateIntervalTypeDef, # (1)
Utilization: SavingsPlansUtilizationTypeDef, # (2)
Savings: NotRequired[SavingsPlansSavingsTypeDef], # (3)
AmortizedCommitment: NotRequired[SavingsPlansAmortizedCommitmentTypeDef], # (4)
- See DateIntervalTypeDef
- See SavingsPlansUtilizationTypeDef
- See SavingsPlansSavingsTypeDef
- See SavingsPlansAmortizedCommitmentTypeDef
SavingsPlansUtilizationDetailTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansUtilizationDetailTypeDef
def get_value() -> SavingsPlansUtilizationDetailTypeDef:
return {
"SavingsPlanArn": ...,
}
Definition
class SavingsPlansUtilizationDetailTypeDef(TypedDict):
SavingsPlanArn: NotRequired[str],
Attributes: NotRequired[Dict[str, str]],
Utilization: NotRequired[SavingsPlansUtilizationTypeDef], # (1)
Savings: NotRequired[SavingsPlansSavingsTypeDef], # (2)
AmortizedCommitment: NotRequired[SavingsPlansAmortizedCommitmentTypeDef], # (3)
- See SavingsPlansUtilizationTypeDef
- See SavingsPlansSavingsTypeDef
- See SavingsPlansAmortizedCommitmentTypeDef
UpdateCostAllocationTagsStatusResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateCostAllocationTagsStatusResponseTypeDef
def get_value() -> UpdateCostAllocationTagsStatusResponseTypeDef:
return {
"Errors": ...,
"ResponseMetadata": ...,
}
Definition
class UpdateCostAllocationTagsStatusResponseTypeDef(TypedDict):
Errors: List[UpdateCostAllocationTagsStatusErrorTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
CreateAnomalySubscriptionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateAnomalySubscriptionRequestRequestTypeDef
def get_value() -> CreateAnomalySubscriptionRequestRequestTypeDef:
return {
"AnomalySubscription": ...,
}
Definition
class CreateAnomalySubscriptionRequestRequestTypeDef(TypedDict):
AnomalySubscription: AnomalySubscriptionTypeDef, # (1)
ResourceTags: NotRequired[Sequence[ResourceTagTypeDef]], # (2)
GetAnomalySubscriptionsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomalySubscriptionsResponseTypeDef
def get_value() -> GetAnomalySubscriptionsResponseTypeDef:
return {
"AnomalySubscriptions": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetAnomalySubscriptionsResponseTypeDef(TypedDict):
AnomalySubscriptions: List[AnomalySubscriptionTypeDef], # (1)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
GetAnomaliesResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetAnomaliesResponseTypeDef
def get_value() -> GetAnomaliesResponseTypeDef:
return {
"Anomalies": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetAnomaliesResponseTypeDef(TypedDict):
Anomalies: List[AnomalyTypeDef], # (1)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListCostCategoryDefinitionsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ListCostCategoryDefinitionsResponseTypeDef
def get_value() -> ListCostCategoryDefinitionsResponseTypeDef:
return {
"CostCategoryReferences": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class ListCostCategoryDefinitionsResponseTypeDef(TypedDict):
CostCategoryReferences: List[CostCategoryReferenceTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
CostCategoryTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CostCategoryTypeDef
def get_value() -> CostCategoryTypeDef:
return {
"CostCategoryArn": ...,
"EffectiveStart": ...,
"Name": ...,
"RuleVersion": ...,
"Rules": ...,
}
Definition
class CostCategoryTypeDef(TypedDict):
CostCategoryArn: str,
EffectiveStart: str,
Name: str,
RuleVersion: CostCategoryRuleVersionType, # (1)
Rules: List[CostCategoryRuleTypeDef], # (2)
EffectiveEnd: NotRequired[str],
SplitChargeRules: NotRequired[List[CostCategorySplitChargeRuleTypeDef]], # (3)
ProcessingStatus: NotRequired[List[CostCategoryProcessingStatusTypeDef]], # (4)
DefaultValue: NotRequired[str],
- See CostCategoryRuleVersionType
- See CostCategoryRuleTypeDef
- See CostCategorySplitChargeRuleTypeDef
- See CostCategoryProcessingStatusTypeDef
CreateCostCategoryDefinitionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CreateCostCategoryDefinitionRequestRequestTypeDef
def get_value() -> CreateCostCategoryDefinitionRequestRequestTypeDef:
return {
"Name": ...,
"RuleVersion": ...,
"Rules": ...,
}
Definition
class CreateCostCategoryDefinitionRequestRequestTypeDef(TypedDict):
Name: str,
RuleVersion: CostCategoryRuleVersionType, # (1)
Rules: Sequence[CostCategoryRuleTypeDef], # (2)
EffectiveStart: NotRequired[str],
DefaultValue: NotRequired[str],
SplitChargeRules: NotRequired[Sequence[CostCategorySplitChargeRuleTypeDef]], # (3)
ResourceTags: NotRequired[Sequence[ResourceTagTypeDef]], # (4)
- See CostCategoryRuleVersionType
- See CostCategoryRuleTypeDef
- See CostCategorySplitChargeRuleTypeDef
- See ResourceTagTypeDef
UpdateCostCategoryDefinitionRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UpdateCostCategoryDefinitionRequestRequestTypeDef
def get_value() -> UpdateCostCategoryDefinitionRequestRequestTypeDef:
return {
"CostCategoryArn": ...,
"RuleVersion": ...,
"Rules": ...,
}
Definition
class UpdateCostCategoryDefinitionRequestRequestTypeDef(TypedDict):
CostCategoryArn: str,
RuleVersion: CostCategoryRuleVersionType, # (1)
Rules: Sequence[CostCategoryRuleTypeDef], # (2)
EffectiveStart: NotRequired[str],
DefaultValue: NotRequired[str],
SplitChargeRules: NotRequired[Sequence[CostCategorySplitChargeRuleTypeDef]], # (3)
GetCostForecastResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostForecastResponseTypeDef
def get_value() -> GetCostForecastResponseTypeDef:
return {
"Total": ...,
"ForecastResultsByTime": ...,
"ResponseMetadata": ...,
}
Definition
class GetCostForecastResponseTypeDef(TypedDict):
Total: MetricValueTypeDef, # (1)
ForecastResultsByTime: List[ForecastResultTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
GetUsageForecastResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetUsageForecastResponseTypeDef
def get_value() -> GetUsageForecastResponseTypeDef:
return {
"Total": ...,
"ForecastResultsByTime": ...,
"ResponseMetadata": ...,
}
Definition
class GetUsageForecastResponseTypeDef(TypedDict):
Total: MetricValueTypeDef, # (1)
ForecastResultsByTime: List[ForecastResultTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
ReservationCoverageGroupTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationCoverageGroupTypeDef
def get_value() -> ReservationCoverageGroupTypeDef:
return {
"Attributes": ...,
}
Definition
class ReservationCoverageGroupTypeDef(TypedDict):
Attributes: NotRequired[Dict[str, str]],
Coverage: NotRequired[CoverageTypeDef], # (1)
- See CoverageTypeDef
ResourceUtilizationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ResourceUtilizationTypeDef
def get_value() -> ResourceUtilizationTypeDef:
return {
"EC2ResourceUtilization": ...,
}
Definition
class ResourceUtilizationTypeDef(TypedDict):
EC2ResourceUtilization: NotRequired[EC2ResourceUtilizationTypeDef], # (1)
GetReservationPurchaseRecommendationRequestRequestTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationPurchaseRecommendationRequestRequestTypeDef
def get_value() -> GetReservationPurchaseRecommendationRequestRequestTypeDef:
return {
"Service": ...,
}
Definition
class GetReservationPurchaseRecommendationRequestRequestTypeDef(TypedDict):
Service: str,
AccountId: NotRequired[str],
Filter: NotRequired[ExpressionTypeDef], # (1)
AccountScope: NotRequired[AccountScopeType], # (2)
LookbackPeriodInDays: NotRequired[LookbackPeriodInDaysType], # (3)
TermInYears: NotRequired[TermInYearsType], # (4)
PaymentOption: NotRequired[PaymentOptionType], # (5)
ServiceSpecification: NotRequired[ServiceSpecificationTypeDef], # (6)
PageSize: NotRequired[int],
NextPageToken: NotRequired[str],
- See ExpressionTypeDef
- See AccountScopeType
- See LookbackPeriodInDaysType
- See TermInYearsType
- See PaymentOptionType
- See ServiceSpecificationTypeDef
ResultByTimeTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ResultByTimeTypeDef
def get_value() -> ResultByTimeTypeDef:
return {
"TimePeriod": ...,
}
Definition
class ResultByTimeTypeDef(TypedDict):
TimePeriod: NotRequired[DateIntervalTypeDef], # (1)
Total: NotRequired[Dict[str, MetricValueTypeDef]], # (2)
Groups: NotRequired[List[GroupTypeDef]], # (3)
Estimated: NotRequired[bool],
- See DateIntervalTypeDef
- See MetricValueTypeDef
- See GroupTypeDef
UtilizationByTimeTypeDef
Usage Example
from mypy_boto3_ce.type_defs import UtilizationByTimeTypeDef
def get_value() -> UtilizationByTimeTypeDef:
return {
"TimePeriod": ...,
}
Definition
class UtilizationByTimeTypeDef(TypedDict):
TimePeriod: NotRequired[DateIntervalTypeDef], # (1)
Groups: NotRequired[List[ReservationUtilizationGroupTypeDef]], # (2)
Total: NotRequired[ReservationAggregatesTypeDef], # (3)
ReservationPurchaseRecommendationDetailTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationPurchaseRecommendationDetailTypeDef
def get_value() -> ReservationPurchaseRecommendationDetailTypeDef:
return {
"AccountId": ...,
}
Definition
class ReservationPurchaseRecommendationDetailTypeDef(TypedDict):
AccountId: NotRequired[str],
InstanceDetails: NotRequired[InstanceDetailsTypeDef], # (1)
RecommendedNumberOfInstancesToPurchase: NotRequired[str],
RecommendedNormalizedUnitsToPurchase: NotRequired[str],
MinimumNumberOfInstancesUsedPerHour: NotRequired[str],
MinimumNormalizedUnitsUsedPerHour: NotRequired[str],
MaximumNumberOfInstancesUsedPerHour: NotRequired[str],
MaximumNormalizedUnitsUsedPerHour: NotRequired[str],
AverageNumberOfInstancesUsedPerHour: NotRequired[str],
AverageNormalizedUnitsUsedPerHour: NotRequired[str],
AverageUtilization: NotRequired[str],
EstimatedBreakEvenInMonths: NotRequired[str],
CurrencyCode: NotRequired[str],
EstimatedMonthlySavingsAmount: NotRequired[str],
EstimatedMonthlySavingsPercentage: NotRequired[str],
EstimatedMonthlyOnDemandCost: NotRequired[str],
EstimatedReservationCostForLookbackPeriod: NotRequired[str],
UpfrontCost: NotRequired[str],
RecurringStandardMonthlyCost: NotRequired[str],
GetSavingsPlansCoverageResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansCoverageResponseTypeDef
def get_value() -> GetSavingsPlansCoverageResponseTypeDef:
return {
"SavingsPlansCoverages": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetSavingsPlansCoverageResponseTypeDef(TypedDict):
SavingsPlansCoverages: List[SavingsPlansCoverageTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
SavingsPlansPurchaseRecommendationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import SavingsPlansPurchaseRecommendationTypeDef
def get_value() -> SavingsPlansPurchaseRecommendationTypeDef:
return {
"AccountScope": ...,
}
Definition
class SavingsPlansPurchaseRecommendationTypeDef(TypedDict):
AccountScope: NotRequired[AccountScopeType], # (1)
SavingsPlansType: NotRequired[SupportedSavingsPlansTypeType], # (2)
TermInYears: NotRequired[TermInYearsType], # (3)
PaymentOption: NotRequired[PaymentOptionType], # (4)
LookbackPeriodInDays: NotRequired[LookbackPeriodInDaysType], # (5)
SavingsPlansPurchaseRecommendationDetails: NotRequired[List[SavingsPlansPurchaseRecommendationDetailTypeDef]], # (6)
SavingsPlansPurchaseRecommendationSummary: NotRequired[SavingsPlansPurchaseRecommendationSummaryTypeDef], # (7)
- See AccountScopeType
- See SupportedSavingsPlansTypeType
- See TermInYearsType
- See PaymentOptionType
- See LookbackPeriodInDaysType
- See SavingsPlansPurchaseRecommendationDetailTypeDef
- See SavingsPlansPurchaseRecommendationSummaryTypeDef
GetSavingsPlansUtilizationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansUtilizationResponseTypeDef
def get_value() -> GetSavingsPlansUtilizationResponseTypeDef:
return {
"SavingsPlansUtilizationsByTime": ...,
"Total": ...,
"ResponseMetadata": ...,
}
Definition
class GetSavingsPlansUtilizationResponseTypeDef(TypedDict):
SavingsPlansUtilizationsByTime: List[SavingsPlansUtilizationByTimeTypeDef], # (1)
Total: SavingsPlansUtilizationAggregatesTypeDef, # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
- See SavingsPlansUtilizationByTimeTypeDef
- See SavingsPlansUtilizationAggregatesTypeDef
- See ResponseMetadataTypeDef
GetSavingsPlansUtilizationDetailsResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansUtilizationDetailsResponseTypeDef
def get_value() -> GetSavingsPlansUtilizationDetailsResponseTypeDef:
return {
"SavingsPlansUtilizationDetails": ...,
"Total": ...,
"TimePeriod": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetSavingsPlansUtilizationDetailsResponseTypeDef(TypedDict):
SavingsPlansUtilizationDetails: List[SavingsPlansUtilizationDetailTypeDef], # (1)
Total: SavingsPlansUtilizationAggregatesTypeDef, # (2)
TimePeriod: DateIntervalTypeDef, # (3)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (4)
- See SavingsPlansUtilizationDetailTypeDef
- See SavingsPlansUtilizationAggregatesTypeDef
- See DateIntervalTypeDef
- See ResponseMetadataTypeDef
DescribeCostCategoryDefinitionResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import DescribeCostCategoryDefinitionResponseTypeDef
def get_value() -> DescribeCostCategoryDefinitionResponseTypeDef:
return {
"CostCategory": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeCostCategoryDefinitionResponseTypeDef(TypedDict):
CostCategory: CostCategoryTypeDef, # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
CoverageByTimeTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CoverageByTimeTypeDef
def get_value() -> CoverageByTimeTypeDef:
return {
"TimePeriod": ...,
}
Definition
class CoverageByTimeTypeDef(TypedDict):
TimePeriod: NotRequired[DateIntervalTypeDef], # (1)
Groups: NotRequired[List[ReservationCoverageGroupTypeDef]], # (2)
Total: NotRequired[CoverageTypeDef], # (3)
CurrentInstanceTypeDef
Usage Example
from mypy_boto3_ce.type_defs import CurrentInstanceTypeDef
def get_value() -> CurrentInstanceTypeDef:
return {
"ResourceId": ...,
}
Definition
class CurrentInstanceTypeDef(TypedDict):
ResourceId: NotRequired[str],
InstanceName: NotRequired[str],
Tags: NotRequired[List[TagValuesTypeDef]], # (1)
ResourceDetails: NotRequired[ResourceDetailsTypeDef], # (2)
ResourceUtilization: NotRequired[ResourceUtilizationTypeDef], # (3)
ReservationCoveredHoursInLookbackPeriod: NotRequired[str],
SavingsPlansCoveredHoursInLookbackPeriod: NotRequired[str],
OnDemandHoursInLookbackPeriod: NotRequired[str],
TotalRunningHoursInLookbackPeriod: NotRequired[str],
MonthlyCost: NotRequired[str],
CurrencyCode: NotRequired[str],
TargetInstanceTypeDef
Usage Example
from mypy_boto3_ce.type_defs import TargetInstanceTypeDef
def get_value() -> TargetInstanceTypeDef:
return {
"EstimatedMonthlyCost": ...,
}
Definition
class TargetInstanceTypeDef(TypedDict):
EstimatedMonthlyCost: NotRequired[str],
EstimatedMonthlySavings: NotRequired[str],
CurrencyCode: NotRequired[str],
DefaultTargetInstance: NotRequired[bool],
ResourceDetails: NotRequired[ResourceDetailsTypeDef], # (1)
ExpectedResourceUtilization: NotRequired[ResourceUtilizationTypeDef], # (2)
PlatformDifferences: NotRequired[List[PlatformDifferenceType]], # (3)
GetCostAndUsageResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostAndUsageResponseTypeDef
def get_value() -> GetCostAndUsageResponseTypeDef:
return {
"NextPageToken": ...,
"GroupDefinitions": ...,
"ResultsByTime": ...,
"DimensionValueAttributes": ...,
"ResponseMetadata": ...,
}
Definition
class GetCostAndUsageResponseTypeDef(TypedDict):
NextPageToken: str,
GroupDefinitions: List[GroupDefinitionTypeDef], # (1)
ResultsByTime: List[ResultByTimeTypeDef], # (2)
DimensionValueAttributes: List[DimensionValuesWithAttributesTypeDef], # (3)
ResponseMetadata: ResponseMetadataTypeDef, # (4)
- See GroupDefinitionTypeDef
- See ResultByTimeTypeDef
- See DimensionValuesWithAttributesTypeDef
- See ResponseMetadataTypeDef
GetCostAndUsageWithResourcesResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetCostAndUsageWithResourcesResponseTypeDef
def get_value() -> GetCostAndUsageWithResourcesResponseTypeDef:
return {
"NextPageToken": ...,
"GroupDefinitions": ...,
"ResultsByTime": ...,
"DimensionValueAttributes": ...,
"ResponseMetadata": ...,
}
Definition
class GetCostAndUsageWithResourcesResponseTypeDef(TypedDict):
NextPageToken: str,
GroupDefinitions: List[GroupDefinitionTypeDef], # (1)
ResultsByTime: List[ResultByTimeTypeDef], # (2)
DimensionValueAttributes: List[DimensionValuesWithAttributesTypeDef], # (3)
ResponseMetadata: ResponseMetadataTypeDef, # (4)
- See GroupDefinitionTypeDef
- See ResultByTimeTypeDef
- See DimensionValuesWithAttributesTypeDef
- See ResponseMetadataTypeDef
GetReservationUtilizationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationUtilizationResponseTypeDef
def get_value() -> GetReservationUtilizationResponseTypeDef:
return {
"UtilizationsByTime": ...,
"Total": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetReservationUtilizationResponseTypeDef(TypedDict):
UtilizationsByTime: List[UtilizationByTimeTypeDef], # (1)
Total: ReservationAggregatesTypeDef, # (2)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
ReservationPurchaseRecommendationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ReservationPurchaseRecommendationTypeDef
def get_value() -> ReservationPurchaseRecommendationTypeDef:
return {
"AccountScope": ...,
}
Definition
class ReservationPurchaseRecommendationTypeDef(TypedDict):
AccountScope: NotRequired[AccountScopeType], # (1)
LookbackPeriodInDays: NotRequired[LookbackPeriodInDaysType], # (2)
TermInYears: NotRequired[TermInYearsType], # (3)
PaymentOption: NotRequired[PaymentOptionType], # (4)
ServiceSpecification: NotRequired[ServiceSpecificationTypeDef], # (5)
RecommendationDetails: NotRequired[List[ReservationPurchaseRecommendationDetailTypeDef]], # (6)
RecommendationSummary: NotRequired[ReservationPurchaseRecommendationSummaryTypeDef], # (7)
- See AccountScopeType
- See LookbackPeriodInDaysType
- See TermInYearsType
- See PaymentOptionType
- See ServiceSpecificationTypeDef
- See ReservationPurchaseRecommendationDetailTypeDef
- See ReservationPurchaseRecommendationSummaryTypeDef
GetSavingsPlansPurchaseRecommendationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetSavingsPlansPurchaseRecommendationResponseTypeDef
def get_value() -> GetSavingsPlansPurchaseRecommendationResponseTypeDef:
return {
"Metadata": ...,
"SavingsPlansPurchaseRecommendation": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetSavingsPlansPurchaseRecommendationResponseTypeDef(TypedDict):
Metadata: SavingsPlansPurchaseRecommendationMetadataTypeDef, # (1)
SavingsPlansPurchaseRecommendation: SavingsPlansPurchaseRecommendationTypeDef, # (2)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
- See SavingsPlansPurchaseRecommendationMetadataTypeDef
- See SavingsPlansPurchaseRecommendationTypeDef
- See ResponseMetadataTypeDef
GetReservationCoverageResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationCoverageResponseTypeDef
def get_value() -> GetReservationCoverageResponseTypeDef:
return {
"CoveragesByTime": ...,
"Total": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetReservationCoverageResponseTypeDef(TypedDict):
CoveragesByTime: List[CoverageByTimeTypeDef], # (1)
Total: CoverageTypeDef, # (2)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
ModifyRecommendationDetailTypeDef
Usage Example
from mypy_boto3_ce.type_defs import ModifyRecommendationDetailTypeDef
def get_value() -> ModifyRecommendationDetailTypeDef:
return {
"TargetInstances": ...,
}
Definition
class ModifyRecommendationDetailTypeDef(TypedDict):
TargetInstances: NotRequired[List[TargetInstanceTypeDef]], # (1)
GetReservationPurchaseRecommendationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetReservationPurchaseRecommendationResponseTypeDef
def get_value() -> GetReservationPurchaseRecommendationResponseTypeDef:
return {
"Metadata": ...,
"Recommendations": ...,
"NextPageToken": ...,
"ResponseMetadata": ...,
}
Definition
class GetReservationPurchaseRecommendationResponseTypeDef(TypedDict):
Metadata: ReservationPurchaseRecommendationMetadataTypeDef, # (1)
Recommendations: List[ReservationPurchaseRecommendationTypeDef], # (2)
NextPageToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (3)
- See ReservationPurchaseRecommendationMetadataTypeDef
- See ReservationPurchaseRecommendationTypeDef
- See ResponseMetadataTypeDef
RightsizingRecommendationTypeDef
Usage Example
from mypy_boto3_ce.type_defs import RightsizingRecommendationTypeDef
def get_value() -> RightsizingRecommendationTypeDef:
return {
"AccountId": ...,
}
Definition
class RightsizingRecommendationTypeDef(TypedDict):
AccountId: NotRequired[str],
CurrentInstance: NotRequired[CurrentInstanceTypeDef], # (1)
RightsizingType: NotRequired[RightsizingTypeType], # (2)
ModifyRecommendationDetail: NotRequired[ModifyRecommendationDetailTypeDef], # (3)
TerminateRecommendationDetail: NotRequired[TerminateRecommendationDetailTypeDef], # (4)
FindingReasonCodes: NotRequired[List[FindingReasonCodeType]], # (5)
- See CurrentInstanceTypeDef
- See RightsizingTypeType
- See ModifyRecommendationDetailTypeDef
- See TerminateRecommendationDetailTypeDef
- See FindingReasonCodeType
GetRightsizingRecommendationResponseTypeDef
Usage Example
from mypy_boto3_ce.type_defs import GetRightsizingRecommendationResponseTypeDef
def get_value() -> GetRightsizingRecommendationResponseTypeDef:
return {
"Metadata": ...,
"Summary": ...,
"RightsizingRecommendations": ...,
"NextPageToken": ...,
"Configuration": ...,
"ResponseMetadata": ...,
}
Definition
class GetRightsizingRecommendationResponseTypeDef(TypedDict):
Metadata: RightsizingRecommendationMetadataTypeDef, # (1)
Summary: RightsizingRecommendationSummaryTypeDef, # (2)
RightsizingRecommendations: List[RightsizingRecommendationTypeDef], # (3)
NextPageToken: str,
Configuration: RightsizingRecommendationConfigurationTypeDef, # (4)
ResponseMetadata: ResponseMetadataTypeDef, # (5)