Skip to content

Add Literal type hint for DBSnapshotTypeDef["SnapshotType"], and others #359

@DeflateAwning

Description

@DeflateAwning

Describe your idea
Currently SnapshotType, as related to RDS backups, used in a variety of places, is annotated as SnapshotType: NotRequired[str]. It would be better if it was annotated as follows:

SnapshotType_t = Literal[
    "automated",  # Daily backups from last week in RDS.
    "manual",  # Manual snapshots created by users, e.g., right before deleting a database.
    "shared",
    "public",
    "awsbackup",  # Weekly backups from AWS Backup.
]

The list of valid values is here: https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DescribeDBSnapshots.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions