generateChangeSet method
Future<GenerateChangeSetResponse>
generateChangeSet({
- String? appId,
- OutputFormat? changesetFormat,
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.
May throw UnauthorizedOperationException. May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw InternalError. May throw OperationNotPermittedException.
Parameter appId
:
The ID of the application associated with the change set.
Parameter changesetFormat
:
The format for the change set.
Implementation
Future<GenerateChangeSetResponse> generateChangeSet({
String? appId,
OutputFormat? changesetFormat,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSServerMigrationService_V2016_10_24.GenerateChangeSet'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (appId != null) 'appId': appId,
if (changesetFormat != null)
'changesetFormat': changesetFormat.toValue(),
},
);
return GenerateChangeSetResponse.fromJson(jsonResponse.body);
}