Skip to content

Type definitions#

Index > MigrationHub > Type definitions

Auto-generated documentation for MigrationHub type annotations stubs module mypy-boto3-mgh.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

ApplicationStateTypeDef#

# ApplicationStateTypeDef definition

class ApplicationStateTypeDef(TypedDict):
    ApplicationId: NotRequired[str],
    ApplicationStatus: NotRequired[ApplicationStatusType],  # (1)
    LastUpdatedTime: NotRequired[datetime],
  1. See ApplicationStatusType

CreatedArtifactTypeDef#

# CreatedArtifactTypeDef definition

class CreatedArtifactTypeDef(TypedDict):
    Name: str,
    Description: NotRequired[str],

DiscoveredResourceTypeDef#

# DiscoveredResourceTypeDef definition

class DiscoveredResourceTypeDef(TypedDict):
    ConfigurationId: str,
    Description: NotRequired[str],

SourceResourceTypeDef#

# SourceResourceTypeDef definition

class SourceResourceTypeDef(TypedDict):
    Name: str,
    Description: NotRequired[str],
    StatusDetail: NotRequired[str],

CreateProgressUpdateStreamRequestRequestTypeDef#

# CreateProgressUpdateStreamRequestRequestTypeDef definition

class CreateProgressUpdateStreamRequestRequestTypeDef(TypedDict):
    ProgressUpdateStreamName: str,
    DryRun: NotRequired[bool],

DeleteProgressUpdateStreamRequestRequestTypeDef#

# DeleteProgressUpdateStreamRequestRequestTypeDef definition

class DeleteProgressUpdateStreamRequestRequestTypeDef(TypedDict):
    ProgressUpdateStreamName: str,
    DryRun: NotRequired[bool],

DescribeApplicationStateRequestRequestTypeDef#

# DescribeApplicationStateRequestRequestTypeDef definition

class DescribeApplicationStateRequestRequestTypeDef(TypedDict):
    ApplicationId: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

DescribeMigrationTaskRequestRequestTypeDef#

# DescribeMigrationTaskRequestRequestTypeDef definition

class DescribeMigrationTaskRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,

DisassociateCreatedArtifactRequestRequestTypeDef#

# DisassociateCreatedArtifactRequestRequestTypeDef definition

class DisassociateCreatedArtifactRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    CreatedArtifactName: str,
    DryRun: NotRequired[bool],

DisassociateDiscoveredResourceRequestRequestTypeDef#

# DisassociateDiscoveredResourceRequestRequestTypeDef definition

class DisassociateDiscoveredResourceRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    ConfigurationId: str,
    DryRun: NotRequired[bool],

DisassociateSourceResourceRequestRequestTypeDef#

# DisassociateSourceResourceRequestRequestTypeDef definition

class DisassociateSourceResourceRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    SourceResourceName: str,
    DryRun: NotRequired[bool],

ImportMigrationTaskRequestRequestTypeDef#

# ImportMigrationTaskRequestRequestTypeDef definition

class ImportMigrationTaskRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    DryRun: NotRequired[bool],

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListApplicationStatesRequestRequestTypeDef#

# ListApplicationStatesRequestRequestTypeDef definition

class ListApplicationStatesRequestRequestTypeDef(TypedDict):
    ApplicationIds: NotRequired[Sequence[str]],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListCreatedArtifactsRequestRequestTypeDef#

# ListCreatedArtifactsRequestRequestTypeDef definition

class ListCreatedArtifactsRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListDiscoveredResourcesRequestRequestTypeDef#

# ListDiscoveredResourcesRequestRequestTypeDef definition

class ListDiscoveredResourcesRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListMigrationTaskUpdatesRequestRequestTypeDef#

# ListMigrationTaskUpdatesRequestRequestTypeDef definition

class ListMigrationTaskUpdatesRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ListMigrationTasksRequestRequestTypeDef#

# ListMigrationTasksRequestRequestTypeDef definition

class ListMigrationTasksRequestRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    ResourceName: NotRequired[str],

MigrationTaskSummaryTypeDef#

# MigrationTaskSummaryTypeDef definition

class MigrationTaskSummaryTypeDef(TypedDict):
    ProgressUpdateStream: NotRequired[str],
    MigrationTaskName: NotRequired[str],
    Status: NotRequired[StatusType],  # (1)
    ProgressPercent: NotRequired[int],
    StatusDetail: NotRequired[str],
    UpdateDateTime: NotRequired[datetime],
  1. See StatusType

