createPackagingGroup method
Creates a new MediaPackage VOD PackagingGroup resource.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw ServiceUnavailableException.
May throw TooManyRequestsException.
May throw UnprocessableEntityException.
Parameter id :
The ID of the PackagingGroup.
Implementation
Future<CreatePackagingGroupResponse> createPackagingGroup({
required String id,
Authorization? authorization,
EgressAccessLogs? egressAccessLogs,
Map<String, String>? tags,
}) async {
final $payload = <String, dynamic>{
'id': id,
if (authorization != null) 'authorization': authorization,
if (egressAccessLogs != null) 'egressAccessLogs': egressAccessLogs,
if (tags != null) 'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/packaging_groups',
exceptionFnMap: _exceptionFns,
);
return CreatePackagingGroupResponse.fromJson(response);
}