describeProvisioningTemplateVersion method
Returns information about a fleet provisioning template version.
May throw InternalFailureException. May throw InvalidRequestException. May throw ThrottlingException. May throw ResourceNotFoundException. May throw UnauthorizedException.
Parameter templateName
:
The template name.
Parameter versionId
:
The fleet provisioning template version ID.
Implementation
Future<DescribeProvisioningTemplateVersionResponse>
describeProvisioningTemplateVersion({
required String templateName,
required int versionId,
}) async {
ArgumentError.checkNotNull(templateName, 'templateName');
_s.validateStringLength(
'templateName',
templateName,
1,
36,
isRequired: true,
);
ArgumentError.checkNotNull(versionId, 'versionId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/provisioning-templates/${Uri.encodeComponent(templateName)}/versions/${Uri.encodeComponent(versionId.toString())}',
exceptionFnMap: _exceptionFns,
);
return DescribeProvisioningTemplateVersionResponse.fromJson(response);
}