updateJobTemplate method
- required String name,
- AccelerationSettings? accelerationSettings,
- String? category,
- String? description,
- List<
HopDestination> ? hopDestinations, - int? priority,
- String? queue,
- JobTemplateSettings? settings,
- StatusUpdateInterval? statusUpdateInterval,
Modify one of your existing job templates.
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw NotFoundException. May throw TooManyRequestsException. May throw ConflictException.
Parameter name
:
The name of the job template you are modifying
Parameter accelerationSettings
:
Accelerated transcoding can significantly speed up jobs with long,
visually complex content. Outputs that use this feature incur pro-tier
pricing. For information about feature limitations, see the AWS Elemental
MediaConvert User Guide.
Parameter category
:
The new category for the job template, if you are changing it.
Parameter description
:
The new description for the job template, if you are changing it.
Parameter hopDestinations
:
Optional list of hop destinations.
Parameter priority
:
Specify the relative priority for this job. In any given queue, the
service begins processing the job with the highest value first. When more
than one job has the same priority, the service begins processing the job
that you submitted first. If you don't specify a priority, the service
uses the default value 0.
Parameter queue
:
The new queue for the job template, if you are changing it.
Parameter settings
:
JobTemplateSettings contains all the transcode settings saved in the
template that will be applied to jobs created from it.
Parameter statusUpdateInterval
:
Specify how often MediaConvert sends STATUS_UPDATE events to Amazon
CloudWatch Events. Set the interval, in seconds, between status updates.
MediaConvert sends an update at this interval from the time the service
begins processing your job to the time it completes the transcode or
encounters an error.
Implementation
Future<UpdateJobTemplateResponse> updateJobTemplate({
required String name,
AccelerationSettings? accelerationSettings,
String? category,
String? description,
List<HopDestination>? hopDestinations,
int? priority,
String? queue,
JobTemplateSettings? settings,
StatusUpdateInterval? statusUpdateInterval,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateNumRange(
'priority',
priority,
-50,
50,
);
final $payload = <String, dynamic>{
if (accelerationSettings != null)
'accelerationSettings': accelerationSettings,
if (category != null) 'category': category,
if (description != null) 'description': description,
if (hopDestinations != null) 'hopDestinations': hopDestinations,
if (priority != null) 'priority': priority,
if (queue != null) 'queue': queue,
if (settings != null) 'settings': settings,
if (statusUpdateInterval != null)
'statusUpdateInterval': statusUpdateInterval.toValue(),
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/2017-08-29/jobTemplates/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return UpdateJobTemplateResponse.fromJson(response);
}