tpu

package
v5.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTensorflowVersionsArgs

type GetTensorflowVersionsArgs struct {
	// The project to list versions for. If it
	// is not provided, the provider project is used.
	Project *string `pulumi:"project"`
	// The zone to list versions for. If it
	// is not provided, the provider zone is used.
	Zone *string `pulumi:"zone"`
}

A collection of arguments for invoking getTensorflowVersions.

type GetTensorflowVersionsOutputArgs added in v5.21.0

type GetTensorflowVersionsOutputArgs struct {
	// The project to list versions for. If it
	// is not provided, the provider project is used.
	Project pulumi.StringPtrInput `pulumi:"project"`
	// The zone to list versions for. If it
	// is not provided, the provider zone is used.
	Zone pulumi.StringPtrInput `pulumi:"zone"`
}

A collection of arguments for invoking getTensorflowVersions.

func (GetTensorflowVersionsOutputArgs) ElementType added in v5.21.0

type GetTensorflowVersionsResult

type GetTensorflowVersionsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id      string `pulumi:"id"`
	Project string `pulumi:"project"`
	// The list of TensorFlow versions available for the given project and zone.
	Versions []string `pulumi:"versions"`
	Zone     string   `pulumi:"zone"`
}

A collection of values returned by getTensorflowVersions.

func GetTensorflowVersions

