Module ml

This page documents the language specification for the gcp package. If you're looking for help working with the inputs, outputs, or functions of gcp resources in a Pulumi program, please see the resource documentation for examples and API reference.

Resources

Others

Resources

Resource EngineModel

class EngineModel extends CustomResource

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.

Example Usage - Ml Model Basic

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const defaultEngineModel = new gcp.ml.EngineModel("default", {
    description: "My model",
    regions: "us-central1",
});

Example Usage - Ml Model Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const defaultEngineModel = new gcp.ml.EngineModel("default", {
    description: "My model",
    labels: {
        my_model: "foo",
    },
    onlinePredictionConsoleLogging: true,
    onlinePredictionLogging: true,
    regions: "us-central1",
});

constructor

new EngineModel(name: string, args?: EngineModelArgs, opts?: pulumi.CustomResourceOptions)

Create a EngineModel resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EngineModelState, opts?: pulumi.CustomResourceOptions): EngineModel

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

public static isInstance(obj: any): obj is EngineModel

Returns true if the given object is an instance of EngineModel. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property defaultVersion

public defaultVersion: pulumi.Output<EngineModelDefaultVersion | undefined>;

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.

property description

public description: pulumi.Output<string | undefined>;

The description specified for the model when it was created.

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property labels

public labels: pulumi.Output<{[key: string]: string} | undefined>;

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

property name

public name: pulumi.Output<string>;

The name specified for the version when it was created.

property onlinePredictionConsoleLogging

public onlinePredictionConsoleLogging: pulumi.Output<boolean | undefined>;

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

property onlinePredictionLogging

public onlinePredictionLogging: pulumi.Output<boolean | undefined>;

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

property project

public project: pulumi.Output<string>;

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

property regions

public regions: pulumi.Output<string | undefined>;

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

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

Others

interface EngineModelArgs

interface EngineModelArgs

The set of arguments for constructing a EngineModel resource.

property defaultVersion

defaultVersion?: pulumi.Input<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.

property description

description?: pulumi.Input<string>;

The description specified for the model when it was created.

property labels

labels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

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

property name

name?: pulumi.Input<string>;

The name specified for the version when it was created.

property onlinePredictionConsoleLogging

onlinePredictionConsoleLogging?: pulumi.Input<boolean>;

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

property onlinePredictionLogging

onlinePredictionLogging?: pulumi.Input<boolean>;

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

property project

project?: pulumi.Input<string>;

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

property regions

regions?: pulumi.Input<string>;

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

interface EngineModelState

interface EngineModelState

Input properties used for looking up and filtering EngineModel resources.

property defaultVersion

defaultVersion?: pulumi.Input<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.

property description

description?: pulumi.Input<string>;

The description specified for the model when it was created.

property labels

labels?: pulumi.Input<{[key: string]: pulumi.Input<string>}>;

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

property name

name?: pulumi.Input<string>;

The name specified for the version when it was created.

property onlinePredictionConsoleLogging

onlinePredictionConsoleLogging?: pulumi.Input<boolean>;

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

property onlinePredictionLogging

onlinePredictionLogging?: pulumi.Input<boolean>;

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

property project

project?: pulumi.Input<string>;

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

property regions

regions?: pulumi.Input<string>;

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