Skip to content

Type definitions#

Index > CostExplorer > Type definitions

Auto-generated documentation for CostExplorer type annotations stubs module mypy-boto3-ce.

AnomalyDateIntervalTypeDef#

# AnomalyDateIntervalTypeDef definition

class AnomalyDateIntervalTypeDef(TypedDict):
    StartDate: str,
    EndDate: NotRequired[str],

AnomalyMonitorTypeDef#

# AnomalyMonitorTypeDef 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],
  1. See MonitorTypeType
  2. See MonitorDimensionType
  3. See ExpressionTypeDef

AnomalyScoreTypeDef#

# AnomalyScoreTypeDef definition

class AnomalyScoreTypeDef(TypedDict):
    MaxScore: float,
    CurrentScore: float,

SubscriberTypeDef#

# SubscriberTypeDef definition

class SubscriberTypeDef(TypedDict):
    Address: NotRequired[str],
    Type: NotRequired[SubscriberTypeType],  # (1)
    Status: NotRequired[SubscriberStatusType],  # (2)
  1. See SubscriberTypeType
  2. See SubscriberStatusType

ImpactTypeDef#

# ImpactTypeDef definition

class ImpactTypeDef(TypedDict):
    MaxImpact: float,
    TotalImpact: NotRequired[float],
    TotalActualSpend: NotRequired[float],
    TotalExpectedSpend: NotRequired[float],
    TotalImpactPercentage: NotRequired[float],

RootCauseTypeDef#

# RootCauseTypeDef definition

class RootCauseTypeDef(TypedDict):
    Service: NotRequired[str],
    Region: NotRequired[str],
    LinkedAccount: NotRequired[str],
    UsageType: NotRequired[str],
    LinkedAccountName: NotRequired[str],

CostAllocationTagStatusEntryTypeDef#

# CostAllocationTagStatusEntryTypeDef definition

class CostAllocationTagStatusEntryTypeDef(TypedDict):
    TagKey: str,
    Status: CostAllocationTagStatusType,  # (1)
  1. See CostAllocationTagStatusType

CostAllocationTagTypeDef#

# CostAllocationTagTypeDef definition

class CostAllocationTagTypeDef(TypedDict):
    TagKey: str,
    Type: CostAllocationTagTypeType,  # (1)
    Status: CostAllocationTagStatusType,  # (2)
    LastUpdatedDate: NotRequired[str],
    LastUsedDate: NotRequired[str],
  1. See CostAllocationTagTypeType
  2. See CostAllocationTagStatusType

CostCategoryInheritedValueDimensionTypeDef#

# CostCategoryInheritedValueDimensionTypeDef definition

class CostCategoryInheritedValueDimensionTypeDef(TypedDict):
    DimensionName: NotRequired[CostCategoryInheritedValueDimensionNameType],  # (1)
    DimensionKey: NotRequired[str],
  1. See CostCategoryInheritedValueDimensionNameType

CostCategoryProcessingStatusTypeDef#

# CostCategoryProcessingStatusTypeDef definition

class CostCategoryProcessingStatusTypeDef(TypedDict):
    Component: NotRequired[CostCategoryStatusComponentType],  # (1)
    Status: NotRequired[CostCategoryStatusType],  # (2)
  1. See CostCategoryStatusComponentType
  2. See CostCategoryStatusType

CostCategorySplitChargeRuleParameterTypeDef#

# CostCategorySplitChargeRuleParameterTypeDef definition

class CostCategorySplitChargeRuleParameterTypeDef(TypedDict):
    Type: CostCategorySplitChargeRuleParameterTypeType,  # (1)
    Values: Sequence[str],
  1. See CostCategorySplitChargeRuleParameterTypeType

CostCategoryValuesTypeDef#

# CostCategoryValuesTypeDef definition

class CostCategoryValuesTypeDef(TypedDict):
    Key: NotRequired[str],
    Values: NotRequired[Sequence[str]],
    MatchOptions: NotRequired[Sequence[MatchOptionType]],  # (1)
  1. See MatchOptionType

DateIntervalTypeDef#

# DateIntervalTypeDef definition

class DateIntervalTypeDef(TypedDict):
    Start: str,
    End: str,

CoverageCostTypeDef#

# CoverageCostTypeDef definition

