deleteApp method
Deletes the specified application. Optionally deletes the launched stack associated with the application and all AWS SMS replication jobs for servers in the application.
May throw UnauthorizedOperationException. May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw InternalError. May throw OperationNotPermittedException.
Parameter appId
:
The ID of the application.
Parameter forceStopAppReplication
:
Indicates whether to stop all replication jobs corresponding to the
servers in the application while deleting the application.
Parameter forceTerminateApp
:
Indicates whether to terminate the stack corresponding to the application
while deleting the application.
Implementation
Future<void> deleteApp({
String? appId,
bool? forceStopAppReplication,
bool? forceTerminateApp,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSServerMigrationService_V2016_10_24.DeleteApp'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (appId != null) 'appId': appId,
if (forceStopAppReplication != null)
'forceStopAppReplication': forceStopAppReplication,
if (forceTerminateApp != null) 'forceTerminateApp': forceTerminateApp,
},
);
}