Skip to content

Type definitions#

Index > CostOptimizationHub > Type definitions

Auto-generated documentation for CostOptimizationHub type annotations stubs module mypy-boto3-cost-optimization-hub.

AccountEnrollmentStatusTypeDef#

# AccountEnrollmentStatusTypeDef definition

class AccountEnrollmentStatusTypeDef(TypedDict):
    accountId: NotRequired[str],
    status: NotRequired[EnrollmentStatusType],  # (1)
    lastUpdatedTimestamp: NotRequired[datetime],
    createdTimestamp: NotRequired[datetime],
  1. See EnrollmentStatusType

BlockStoragePerformanceConfigurationTypeDef#

# BlockStoragePerformanceConfigurationTypeDef definition

class BlockStoragePerformanceConfigurationTypeDef(TypedDict):
    iops: NotRequired[float],
    throughput: NotRequired[float],

ComputeConfigurationTypeDef#

# ComputeConfigurationTypeDef definition

class ComputeConfigurationTypeDef(TypedDict):
    vCpu: NotRequired[float],
    memorySizeInMB: NotRequired[int],
    architecture: NotRequired[str],
    platform: NotRequired[str],

ComputeSavingsPlansConfigurationTypeDef#

# ComputeSavingsPlansConfigurationTypeDef definition

class ComputeSavingsPlansConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    hourlyCommitment: NotRequired[str],

DbInstanceConfigurationTypeDef#

# DbInstanceConfigurationTypeDef definition

class DbInstanceConfigurationTypeDef(TypedDict):
    dbInstanceClass: NotRequired[str],

StorageConfigurationTypeDef#

# StorageConfigurationTypeDef definition

class StorageConfigurationTypeDef(TypedDict):
    type: NotRequired[str],
    sizeInGb: NotRequired[float],

InstanceConfigurationTypeDef#

# InstanceConfigurationTypeDef definition

class InstanceConfigurationTypeDef(TypedDict):
    type: NotRequired[str],

Ec2InstanceSavingsPlansConfigurationTypeDef#

# Ec2InstanceSavingsPlansConfigurationTypeDef definition

class Ec2InstanceSavingsPlansConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    hourlyCommitment: NotRequired[str],
    instanceFamily: NotRequired[str],
    savingsPlansRegion: NotRequired[str],

Ec2ReservedInstancesConfigurationTypeDef#

# Ec2ReservedInstancesConfigurationTypeDef definition

class Ec2ReservedInstancesConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    service: NotRequired[str],
    normalizedUnitsToPurchase: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    numberOfInstancesToPurchase: NotRequired[str],
    offeringClass: NotRequired[str],
    instanceFamily: NotRequired[str],
    instanceType: NotRequired[str],
    reservedInstancesRegion: NotRequired[str],
    currentGeneration: NotRequired[str],
    platform: NotRequired[str],
    tenancy: NotRequired[str],
    sizeFlexEligible: NotRequired[bool],
    upfrontCost: NotRequired[str],
    monthlyRecurringCost: NotRequired[str],

ElastiCacheReservedInstancesConfigurationTypeDef#

# ElastiCacheReservedInstancesConfigurationTypeDef definition

class ElastiCacheReservedInstancesConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    service: NotRequired[str],
    normalizedUnitsToPurchase: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    numberOfInstancesToPurchase: NotRequired[str],
    instanceFamily: NotRequired[str],
    instanceType: NotRequired[str],
    reservedInstancesRegion: NotRequired[str],
    currentGeneration: NotRequired[str],
    sizeFlexEligible: NotRequired[bool],
    upfrontCost: NotRequired[str],
    monthlyRecurringCost: NotRequired[str],

EstimatedDiscountsTypeDef#

# EstimatedDiscountsTypeDef definition

class EstimatedDiscountsTypeDef(TypedDict):
    savingsPlansDiscount: NotRequired[float],
    reservedInstancesDiscount: NotRequired[float],
    otherDiscount: NotRequired[float],

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    key: NotRequired[str],
    value: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

GetRecommendationRequestRequestTypeDef#

# GetRecommendationRequestRequestTypeDef definition

class GetRecommendationRequestRequestTypeDef(TypedDict):
    recommendationId: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListEnrollmentStatusesRequestRequestTypeDef#

# ListEnrollmentStatusesRequestRequestTypeDef definition

class ListEnrollmentStatusesRequestRequestTypeDef(TypedDict):
    includeOrganizationInfo: NotRequired[bool],
    accountId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

RecommendationSummaryTypeDef#

# RecommendationSummaryTypeDef definition

class RecommendationSummaryTypeDef(TypedDict):
    group: NotRequired[str],
    estimatedMonthlySavings: NotRequired[float],
    recommendationCount: NotRequired[int],