class CoverageCostTypeDef(TypedDict):
    OnDemandCost: NotRequired[str],

CoverageHoursTypeDef#

# CoverageHoursTypeDef definition

class CoverageHoursTypeDef(TypedDict):
    OnDemandHours: NotRequired[str],
    ReservedHours: NotRequired[str],
    TotalRunningHours: NotRequired[str],
    CoverageHoursPercentage: NotRequired[str],

CoverageNormalizedUnitsTypeDef#

# CoverageNormalizedUnitsTypeDef definition

class CoverageNormalizedUnitsTypeDef(TypedDict):
    OnDemandNormalizedUnits: NotRequired[str],
    ReservedNormalizedUnits: NotRequired[str],
    TotalRunningNormalizedUnits: NotRequired[str],
    CoverageNormalizedUnitsPercentage: NotRequired[str],

ResourceTagTypeDef#

# ResourceTagTypeDef definition

class ResourceTagTypeDef(TypedDict):
    Key: str,
    Value: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

TagValuesTypeDef#

# TagValuesTypeDef definition

class TagValuesTypeDef(TypedDict):
    Key: NotRequired[str],
    Values: NotRequired[Sequence[str]],
    MatchOptions: NotRequired[Sequence[MatchOptionType]],  # (1)
  1. See MatchOptionType

DeleteAnomalyMonitorRequestRequestTypeDef#

# DeleteAnomalyMonitorRequestRequestTypeDef definition

class DeleteAnomalyMonitorRequestRequestTypeDef(TypedDict):
    MonitorArn: str,

DeleteAnomalySubscriptionRequestRequestTypeDef#

# DeleteAnomalySubscriptionRequestRequestTypeDef definition

class DeleteAnomalySubscriptionRequestRequestTypeDef(TypedDict):
    SubscriptionArn: str,

DeleteCostCategoryDefinitionRequestRequestTypeDef#

# DeleteCostCategoryDefinitionRequestRequestTypeDef definition

class DeleteCostCategoryDefinitionRequestRequestTypeDef(TypedDict):
    CostCategoryArn: str,

DescribeCostCategoryDefinitionRequestRequestTypeDef#

# DescribeCostCategoryDefinitionRequestRequestTypeDef definition

class DescribeCostCategoryDefinitionRequestRequestTypeDef(TypedDict):
    CostCategoryArn: str,
    EffectiveOn: NotRequired[str],

DimensionValuesTypeDef#

# DimensionValuesTypeDef definition

class DimensionValuesTypeDef(TypedDict):
    Key: NotRequired[DimensionType],  # (1)
    Values: NotRequired[Sequence[str]],
    MatchOptions: NotRequired[Sequence[MatchOptionType]],  # (2)
  1. See DimensionType
  2. See MatchOptionType

DimensionValuesWithAttributesTypeDef#

# DimensionValuesWithAttributesTypeDef definition

class DimensionValuesWithAttributesTypeDef(TypedDict):
    Value: NotRequired[str],
    Attributes: NotRequired[Dict[str, str]],

DiskResourceUtilizationTypeDef#

# DiskResourceUtilizationTypeDef definition

class DiskResourceUtilizationTypeDef(TypedDict):
    DiskReadOpsPerSecond: NotRequired[str],
    DiskWriteOpsPerSecond: NotRequired[str],
    DiskReadBytesPerSecond: NotRequired[str],
    DiskWriteBytesPerSecond: NotRequired[str],

EBSResourceUtilizationTypeDef#

# EBSResourceUtilizationTypeDef definition

class EBSResourceUtilizationTypeDef(TypedDict):
    EbsReadOpsPerSecond: NotRequired[str],
    EbsWriteOpsPerSecond: NotRequired[str],
    EbsReadBytesPerSecond: NotRequired[str],
    EbsWriteBytesPerSecond: NotRequired[str],

EC2InstanceDetailsTypeDef#

# EC2InstanceDetailsTypeDef 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#

# EC2ResourceDetailsTypeDef 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#

# NetworkResourceUtilizationTypeDef definition

class NetworkResourceUtilizationTypeDef(TypedDict):
    NetworkInBytesPerSecond: NotRequired[str],
    NetworkOutBytesPerSecond: NotRequired[str],
    NetworkPacketsInPerSecond: NotRequired[str],
    NetworkPacketsOutPerSecond: NotRequired[str],

