updateInput method

Future<UpdateInputResponse> updateInput({
  1. required String inputId,
  2. List<InputDestinationRequest>? destinations,
  3. List<InputDeviceRequest>? inputDevices,
  4. List<String>? inputSecurityGroups,
  5. List<MediaConnectFlowRequest>? mediaConnectFlows,
  6. String? name,
  7. String? roleArn,
  8. List<InputSourceRequest>? sources,
})

Updates an input.

May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw ConflictException.

Parameter inputId : Unique ID of the input.

Parameter destinations : Destination settings for PUSH type inputs.

Parameter inputDevices : Settings for the devices.

Parameter inputSecurityGroups : A list of security groups referenced by IDs to attach to the input.

Parameter mediaConnectFlows : A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.

Parameter name : Name of the input.

Parameter roleArn : The Amazon Resource Name (ARN) of the role this input assumes during and after creation.

Parameter sources : The source URLs for a PULL-type input. Every PULL type input needs exactly two source URLs for redundancy. Only specify sources for PULL type Inputs. Leave Destinations empty.

Implementation

Future<UpdateInputResponse> updateInput({
  required String inputId,
  List<InputDestinationRequest>? destinations,
  List<InputDeviceRequest>? inputDevices,
  List<String>? inputSecurityGroups,
  List<MediaConnectFlowRequest>? mediaConnectFlows,
  String? name,
  String? roleArn,
  List<InputSourceRequest>? sources,
}) async {
  ArgumentError.checkNotNull(inputId, 'inputId');
  final $payload = <String, dynamic>{
    if (destinations != null) 'destinations': destinations,
    if (inputDevices != null) 'inputDevices': inputDevices,
    if (inputSecurityGroups != null)
      'inputSecurityGroups': inputSecurityGroups,
    if (mediaConnectFlows != null) 'mediaConnectFlows': mediaConnectFlows,
    if (name != null) 'name': name,
    if (roleArn != null) 'roleArn': roleArn,
    if (sources != null) 'sources': sources,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/prod/inputs/${Uri.encodeComponent(inputId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateInputResponse.fromJson(response);
}