Typed dictionaries
Auto-generated documentation for DLM type annotations stubs module types-aiobotocore-dlm.
ResponseMetadataTypeDef
Usage Example
from types_aiobotocore_dlm.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,
CreateRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CreateRuleTypeDef
def get_value() -> CreateRuleTypeDef:
return {
"Location": ...,
}
Definition
class CreateRuleTypeDef(TypedDict):
Location: NotRequired[LocationValuesType], # (1)
Interval: NotRequired[int],
IntervalUnit: NotRequired[IntervalUnitValuesType], # (2)
Times: NotRequired[Sequence[str]],
CronExpression: NotRequired[str],
CrossRegionCopyRetainRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CrossRegionCopyRetainRuleTypeDef
def get_value() -> CrossRegionCopyRetainRuleTypeDef:
return {
"Interval": ...,
}
Definition
class CrossRegionCopyRetainRuleTypeDef(TypedDict):
Interval: NotRequired[int],
IntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
EncryptionConfigurationTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import EncryptionConfigurationTypeDef
def get_value() -> EncryptionConfigurationTypeDef:
return {
"Encrypted": ...,
}
Definition
class EncryptionConfigurationTypeDef(TypedDict):
Encrypted: bool,
CmkArn: NotRequired[str],
CrossRegionCopyDeprecateRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CrossRegionCopyDeprecateRuleTypeDef
def get_value() -> CrossRegionCopyDeprecateRuleTypeDef:
return {
"Interval": ...,
}
Definition
class CrossRegionCopyDeprecateRuleTypeDef(TypedDict):
Interval: NotRequired[int],
IntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
DeleteLifecyclePolicyRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import DeleteLifecyclePolicyRequestRequestTypeDef
def get_value() -> DeleteLifecyclePolicyRequestRequestTypeDef:
return {
"PolicyId": ...,
}
DeprecateRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import DeprecateRuleTypeDef
def get_value() -> DeprecateRuleTypeDef:
return {
"Count": ...,
}
Definition
class DeprecateRuleTypeDef(TypedDict):
Count: NotRequired[int],
Interval: NotRequired[int],
IntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
EventParametersTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import EventParametersTypeDef
def get_value() -> EventParametersTypeDef:
return {
"EventType": ...,
"SnapshotOwner": ...,
"DescriptionRegex": ...,
}
Definition
class EventParametersTypeDef(TypedDict):
EventType: EventTypeValuesType, # (1)
SnapshotOwner: Sequence[str],
DescriptionRegex: str,
FastRestoreRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import FastRestoreRuleTypeDef
def get_value() -> FastRestoreRuleTypeDef:
return {
"AvailabilityZones": ...,
}
Definition
class FastRestoreRuleTypeDef(TypedDict):
AvailabilityZones: Sequence[str],
Count: NotRequired[int],
Interval: NotRequired[int],
IntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
GetLifecyclePoliciesRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import GetLifecyclePoliciesRequestRequestTypeDef
def get_value() -> GetLifecyclePoliciesRequestRequestTypeDef:
return {
"PolicyIds": ...,
}
Definition
class GetLifecyclePoliciesRequestRequestTypeDef(TypedDict):
PolicyIds: NotRequired[Sequence[str]],
State: NotRequired[GettablePolicyStateValuesType], # (1)
ResourceTypes: NotRequired[Sequence[ResourceTypeValuesType]], # (2)
TargetTags: NotRequired[Sequence[str]],
TagsToAdd: NotRequired[Sequence[str]],
LifecyclePolicySummaryTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import LifecyclePolicySummaryTypeDef
def get_value() -> LifecyclePolicySummaryTypeDef:
return {
"PolicyId": ...,
}
Definition
class LifecyclePolicySummaryTypeDef(TypedDict):
PolicyId: NotRequired[str],
Description: NotRequired[str],
State: NotRequired[GettablePolicyStateValuesType], # (1)
Tags: NotRequired[Dict[str, str]],
PolicyType: NotRequired[PolicyTypeValuesType], # (2)
GetLifecyclePolicyRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import GetLifecyclePolicyRequestRequestTypeDef
def get_value() -> GetLifecyclePolicyRequestRequestTypeDef:
return {
"PolicyId": ...,
}
ListTagsForResourceRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ListTagsForResourceRequestRequestTypeDef
def get_value() -> ListTagsForResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
}
TagTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import TagTypeDef
def get_value() -> TagTypeDef:
return {
"Key": ...,
"Value": ...,
}
RetainRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import RetainRuleTypeDef
def get_value() -> RetainRuleTypeDef:
return {
"Count": ...,
}
Definition
class RetainRuleTypeDef(TypedDict):
Count: NotRequired[int],
Interval: NotRequired[int],
IntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
ShareRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ShareRuleTypeDef
def get_value() -> ShareRuleTypeDef:
return {
"TargetAccounts": ...,
}
Definition
class ShareRuleTypeDef(TypedDict):
TargetAccounts: Sequence[str],
UnshareInterval: NotRequired[int],
UnshareIntervalUnit: NotRequired[RetentionIntervalUnitValuesType], # (1)
TagResourceRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.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 types_aiobotocore_dlm.type_defs import UntagResourceRequestRequestTypeDef
def get_value() -> UntagResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
"TagKeys": ...,
}
Definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
TagKeys: Sequence[str],
CreateLifecyclePolicyResponseTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CreateLifecyclePolicyResponseTypeDef
def get_value() -> CreateLifecyclePolicyResponseTypeDef:
return {
"PolicyId": ...,
"ResponseMetadata": ...,
}
Definition
class CreateLifecyclePolicyResponseTypeDef(TypedDict):
PolicyId: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListTagsForResourceResponseTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
return {
"Tags": ...,
"ResponseMetadata": ...,
}
Definition
class ListTagsForResourceResponseTypeDef(TypedDict):
Tags: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CrossRegionCopyActionTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CrossRegionCopyActionTypeDef
def get_value() -> CrossRegionCopyActionTypeDef:
return {
"Target": ...,
"EncryptionConfiguration": ...,
}
Definition
class CrossRegionCopyActionTypeDef(TypedDict):
Target: str,
EncryptionConfiguration: EncryptionConfigurationTypeDef, # (1)
RetainRule: NotRequired[CrossRegionCopyRetainRuleTypeDef], # (2)
CrossRegionCopyRuleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CrossRegionCopyRuleTypeDef
def get_value() -> CrossRegionCopyRuleTypeDef:
return {
"Encrypted": ...,
}
Definition
class CrossRegionCopyRuleTypeDef(TypedDict):
Encrypted: bool,
TargetRegion: NotRequired[str],
Target: NotRequired[str],
CmkArn: NotRequired[str],
CopyTags: NotRequired[bool],
RetainRule: NotRequired[CrossRegionCopyRetainRuleTypeDef], # (1)
DeprecateRule: NotRequired[CrossRegionCopyDeprecateRuleTypeDef], # (2)
EventSourceTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import EventSourceTypeDef
def get_value() -> EventSourceTypeDef:
return {
"Type": ...,
}
Definition
class EventSourceTypeDef(TypedDict):
Type: EventSourceValuesType, # (1)
Parameters: NotRequired[EventParametersTypeDef], # (2)
GetLifecyclePoliciesResponseTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import GetLifecyclePoliciesResponseTypeDef
def get_value() -> GetLifecyclePoliciesResponseTypeDef:
return {
"Policies": ...,
"ResponseMetadata": ...,
}
Definition
class GetLifecyclePoliciesResponseTypeDef(TypedDict):
Policies: List[LifecyclePolicySummaryTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ParametersTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ParametersTypeDef
def get_value() -> ParametersTypeDef:
return {
"ExcludeBootVolume": ...,
}
Definition
class ParametersTypeDef(TypedDict):
ExcludeBootVolume: NotRequired[bool],
NoReboot: NotRequired[bool],
ExcludeDataVolumeTags: NotRequired[Sequence[TagTypeDef]], # (1)
- See TagTypeDef
ActionTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ActionTypeDef
def get_value() -> ActionTypeDef:
return {
"Name": ...,
"CrossRegionCopy": ...,
}
Definition
class ActionTypeDef(TypedDict):
Name: str,
CrossRegionCopy: Sequence[CrossRegionCopyActionTypeDef], # (1)
ScheduleTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import ScheduleTypeDef
def get_value() -> ScheduleTypeDef:
return {
"Name": ...,
}
Definition
class ScheduleTypeDef(TypedDict):
Name: NotRequired[str],
CopyTags: NotRequired[bool],
TagsToAdd: NotRequired[Sequence[TagTypeDef]], # (1)
VariableTags: NotRequired[Sequence[TagTypeDef]], # (1)
CreateRule: NotRequired[CreateRuleTypeDef], # (3)
RetainRule: NotRequired[RetainRuleTypeDef], # (4)
FastRestoreRule: NotRequired[FastRestoreRuleTypeDef], # (5)
CrossRegionCopyRules: NotRequired[Sequence[CrossRegionCopyRuleTypeDef]], # (6)
ShareRules: NotRequired[Sequence[ShareRuleTypeDef]], # (7)
DeprecateRule: NotRequired[DeprecateRuleTypeDef], # (8)
- See TagTypeDef
- See TagTypeDef
- See CreateRuleTypeDef
- See RetainRuleTypeDef
- See FastRestoreRuleTypeDef
- See CrossRegionCopyRuleTypeDef
- See ShareRuleTypeDef
- See DeprecateRuleTypeDef
PolicyDetailsTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import PolicyDetailsTypeDef
def get_value() -> PolicyDetailsTypeDef:
return {
"PolicyType": ...,
}
Definition
class PolicyDetailsTypeDef(TypedDict):
PolicyType: NotRequired[PolicyTypeValuesType], # (1)
ResourceTypes: NotRequired[Sequence[ResourceTypeValuesType]], # (2)
ResourceLocations: NotRequired[Sequence[ResourceLocationValuesType]], # (3)
TargetTags: NotRequired[Sequence[TagTypeDef]], # (4)
Schedules: NotRequired[Sequence[ScheduleTypeDef]], # (5)
Parameters: NotRequired[ParametersTypeDef], # (6)
EventSource: NotRequired[EventSourceTypeDef], # (7)
Actions: NotRequired[Sequence[ActionTypeDef]], # (8)
- See PolicyTypeValuesType
- See ResourceTypeValuesType
- See ResourceLocationValuesType
- See TagTypeDef
- See ScheduleTypeDef
- See ParametersTypeDef
- See EventSourceTypeDef
- See ActionTypeDef
CreateLifecyclePolicyRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import CreateLifecyclePolicyRequestRequestTypeDef
def get_value() -> CreateLifecyclePolicyRequestRequestTypeDef:
return {
"ExecutionRoleArn": ...,
"Description": ...,
"State": ...,
"PolicyDetails": ...,
}
Definition
class CreateLifecyclePolicyRequestRequestTypeDef(TypedDict):
ExecutionRoleArn: str,
Description: str,
State: SettablePolicyStateValuesType, # (1)
PolicyDetails: PolicyDetailsTypeDef, # (2)
Tags: NotRequired[Mapping[str, str]],
LifecyclePolicyTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import LifecyclePolicyTypeDef
def get_value() -> LifecyclePolicyTypeDef:
return {
"PolicyId": ...,
}
Definition
class LifecyclePolicyTypeDef(TypedDict):
PolicyId: NotRequired[str],
Description: NotRequired[str],
State: NotRequired[GettablePolicyStateValuesType], # (1)
StatusMessage: NotRequired[str],
ExecutionRoleArn: NotRequired[str],
DateCreated: NotRequired[datetime],
DateModified: NotRequired[datetime],
PolicyDetails: NotRequired[PolicyDetailsTypeDef], # (2)
Tags: NotRequired[Dict[str, str]],
PolicyArn: NotRequired[str],
UpdateLifecyclePolicyRequestRequestTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import UpdateLifecyclePolicyRequestRequestTypeDef
def get_value() -> UpdateLifecyclePolicyRequestRequestTypeDef:
return {
"PolicyId": ...,
}
Definition
class UpdateLifecyclePolicyRequestRequestTypeDef(TypedDict):
PolicyId: str,
ExecutionRoleArn: NotRequired[str],
State: NotRequired[SettablePolicyStateValuesType], # (1)
Description: NotRequired[str],
PolicyDetails: NotRequired[PolicyDetailsTypeDef], # (2)
GetLifecyclePolicyResponseTypeDef
Usage Example
from types_aiobotocore_dlm.type_defs import GetLifecyclePolicyResponseTypeDef
def get_value() -> GetLifecyclePolicyResponseTypeDef:
return {
"Policy": ...,
"ResponseMetadata": ...,
}