AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a new custom model in Amazon Bedrock. After the model is active, you can use it for inference.

To use the model for inference, you must purchase Provisioned Throughput for it. You can't use On-demand inference with these custom models. For more information about Provisioned Throughput, see Provisioned Throughput.

The model appears in ListCustomModels with a customizationType of imported. To track the status of the new model, you use the GetCustomModel API operation. The model can be in the following states:

Related APIs

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateCustomModelAsync.

Namespace: Amazon.Bedrock
Assembly: AWSSDK.Bedrock.dll
Version: 3.x.y.z

Syntax

C#
public abstract CreateCustomModelResponse CreateCustomModel(
         CreateCustomModelRequest request
)

Parameters

request
Type: Amazon.Bedrock.Model.CreateCustomModelRequest

Container for the necessary parameters to execute the CreateCustomModel service method.

Return Value


The response from the CreateCustomModel service method, as returned by Bedrock.

Exceptions

ExceptionCondition
AccessDeniedException The request is denied because of missing access permissions.
ConflictException Error occurred because of a conflict while performing an operation.
InternalServerException An internal server error occurred. Retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
TooManyTagsException The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
ValidationException Input validation failed. Check your request parameters and retry the request.

Examples

Successful CreateCustomModel API call


var client = new AmazonBedrockClient();
var response = client.BatchDeleteEvaluationJob(new BatchDeleteEvaluationJobRequest 
{
    JobIdentifiers = new List<string> {
        "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/12rnxmplqv0v",
        "arn:aws:bedrock:us-east-2:123456789012:evaluation-job/rispxmpl12rn"
    }
});

List<BatchDeleteEvaluationJobError> errors = response.Errors;
List<BatchDeleteEvaluationJobItem> evaluationJobs = response.EvaluationJobs;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also