EC2SpecificationTypeDef#

# EC2SpecificationTypeDef definition

class EC2SpecificationTypeDef(TypedDict):
    OfferingClass: NotRequired[OfferingClassType],  # (1)
  1. See OfferingClassType

ESInstanceDetailsTypeDef#

# ESInstanceDetailsTypeDef definition

class ESInstanceDetailsTypeDef(TypedDict):
    InstanceClass: NotRequired[str],
    InstanceSize: NotRequired[str],
    Region: NotRequired[str],
    CurrentGeneration: NotRequired[bool],
    SizeFlexEligible: NotRequired[bool],

ElastiCacheInstanceDetailsTypeDef#

# ElastiCacheInstanceDetailsTypeDef definition

class ElastiCacheInstanceDetailsTypeDef(TypedDict):
    Family: NotRequired[str],
    NodeType: NotRequired[str],
    Region: NotRequired[str],
    ProductDescription: NotRequired[str],
    CurrentGeneration: NotRequired[bool],
    SizeFlexEligible: NotRequired[bool],

GenerationSummaryTypeDef#

# GenerationSummaryTypeDef definition

class GenerationSummaryTypeDef(TypedDict):
    RecommendationId: NotRequired[str],
    GenerationStatus: NotRequired[GenerationStatusType],  # (1)
    GenerationStartedTime: NotRequired[str],
    GenerationCompletionTime: NotRequired[str],
    EstimatedCompletionTime: NotRequired[str],
  1. See GenerationStatusType

TotalImpactFilterTypeDef#

# TotalImpactFilterTypeDef definition

class TotalImpactFilterTypeDef(TypedDict):
    NumericOperator: NumericOperatorType,  # (1)
    StartValue: float,
    EndValue: NotRequired[float],
  1. See NumericOperatorType

GetAnomalyMonitorsRequestRequestTypeDef#

# GetAnomalyMonitorsRequestRequestTypeDef definition

class GetAnomalyMonitorsRequestRequestTypeDef(TypedDict):
    MonitorArnList: NotRequired[Sequence[str]],
    NextPageToken: NotRequired[str],
    MaxResults: NotRequired[int],

GetAnomalySubscriptionsRequestRequestTypeDef#

# GetAnomalySubscriptionsRequestRequestTypeDef definition

class GetAnomalySubscriptionsRequestRequestTypeDef(TypedDict):
    SubscriptionArnList: NotRequired[Sequence[str]],
    MonitorArn: NotRequired[str],
    NextPageToken: NotRequired[str],
    MaxResults: NotRequired[int],

GroupDefinitionTypeDef#

# GroupDefinitionTypeDef definition

class GroupDefinitionTypeDef(TypedDict):
    Type: NotRequired[GroupDefinitionTypeType],  # (1)
    Key: NotRequired[str],
  1. See GroupDefinitionTypeType

SortDefinitionTypeDef#

# SortDefinitionTypeDef definition

class SortDefinitionTypeDef(TypedDict):
    Key: str,
    SortOrder: NotRequired[SortOrderType],  # (1)
  1. See SortOrderType

MetricValueTypeDef#

# MetricValueTypeDef definition

class MetricValueTypeDef(TypedDict):
    Amount: NotRequired[str],
    Unit: NotRequired[str],

ReservationPurchaseRecommendationMetadataTypeDef#

# ReservationPurchaseRecommendationMetadataTypeDef definition

class ReservationPurchaseRecommendationMetadataTypeDef(TypedDict):
    RecommendationId: NotRequired[str],
    GenerationTimestamp: NotRequired[str],

ReservationAggregatesTypeDef#

# ReservationAggregatesTypeDef 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#

# RightsizingRecommendationConfigurationTypeDef definition

class RightsizingRecommendationConfigurationTypeDef(TypedDict):
    RecommendationTarget: RecommendationTargetType,  # (1)
    BenefitsConsidered: bool,
  1. See RecommendationTargetType

RightsizingRecommendationMetadataTypeDef#

# RightsizingRecommendationMetadataTypeDef definition