ListProgressUpdateStreamsRequestRequestTypeDef#

# ListProgressUpdateStreamsRequestRequestTypeDef definition

class ListProgressUpdateStreamsRequestRequestTypeDef(TypedDict):
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ProgressUpdateStreamSummaryTypeDef#

# ProgressUpdateStreamSummaryTypeDef definition

class ProgressUpdateStreamSummaryTypeDef(TypedDict):
    ProgressUpdateStreamName: NotRequired[str],

ListSourceResourcesRequestRequestTypeDef#

# ListSourceResourcesRequestRequestTypeDef definition

class ListSourceResourcesRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],

ResourceAttributeTypeDef#

# ResourceAttributeTypeDef definition

class ResourceAttributeTypeDef(TypedDict):
    Type: ResourceAttributeTypeType,  # (1)
    Value: str,
  1. See ResourceAttributeTypeType

TaskTypeDef#

# TaskTypeDef definition

class TaskTypeDef(TypedDict):
    Status: StatusType,  # (1)
    StatusDetail: NotRequired[str],
    ProgressPercent: NotRequired[int],
  1. See StatusType

AssociateCreatedArtifactRequestRequestTypeDef#

# AssociateCreatedArtifactRequestRequestTypeDef definition

class AssociateCreatedArtifactRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    CreatedArtifact: CreatedArtifactTypeDef,  # (1)
    DryRun: NotRequired[bool],
  1. See CreatedArtifactTypeDef

AssociateDiscoveredResourceRequestRequestTypeDef#

# AssociateDiscoveredResourceRequestRequestTypeDef definition

class AssociateDiscoveredResourceRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    DiscoveredResource: DiscoveredResourceTypeDef,  # (1)
    DryRun: NotRequired[bool],
  1. See DiscoveredResourceTypeDef

AssociateSourceResourceRequestRequestTypeDef#

# AssociateSourceResourceRequestRequestTypeDef definition

class AssociateSourceResourceRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    SourceResource: SourceResourceTypeDef,  # (1)
    DryRun: NotRequired[bool],
  1. See SourceResourceTypeDef

DescribeApplicationStateResultTypeDef#

# DescribeApplicationStateResultTypeDef definition

class DescribeApplicationStateResultTypeDef(TypedDict):
    ApplicationStatus: ApplicationStatusType,  # (1)
    LastUpdatedTime: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApplicationStatusType
  2. See ResponseMetadataTypeDef

ListApplicationStatesResultTypeDef#

# ListApplicationStatesResultTypeDef definition