OrderByTypeDef#

# OrderByTypeDef definition

class OrderByTypeDef(TypedDict):
    dimension: NotRequired[str],
    order: NotRequired[OrderType],  # (1)
  1. See OrderType

OpenSearchReservedInstancesConfigurationTypeDef#

# OpenSearchReservedInstancesConfigurationTypeDef definition

class OpenSearchReservedInstancesConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    service: NotRequired[str],
    normalizedUnitsToPurchase: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    numberOfInstancesToPurchase: NotRequired[str],
    instanceType: NotRequired[str],
    reservedInstancesRegion: NotRequired[str],
    currentGeneration: NotRequired[str],
    sizeFlexEligible: NotRequired[bool],
    upfrontCost: NotRequired[str],
    monthlyRecurringCost: NotRequired[str],

RdsDbInstanceStorageConfigurationTypeDef#

# RdsDbInstanceStorageConfigurationTypeDef definition

class RdsDbInstanceStorageConfigurationTypeDef(TypedDict):
    storageType: NotRequired[str],
    allocatedStorageInGb: NotRequired[float],
    iops: NotRequired[float],
    storageThroughput: NotRequired[float],

RdsReservedInstancesConfigurationTypeDef#

# RdsReservedInstancesConfigurationTypeDef definition

class RdsReservedInstancesConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    service: NotRequired[str],
    normalizedUnitsToPurchase: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    numberOfInstancesToPurchase: NotRequired[str],
    instanceFamily: NotRequired[str],
    instanceType: NotRequired[str],
    reservedInstancesRegion: NotRequired[str],
    sizeFlexEligible: NotRequired[bool],
    currentGeneration: NotRequired[str],
    upfrontCost: NotRequired[str],
    monthlyRecurringCost: NotRequired[str],
    licenseModel: NotRequired[str],
    databaseEdition: NotRequired[str],
    databaseEngine: NotRequired[str],
    deploymentOption: NotRequired[str],

RedshiftReservedInstancesConfigurationTypeDef#

# RedshiftReservedInstancesConfigurationTypeDef definition

class RedshiftReservedInstancesConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    service: NotRequired[str],
    normalizedUnitsToPurchase: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    numberOfInstancesToPurchase: NotRequired[str],
    instanceFamily: NotRequired[str],
    instanceType: NotRequired[str],
    reservedInstancesRegion: NotRequired[str],
    sizeFlexEligible: NotRequired[bool],
    currentGeneration: NotRequired[str],
    upfrontCost: NotRequired[str],
    monthlyRecurringCost: NotRequired[str],

ReservedInstancesPricingTypeDef#

# ReservedInstancesPricingTypeDef definition

class ReservedInstancesPricingTypeDef(TypedDict):
    estimatedOnDemandCost: NotRequired[float],
    monthlyReservationEligibleCost: NotRequired[float],
    savingsPercentage: NotRequired[float],
    estimatedMonthlyAmortizedReservationCost: NotRequired[float],

UsageTypeDef#

# UsageTypeDef definition

class UsageTypeDef(TypedDict):
    usageType: NotRequired[str],
    usageAmount: NotRequired[float],
    operation: NotRequired[str],
    productCode: NotRequired[str],
    unit: NotRequired[str],

SageMakerSavingsPlansConfigurationTypeDef#

# SageMakerSavingsPlansConfigurationTypeDef definition

class SageMakerSavingsPlansConfigurationTypeDef(TypedDict):
    accountScope: NotRequired[str],
    term: NotRequired[str],
    paymentOption: NotRequired[str],
    hourlyCommitment: NotRequired[str],

SavingsPlansPricingTypeDef#

# SavingsPlansPricingTypeDef definition

class SavingsPlansPricingTypeDef(TypedDict):
    monthlySavingsPlansEligibleCost: NotRequired[float],
    estimatedMonthlyCommitment: NotRequired[float],
    savingsPercentage: NotRequired[float],
    estimatedOnDemandCost: NotRequired[float],

UpdateEnrollmentStatusRequestRequestTypeDef#

# UpdateEnrollmentStatusRequestRequestTypeDef definition

class UpdateEnrollmentStatusRequestRequestTypeDef(TypedDict):
    status: EnrollmentStatusType,  # (1)
    includeMemberAccounts: NotRequired[bool],
  1. See EnrollmentStatusType

UpdatePreferencesRequestRequestTypeDef#

# UpdatePreferencesRequestRequestTypeDef definition

