updateAppVersionAppComponent method

Future<UpdateAppVersionAppComponentResponse> updateAppVersionAppComponent({
  1. required String appArn,
  2. required String id,
  3. Map<String, List<String>>? additionalInfo,
  4. String? name,
  5. String? type,
})

Updates an existing Application Component in the Resilience Hub application.

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

Parameter appArn : Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.

Parameter id : Identifier of the Application Component.

Parameter additionalInfo : Currently, there is no supported additional information for Application Components.

Parameter name : Name of the Application Component.

Parameter type : Type of Application Component. For more information about the types of Application Component, see Grouping resources in an AppComponent.

Implementation

Future<UpdateAppVersionAppComponentResponse> updateAppVersionAppComponent({
  required String appArn,
  required String id,
  Map<String, List<String>>? additionalInfo,
  String? name,
  String? type,
}) async {
  final $payload = <String, dynamic>{
    'appArn': appArn,
    'id': id,
    if (additionalInfo != null) 'additionalInfo': additionalInfo,
    if (name != null) 'name': name,
    if (type != null) 'type': type,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/update-app-version-app-component',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAppVersionAppComponentResponse.fromJson(response);
}