updateApplication method

Future<UpdateApplicationResponse> updateApplication({
  1. required String applicationId,
  2. String? author,
  3. String? description,
  4. String? homePageUrl,
  5. List<String>? labels,
  6. String? readmeBody,
  7. String? readmeUrl,
})

Updates the specified application.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException.

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Parameter author : The name of the author publishing the app.

Minimum length=1. Maximum length=127.

Pattern "^a-z0-9?$";

Parameter description : The description of the application.

Minimum length=1. Maximum length=256

Parameter homePageUrl : A URL with more information about the application, for example the location of your GitHub repository for the application.

Parameter labels : Labels to improve discovery of apps in search results.

Minimum length=1. Maximum length=127. Maximum number of labels: 10

Pattern: "^a-zA-Z0-9+\-_:\/@+$";

Parameter readmeBody : A text readme file in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

Parameter readmeUrl : A link to the readme file in Markdown language that contains a more detailed description of the application and how it works.

Maximum size 5 MB

Implementation

Future<UpdateApplicationResponse> updateApplication({
  required String applicationId,
  String? author,
  String? description,
  String? homePageUrl,
  List<String>? labels,
  String? readmeBody,
  String? readmeUrl,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  final $payload = <String, dynamic>{
    if (author != null) 'author': author,
    if (description != null) 'description': description,
    if (homePageUrl != null) 'homePageUrl': homePageUrl,
    if (labels != null) 'labels': labels,
    if (readmeBody != null) 'readmeBody': readmeBody,
    if (readmeUrl != null) 'readmeUrl': readmeUrl,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/applications/${Uri.encodeComponent(applicationId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateApplicationResponse.fromJson(response);
}