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)