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],

SummaryMetricsResultTypeDef#

# SummaryMetricsResultTypeDef definition

class SummaryMetricsResultTypeDef(TypedDict):
    savingsPercentage: NotRequired[str],

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],
    reservedInstancesR