Typed dictionaries
Index > SavingsPlans > Typed dictionaries
Auto-generated documentation for SavingsPlans type annotations stubs module mypy-boto3-savingsplans.
CreateSavingsPlanRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import CreateSavingsPlanRequestRequestTypeDef
def get_value() -> CreateSavingsPlanRequestRequestTypeDef:
return {
"savingsPlanOfferingId": ...,
"commitment": ...,
}
Definition
class CreateSavingsPlanRequestRequestTypeDef(TypedDict):
savingsPlanOfferingId: str,
commitment: str,
upfrontPaymentAmount: NotRequired[str],
purchaseTime: NotRequired[Union[datetime, str]],
clientToken: NotRequired[str],
tags: NotRequired[Mapping[str, str]],
ResponseMetadataTypeDef
Usage Example
from mypy_boto3_savingsplans.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,
DeleteQueuedSavingsPlanRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import DeleteQueuedSavingsPlanRequestRequestTypeDef
def get_value() -> DeleteQueuedSavingsPlanRequestRequestTypeDef:
return {
"savingsPlanId": ...,
}
SavingsPlanRateFilterTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanRateFilterTypeDef
def get_value() -> SavingsPlanRateFilterTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanRateFilterTypeDef(TypedDict):
name: NotRequired[SavingsPlanRateFilterNameType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanOfferingRateFilterElementTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingRateFilterElementTypeDef
def get_value() -> SavingsPlanOfferingRateFilterElementTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanOfferingRateFilterElementTypeDef(TypedDict):
name: NotRequired[SavingsPlanRateFilterAttributeType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanOfferingFilterElementTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingFilterElementTypeDef
def get_value() -> SavingsPlanOfferingFilterElementTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanOfferingFilterElementTypeDef(TypedDict):
name: NotRequired[SavingsPlanOfferingFilterAttributeType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanFilterTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanFilterTypeDef
def get_value() -> SavingsPlanFilterTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanFilterTypeDef(TypedDict):
name: NotRequired[SavingsPlansFilterNameType], # (1)
values: NotRequired[Sequence[str]],
SavingsPlanTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanTypeDef
def get_value() -> SavingsPlanTypeDef:
return {
"offeringId": ...,
}
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]],
- See SavingsPlanStateType
- See SavingsPlanTypeType
- See SavingsPlanPaymentOptionType
- See SavingsPlanProductTypeType
- See CurrencyCodeType
ListTagsForResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import ListTagsForResourceRequestRequestTypeDef
def get_value() -> ListTagsForResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
}
ParentSavingsPlanOfferingTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import ParentSavingsPlanOfferingTypeDef
def get_value() -> ParentSavingsPlanOfferingTypeDef:
return {
"offeringId": ...,
}
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],
SavingsPlanOfferingPropertyTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingPropertyTypeDef
def get_value() -> SavingsPlanOfferingPropertyTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanOfferingPropertyTypeDef(TypedDict):
name: NotRequired[SavingsPlanOfferingPropertyKeyType], # (1)
value: NotRequired[str],
SavingsPlanOfferingRatePropertyTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingRatePropertyTypeDef
def get_value() -> SavingsPlanOfferingRatePropertyTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanOfferingRatePropertyTypeDef(TypedDict):
name: NotRequired[str],
value: NotRequired[str],
SavingsPlanRatePropertyTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanRatePropertyTypeDef
def get_value() -> SavingsPlanRatePropertyTypeDef:
return {
"name": ...,
}
Definition
class SavingsPlanRatePropertyTypeDef(TypedDict):
name: NotRequired[SavingsPlanRatePropertyKeyType], # (1)
value: NotRequired[str],
TagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import TagResourceRequestRequestTypeDef
def get_value() -> TagResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
"tags": ...,
}
Definition
class TagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tags: Mapping[str, str],
UntagResourceRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import UntagResourceRequestRequestTypeDef
def get_value() -> UntagResourceRequestRequestTypeDef:
return {
"resourceArn": ...,
"tagKeys": ...,
}
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
resourceArn: str,
tagKeys: Sequence[str],
CreateSavingsPlanResponseTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import CreateSavingsPlanResponseTypeDef
def get_value() -> CreateSavingsPlanResponseTypeDef:
return {
"savingsPlanId": ...,
"ResponseMetadata": ...,
}
Definition
class CreateSavingsPlanResponseTypeDef(TypedDict):
savingsPlanId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListTagsForResourceResponseTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
return {
"tags": ...,
"ResponseMetadata": ...,
}
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DescribeSavingsPlanRatesRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlanRatesRequestRequestTypeDef
def get_value() -> DescribeSavingsPlanRatesRequestRequestTypeDef:
return {
"savingsPlanId": ...,
}
Definition
class DescribeSavingsPlanRatesRequestRequestTypeDef(TypedDict):
savingsPlanId: str,
filters: NotRequired[Sequence[SavingsPlanRateFilterTypeDef]], # (1)
nextToken: NotRequired[str],
maxResults: NotRequired[int],
DescribeSavingsPlansOfferingRatesRequestRequestTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansOfferingRatesRequestRequestTypeDef
def get_value() -> DescribeSavingsPlansOfferingRatesRequestRequestTypeDef:
return {
"savingsPlanOfferingIds": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansOfferingsRequestRequestTypeDef
def get_value() -> DescribeSavingsPlansOfferingsRequestRequestTypeDef:
return {
"offeringIds": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansRequestRequestTypeDef
def get_value() -> DescribeSavingsPlansRequestRequestTypeDef:
return {
"savingsPlanArns": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansResponseTypeDef
def get_value() -> DescribeSavingsPlansResponseTypeDef:
return {
"savingsPlans": ...,
"nextToken": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeSavingsPlansResponseTypeDef(TypedDict):
savingsPlans: List[SavingsPlanTypeDef], # (1)
nextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
SavingsPlanOfferingTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingTypeDef
def get_value() -> SavingsPlanOfferingTypeDef:
return {
"offeringId": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanOfferingRateTypeDef
def get_value() -> SavingsPlanOfferingRateTypeDef:
return {
"savingsPlanOffering": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import SavingsPlanRateTypeDef
def get_value() -> SavingsPlanRateTypeDef:
return {
"rate": ...,
}
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
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansOfferingsResponseTypeDef
def get_value() -> DescribeSavingsPlansOfferingsResponseTypeDef:
return {
"searchResults": ...,
"nextToken": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeSavingsPlansOfferingsResponseTypeDef(TypedDict):
searchResults: List[SavingsPlanOfferingTypeDef], # (1)
nextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeSavingsPlansOfferingRatesResponseTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlansOfferingRatesResponseTypeDef
def get_value() -> DescribeSavingsPlansOfferingRatesResponseTypeDef:
return {
"searchResults": ...,
"nextToken": ...,
"ResponseMetadata": ...,
}
Definition
class DescribeSavingsPlansOfferingRatesResponseTypeDef(TypedDict):
searchResults: List[SavingsPlanOfferingRateTypeDef], # (1)
nextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
DescribeSavingsPlanRatesResponseTypeDef
Usage Example
from mypy_boto3_savingsplans.type_defs import DescribeSavingsPlanRatesResponseTypeDef
def get_value() -> DescribeSavingsPlanRatesResponseTypeDef:
return {
"savingsPlanId": ...,
"searchResults": ...,
"nextToken": ...,
"ResponseMetadata": ...,
}