gcp

package
v0.0.0-...-3d071aa Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elastigroup

type Elastigroup struct {
	// contains filtered or unexported fields
}

Provides a Spotinst elastigroup GCP resource.

> This content is derived from https://github.com/terraform-providers/terraform-provider-spotinst/blob/master/website/docs/r/elastigroup_gcp.html.markdown.

func GetElastigroup

func GetElastigroup(ctx *pulumi.Context,
	name string, id pulumi.ID, state *ElastigroupState, opts ...pulumi.ResourceOpt) (*Elastigroup, error)

GetElastigroup gets an existing Elastigroup 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 NewElastigroup

func NewElastigroup(ctx *pulumi.Context,
	name string, args *ElastigroupArgs, opts ...pulumi.ResourceOpt) (*Elastigroup, error)

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

func (*Elastigroup) AutoHealing

func (r *Elastigroup) AutoHealing() *pulumi.BoolOutput

func (*Elastigroup) AvailabilityZones

func (r *Elastigroup) AvailabilityZones() *pulumi.ArrayOutput

List of availability zones for the group.

func (*Elastigroup) BackendServices

func (r *Elastigroup) BackendServices() *pulumi.ArrayOutput

func (*Elastigroup) Description

func (r *Elastigroup) Description() *pulumi.StringOutput

The region your GCP group will be created in.

func (*Elastigroup) DesiredCapacity

func (r *Elastigroup) DesiredCapacity() *pulumi.IntOutput

The desired number of instances the group should have at any time.

func (*Elastigroup) Disks

func (r *Elastigroup) Disks() *pulumi.ArrayOutput

func (*Elastigroup) DrainingTimeout

func (r *Elastigroup) DrainingTimeout() *pulumi.IntOutput

Time (seconds) the instance is allowed to run after it is detached from the group. This is to allow the instance time to drain all the current TCP connections before terminating it.

func (*Elastigroup) FallbackToOndemand

func (r *Elastigroup) FallbackToOndemand() *pulumi.BoolOutput

Activate fallback-to-on-demand. When provisioning an instance, if no Preemptible market is available, fallback-to-on-demand will provision an On-Demand instance to maintain the group capacity.

func (*Elastigroup) Gpu

func (r *Elastigroup) Gpu() *pulumi.ArrayOutput

func (*Elastigroup) HealthCheckGracePeriod

func (r *Elastigroup) HealthCheckGracePeriod() *pulumi.IntOutput

func (*Elastigroup) HealthCheckType

func (r *Elastigroup) HealthCheckType() *pulumi.StringOutput

func (*Elastigroup) ID

func (r *Elastigroup) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Elastigroup) InstanceTypesCustoms

func (r *Elastigroup) InstanceTypesCustoms() *pulumi.ArrayOutput

Defines a set of custom instance types. Required if instanceTypesPreemptible and instanceTypesOndemand are not set.

func (*Elastigroup) InstanceTypesOndemand

func (r *Elastigroup) InstanceTypesOndemand() *pulumi.StringOutput

The regular VM instance type to use for mixed-type groups and when falling back to on-demand. Required if instanceTypesPreemptible is not set.

func (*Elastigroup) InstanceTypesPreemptibles

func (r *Elastigroup) InstanceTypesPreemptibles() *pulumi.ArrayOutput

The preemptible VMs instance type. To maximize cost savings and market availability, select as many types as possible. Required if instanceTypesOndemand is not set.

func (*Elastigroup) IntegrationDockerSwarm

func (r *Elastigroup) IntegrationDockerSwarm() *pulumi.Output

func (*Elastigroup) IntegrationGke

func (r *Elastigroup) IntegrationGke() *pulumi.Output

func (*Elastigroup) IpForwarding

func (r *Elastigroup) IpForwarding() *pulumi.BoolOutput

func (*Elastigroup) Labels

func (r *Elastigroup) Labels() *pulumi.ArrayOutput

Array of objects with key-value pairs.

func (*Elastigroup) MaxSize

func (r *Elastigroup) MaxSize() *pulumi.IntOutput

