updateDependency method

Future<UpdateDependencyResponse> updateDependency({
  1. required String dependencyId,
  2. required String serviceArn,
  3. String? comment,
  4. DependencyCriticality? criticality,
})

Updates a dependency classification.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter dependencyId : The identifier of the dependency to update.

Parameter comment : A comment about the dependency.

Parameter criticality : The updated criticality level of the dependency.

Implementation

Future<UpdateDependencyResponse> updateDependency({
  required String dependencyId,
  required String serviceArn,
  String? comment,
  DependencyCriticality? criticality,
}) async {
  final $payload = <String, dynamic>{
    'dependencyId': dependencyId,
    'serviceArn': serviceArn,
    if (comment != null) 'comment': comment,
    if (criticality != null) 'criticality': criticality.value,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/v2/update-dependency',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateDependencyResponse.fromJson(response);
}