SMSClient
Auto-generated documentation for SMS type annotations stubs module types-aiobotocore-sms.
SMSClient
Type annotations and code completion for session.client("sms")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_sms.client import SMSClient
session = Session()
async with session.client("sms") as client:
client: SMSClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("sms").exceptions
structure.
async with session.client("sms") as client:
try:
do_something(client)
except (
client.ClientError,
client.DryRunOperationException,
client.InternalError,
client.InvalidParameterException,
client.MissingRequiredParameterException,
client.NoConnectorsAvailableException,
client.OperationNotPermittedException,
client.ReplicationJobAlreadyExistsException,
client.ReplicationJobNotFoundException,
client.ReplicationRunLimitExceededException,
client.ServerCannotBeReplicatedException,
client.TemporarilyUnavailableException,
client.UnauthorizedOperationException,
) as e:
print(e)
from types_aiobotocore_sms.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("sms").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("sms").close
method.
boto3 documentation
create_app
Creates an application.
Type annotations and code completion for session.client("sms").create_app
method.
boto3 documentation
await def create_app(
self,
*,
name: str = ...,
description: str = ...,
roleName: str = ...,
clientToken: str = ...,
serverGroups: Sequence[ServerGroupTypeDef] = ..., # (1)
tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateAppResponseTypeDef: # (3)
...
- See ServerGroupTypeDef
- See TagTypeDef
- See CreateAppResponseTypeDef
kwargs: CreateAppRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_app(**kwargs)
create_replication_job
Creates a replication job.
Type annotations and code completion for session.client("sms").create_replication_job
method.
boto3 documentation
await def create_replication_job(
self,
*,
serverId: str,
seedReplicationTime: Union[datetime, str],
frequency: int = ...,
runOnce: bool = ...,
licenseType: LicenseTypeType = ..., # (1)
roleName: str = ...,
description: str = ...,
numberOfRecentAmisToKeep: int = ...,
encrypted: bool = ...,
kmsKeyId: str = ...,
) -> CreateReplicationJobResponseTypeDef: # (2)
...
kwargs: CreateReplicationJobRequestRequestTypeDef = { # (1)
"serverId": ...,
"seedReplicationTime": ...,
}
parent.create_replication_job(**kwargs)
delete_app
Deletes the specified application.
Type annotations and code completion for session.client("sms").delete_app
method.
boto3 documentation
await def delete_app(
self,
*,
appId: str = ...,
forceStopAppReplication: bool = ...,
forceTerminateApp: bool = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteAppRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.delete_app(**kwargs)
delete_app_launch_configuration
Deletes the launch configuration for the specified application.
Type annotations and code completion for session.client("sms").delete_app_launch_configuration
method.
boto3 documentation
await def delete_app_launch_configuration(
self,
*,
appId: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteAppLaunchConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.delete_app_launch_configuration(**kwargs)
delete_app_replication_configuration
Deletes the replication configuration for the specified application.
Type annotations and code completion for session.client("sms").delete_app_replication_configuration
method.
boto3 documentation
await def delete_app_replication_configuration(
self,
*,
appId: str = ...,
) -> Dict[str, Any]:
...
kwargs: DeleteAppReplicationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.delete_app_replication_configuration(**kwargs)
delete_app_validation_configuration
Deletes the validation configuration for the specified application.
Type annotations and code completion for session.client("sms").delete_app_validation_configuration
method.
boto3 documentation
await def delete_app_validation_configuration(
self,
*,
appId: str,
) -> Dict[str, Any]:
...
kwargs: DeleteAppValidationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.delete_app_validation_configuration(**kwargs)
delete_replication_job
Deletes the specified replication job.
Type annotations and code completion for session.client("sms").delete_replication_job
method.
boto3 documentation
await def delete_replication_job(
self,
*,
replicationJobId: str,
) -> Dict[str, Any]:
...
kwargs: DeleteReplicationJobRequestRequestTypeDef = { # (1)
"replicationJobId": ...,
}
parent.delete_replication_job(**kwargs)
delete_server_catalog
Deletes all servers from your server catalog.
Type annotations and code completion for session.client("sms").delete_server_catalog
method.
boto3 documentation
disassociate_connector
Disassociates the specified connector from Server Migration Service.
Type annotations and code completion for session.client("sms").disassociate_connector
method.
boto3 documentation
await def disassociate_connector(
self,
*,
connectorId: str,
) -> Dict[str, Any]:
...
kwargs: DisassociateConnectorRequestRequestTypeDef = { # (1)
"connectorId": ...,
}
parent.disassociate_connector(**kwargs)
generate_change_set
Generates a target change set for a currently launched stack and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.
Type annotations and code completion for session.client("sms").generate_change_set
method.
boto3 documentation
await def generate_change_set(
self,
*,
appId: str = ...,
changesetFormat: OutputFormatType = ..., # (1)
) -> GenerateChangeSetResponseTypeDef: # (2)
...
kwargs: GenerateChangeSetRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.generate_change_set(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("sms").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
generate_template
Generates an CloudFormation template based on the current launch configuration and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.
Type annotations and code completion for session.client("sms").generate_template
method.
boto3 documentation
await def generate_template(
self,
*,
appId: str = ...,
templateFormat: OutputFormatType = ..., # (1)
) -> GenerateTemplateResponseTypeDef: # (2)
...
kwargs: GenerateTemplateRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.generate_template(**kwargs)
get_app
Retrieve information about the specified application.
Type annotations and code completion for session.client("sms").get_app
method.
boto3 documentation
await def get_app(
self,
*,
appId: str = ...,
) -> GetAppResponseTypeDef: # (1)
...
kwargs: GetAppRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.get_app(**kwargs)
get_app_launch_configuration
Retrieves the application launch configuration associated with the specified application.
Type annotations and code completion for session.client("sms").get_app_launch_configuration
method.
boto3 documentation
await def get_app_launch_configuration(
self,
*,
appId: str = ...,
) -> GetAppLaunchConfigurationResponseTypeDef: # (1)
...
kwargs: GetAppLaunchConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.get_app_launch_configuration(**kwargs)
get_app_replication_configuration
Retrieves the application replication configuration associated with the specified application.
Type annotations and code completion for session.client("sms").get_app_replication_configuration
method.
boto3 documentation
await def get_app_replication_configuration(
self,
*,
appId: str = ...,
) -> GetAppReplicationConfigurationResponseTypeDef: # (1)
...
kwargs: GetAppReplicationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.get_app_replication_configuration(**kwargs)
get_app_validation_configuration
Retrieves information about a configuration for validating an application.
Type annotations and code completion for session.client("sms").get_app_validation_configuration
method.
boto3 documentation
await def get_app_validation_configuration(
self,
*,
appId: str,
) -> GetAppValidationConfigurationResponseTypeDef: # (1)
...
kwargs: GetAppValidationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.get_app_validation_configuration(**kwargs)
get_app_validation_output
Retrieves output from validating an application.
Type annotations and code completion for session.client("sms").get_app_validation_output
method.
boto3 documentation
await def get_app_validation_output(
self,
*,
appId: str,
) -> GetAppValidationOutputResponseTypeDef: # (1)
...
kwargs: GetAppValidationOutputRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.get_app_validation_output(**kwargs)
get_connectors
Describes the connectors registered with the Server Migration Service.
Type annotations and code completion for session.client("sms").get_connectors
method.
boto3 documentation
await def get_connectors(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> GetConnectorsResponseTypeDef: # (1)
...
kwargs: GetConnectorsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.get_connectors(**kwargs)
get_replication_jobs
Describes the specified replication job or all of your replication jobs.
Type annotations and code completion for session.client("sms").get_replication_jobs
method.
boto3 documentation
await def get_replication_jobs(
self,
*,
replicationJobId: str = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> GetReplicationJobsResponseTypeDef: # (1)
...
kwargs: GetReplicationJobsRequestRequestTypeDef = { # (1)
"replicationJobId": ...,
}
parent.get_replication_jobs(**kwargs)
get_replication_runs
Describes the replication runs for the specified replication job.
Type annotations and code completion for session.client("sms").get_replication_runs
method.
boto3 documentation
await def get_replication_runs(
self,
*,
replicationJobId: str,
nextToken: str = ...,
maxResults: int = ...,
) -> GetReplicationRunsResponseTypeDef: # (1)
...
kwargs: GetReplicationRunsRequestRequestTypeDef = { # (1)
"replicationJobId": ...,
}
parent.get_replication_runs(**kwargs)
get_servers
Describes the servers in your server catalog.
Type annotations and code completion for session.client("sms").get_servers
method.
boto3 documentation
await def get_servers(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
vmServerAddressList: Sequence[VmServerAddressTypeDef] = ..., # (1)
) -> GetServersResponseTypeDef: # (2)
...
kwargs: GetServersRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.get_servers(**kwargs)
import_app_catalog
Allows application import from Migration Hub.
Type annotations and code completion for session.client("sms").import_app_catalog
method.
boto3 documentation
await def import_app_catalog(
self,
*,
roleName: str = ...,
) -> Dict[str, Any]:
...
kwargs: ImportAppCatalogRequestRequestTypeDef = { # (1)
"roleName": ...,
}
parent.import_app_catalog(**kwargs)
import_server_catalog
Gathers a complete list of on-premises servers.
Type annotations and code completion for session.client("sms").import_server_catalog
method.
boto3 documentation
launch_app
Launches the specified application as a stack in CloudFormation.
Type annotations and code completion for session.client("sms").launch_app
method.
boto3 documentation
kwargs: LaunchAppRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.launch_app(**kwargs)
list_apps
Retrieves summaries for all applications.
Type annotations and code completion for session.client("sms").list_apps
method.
boto3 documentation
await def list_apps(
self,
*,
appIds: Sequence[str] = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> ListAppsResponseTypeDef: # (1)
...
kwargs: ListAppsRequestRequestTypeDef = { # (1)
"appIds": ...,
}
parent.list_apps(**kwargs)
notify_app_validation_output
Provides information to Server Migration Service about whether application validation is successful.
Type annotations and code completion for session.client("sms").notify_app_validation_output
method.
boto3 documentation
await def notify_app_validation_output(
self,
*,
appId: str,
notificationContext: NotificationContextTypeDef = ..., # (1)
) -> Dict[str, Any]:
...
kwargs: NotifyAppValidationOutputRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.notify_app_validation_output(**kwargs)
put_app_launch_configuration
Creates or updates the launch configuration for the specified application.
Type annotations and code completion for session.client("sms").put_app_launch_configuration
method.
boto3 documentation
await def put_app_launch_configuration(
self,
*,
appId: str = ...,
roleName: str = ...,
autoLaunch: bool = ...,
serverGroupLaunchConfigurations: Sequence[ServerGroupLaunchConfigurationTypeDef] = ..., # (1)
) -> Dict[str, Any]:
...
kwargs: PutAppLaunchConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.put_app_launch_configuration(**kwargs)
put_app_replication_configuration
Creates or updates the replication configuration for the specified application.
Type annotations and code completion for session.client("sms").put_app_replication_configuration
method.
boto3 documentation
await def put_app_replication_configuration(
self,
*,
appId: str = ...,
serverGroupReplicationConfigurations: Sequence[ServerGroupReplicationConfigurationTypeDef] = ..., # (1)
) -> Dict[str, Any]:
...
kwargs: PutAppReplicationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.put_app_replication_configuration(**kwargs)
put_app_validation_configuration
Creates or updates a validation configuration for the specified application.
Type annotations and code completion for session.client("sms").put_app_validation_configuration
method.
boto3 documentation
await def put_app_validation_configuration(
self,
*,
appId: str,
appValidationConfigurations: Sequence[AppValidationConfigurationTypeDef] = ..., # (1)
serverGroupValidationConfigurations: Sequence[ServerGroupValidationConfigurationTypeDef] = ..., # (2)
) -> Dict[str, Any]:
...
kwargs: PutAppValidationConfigurationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.put_app_validation_configuration(**kwargs)
start_app_replication
Starts replicating the specified application by creating replication jobs for each server in the application.
Type annotations and code completion for session.client("sms").start_app_replication
method.
boto3 documentation
await def start_app_replication(
self,
*,
appId: str = ...,
) -> Dict[str, Any]:
...
kwargs: StartAppReplicationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.start_app_replication(**kwargs)
start_on_demand_app_replication
Starts an on-demand replication run for the specified application.
Type annotations and code completion for session.client("sms").start_on_demand_app_replication
method.
boto3 documentation
await def start_on_demand_app_replication(
self,
*,
appId: str,
description: str = ...,
) -> Dict[str, Any]:
...
kwargs: StartOnDemandAppReplicationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.start_on_demand_app_replication(**kwargs)
start_on_demand_replication_run
Starts an on-demand replication run for the specified replication job.
Type annotations and code completion for session.client("sms").start_on_demand_replication_run
method.
boto3 documentation
await def start_on_demand_replication_run(
self,
*,
replicationJobId: str,
description: str = ...,
) -> StartOnDemandReplicationRunResponseTypeDef: # (1)
...
kwargs: StartOnDemandReplicationRunRequestRequestTypeDef = { # (1)
"replicationJobId": ...,
}
parent.start_on_demand_replication_run(**kwargs)
stop_app_replication
Stops replicating the specified application by deleting the replication job for each server in the application.
Type annotations and code completion for session.client("sms").stop_app_replication
method.
boto3 documentation
await def stop_app_replication(
self,
*,
appId: str = ...,
) -> Dict[str, Any]:
...
kwargs: StopAppReplicationRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.stop_app_replication(**kwargs)
terminate_app
Terminates the stack for the specified application.
Type annotations and code completion for session.client("sms").terminate_app
method.
boto3 documentation
kwargs: TerminateAppRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.terminate_app(**kwargs)
update_app
Updates the specified application.
Type annotations and code completion for session.client("sms").update_app
method.
boto3 documentation
await def update_app(
self,
*,
appId: str = ...,
name: str = ...,
description: str = ...,
roleName: str = ...,
serverGroups: Sequence[ServerGroupTypeDef] = ..., # (1)
tags: Sequence[TagTypeDef] = ..., # (2)
) -> UpdateAppResponseTypeDef: # (3)
...
- See ServerGroupTypeDef
- See TagTypeDef
- See UpdateAppResponseTypeDef
kwargs: UpdateAppRequestRequestTypeDef = { # (1)
"appId": ...,
}
parent.update_app(**kwargs)
update_replication_job
Updates the specified settings for the specified replication job.
Type annotations and code completion for session.client("sms").update_replication_job
method.
boto3 documentation
await def update_replication_job(
self,
*,
replicationJobId: str,
frequency: int = ...,
nextReplicationRunStartTime: Union[datetime, str] = ...,
licenseType: LicenseTypeType = ..., # (1)
roleName: str = ...,
description: str = ...,
numberOfRecentAmisToKeep: int = ...,
encrypted: bool = ...,
kmsKeyId: str = ...,
) -> Dict[str, Any]:
...
- See LicenseTypeType
kwargs: UpdateReplicationJobRequestRequestTypeDef = { # (1)
"replicationJobId": ...,
}
parent.update_replication_job(**kwargs)
__aenter__
Type annotations and code completion for session.client("sms").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("sms").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("sms").get_paginator
method with overloads.
client.get_paginator("get_connectors")
-> GetConnectorsPaginatorclient.get_paginator("get_replication_jobs")
-> GetReplicationJobsPaginatorclient.get_paginator("get_replication_runs")
-> GetReplicationRunsPaginatorclient.get_paginator("get_servers")
-> GetServersPaginatorclient.get_paginator("list_apps")
-> ListAppsPaginator