EngineModel

Represents a machine learning solution.

A model can have multiple versions, each of which is a deployed, trained model ready to receive prediction requests. The model itself is just a container.

Create a EngineModel Resource

def EngineModel(resource_name, opts=None, default_version=None, description=None, labels=None, name=None, online_prediction_console_logging=None, online_prediction_logging=None, project=None, regions=None, __props__=None);
func NewEngineModel(ctx *Context, name string, args *EngineModelArgs, opts ...ResourceOption) (*EngineModel, error)
public EngineModel(string name, EngineModelArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args EngineModelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EngineModelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EngineModelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

EngineModel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The EngineModel resource accepts the following input properties:

DefaultVersion EngineModelDefaultVersionArgs

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

Description string

The description specified for the model when it was created.

Labels Dictionary<string, string>

One or more labels that you can add, to organize your models.

Name string

The name specified for the version when it was created.

OnlinePredictionConsoleLogging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

OnlinePredictionLogging bool

If true, online prediction access logs are sent to StackDriver Logging.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

DefaultVersion EngineModelDefaultVersion

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

Description string

The description specified for the model when it was created.

Labels map[string]string

One or more labels that you can add, to organize your models.

Name string

The name specified for the version when it was created.

OnlinePredictionConsoleLogging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

OnlinePredictionLogging bool

If true, online prediction access logs are sent to StackDriver Logging.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

defaultVersion EngineModelDefaultVersion

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

description string

The description specified for the model when it was created.

labels {[key: string]: string}

One or more labels that you can add, to organize your models.

name string

The name specified for the version when it was created.

onlinePredictionConsoleLogging boolean

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

onlinePredictionLogging boolean

If true, online prediction access logs are sent to StackDriver Logging.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

default_version Dict[EngineModelDefaultVersion]

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

description str

The description specified for the model when it was created.

labels Dict[str, str]

One or more labels that you can add, to organize your models.

name str

The name specified for the version when it was created.

online_prediction_console_logging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

online_prediction_logging bool

If true, online prediction access logs are sent to StackDriver Logging.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

regions str

The list of regions where the model is going to be deployed. Currently only one region per model is supported

Outputs

All input properties are implicitly available as output properties. Additionally, the EngineModel resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing EngineModel Resource

Get an existing EngineModel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: EngineModelState, opts?: CustomResourceOptions): EngineModel
static get(resource_name, id, opts=None, default_version=None, description=None, labels=None, name=None, online_prediction_console_logging=None, online_prediction_logging=None, project=None, regions=None, __props__=None);
func GetEngineModel(ctx *Context, name string, id IDInput, state *EngineModelState, opts ...ResourceOption) (*EngineModel, error)
public static EngineModel Get(string name, Input<string> id, EngineModelState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

DefaultVersion EngineModelDefaultVersionArgs

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

Description string

The description specified for the model when it was created.

Labels Dictionary<string, string>

One or more labels that you can add, to organize your models.

Name string

The name specified for the version when it was created.

OnlinePredictionConsoleLogging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

OnlinePredictionLogging bool

If true, online prediction access logs are sent to StackDriver Logging.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

DefaultVersion EngineModelDefaultVersion

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

Description string

The description specified for the model when it was created.

Labels map[string]string

One or more labels that you can add, to organize your models.

Name string

The name specified for the version when it was created.

OnlinePredictionConsoleLogging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

OnlinePredictionLogging bool

If true, online prediction access logs are sent to StackDriver Logging.

Project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

defaultVersion EngineModelDefaultVersion

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

description string

The description specified for the model when it was created.

labels {[key: string]: string}

One or more labels that you can add, to organize your models.

name string

The name specified for the version when it was created.

onlinePredictionConsoleLogging boolean

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

onlinePredictionLogging boolean

If true, online prediction access logs are sent to StackDriver Logging.

project string

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

regions string

The list of regions where the model is going to be deployed. Currently only one region per model is supported

default_version Dict[EngineModelDefaultVersion]

The default version of the model. This version will be used to handle prediction requests that do not specify a version. Structure is documented below.

description str

The description specified for the model when it was created.

labels Dict[str, str]

One or more labels that you can add, to organize your models.

name str

The name specified for the version when it was created.

online_prediction_console_logging bool

If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging

online_prediction_logging bool

If true, online prediction access logs are sent to StackDriver Logging.

project str

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

regions str

The list of regions where the model is going to be deployed. Currently only one region per model is supported

Supporting Types

EngineModelDefaultVersion

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

Name string

The name specified for the version when it was created.

Name string

The name specified for the version when it was created.

name string

The name specified for the version when it was created.

name str

The name specified for the version when it was created.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.