The maximum number of instances the group should have at any time.

func (*Elastigroup) Metadatas

func (r *Elastigroup) Metadatas() *pulumi.ArrayOutput

Array of objects with key-value pairs.

func (*Elastigroup) MinSize

func (r *Elastigroup) MinSize() *pulumi.IntOutput

The minimum number of instances the group should have at any time.

func (*Elastigroup) Name

func (r *Elastigroup) Name() *pulumi.StringOutput

The group name.

func (*Elastigroup) NetworkInterfaces

func (r *Elastigroup) NetworkInterfaces() *pulumi.ArrayOutput

func (*Elastigroup) OndemandCount

func (r *Elastigroup) OndemandCount() *pulumi.IntOutput

func (*Elastigroup) PreemptiblePercentage

func (r *Elastigroup) PreemptiblePercentage() *pulumi.IntOutput

Percentage of Preemptible VMs to spin up from the "desiredCapacity".

func (*Elastigroup) ScalingDownPolicies

func (r *Elastigroup) ScalingDownPolicies() *pulumi.ArrayOutput

func (*Elastigroup) ScalingUpPolicies

func (r *Elastigroup) ScalingUpPolicies() *pulumi.ArrayOutput

func (*Elastigroup) ScheduledTasks

func (r *Elastigroup) ScheduledTasks() *pulumi.ArrayOutput

func (*Elastigroup) ServiceAccount

func (r *Elastigroup) ServiceAccount() *pulumi.StringOutput

The email of the service account in which the group instances will be launched.

func (*Elastigroup) ShutdownScript

func (r *Elastigroup) ShutdownScript() *pulumi.StringOutput

The Base64-encoded shutdown script that executes prior to instance termination, for more information please see: [Shutdown Script](https://api.spotinst.com/integration-docs/elastigroup/concepts/compute-concepts/shutdown-scripts/)

func (*Elastigroup) StartupScript

func (r *Elastigroup) StartupScript() *pulumi.StringOutput

Create and run your own startup scripts on your virtual machines to perform automated tasks every time your instance boots up.

func (*Elastigroup) Subnets

func (r *Elastigroup) Subnets() *pulumi.ArrayOutput

A list of regions and subnets.

func (*Elastigroup) Tags

func (r *Elastigroup) Tags() *pulumi.ArrayOutput

Tags to mark created instances.

func (*Elastigroup) URN

func (r *Elastigroup) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Elastigroup) UnhealthyDuration

func (r *Elastigroup) UnhealthyDuration() *pulumi.IntOutput

type ElastigroupArgs

type ElastigroupArgs struct {
	AutoHealing interface{}
	// List of availability zones for the group.
	AvailabilityZones interface{}
	BackendServices   interface{}
	// The region your GCP group will be created in.
	Description interface{}
	// The desired number of instances the group should have at any time.
	DesiredCapacity interface{}
	Disks           interface{}
	// Time (seconds) the instance is allowed to run after it is detached from the group. This is to allow the instance time to drain all the current TCP connections before terminating it.
	DrainingTimeout interface{}
	// Activate fallback-to-on-demand. When provisioning an instance, if no Preemptible market is available, fallback-to-on-demand will provision an On-Demand instance to maintain the group capacity.
	FallbackToOndemand     interface{}
	Gpu                    interface{}
	HealthCheckGracePeriod interface{}
	HealthCheckType        interface{}
	// Defines a set of custom instance types. Required if instanceTypesPreemptible and instanceTypesOndemand are not set.
	InstanceTypesCustoms interface{}
	// The regular VM instance type to use for mixed-type groups and when falling back to on-demand. Required if instanceTypesPreemptible is not set.
	InstanceTypesOndemand interface{}
	// The preemptible VMs instance type. To maximize cost savings and market availability, select as many types as possible. Required if instanceTypesOndemand is not set.
	InstanceTypesPreemptibles interface{}
	IntegrationDockerSwarm    interface{}
	IntegrationGke            interface{}
	IpForwarding              interface{}
	// Array of objects with key-value pairs.
	Labels interface{}
	// The maximum number of instances the group should have at any time.
	MaxSize interface{}
	// Array of objects with key-value pairs.
	Metadatas interface{}
	// The minimum number of instances the group should have at any time.
	MinSize interface{}
	// The group name.
	Name              interface{}
	NetworkInterfaces interface{}
	OndemandCount     interface{}
	// Percentage of Preemptible VMs to spin up from the "desiredCapacity".
	PreemptiblePercentage interface{}
	ScalingDownPolicies   interface{}
	ScalingUpPolicies     interface{}
	ScheduledTasks        interface{}
	// The email of the service account in which the group instances will be launched.
	ServiceAccount interface{}
	// The Base64-encoded shutdown script that executes prior to instance termination, for more information please see: [Shutdown Script](https://api.spotinst.com/integration-docs/elastigroup/concepts/compute-concepts/shutdown-scripts/)
	ShutdownScript interface{}
	// Create and run your own startup scripts on your virtual machines to perform automated tasks every time your instance boots up.
	StartupScript interface{}
	// A list of regions and subnets.
	Subnets interface{}
	// Tags to mark created instances.
	Tags              interface{}
	UnhealthyDuration interface{}
}

