updateCloudExadataInfrastructure method

Future<UpdateCloudExadataInfrastructureOutput> updateCloudExadataInfrastructure({
  1. required String cloudExadataInfrastructureId,
  2. MaintenanceWindow? maintenanceWindow,
})

Updates the properties of an Exadata infrastructure resource.

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

Parameter cloudExadataInfrastructureId : The unique identifier of the Exadata infrastructure to update.

Implementation

Future<UpdateCloudExadataInfrastructureOutput>
    updateCloudExadataInfrastructure({
  required String cloudExadataInfrastructureId,
  MaintenanceWindow? maintenanceWindow,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'Odb.UpdateCloudExadataInfrastructure'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'cloudExadataInfrastructureId': cloudExadataInfrastructureId,
      if (maintenanceWindow != null) 'maintenanceWindow': maintenanceWindow,
    },
  );

  return UpdateCloudExadataInfrastructureOutput.fromJson(jsonResponse.body);
}