createProvisioningClaim method

Future<CreateProvisioningClaimResponse> createProvisioningClaim({
  1. required String templateName,
})

Creates a provisioning claim.

Requires permission to access the CreateProvisioningClaim action.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw UnauthorizedException.

Parameter templateName : The name of the provisioning template to use.

Implementation

Future<CreateProvisioningClaimResponse> createProvisioningClaim({
  required String templateName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri:
        '/provisioning-templates/${Uri.encodeComponent(templateName)}/provisioning-claim',
    exceptionFnMap: _exceptionFns,
  );
  return CreateProvisioningClaimResponse.fromJson(response);
}