class UpdatePreferencesRequestRequestTypeDef(TypedDict):
    savingsEstimationMode: NotRequired[SavingsEstimationModeType],  # (1)
    memberAccountDiscountVisibility: NotRequired[MemberAccountDiscountVisibilityType],  # (2)
  1. See SavingsEstimationModeType
  2. See MemberAccountDiscountVisibilityType

EcsServiceConfigurationTypeDef#

# EcsServiceConfigurationTypeDef definition

class EcsServiceConfigurationTypeDef(TypedDict):
    compute: NotRequired[ComputeConfigurationTypeDef],  # (1)
  1. See ComputeConfigurationTypeDef

LambdaFunctionConfigurationTypeDef#

# LambdaFunctionConfigurationTypeDef definition

class LambdaFunctionConfigurationTypeDef(TypedDict):
    compute: NotRequired[ComputeConfigurationTypeDef],  # (1)
  1. See ComputeConfigurationTypeDef

RdsDbInstanceConfigurationTypeDef#

# RdsDbInstanceConfigurationTypeDef definition

class RdsDbInstanceConfigurationTypeDef(TypedDict):
    instance: NotRequired[DbInstanceConfigurationTypeDef],  # (1)
  1. See DbInstanceConfigurationTypeDef

EbsVolumeConfigurationTypeDef#

# EbsVolumeConfigurationTypeDef definition

class EbsVolumeConfigurationTypeDef(TypedDict):
    storage: NotRequired[StorageConfigurationTypeDef],  # (1)
    performance: NotRequired[BlockStoragePerformanceConfigurationTypeDef],  # (2)
    attachmentState: NotRequired[str],
  1. See StorageConfigurationTypeDef
  2. See BlockStoragePerformanceConfigurationTypeDef

Ec2AutoScalingGroupConfigurationTypeDef#

# Ec2AutoScalingGroupConfigurationTypeDef definition

class Ec2AutoScalingGroupConfigurationTypeDef(TypedDict):
    instance: NotRequired[InstanceConfigurationTypeDef],  # (1)
  1. See InstanceConfigurationTypeDef

Ec2InstanceConfigurationTypeDef#

# Ec2InstanceConfigurationTypeDef definition

class Ec2InstanceConfigurationTypeDef(TypedDict):
    instance: NotRequired[InstanceConfigurationTypeDef],  # (1)
  1. See InstanceConfigurationTypeDef

ResourcePricingTypeDef#

# ResourcePricingTypeDef definition

class ResourcePricingTypeDef(TypedDict):
    estimatedCostBeforeDiscounts: NotRequired[float],
    estimatedNetUnusedAmortizedCommitments: NotRequired[float],
    estimatedDiscounts: NotRequired[EstimatedDiscountsTypeDef],  # (1)
    estimatedCostAfterDiscounts: NotRequired[float],
  1. See EstimatedDiscountsTypeDef

FilterTypeDef#

# FilterTypeDef definition

class FilterTypeDef(TypedDict):
    restartNeeded: NotRequired[bool],
    rollbackPossible: NotRequired[bool],
    implementationEfforts: NotRequired[Sequence[ImplementationEffortType]],  # (1)
    accountIds: NotRequired[Sequence[str]],
    regions: NotRequired[Sequence[str]],
    resourceTypes: NotRequired[Sequence[ResourceTypeType]],  # (2)
    actionTypes: NotRequired[Sequence[ActionTypeType]],  # (3)
    tags: NotRequired[Sequence[TagTypeDef]],  # (4)
    resourceIds: NotRequired[Sequence[str]],
    resourceArns: NotRequired[Sequence[str]],
    recommendationIds: NotRequired[Sequence[str]],
  1. See ImplementationEffortType
  2. See ResourceTypeType
  3. See ActionTypeType
  4. See TagTypeDef

RecommendationTypeDef#

# RecommendationTypeDef definition

class RecommendationTypeDef(TypedDict):
    recommendationId: NotRequired[str],
    accountId: NotRequired[str],
    region: NotRequired[str],
    resourceId: NotRequired[str],
    resourceArn: NotRequired[str],
    currentResourceType: NotRequired[str],
    recommendedResourceType: NotRequired[str],
    estimatedMonthlySavings: NotRequired[float],
    estimatedSavingsPercentage: NotRequired[float],
    estimatedMonthlyCost: NotRequired[float],
    currencyCode: NotRequired[str],
    implementationEffort: NotRequired[str],
    restartNeeded: NotRequired[bool],
    actionType: NotRequired[str],
    rollbackPossible: NotRequired[bool],
    currentResourceSummary: NotRequired[str],
    recommendedResourceSummary: NotRequired[str],
    lastRefreshTimestamp: NotRequired[datetime],
    recommendationLookbackPeriodInDays: NotRequired[int],
    source: NotRequired[SourceType],  # (1)
    tags: NotRequired[List[TagTypeDef]],  # (2)
  1. See SourceType
  2. See TagTypeDef