class ListApplicationStatesResultTypeDef(TypedDict):
    ApplicationStateList: list[ApplicationStateTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See ApplicationStateTypeDef
  2. See ResponseMetadataTypeDef

ListCreatedArtifactsResultTypeDef#

# ListCreatedArtifactsResultTypeDef definition

class ListCreatedArtifactsResultTypeDef(TypedDict):
    CreatedArtifactList: list[CreatedArtifactTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See CreatedArtifactTypeDef
  2. See ResponseMetadataTypeDef

ListDiscoveredResourcesResultTypeDef#

# ListDiscoveredResourcesResultTypeDef definition

class ListDiscoveredResourcesResultTypeDef(TypedDict):
    DiscoveredResourceList: list[DiscoveredResourceTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See DiscoveredResourceTypeDef
  2. See ResponseMetadataTypeDef

ListSourceResourcesResultTypeDef#

# ListSourceResourcesResultTypeDef definition

class ListSourceResourcesResultTypeDef(TypedDict):
    SourceResourceList: list[SourceResourceTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See SourceResourceTypeDef
  2. See ResponseMetadataTypeDef

ListApplicationStatesRequestPaginateTypeDef#

# ListApplicationStatesRequestPaginateTypeDef definition

class ListApplicationStatesRequestPaginateTypeDef(TypedDict):
    ApplicationIds: NotRequired[Sequence[str]],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListCreatedArtifactsRequestPaginateTypeDef#

# ListCreatedArtifactsRequestPaginateTypeDef definition

class ListCreatedArtifactsRequestPaginateTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListDiscoveredResourcesRequestPaginateTypeDef#

# ListDiscoveredResourcesRequestPaginateTypeDef definition

class ListDiscoveredResourcesRequestPaginateTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListMigrationTaskUpdatesRequestPaginateTypeDef#

# ListMigrationTaskUpdatesRequestPaginateTypeDef definition

class ListMigrationTaskUpdatesRequestPaginateTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListMigrationTasksRequestPaginateTypeDef#

# ListMigrationTasksRequestPaginateTypeDef definition

class ListMigrationTasksRequestPaginateTypeDef(TypedDict):
    ResourceName: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListProgressUpdateStreamsRequestPaginateTypeDef#

# ListProgressUpdateStreamsRequestPaginateTypeDef definition

class ListProgressUpdateStreamsRequestPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListSourceResourcesRequestPaginateTypeDef#

# ListSourceResourcesRequestPaginateTypeDef definition

class ListSourceResourcesRequestPaginateTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListMigrationTasksResultTypeDef#

# ListMigrationTasksResultTypeDef definition

class ListMigrationTasksResultTypeDef(TypedDict):
    MigrationTaskSummaryList: list[MigrationTaskSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See MigrationTaskSummaryTypeDef
  2. See ResponseMetadataTypeDef

ListProgressUpdateStreamsResultTypeDef#

# ListProgressUpdateStreamsResultTypeDef definition

class ListProgressUpdateStreamsResultTypeDef(TypedDict):
    ProgressUpdateStreamSummaryList: list[ProgressUpdateStreamSummaryTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See ProgressUpdateStreamSummaryTypeDef
  2. See ResponseMetadataTypeDef

PutResourceAttributesRequestRequestTypeDef#

# PutResourceAttributesRequestRequestTypeDef definition

class PutResourceAttributesRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    ResourceAttributeList: Sequence[ResourceAttributeTypeDef],  # (1)
    DryRun: NotRequired[bool],
  1. See ResourceAttributeTypeDef

MigrationTaskTypeDef#

# MigrationTaskTypeDef definition

class MigrationTaskTypeDef(TypedDict):
    ProgressUpdateStream: NotRequired[str],
    MigrationTaskName: NotRequired[str],
    Task: NotRequired[TaskTypeDef],  # (1)
    UpdateDateTime: NotRequired[datetime],
    ResourceAttributeList: NotRequired[list[ResourceAttributeTypeDef]],  # (2)
  1. See TaskTypeDef
  2. See ResourceAttributeTypeDef

MigrationTaskUpdateTypeDef#

# MigrationTaskUpdateTypeDef definition

class MigrationTaskUpdateTypeDef(TypedDict):
    UpdateDateTime: NotRequired[datetime],
    UpdateType: NotRequired[UpdateTypeType],  # (1)
    MigrationTaskState: NotRequired[TaskTypeDef],  # (2)
  1. See UpdateTypeType
  2. See TaskTypeDef

NotifyApplicationStateRequestRequestTypeDef#

# NotifyApplicationStateRequestRequestTypeDef definition

class NotifyApplicationStateRequestRequestTypeDef(TypedDict):
    ApplicationId: str,
    Status: ApplicationStatusType,  # (1)
    UpdateDateTime: NotRequired[TimestampTypeDef],
    DryRun: NotRequired[bool],
  1. See ApplicationStatusType

NotifyMigrationTaskStateRequestRequestTypeDef#

# NotifyMigrationTaskStateRequestRequestTypeDef definition

class NotifyMigrationTaskStateRequestRequestTypeDef(TypedDict):
    ProgressUpdateStream: str,
    MigrationTaskName: str,
    Task: TaskTypeDef,  # (1)
    UpdateDateTime: TimestampTypeDef,
    NextUpdateSeconds: int,
    DryRun: NotRequired[bool],
  1. See TaskTypeDef

DescribeMigrationTaskResultTypeDef#

# DescribeMigrationTaskResultTypeDef definition

class DescribeMigrationTaskResultTypeDef(TypedDict):
    MigrationTask: MigrationTaskTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MigrationTaskTypeDef
  2. See ResponseMetadataTypeDef

ListMigrationTaskUpdatesResultTypeDef#

# ListMigrationTaskUpdatesResultTypeDef definition

class ListMigrationTaskUpdatesResultTypeDef(TypedDict):
    MigrationTaskUpdateList: list[MigrationTaskUpdateTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See MigrationTaskUpdateTypeDef
  2. See ResponseMetadataTypeDef