registerApplicationRevision method
Registers with CodeDeploy a revision for the specified application.
May throw ApplicationDoesNotExistException.
May throw ApplicationNameRequiredException.
May throw DescriptionTooLongException.
May throw InvalidApplicationNameException.
May throw InvalidRevisionException.
May throw RevisionRequiredException.
Parameter applicationName :
The name of an CodeDeploy application associated with the user or Amazon
Web Services account.
Parameter revision :
Information about the application revision to register, including type and
location.
Parameter description :
A comment about the revision.
Implementation
Future<void> registerApplicationRevision({
required String applicationName,
required RevisionLocation revision,
String? description,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeDeploy_20141006.RegisterApplicationRevision'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'applicationName': applicationName,
'revision': revision,
if (description != null) 'description': description,
},
);
}