class RightsizingRecommendationMetadataTypeDef(TypedDict):
    RecommendationId: NotRequired[str],
    GenerationTimestamp: NotRequired[str],
    LookbackPeriodInDays: NotRequired[LookbackPeriodInDaysType],  # (1)
    AdditionalMetadata: NotRequired[str],
  1. See LookbackPeriodInDaysType

RightsizingRecommendationSummaryTypeDef#

# RightsizingRecommendationSummaryTypeDef definition

class RightsizingRecommendationSummaryTypeDef(TypedDict):
    TotalRecommendationCount: NotRequired[str],
    EstimatedTotalMonthlySavingsAmount: NotRequired[str],
    SavingsCurrencyCode: NotRequired[str],
    SavingsPercentage: NotRequired[str],

GetSavingsPlanPurchaseRecommendationDetailsRequestRequestTypeDef#

# GetSavingsPlanPurchaseRecommendationDetailsRequestRequestTypeDef definition

class GetSavingsPlanPurchaseRecommendationDetailsRequestRequestTypeDef(TypedDict):
    RecommendationDetailId: str,

GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef#

# GetSavingsPlansPurchaseRecommendationRequestRequestTypeDef 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)
  1. See SupportedSavingsPlansTypeType
  2. See TermInYearsType
  3. See PaymentOptionType
  4. See LookbackPeriodInDaysType
  5. See AccountScopeType
  6. See ExpressionTypeDef

SavingsPlansPurchaseRecommendationMetadataTypeDef#

# SavingsPlansPurchaseRecommendationMetadataTypeDef definition

class SavingsPlansPurchaseRecommendationMetadataTypeDef(TypedDict):
    RecommendationId: NotRequired[str],
    GenerationTimestamp: NotRequired[str],
    AdditionalMetadata: NotRequired[str],

MemoryDBInstanceDetailsTypeDef#

# MemoryDBInstanceDetailsTypeDef definition

class MemoryDBInstanceDetailsTypeDef(TypedDict):
    Family: NotRequired[str],
    NodeType: NotRequired[str],
    Region: NotRequired[str],
    CurrentGeneration: NotRequired[bool],
    SizeFlexEligible: NotRequired[bool],

RDSInstanceDetailsTypeDef#

# RDSInstanceDetailsTypeDef 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#

# RedshiftInstanceDetailsTypeDef definition

class RedshiftInstanceDetailsTypeDef(TypedDict):
    Family: NotRequired[str],
    NodeType: NotRequired[str],
    Region: NotRequired[str],
    CurrentGeneration: NotRequired[bool],
    SizeFlexEligible: NotRequired[bool],

ListCostAllocationTagsRequestRequestTypeDef#

# ListCostAllocationTagsRequestRequestTypeDef definition

class ListCostAllocationTagsRequestRequestTypeDef(TypedDict):
    Status: NotRequired[CostAllocationTagStatusType],  # (1)
    TagKeys: NotRequired[Sequence[str]],
    Type: NotRequired[CostAllocationTagTypeType],  # (2)
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
  1. See CostAllocationTagStatusType
  2. See CostAllocationTagTypeType

ListCostCategoryDefinitionsRequestRequestTypeDef#

# ListCostCategoryDefinitionsRequestRequestTypeDef definition

class ListCostCategoryDefinitionsRequestRequestTypeDef(TypedDict):
    EffectiveOn: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef#

# ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef definition

class ListSavingsPlansPurchaseRecommendationGenerationRequestRequestTypeDef(TypedDict):
    GenerationStatus: NotRequired[GenerationStatusType],  # (1)
    RecommendationIds: NotRequired[Sequence[str]],
    PageSize: NotRequired[int],
    NextPageToken: NotRequired[str],
  1. See GenerationStatusType

ListTagsForResourceRequestRequestTypeDef#

# ListTagsForResourceRequestRequestTypeDef definition

class ListTagsForResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,

ProvideAnomalyFeedbackRequestRequestTypeDef#

# ProvideAnomalyFeedbackRequestRequestTypeDef definition

class ProvideAnomalyFeedbackRequestRequestTypeDef(TypedDict):
    AnomalyId: str,
    Feedback: AnomalyFeedbackTypeType,  # (1)
  1. See AnomalyFeedbackTypeType

RecommendationDetailHourlyMetricsTypeDef#

