createProvisioningClaim method
Creates a provisioning claim.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException.
Parameter templateName
:
The name of the provisioning template to use.
Implementation
Future<CreateProvisioningClaimResponse> createProvisioningClaim({
required String templateName,
}) async {
ArgumentError.checkNotNull(templateName, 'templateName');
_s.validateStringLength(
'templateName',
templateName,
1,
36,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/provisioning-templates/${Uri.encodeComponent(templateName)}/provisioning-claim',
exceptionFnMap: _exceptionFns,
);
return CreateProvisioningClaimResponse.fromJson(response);
}