The set of arguments for constructing a Elastigroup resource.

type ElastigroupState

type ElastigroupState struct {
	AutoHealing interface{}
	// List of availability zones for the group.
	AvailabilityZones interface{}
	BackendServices   interface{}
	// The region your GCP group will be created in.
	Description interface{}
	// The desired number of instances the group should have at any time.
	DesiredCapacity interface{}
	Disks           interface{}
	// Time (seconds) the instance is allowed to run after it is detached from the group. This is to allow the instance time to drain all the current TCP connections before terminating it.
	DrainingTimeout interface{}
	// Activate fallback-to-on-demand. When provisioning an instance, if no Preemptible market is available, fallback-to-on-demand will provision an On-Demand instance to maintain the group capacity.
	FallbackToOndemand     interface{}
	Gpu                    interface{}
	HealthCheckGracePeriod interface{}
	HealthCheckType        interface{}
	// Defines a set of custom instance types. Required if instanceTypesPreemptible and instanceTypesOndemand are not set.
	InstanceTypesCustoms interface{}
	// The regular VM instance type to use for mixed-type groups and when falling back to on-demand. Required if instanceTypesPreemptible is not set.
	InstanceTypesOndemand interface{}
	// The preemptible VMs instance type. To maximize cost savings and market availability, select as many types as possible. Required if instanceTypesOndemand is not set.
	InstanceTypesPreemptibles interface{}
	IntegrationDockerSwarm    interface{}
	IntegrationGke            interface{}
	IpForwarding              interface{}
	// Array of objects with key-value pairs.
	Labels interface{}
	// The maximum number of instances the group should have at any time.
	MaxSize interface{}
	// Array of objects with key-value pairs.
	Metadatas interface{}
	// The minimum number of instances the group should have at any time.
	MinSize interface{}
	// The group name.
	Name              interface{}
	NetworkInterfaces interface{}
	OndemandCount     interface{}
	// Percentage of Preemptible VMs to spin up from the "desiredCapacity".
	PreemptiblePercentage interface{}
	ScalingDownPolicies   interface{}
	ScalingUpPolicies     interface{}
	ScheduledTasks        interface{}
	// The email of the service account in which the group instances will be launched.
	ServiceAccount interface{}
	// The Base64-encoded shutdown script that executes prior to instance termination, for more information please see: [Shutdown Script](https://api.spotinst.com/integration-docs/elastigroup/concepts/compute-concepts/shutdown-scripts/)
	ShutdownScript interface{}
	// Create and run your own startup scripts on your virtual machines to perform automated tasks every time your instance boots up.
	StartupScript interface{}
	// A list of regions and subnets.
	Subnets interface{}
	// Tags to mark created instances.
	Tags              interface{}
	UnhealthyDuration interface{}
}

Input properties used for looking up and filtering Elastigroup resources.

Jump to

Keyboard shortcuts

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