func GetTensorflowVersions(ctx *pulumi.Context, args *GetTensorflowVersionsArgs, opts ...pulumi.InvokeOption) (*GetTensorflowVersionsResult, error)

Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tpu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tpu.GetTensorflowVersions(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Configure Basic TPU Node With Available Version

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tpu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := tpu.GetTensorflowVersions(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = tpu.NewNode(ctx, "tpu", &tpu.NodeArgs{
			Zone:              pulumi.String("us-central1-b"),
			AcceleratorType:   pulumi.String("v3-8"),
			TensorflowVersion: pulumi.String(available.Versions[0]),
			CidrBlock:         pulumi.String("10.2.0.0/29"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTensorflowVersionsResultOutput added in v5.21.0

type GetTensorflowVersionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTensorflowVersions.

func GetTensorflowVersionsOutput added in v5.21.0

func (GetTensorflowVersionsResultOutput) ElementType added in v5.21.0

func (GetTensorflowVersionsResultOutput) Id added in v5.21.0

The provider-assigned unique ID for this managed resource.

func (GetTensorflowVersionsResultOutput) Project added in v5.21.0

func (GetTensorflowVersionsResultOutput) ToGetTensorflowVersionsResultOutput added in v5.21.0

func (o GetTensorflowVersionsResultOutput) ToGetTensorflowVersionsResultOutput() GetTensorflowVersionsResultOutput

func (GetTensorflowVersionsResultOutput) ToGetTensorflowVersionsResultOutputWithContext added in v5.21.0

func (o GetTensorflowVersionsResultOutput) ToGetTensorflowVersionsResultOutputWithContext(ctx context.Context) GetTensorflowVersionsResultOutput

func (GetTensorflowVersionsResultOutput) Versions added in v5.21.0

The list of TensorFlow versions available for the given project and zone.

func (GetTensorflowVersionsResultOutput) Zone added in v5.21.0

type Node

type Node struct {
	pulumi.CustomResourceState

	// The type of hardware accelerators associated with this node.
	AcceleratorType pulumi.StringOutput `pulumi:"acceleratorType"`
	// The CIDR block that the TPU node will use when selecting an IP
	// address. This CIDR block must be a /29 block; the Compute Engine
	// networks API forbids a smaller block, and using a larger block would
	// be wasteful (a node can only consume one IP address).
	// Errors will occur if the CIDR block has already been used for a
	// currently existing TPU node, the CIDR block conflicts with any
	// subnetworks in the user's provided network, or the provided network
	// is peered with another network that is using that CIDR block.
	CidrBlock pulumi.StringOutput `pulumi:"cidrBlock"`
	// The user-supplied description of the TPU. Maximum of 512 characters.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Resource labels to represent user provided metadata.
	Labels pulumi.StringMapOutput `pulumi:"labels"`
	// The immutable name of the TPU.
	Name pulumi.StringOutput `pulumi:"name"`
	// The name of a network to peer the TPU node to. It must be a
	// preexisting Compute Engine network inside of the project on which
	// this API has been activated. If none is provided, "default" will be
	// used.
	Network pulumi.StringOutput `pulumi:"network"`
	// The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the
	// node first reach out to the first (index 0) entry.
	NetworkEndpoints NodeNetworkEndpointArrayOutput `pulumi:"networkEndpoints"`
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringOutput `pulumi:"project"`
	// Sets the scheduling options for this TPU instance.
	// Structure is documented below.
	SchedulingConfig NodeSchedulingConfigPtrOutput `pulumi:"schedulingConfig"`
	// The service account used to run the tensor flow services within the node. To share resources, including Google Cloud
	// Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
	ServiceAccount pulumi.StringOutput `pulumi:"serviceAccount"`
	// The version of Tensorflow running in the Node.
	TensorflowVersion pulumi.StringOutput `pulumi:"tensorflowVersion"`
	// Whether the VPC peering for the node is set up through Service Networking API.
	// The VPC Peering should be set up before provisioning the node. If this field is set,
	// cidrBlock field should not be specified. If the network that you want to peer the
	// TPU Node to is a Shared VPC network, the node must be created with this this field enabled.
	UseServiceNetworking pulumi.BoolPtrOutput `pulumi:"useServiceNetworking"`
	// The GCP location for the TPU. If it is not provided, the provider zone is used.
	Zone pulumi.StringOutput `pulumi:"zone"`
}

A Cloud TPU instance.

To get more information about Node, see:

* [API documentation](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.nodes) * How-to Guides

## Example Usage ### TPU Node Basic

```go package main

import (

"github.com/pulumi/pulumi-gcp/sdk/v5/go/gcp/tpu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		available, err := tpu.GetTensorflowVersions(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = tpu.NewNode(ctx, "tpu", &tpu.NodeArgs{
			Zone:              pulumi.String("us-central1-b"),
			AcceleratorType:   pulumi.String("v3-8"),
			TensorflowVersion: pulumi.String(available.Versions[0]),
			CidrBlock:         pulumi.String("10.2.0.0/29"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Node can be imported using any of these accepted formats

```sh

$ pulumi import gcp:tpu/node:Node default projects/{{project}}/locations/{{zone}}/nodes/{{name}}

```

```sh

$ pulumi import gcp:tpu/node:Node default {{project}}/{{zone}}/{{name}}

```

```sh

$ pulumi import gcp:tpu/node:Node default {{zone}}/{{name}}

```

```sh

$ pulumi import gcp:tpu/node:Node default {{name}}

```

func GetNode

func GetNode(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NodeState, opts ...pulumi.ResourceOption) (*Node, error)

GetNode gets an existing Node resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewNode

func NewNode(ctx *pulumi.Context,
	name string, args *NodeArgs, opts ...pulumi.ResourceOption) (*Node, error)

NewNode registers a new resource with the given unique name, arguments, and options.

func (*Node) ElementType

func (*Node) ElementType() reflect.Type

func (*Node) ToNodeOutput

func (i *Node) ToNodeOutput() NodeOutput

func (*Node) ToNodeOutputWithContext

func (i *Node) ToNodeOutputWithContext(ctx context.Context) NodeOutput

func (*Node) ToNodePtrOutput

func (i *Node) ToNodePtrOutput() NodePtrOutput

func (*Node) ToNodePtrOutputWithContext

func (i *Node) ToNodePtrOutputWithContext(ctx context.Context) NodePtrOutput

type NodeArgs

type NodeArgs struct {
	// The type of hardware accelerators associated with this node.
	AcceleratorType pulumi.StringInput
	// The CIDR block that the TPU node will use when selecting an IP
	// address. This CIDR block must be a /29 block; the Compute Engine
	// networks API forbids a smaller block, and using a larger block would
	// be wasteful (a node can only consume one IP address).
	// Errors will occur if the CIDR block has already been used for a
	// currently existing TPU node, the CIDR block conflicts with any
	// subnetworks in the user's provided network, or the provided network
	// is peered with another network that is using that CIDR block.
	CidrBlock pulumi.StringPtrInput
	// The user-supplied description of the TPU. Maximum of 512 characters.
	Description pulumi.StringPtrInput
	// Resource labels to represent user provided metadata.
	Labels pulumi.StringMapInput
	// The immutable name of the TPU.
	Name pulumi.StringPtrInput
	// The name of a network to peer the TPU node to. It must be a
	// preexisting Compute Engine network inside of the project on which
	// this API has been activated. If none is provided, "default" will be
	// used.
	Network pulumi.StringPtrInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Sets the scheduling options for this TPU instance.
	// Structure is documented below.
	SchedulingConfig NodeSchedulingConfigPtrInput
	// The version of Tensorflow running in the Node.
	TensorflowVersion pulumi.StringInput
	// Whether the VPC peering for the node is set up through Service Networking API.
	// The VPC Peering should be set up before provisioning the node. If this field is set,
	// cidrBlock field should not be specified. If the network that you want to peer the
	// TPU Node to is a Shared VPC network, the node must be created with this this field enabled.
	UseServiceNetworking pulumi.BoolPtrInput
	// The GCP location for the TPU. If it is not provided, the provider zone is used.
	Zone pulumi.StringPtrInput
}

The set of arguments for constructing a Node resource.

func (NodeArgs) ElementType

func (NodeArgs) ElementType() reflect.Type

type NodeArray

type NodeArray []NodeInput

func (NodeArray) ElementType

func (NodeArray) ElementType() reflect.Type

func (NodeArray) ToNodeArrayOutput

func (i NodeArray) ToNodeArrayOutput() NodeArrayOutput

func (NodeArray) ToNodeArrayOutputWithContext

func (i NodeArray) ToNodeArrayOutputWithContext(ctx context.Context) NodeArrayOutput

type NodeArrayInput

type NodeArrayInput interface {
	pulumi.Input

	ToNodeArrayOutput() NodeArrayOutput
	ToNodeArrayOutputWithContext(context.Context) NodeArrayOutput
}

NodeArrayInput is an input type that accepts NodeArray and NodeArrayOutput values. You can construct a concrete instance of `NodeArrayInput` via:

NodeArray{ NodeArgs{...} }

type NodeArrayOutput

type NodeArrayOutput struct{ *pulumi.OutputState }

func (NodeArrayOutput) ElementType

func (NodeArrayOutput) ElementType() reflect.Type

func (NodeArrayOutput) Index

func (NodeArrayOutput) ToNodeArrayOutput

func (o NodeArrayOutput) ToNodeArrayOutput() NodeArrayOutput

func (NodeArrayOutput) ToNodeArrayOutputWithContext

func (o NodeArrayOutput) ToNodeArrayOutputWithContext(ctx context.Context) NodeArrayOutput

type NodeInput

type NodeInput interface {
	pulumi.Input

	ToNodeOutput() NodeOutput
	ToNodeOutputWithContext(ctx context.Context) NodeOutput
}

type NodeMap

type NodeMap map[string]NodeInput

func (NodeMap) ElementType

func (NodeMap) ElementType() reflect.Type

func (NodeMap) ToNodeMapOutput

func (i NodeMap) ToNodeMapOutput() NodeMapOutput

func (NodeMap) ToNodeMapOutputWithContext

func (i NodeMap) ToNodeMapOutputWithContext(ctx context.Context) NodeMapOutput

type NodeMapInput

type NodeMapInput interface {
	pulumi.Input

	ToNodeMapOutput() NodeMapOutput
	ToNodeMapOutputWithContext(context.Context) NodeMapOutput
}

NodeMapInput is an input type that accepts NodeMap and NodeMapOutput values. You can construct a concrete instance of `NodeMapInput` via:

NodeMap{ "key": NodeArgs{...} }

type NodeMapOutput

type NodeMapOutput struct{ *pulumi.OutputState }

func (NodeMapOutput) ElementType

func (NodeMapOutput) ElementType() reflect.Type

func (NodeMapOutput) MapIndex

func (NodeMapOutput) ToNodeMapOutput

func (o NodeMapOutput) ToNodeMapOutput() NodeMapOutput

func (NodeMapOutput) ToNodeMapOutputWithContext

func (o NodeMapOutput) ToNodeMapOutputWithContext(ctx context.Context) NodeMapOutput

type NodeNetworkEndpoint

type NodeNetworkEndpoint struct {
	IpAddress *string `pulumi:"ipAddress"`
	Port      *int    `pulumi:"port"`
}

type NodeNetworkEndpointArgs

type NodeNetworkEndpointArgs struct {
	IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"`
	Port      pulumi.IntPtrInput    `pulumi:"port"`
}

func (NodeNetworkEndpointArgs) ElementType

func (NodeNetworkEndpointArgs) ElementType() reflect.Type

func (NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutput

func (i NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput

func (NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutputWithContext

func (i NodeNetworkEndpointArgs) ToNodeNetworkEndpointOutputWithContext(ctx context.Context) NodeNetworkEndpointOutput

type NodeNetworkEndpointArray

type NodeNetworkEndpointArray []NodeNetworkEndpointInput

func (NodeNetworkEndpointArray) ElementType

func (NodeNetworkEndpointArray) ElementType() reflect.Type

func (NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutput

func (i NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput

func (NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutputWithContext

func (i NodeNetworkEndpointArray) ToNodeNetworkEndpointArrayOutputWithContext(ctx context.Context) NodeNetworkEndpointArrayOutput

type NodeNetworkEndpointArrayInput

type NodeNetworkEndpointArrayInput interface {
	pulumi.Input

	ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput
	ToNodeNetworkEndpointArrayOutputWithContext(context.Context) NodeNetworkEndpointArrayOutput
}

NodeNetworkEndpointArrayInput is an input type that accepts NodeNetworkEndpointArray and NodeNetworkEndpointArrayOutput values. You can construct a concrete instance of `NodeNetworkEndpointArrayInput` via:

NodeNetworkEndpointArray{ NodeNetworkEndpointArgs{...} }

type NodeNetworkEndpointArrayOutput

type NodeNetworkEndpointArrayOutput struct{ *pulumi.OutputState }

func (NodeNetworkEndpointArrayOutput) ElementType

func (NodeNetworkEndpointArrayOutput) Index

func (NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutput

func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutput() NodeNetworkEndpointArrayOutput

func (NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutputWithContext

func (o NodeNetworkEndpointArrayOutput) ToNodeNetworkEndpointArrayOutputWithContext(ctx context.Context) NodeNetworkEndpointArrayOutput

type NodeNetworkEndpointInput

type NodeNetworkEndpointInput interface {
	pulumi.Input

	ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput
	ToNodeNetworkEndpointOutputWithContext(context.Context) NodeNetworkEndpointOutput
}

NodeNetworkEndpointInput is an input type that accepts NodeNetworkEndpointArgs and NodeNetworkEndpointOutput values. You can construct a concrete instance of `NodeNetworkEndpointInput` via:

NodeNetworkEndpointArgs{...}

type NodeNetworkEndpointOutput

type NodeNetworkEndpointOutput struct{ *pulumi.OutputState }

func (NodeNetworkEndpointOutput) ElementType

func (NodeNetworkEndpointOutput) ElementType() reflect.Type

func (NodeNetworkEndpointOutput) IpAddress

func (NodeNetworkEndpointOutput) Port

func (NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutput

func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutput() NodeNetworkEndpointOutput

func (NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutputWithContext

func (o NodeNetworkEndpointOutput) ToNodeNetworkEndpointOutputWithContext(ctx context.Context) NodeNetworkEndpointOutput

type NodeOutput

type NodeOutput struct{ *pulumi.OutputState }

func (NodeOutput) ElementType

func (NodeOutput) ElementType() reflect.Type

func (NodeOutput) ToNodeOutput

func (o NodeOutput) ToNodeOutput() NodeOutput

func (NodeOutput) ToNodeOutputWithContext

func (o NodeOutput) ToNodeOutputWithContext(ctx context.Context) NodeOutput

func (NodeOutput) ToNodePtrOutput

func (o NodeOutput) ToNodePtrOutput() NodePtrOutput

func (NodeOutput) ToNodePtrOutputWithContext

func (o NodeOutput) ToNodePtrOutputWithContext(ctx context.Context) NodePtrOutput

type NodePtrInput

type NodePtrInput interface {
	pulumi.Input

	ToNodePtrOutput() NodePtrOutput
	ToNodePtrOutputWithContext(ctx context.Context) NodePtrOutput
}

type NodePtrOutput

type NodePtrOutput struct{ *pulumi.OutputState }

func (NodePtrOutput) Elem added in v5.21.0

func (o NodePtrOutput) Elem() NodeOutput

func (NodePtrOutput) ElementType

func (NodePtrOutput) ElementType() reflect.Type

func (NodePtrOutput) ToNodePtrOutput

func (o NodePtrOutput) ToNodePtrOutput() NodePtrOutput

func (NodePtrOutput) ToNodePtrOutputWithContext

func (o NodePtrOutput) ToNodePtrOutputWithContext(ctx context.Context) NodePtrOutput

type NodeSchedulingConfig

type NodeSchedulingConfig struct {
	// Defines whether the TPU instance is preemptible.
	Preemptible bool `pulumi:"preemptible"`
}

type NodeSchedulingConfigArgs

type NodeSchedulingConfigArgs struct {
	// Defines whether the TPU instance is preemptible.
	Preemptible pulumi.BoolInput `pulumi:"preemptible"`
}

func (NodeSchedulingConfigArgs) ElementType

func (NodeSchedulingConfigArgs) ElementType() reflect.Type

func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutput

func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput

func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutputWithContext

func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput

func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutput

func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput

func (NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutputWithContext

func (i NodeSchedulingConfigArgs) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput

type NodeSchedulingConfigInput

type NodeSchedulingConfigInput interface {
	pulumi.Input

	ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput
	ToNodeSchedulingConfigOutputWithContext(context.Context) NodeSchedulingConfigOutput
}

NodeSchedulingConfigInput is an input type that accepts NodeSchedulingConfigArgs and NodeSchedulingConfigOutput values. You can construct a concrete instance of `NodeSchedulingConfigInput` via:

NodeSchedulingConfigArgs{...}

type NodeSchedulingConfigOutput

type NodeSchedulingConfigOutput struct{ *pulumi.OutputState }

func (NodeSchedulingConfigOutput) ElementType

func (NodeSchedulingConfigOutput) ElementType() reflect.Type

func (NodeSchedulingConfigOutput) Preemptible

Defines whether the TPU instance is preemptible.

func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutput

func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutput() NodeSchedulingConfigOutput

func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutputWithContext

func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigOutputWithContext(ctx context.Context) NodeSchedulingConfigOutput

func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutput

func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput

func (NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutputWithContext

func (o NodeSchedulingConfigOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput

type NodeSchedulingConfigPtrInput

type NodeSchedulingConfigPtrInput interface {
	pulumi.Input

	ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput
	ToNodeSchedulingConfigPtrOutputWithContext(context.Context) NodeSchedulingConfigPtrOutput
}

NodeSchedulingConfigPtrInput is an input type that accepts NodeSchedulingConfigArgs, NodeSchedulingConfigPtr and NodeSchedulingConfigPtrOutput values. You can construct a concrete instance of `NodeSchedulingConfigPtrInput` via:

        NodeSchedulingConfigArgs{...}

or:

        nil

type NodeSchedulingConfigPtrOutput

type NodeSchedulingConfigPtrOutput struct{ *pulumi.OutputState }

func (NodeSchedulingConfigPtrOutput) Elem

func (NodeSchedulingConfigPtrOutput) ElementType

func (NodeSchedulingConfigPtrOutput) Preemptible

Defines whether the TPU instance is preemptible.

func (NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutput

func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutput() NodeSchedulingConfigPtrOutput

func (NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutputWithContext

func (o NodeSchedulingConfigPtrOutput) ToNodeSchedulingConfigPtrOutputWithContext(ctx context.Context) NodeSchedulingConfigPtrOutput

type NodeState

type NodeState struct {
	// The type of hardware accelerators associated with this node.
	AcceleratorType pulumi.StringPtrInput
	// The CIDR block that the TPU node will use when selecting an IP
	// address. This CIDR block must be a /29 block; the Compute Engine
	// networks API forbids a smaller block, and using a larger block would
	// be wasteful (a node can only consume one IP address).
	// Errors will occur if the CIDR block has already been used for a
	// currently existing TPU node, the CIDR block conflicts with any
	// subnetworks in the user's provided network, or the provided network
	// is peered with another network that is using that CIDR block.
	CidrBlock pulumi.StringPtrInput
	// The user-supplied description of the TPU. Maximum of 512 characters.
	Description pulumi.StringPtrInput
	// Resource labels to represent user provided metadata.
	Labels pulumi.StringMapInput
	// The immutable name of the TPU.
	Name pulumi.StringPtrInput
	// The name of a network to peer the TPU node to. It must be a
	// preexisting Compute Engine network inside of the project on which
	// this API has been activated. If none is provided, "default" will be
	// used.
	Network pulumi.StringPtrInput
	// The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the
	// node first reach out to the first (index 0) entry.
	NetworkEndpoints NodeNetworkEndpointArrayInput
	// The ID of the project in which the resource belongs.
	// If it is not provided, the provider project is used.
	Project pulumi.StringPtrInput
	// Sets the scheduling options for this TPU instance.
	// Structure is documented below.
	SchedulingConfig NodeSchedulingConfigPtrInput
	// The service account used to run the tensor flow services within the node. To share resources, including Google Cloud
	// Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
	ServiceAccount pulumi.StringPtrInput
	// The version of Tensorflow running in the Node.
	TensorflowVersion pulumi.StringPtrInput
	// Whether the VPC peering for the node is set up through Service Networking API.
	// The VPC Peering should be set up before provisioning the node. If this field is set,
	// cidrBlock field should not be specified. If the network that you want to peer the
	// TPU Node to is a Shared VPC network, the node must be created with this this field enabled.
	UseServiceNetworking pulumi.BoolPtrInput
	// The GCP location for the TPU. If it is not provided, the provider zone is used.
	Zone pulumi.StringPtrInput
}

func (NodeState) ElementType

func (NodeState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL