Type definitions#
Index > SavingsPlans > Type definitions
Auto-generated documentation for SavingsPlans type annotations stubs module mypy-boto3-savingsplans.
TimestampTypeDef#
# TimestampTypeDef definition
TimestampTypeDef = Union[
datetime,
str,
]
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
DeleteQueuedSavingsPlanRequestRequestTypeDef#
# DeleteQueuedSavingsPlanRequestRequestTypeDef definition
class DeleteQueuedSavingsPlanRequestRequestTypeDef(TypedDict):
savingsPlanId: str,
SavingsPlanRateFilterTypeDef#
# SavingsPlanRateFilterTypeDef definition
class SavingsPlanRateFilterTypeDef(TypedDict):
name: NotRequired[SavingsPlanRateFilterNameType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanOfferingRateFilterElementTypeDef#
# SavingsPlanOfferingRateFilterElementTypeDef definition
class SavingsPlanOfferingRateFilterElementTypeDef(TypedDict):
name: NotRequired[SavingsPlanRateFilterAttributeType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanOfferingFilterElementTypeDef#
# SavingsPlanOfferingFilterElementTypeDef definition
class SavingsPlanOfferingFilterElementTypeDef(TypedDict):
name: NotRequired[SavingsPlanOfferingFilterAttributeType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanFilterTypeDef#
# SavingsPlanFilterTypeDef definition
class SavingsPlanFilterTypeDef(TypedDict):
name: NotRequired[SavingsPlansFilterNameType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanTypeDef#
# SavingsPlanTypeDef definition
class SavingsPlanTypeDef(TypedDict):
offeringId: NotRequired[str],
savingsPlanId: NotRequired[str],
savingsPlanArn: NotRequired[str],
description: NotRequired[str],
start: NotRequired[str],
end: NotRequired[str],
state: NotRequired[SavingsPlanStateType], # (1)
region: NotRequired[str],
ec2InstanceFamily: NotRequired[str],
savingsPlanType: NotRequired[SavingsPlanTypeType], # (2)
paymentOption: NotRequired[SavingsPlanPaymentOptionType], # (3)
productTypes: NotRequired[List[SavingsPlanProductTypeType]], # (4)
currency: NotRequired[CurrencyCodeType], # (5)
commitment: NotRequired[str],
upfrontPaymentAmount: NotRequired[str],
recurringPaymentAmount: NotRequired[str],
termDurationInSeconds: NotRequired[int],
tags: NotRequired[Dict[str, str]],
returnableUntil: NotRequired[str],
- See SavingsPlanStateType
- See SavingsPlanTypeType
- See SavingsPlanPaymentOptionType
- See SavingsPlanProductTypeType
- See CurrencyCodeType
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
ParentSavingsPlanOfferingTypeDef#
# ParentSavingsPlanOfferingTypeDef definition
class ParentSavingsPlanOfferingTypeDef(TypedDict):
offeringId: NotRequired[str],
paymentOption: NotRequired[SavingsPlanPaymentOptionType], # (1)
planType: NotRequired[SavingsPlanTypeType], # (2)
durationSeconds: NotRequired[int],
currency: NotRequired[CurrencyCodeType], # (3)
planDescription: NotRequired[str],
ReturnSavingsPlanRequestRequestTypeDef#
# ReturnSavingsPlanRequestRequestTypeDef definition
class ReturnSavingsPlanRequestRequestTypeDef(TypedDict):
savingsPlanId: str,
clientToken: NotRequired[str],
SavingsPlanOfferingPropertyTypeDef#
# SavingsPlanOfferingPropertyTypeDef definition
class SavingsPlanOfferingPropertyTypeDef(TypedDict):
name: NotRequired[SavingsPlanOfferingPropertyKeyType], # (1)
value: NotRequired[str],
SavingsPlanOfferingRatePropertyTypeDef#
# SavingsPlanOfferingRatePropertyTypeDef definition
class SavingsPlanOfferingRatePropertyTypeDef(TypedDict):
name: NotRequired[str],
value: NotRequired[str],
SavingsPlanRatePropertyTypeDef#
# SavingsPlanRatePropertyTypeDef definition
class SavingsPlanRatePropertyTypeDef(TypedDict):
name: NotRequired[SavingsPlanRatePropertyKeyType], # (1)
value: NotRequired[str],
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tags: Mapping[str, str],
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tagKeys: Sequence[str],
CreateSavingsPlanRequestRequestTypeDef#
# CreateSavingsPlanRequestRequestTypeDef definition
class CreateSavingsPlanRequestRequestTypeDef(TypedDict):
savingsPlanOfferingId: str,
commitment: str,
upfrontPaymentAmount: NotRequired[str],
purchaseTime: NotRequired[TimestampTypeDef],
clientToken: NotRequired[str],
tags: NotRequired[Mapping[str, str]],
CreateSavingsPlanResponseTypeDef#
# CreateSavingsPlanResponseTypeDef definition
class CreateSavingsPlanResponseTypeDef(TypedDict):
savingsPlanId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ReturnSavingsPlanResponseTypeDef#
# ReturnSavingsPlanResponseTypeDef definition
class ReturnSavingsPlanResponseTypeDef(TypedDict):
savingsPlanId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DescribeSavingsPlanRatesRequestRequestTypeDef#
# DescribeSavingsPlanRatesRequestRequestTypeDef definition
class DescribeSavingsPlanRatesRequestRequestTypeDef(TypedDict):
savingsPlanId: str,
filters: NotRequired[Sequence[SavingsPlanRateFilterTypeDef]], # (1)
nextToken: NotRequired[str],
maxResults: NotRequired[int],
DescribeSavingsPlansOfferingRatesRequestRequestTypeDef#
# DescribeSavingsPlansOfferingRatesRequestRequestTypeDef definition
class DescribeSavingsPlansOfferingRatesRequestRequestTypeDef(TypedDict):
savingsPlanOfferingIds: NotRequired[Sequence[str]],
savingsPlanPaymentOptions: NotRequired[Sequence[SavingsPlanPaymentOptionType]], # (1)
savingsPlanTypes: NotRequired[Sequence[SavingsPlanTypeType]], # (2)
products: NotRequired[Sequence[SavingsPlanProductTypeType]], # (3)
serviceCodes: NotRequired[Sequence[SavingsPlanRateServiceCodeType]], # (4)
usageTypes: NotRequired[Sequence[str]],
operations: NotRequired[Sequence[str]],
filters: NotRequired[Sequence[SavingsPlanOfferingRateFilterElementTypeDef]], # (5)
nextToken: NotRequired[str],
maxResults: NotRequired[int],
- See SavingsPlanPaymentOptionType
- See SavingsPlanTypeType
- See SavingsPlanProductTypeType
- See SavingsPlanRateServiceCodeType
- See SavingsPlanOfferingRateFilterElementTypeDef
DescribeSavingsPlansOfferingsRequestRequestTypeDef#
# DescribeSavingsPlansOfferingsRequestRequestTypeDef definition
class DescribeSavingsPlansOfferingsRequestRequestTypeDef(TypedDict):
offeringIds: NotRequired[Sequence[str]],
paymentOptions: NotRequired[Sequence[SavingsPlanPaymentOptionType]], # (1)
productType: NotRequired[SavingsPlanProductTypeType], # (2)
planTypes: NotRequired[Sequence[SavingsPlanTypeType]], # (3)
durations: NotRequired[Sequence[int]],
currencies: NotRequired[Sequence[CurrencyCodeType]], # (4)
descriptions: NotRequired[Sequence[str]],
serviceCodes: NotRequired[Sequence[str]],
usageTypes: NotRequired[Sequence[str]],
operations: NotRequired[Sequence[str]],
filters: NotRequired[Sequence[SavingsPlanOfferingFilterElementTypeDef]], # (5)
nextToken: NotRequired[str],
maxResults: NotRequired[int],
- See SavingsPlanPaymentOptionType
- See SavingsPlanProductTypeType
- See SavingsPlanTypeType
- See CurrencyCodeType
- See SavingsPlanOfferingFilterElementTypeDef
DescribeSavingsPlansRequestRequestTypeDef#
# DescribeSavingsPlansRequestRequestTypeDef definition
class DescribeSavingsPlansRequestRequestTypeDef(TypedDict):
savingsPlanArns: NotRequired[Sequence[str]],
savingsPlanIds: NotRequired[Sequence[str]],
nextToken: NotRequired[str],
maxResults: NotRequired[int],
states: NotRequired[Sequence[SavingsPlanStateType]], # (1)
filters: NotRequired[Sequence[SavingsPlanFilterTypeDef]], # (2)
DescribeSavingsPlansResponseTypeDef#
# DescribeSavingsPlansResponseTypeDef definition
class DescribeSavingsPlansResponseTypeDef(TypedDict):
savingsPlans: List[SavingsPlanTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
SavingsPlanOfferingTypeDef#
# SavingsPlanOfferingTypeDef definition
class SavingsPlanOfferingTypeDef(TypedDict):
offeringId: NotRequired[str],
productTypes: NotRequired[List[SavingsPlanProductTypeType]], # (1)
planType: NotRequired[SavingsPlanTypeType], # (2)
description: NotRequired[str],
paymentOption: NotRequired[SavingsPlanPaymentOptionType], # (3)
durationSeconds: NotRequired[int],
currency: NotRequired[CurrencyCodeType], # (4)
serviceCode: NotRequired[str],
usageType: NotRequired[str],
operation: NotRequired[str],
properties: NotRequired[List[SavingsPlanOfferingPropertyTypeDef]], # (5)
- See SavingsPlanProductTypeType
- See SavingsPlanTypeType
- See SavingsPlanPaymentOptionType
- See CurrencyCodeType
- See SavingsPlanOfferingPropertyTypeDef
SavingsPlanOfferingRateTypeDef#
# SavingsPlanOfferingRateTypeDef definition
class SavingsPlanOfferingRateTypeDef(TypedDict):
savingsPlanOffering: NotRequired[ParentSavingsPlanOfferingTypeDef], # (1)
rate: NotRequired[str],
unit: NotRequired[SavingsPlanRateUnitType], # (2)
productType: NotRequired[SavingsPlanProductTypeType], # (3)
serviceCode: NotRequired[SavingsPlanRateServiceCodeType], # (4)
usageType: NotRequired[str],
operation: NotRequired[str],
properties: NotRequired[List[SavingsPlanOfferingRatePropertyTypeDef]], # (5)
- See ParentSavingsPlanOfferingTypeDef
- See SavingsPlanRateUnitType
- See SavingsPlanProductTypeType
- See SavingsPlanRateServiceCodeType
- See SavingsPlanOfferingRatePropertyTypeDef
SavingsPlanRateTypeDef#
# SavingsPlanRateTypeDef definition
class SavingsPlanRateTypeDef(TypedDict):
rate: NotRequired[str],
currency: NotRequired[CurrencyCodeType], # (1)
unit: NotRequired[SavingsPlanRateUnitType], # (2)
productType: NotRequired[SavingsPlanProductTypeType], # (3)
serviceCode: NotRequired[SavingsPlanRateServiceCodeType], # (4)
usageType: NotRequired[str],
operation: NotRequired[str],
properties: NotRequired[List[SavingsPlanRatePropertyTypeDef]], # (5)
- See CurrencyCodeType
- See SavingsPlanRateUnitType
- See SavingsPlanProductTypeType
- See SavingsPlanRateServiceCodeType
- See SavingsPlanRatePropertyTypeDef
DescribeSavingsPlansOfferingsResponseTypeDef#
# DescribeSavingsPlansOfferingsResponseTypeDef definition
class DescribeSavingsPlansOfferingsResponseTypeDef(TypedDict):
searchResults: List[SavingsPlanOfferingTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeSavingsPlansOfferingRatesResponseTypeDef#
# DescribeSavingsPlansOfferingRatesResponseTypeDef definition
class DescribeSavingsPlansOfferingRatesResponseTypeDef(TypedDict):
searchResults: List[SavingsPlanOfferingRateTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],
DescribeSavingsPlanRatesResponseTypeDef#
# DescribeSavingsPlanRatesResponseTypeDef definition
class DescribeSavingsPlanRatesResponseTypeDef(TypedDict):
savingsPlanId: str,
searchResults: List[SavingsPlanRateTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
nextToken: NotRequired[str],