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
new EngineModel(name: string, args?: EngineModelArgs, opts?: CustomResourceOptions);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:
- Default
Version EngineModel Default Version Args 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.
- Online
Prediction boolConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- Online
Prediction boolLogging 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 EngineModel Default Version 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.
- Online
Prediction boolConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- Online
Prediction boolLogging 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 EngineModel Default Version 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.
- online
Prediction booleanConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- online
Prediction booleanLogging 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[EngineModel Default Version] 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_ boolconsole_ logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- online_
prediction_ boollogging 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:
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): EngineModelstatic 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:
- Default
Version EngineModel Default Version Args 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.
- Online
Prediction boolConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- Online
Prediction boolLogging 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 EngineModel Default Version 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.
- Online
Prediction boolConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- Online
Prediction boolLogging 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 EngineModel Default Version 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.
- online
Prediction booleanConsole Logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- online
Prediction booleanLogging 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[EngineModel Default Version] 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_ boolconsole_ logging If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
- online_
prediction_ boollogging 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.