MgnClient#
Auto-generated documentation for Mgn type annotations stubs module mypy-boto3-mgn.
MgnClient#
Type annotations and code completion for boto3.client("mgn")
.
boto3 documentation
# MgnClient usage example
from boto3.session import Session
from mypy_boto3_mgn.client import MgnClient
def get_mgn_client() -> MgnClient:
return Session().client("mgn")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("mgn").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("mgn")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.UninitializedAccountException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_mgn.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
archive_application#
Archive application.
Type annotations and code completion for boto3.client("mgn").archive_application
method.
boto3 documentation
# archive_application method definition
def archive_application(
self,
*,
applicationID: str,
accountID: str = ...,
) -> ApplicationResponseTypeDef: # (1)
...
# archive_application method usage example with argument unpacking
kwargs: ArchiveApplicationRequestRequestTypeDef = { # (1)
"applicationID": ...,
}
parent.archive_application(**kwargs)
archive_wave#
Archive wave.
Type annotations and code completion for boto3.client("mgn").archive_wave
method.
boto3 documentation
# archive_wave method definition
def archive_wave(
self,
*,
waveID: str,
accountID: str = ...,
) -> WaveResponseTypeDef: # (1)
...
# archive_wave method usage example with argument unpacking
kwargs: ArchiveWaveRequestRequestTypeDef = { # (1)
"waveID": ...,
}
parent.archive_wave(**kwargs)
associate_applications#
Associate applications to wave.
Type annotations and code completion for boto3.client("mgn").associate_applications
method.
boto3 documentation
# associate_applications method definition
def associate_applications(
self,
*,
applicationIDs: Sequence[str],
waveID: str,
accountID: str = ...,
) -> Dict[str, Any]:
...
# associate_applications method usage example with argument unpacking
kwargs: AssociateApplicationsRequestRequestTypeDef = { # (1)
"applicationIDs": ...,
"waveID": ...,
}
parent.associate_applications(**kwargs)
associate_source_servers#
Associate source servers to application.
Type annotations and code completion for boto3.client("mgn").associate_source_servers
method.
boto3 documentation
# associate_source_servers method definition
def associate_source_servers(
self,
*,
applicationID: str,
sourceServerIDs: Sequence[str],
accountID: str = ...,
) -> Dict[str, Any]:
...
# associate_source_servers method usage example with argument unpacking
kwargs: AssociateSourceServersRequestRequestTypeDef = { # (1)
"applicationID": ...,
"sourceServe