GetPreferencesResponseTypeDef#

# GetPreferencesResponseTypeDef definition

class GetPreferencesResponseTypeDef(TypedDict):
    savingsEstimationMode: SavingsEstimationModeType,  # (1)
    memberAccountDiscountVisibility: MemberAccountDiscountVisibilityType,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See SavingsEstimationModeType
  2. See MemberAccountDiscountVisibilityType
  3. See ResponseMetadataTypeDef

ListEnrollmentStatusesResponseTypeDef#

# ListEnrollmentStatusesResponseTypeDef definition

class ListEnrollmentStatusesResponseTypeDef(TypedDict):
    items: List[AccountEnrollmentStatusTypeDef],  # (1)
    includeMemberAccounts: bool,
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See AccountEnrollmentStatusTypeDef
  2. See ResponseMetadataTypeDef

UpdateEnrollmentStatusResponseTypeDef#

# UpdateEnrollmentStatusResponseTypeDef definition

class UpdateEnrollmentStatusResponseTypeDef(TypedDict):
    status: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdatePreferencesResponseTypeDef#

# UpdatePreferencesResponseTypeDef definition

class UpdatePreferencesResponseTypeDef(TypedDict):
    savingsEstimationMode: SavingsEstimationModeType,  # (1)
    memberAccountDiscountVisibility: MemberAccountDiscountVisibilityType,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See SavingsEstimationModeType
  2. See MemberAccountDiscountVisibilityType
  3. See ResponseMetadataTypeDef

ListEnrollmentStatusesRequestListEnrollmentStatusesPaginateTypeDef#

# ListEnrollmentStatusesRequestListEnrollmentStatusesPaginateTypeDef definition

class ListEnrollmentStatusesRequestListEnrollmentStatusesPaginateTypeDef(TypedDict):
    includeOrganizationInfo: NotRequired[bool],
    accountId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListRecommendationSummariesResponseTypeDef#

# ListRecommendationSummariesResponseTypeDef definition

class ListRecommendationSummariesResponseTypeDef(TypedDict):
    estimatedTotalDedupedSavings: float,
    items: List[RecommendationSummaryTypeDef],  # (1)
    groupBy: str,
    currencyCode: str,
    nextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RecommendationSummaryTypeDef
  2. See ResponseMetadataTypeDef

ReservedInstancesCostCalculationTypeDef#

# ReservedInstancesCostCalculationTypeDef definition

class ReservedInstancesCostCalculationTypeDef(TypedDict):
    pricing: NotRequired[ReservedInstancesPricingTypeDef],  # (1)
  1. See ReservedInstancesPricingTypeDef

SavingsPlansCostCalculationTypeDef#

# SavingsPlansCostCalculationTypeDef definition

class SavingsPlansCostCalculationTypeDef(TypedDict):
    pricing: NotRequired[SavingsPlansPricingTypeDef],  # (1)
  1. See SavingsPlansPricingTypeDef

ResourceCostCalculationTypeDef#

# ResourceCostCalculationTypeDef definition

class ResourceCostCalculationTypeDef(TypedDict):
    usages: NotRequired[List[UsageTypeDef]],  # (1)
    pricing: NotRequired[ResourcePricingTypeDef],  # (2)
  1. See UsageTypeDef
  2. See ResourcePricingTypeDef

ListRecommendationSummariesRequestListRecommendationSummariesPaginateTypeDef#

# ListRecommendationSummariesRequestListRecommendationSummariesPaginateTypeDef definition

class ListRecommendationSummariesRequestListRecommendationSummariesPaginateTypeDef(TypedDict):
    groupBy: str,
    filter: NotRequired[FilterTypeDef],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See FilterTypeDef
  2. See PaginatorConfigTypeDef

ListRecommendationSummariesRequestRequestTypeDef#

# ListRecommendationSummariesRequestRequestTypeDef definition

class ListRecommendationSummariesRequestRequestTypeDef(TypedDict):
    groupBy: str,
    filter: NotRequired[FilterTypeDef],  # (1)
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],
  1. See FilterTypeDef

ListRecommendationsRequestListRecommendationsPaginateTypeDef#

# ListRecommendationsRequestListRecommendationsPaginateTypeDef definition

class ListRecommendationsRequestListRecommendationsPaginateTypeDef(TypedDict):
    filter: NotRequired[FilterTypeDef],  # (1)
    orderBy: NotRequired[OrderByTypeDef],  # (2)
    includeAllRecommendations: NotRequired[bool],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See FilterTypeDef
  2. See