# RecommendationDetailHourlyMetricsTypeDef definition

class RecommendationDetailHourlyMetricsTypeDef(TypedDict):
    StartTime: NotRequired[str],
    EstimatedOnDemandCost: NotRequired[str],
    CurrentCoverage: NotRequired[str],
    EstimatedCoverage: NotRequired[str],
    EstimatedNewCommitmentUtilization: NotRequired[str],

ReservationPurchaseRecommendationSummaryTypeDef#

# ReservationPurchaseRecommendationSummaryTypeDef definition

class ReservationPurchaseRecommendationSummaryTypeDef(TypedDict):
    TotalEstimatedMonthlySavingsAmount: NotRequired[str],
    TotalEstimatedMonthlySavingsPercentage: NotRequired[str],
    CurrencyCode: NotRequired[str],

TerminateRecommendationDetailTypeDef#

# TerminateRecommendationDetailTypeDef definition

class TerminateRecommendationDetailTypeDef(TypedDict):
    EstimatedMonthlySavings: NotRequired[str],
    CurrencyCode: NotRequired[str],

SavingsPlansAmortizedCommitmentTypeDef#

# SavingsPlansAmortizedCommitmentTypeDef definition

class SavingsPlansAmortizedCommitmentTypeDef(TypedDict):
    AmortizedRecurringCommitment: NotRequired[str],
    AmortizedUpfrontCommitment: NotRequired[str],
    TotalAmortizedCommitment: NotRequired[str],

SavingsPlansCoverageDataTypeDef#

# SavingsPlansCoverageDataTypeDef definition

class SavingsPlansCoverageDataTypeDef(TypedDict):
    SpendCoveredBySavingsPlans: NotRequired[str],
    OnDemandCost: NotRequired[str],
    TotalCost: NotRequired[str],
    CoveragePercentage: NotRequired[str],

SavingsPlansDetailsTypeDef#

# SavingsPlansDetailsTypeDef definition

class SavingsPlansDetailsTypeDef(TypedDict):
    Region: NotRequired[str],
    InstanceFamily: NotRequired[str],
    OfferingId: NotRequired[str],

SavingsPlansPurchaseRecommendationSummaryTypeDef#

# SavingsPlansPurchaseRecommendationSummaryTypeDef 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#

# SavingsPlansSavingsTypeDef definition

class SavingsPlansSavingsTypeDef(TypedDict):
    NetSavings: NotRequired[str],
    OnDemandCostEquivalent: NotRequired[str],

SavingsPlansUtilizationTypeDef#

# SavingsPlansUtilizationTypeDef definition

class SavingsPlansUtilizationTypeDef(TypedDict):
    TotalCommitment: NotRequired[str],
    UsedCommitment: NotRequired[str],
    UnusedCommitment: NotRequired[str],
    UtilizationPercentage: NotRequired[str],

UntagResourceRequestRequestTypeDef#

# UntagResourceRequestRequestTypeDef definition

class UntagResourceRequestRequestTypeDef(TypedDict):
    ResourceArn: str,
    ResourceTagKeys: Sequence[str],

UpdateAnomalyMonitorRequestRequestTypeDef#

# UpdateAnomalyMonitorRequestRequestTypeDef definition

class UpdateAnomalyMonitorRequestRequestTypeDef(TypedDict):
    MonitorArn: str,
    MonitorName: NotRequired[str],

UpdateCostAllocationTagsStatusErrorTypeDef#

# UpdateCostAllocationTagsStatusErrorTypeDef definition

class UpdateCostAllocationTagsStatusErrorTypeDef(TypedDict):
    TagKey: NotRequired[str],
    Code: NotRequired[str],
    Message: NotRequired[str],

AnomalySubscriptionTypeDef#

# AnomalySubscriptionTypeDef 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)
  1. See SubscriberTypeDef
  2. See AnomalySubscriptionFrequencyType
  3. See ExpressionTypeDef

UpdateAnomalySubscriptionRequestRequestTypeDef#

# UpdateAnomalySubscriptionRequestRequestTypeDef 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)
  1. See AnomalySubscriptionFrequencyType
  2. See SubscriberTypeDef
  3. See ExpressionTypeDef

AnomalyTypeDef#

# AnomalyTypeDef 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)
  1. See