createMetadataTransferJob method

Future<CreateMetadataTransferJobResponse> createMetadataTransferJob({
  1. required DestinationConfiguration destination,
  2. required List<SourceConfiguration> sources,
  3. String? description,
  4. String? metadataTransferJobId,
})

Creates a new metadata transfer job.

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

Parameter destination : The metadata transfer job destination.

Parameter sources : The metadata transfer job sources.

Parameter description : The metadata transfer job description.

Parameter metadataTransferJobId : The metadata transfer job Id.

Implementation

Future<CreateMetadataTransferJobResponse> createMetadataTransferJob({
  required DestinationConfiguration destination,
  required List<SourceConfiguration> sources,
  String? description,
  String? metadataTransferJobId,
}) async {
  final $payload = <String, dynamic>{
    'destination': destination,
    'sources': sources,
    if (description != null) 'description': description,
    if (metadataTransferJobId != null)
      'metadataTransferJobId': metadataTransferJobId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/metadata-transfer-jobs',
    exceptionFnMap: _exceptionFns,
  );
  return CreateMetadataTransferJobResponse.fromJson(response);
}