fly

package
v0.0.0-...-55354c7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing Fly.io resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type App

type App struct {
	pulumi.CustomResourceState

	// readonly appUrl
	Appurl pulumi.StringOutput `pulumi:"appurl"`
	// Name of application
	Name pulumi.StringOutput `pulumi:"name"`
	// Optional org slug to operate upon
	Org pulumi.StringOutput `pulumi:"org"`
	// readonly orgid
	Orgid pulumi.StringOutput `pulumi:"orgid"`
}

Fly app resource

## Example Usage

## Import

<break><break>```sh<break> $ pulumi import fly:index/app:App exampleApp <app_id> <break>```<break><break>

func GetApp

func GetApp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AppState, opts ...pulumi.ResourceOption) (*App, error)

GetApp gets an existing App 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 NewApp

func NewApp(ctx *pulumi.Context,
	name string, args *AppArgs, opts ...pulumi.ResourceOption) (*App, error)

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

func (*App) ElementType

func (*App) ElementType() reflect.Type

func (*App) ToAppOutput

func (i *App) ToAppOutput() AppOutput

func (*App) ToAppOutputWithContext

func (i *App) ToAppOutputWithContext(ctx context.Context) AppOutput

type AppArgs

type AppArgs struct {
	// Name of application
	Name pulumi.StringPtrInput
	// Optional org slug to operate upon
	Org pulumi.StringPtrInput
}

The set of arguments for constructing a App resource.

func (AppArgs) ElementType

func (AppArgs) ElementType() reflect.Type

type AppArray

type AppArray []AppInput

func (AppArray) ElementType

func (AppArray) ElementType() reflect.Type

func (AppArray) ToAppArrayOutput

func (i AppArray) ToAppArrayOutput() AppArrayOutput

func (AppArray) ToAppArrayOutputWithContext

func (i AppArray) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput

type AppArrayInput

type AppArrayInput interface {
	pulumi.Input

	ToAppArrayOutput() AppArrayOutput
	ToAppArrayOutputWithContext(context.Context) AppArrayOutput
}

AppArrayInput is an input type that accepts AppArray and AppArrayOutput values. You can construct a concrete instance of `AppArrayInput` via:

AppArray{ AppArgs{...} }

type AppArrayOutput

type AppArrayOutput struct{ *pulumi.OutputState }

func (AppArrayOutput) ElementType

func (AppArrayOutput) ElementType() reflect.Type

func (AppArrayOutput) Index

func (AppArrayOutput) ToAppArrayOutput

func (o AppArrayOutput) ToAppArrayOutput() AppArrayOutput

func (AppArrayOutput) ToAppArrayOutputWithContext

func (o AppArrayOutput) ToAppArrayOutputWithContext(ctx context.Context) AppArrayOutput

type AppInput

type AppInput interface {
	pulumi.Input

	ToAppOutput() AppOutput
	ToAppOutputWithContext(ctx context.Context) AppOutput
}

type AppMap

type AppMap map[string]AppInput

func (AppMap) ElementType

func (AppMap) ElementType() reflect.Type

func (AppMap) ToAppMapOutput

func (i AppMap) ToAppMapOutput() AppMapOutput

func (AppMap) ToAppMapOutputWithContext

func (i AppMap) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput

type AppMapInput

type AppMapInput interface {
	pulumi.Input

	ToAppMapOutput() AppMapOutput
	ToAppMapOutputWithContext(context.Context) AppMapOutput
}

AppMapInput is an input type that accepts AppMap and AppMapOutput values. You can construct a concrete instance of `AppMapInput` via:

AppMap{ "key": AppArgs{...} }

type AppMapOutput

type AppMapOutput struct{ *pulumi.OutputState }

func (AppMapOutput) ElementType

func (AppMapOutput) ElementType() reflect.Type

func (AppMapOutput) MapIndex

func (o AppMapOutput) MapIndex(k pulumi.StringInput) AppOutput

func (AppMapOutput) ToAppMapOutput

func (o AppMapOutput) ToAppMapOutput() AppMapOutput

func (AppMapOutput) ToAppMapOutputWithContext

func (o AppMapOutput) ToAppMapOutputWithContext(ctx context.Context) AppMapOutput

type AppOutput

type AppOutput struct{ *pulumi.OutputState }

func (AppOutput) Appurl

func (o AppOutput) Appurl() pulumi.StringOutput

readonly appUrl

func (AppOutput) ElementType

func (AppOutput) ElementType() reflect.Type

func (AppOutput) Name

func (o AppOutput) Name() pulumi.StringOutput

Name of application

func (AppOutput) Org

func (o AppOutput) Org() pulumi.StringOutput

Optional org slug to operate upon

func (AppOutput) Orgid

func (o AppOutput) Orgid() pulumi.StringOutput

readonly orgid

func (AppOutput) ToAppOutput

func (o AppOutput) ToAppOutput() AppOutput

func (AppOutput) ToAppOutputWithContext

func (o AppOutput) ToAppOutputWithContext(ctx context.Context) AppOutput

type AppState

type AppState struct {
	// readonly appUrl
	Appurl pulumi.StringPtrInput
	// Name of application
	Name pulumi.StringPtrInput
	// Optional org slug to operate upon
	Org pulumi.StringPtrInput
	// readonly orgid
	Orgid pulumi.StringPtrInput
}

func (AppState) ElementType

func (AppState) ElementType() reflect.Type

type Cert

type Cert struct {
	pulumi.CustomResourceState

	// Name of app to attach to
	App pulumi.StringOutput `pulumi:"app"`
	// check
	Check pulumi.BoolOutput `pulumi:"check"`
	// DnsValidationHostname
	Dnsvalidationhostname pulumi.StringOutput `pulumi:"dnsvalidationhostname"`
	// DnsValidationHostname
	Dnsvalidationinstructions pulumi.StringOutput `pulumi:"dnsvalidationinstructions"`
	// DnsValidationTarget
	Dnsvalidationtarget pulumi.StringOutput `pulumi:"dnsvalidationtarget"`
	// hostname
	Hostname pulumi.StringOutput `pulumi:"hostname"`
}

Fly certificate resource

## Example Usage

## Import

<break><break>```sh<break> $ pulumi import fly:index/cert:Cert exampleCert <app_id>,<hostname> <break>```<break><break>

func GetCert

func GetCert(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertState, opts ...pulumi.ResourceOption) (*Cert, error)

GetCert gets an existing Cert 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 NewCert

func NewCert(ctx *pulumi.Context,
	name string, args *CertArgs, opts ...pulumi.ResourceOption) (*Cert, error)

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

func (*Cert) ElementType

func (*Cert) ElementType() reflect.Type

func (*Cert) ToCertOutput

func (i *Cert) ToCertOutput() CertOutput

func (*Cert) ToCertOutputWithContext

func (i *Cert) ToCertOutputWithContext(ctx context.Context) CertOutput

type CertArgs

type CertArgs struct {
	// Name of app to attach to
	App pulumi.StringInput
	// hostname
	Hostname pulumi.StringInput
}

The set of arguments for constructing a Cert resource.

func (CertArgs) ElementType

func (CertArgs) ElementType() reflect.Type

type CertArray

type CertArray []CertInput

func (CertArray) ElementType

func (CertArray) ElementType() reflect.Type

func (CertArray) ToCertArrayOutput

func (i CertArray) ToCertArrayOutput() CertArrayOutput

func (CertArray) ToCertArrayOutputWithContext

func (i CertArray) ToCertArrayOutputWithContext(ctx context.Context) CertArrayOutput

type CertArrayInput

type CertArrayInput interface {
	pulumi.Input

	ToCertArrayOutput() CertArrayOutput
	ToCertArrayOutputWithContext(context.Context) CertArrayOutput
}

CertArrayInput is an input type that accepts CertArray and CertArrayOutput values. You can construct a concrete instance of `CertArrayInput` via:

CertArray{ CertArgs{...} }

type CertArrayOutput

type CertArrayOutput struct{ *pulumi.OutputState }

func (CertArrayOutput) ElementType

func (CertArrayOutput) ElementType() reflect.Type

func (CertArrayOutput) Index

func (CertArrayOutput) ToCertArrayOutput

func (o CertArrayOutput) ToCertArrayOutput() CertArrayOutput

func (CertArrayOutput) ToCertArrayOutputWithContext

func (o CertArrayOutput) ToCertArrayOutputWithContext(ctx context.Context) CertArrayOutput

type CertInput

type CertInput interface {
	pulumi.Input

	ToCertOutput() CertOutput
	ToCertOutputWithContext(ctx context.Context) CertOutput
}

type CertMap

type CertMap map[string]CertInput

func (CertMap) ElementType

func (CertMap) ElementType() reflect.Type

func (CertMap) ToCertMapOutput

func (i CertMap) ToCertMapOutput() CertMapOutput

func (CertMap) ToCertMapOutputWithContext

func (i CertMap) ToCertMapOutputWithContext(ctx context.Context) CertMapOutput

type CertMapInput

type CertMapInput interface {
	pulumi.Input

	ToCertMapOutput() CertMapOutput
	ToCertMapOutputWithContext(context.Context) CertMapOutput
}

CertMapInput is an input type that accepts CertMap and CertMapOutput values. You can construct a concrete instance of `CertMapInput` via:

CertMap{ "key": CertArgs{...} }

type CertMapOutput

type CertMapOutput struct{ *pulumi.OutputState }

func (CertMapOutput) ElementType

func (CertMapOutput) ElementType() reflect.Type

func (CertMapOutput) MapIndex

func (CertMapOutput) ToCertMapOutput

func (o CertMapOutput) ToCertMapOutput() CertMapOutput

func (CertMapOutput) ToCertMapOutputWithContext

func (o CertMapOutput) ToCertMapOutputWithContext(ctx context.Context) CertMapOutput

type CertOutput

type CertOutput struct{ *pulumi.OutputState }

func (CertOutput) App

func (o CertOutput) App() pulumi.StringOutput

Name of app to attach to

func (CertOutput) Check

func (o CertOutput) Check() pulumi.BoolOutput

check

func (CertOutput) Dnsvalidationhostname

func (o CertOutput) Dnsvalidationhostname() pulumi.StringOutput

DnsValidationHostname

func (CertOutput) Dnsvalidationinstructions

func (o CertOutput) Dnsvalidationinstructions() pulumi.StringOutput

DnsValidationHostname

func (CertOutput) Dnsvalidationtarget

func (o CertOutput) Dnsvalidationtarget() pulumi.StringOutput

DnsValidationTarget

func (CertOutput) ElementType

func (CertOutput) ElementType() reflect.Type

func (CertOutput) Hostname

func (o CertOutput) Hostname() pulumi.StringOutput

hostname

func (CertOutput) ToCertOutput

func (o CertOutput) ToCertOutput() CertOutput

func (CertOutput) ToCertOutputWithContext

func (o CertOutput) ToCertOutputWithContext(ctx context.Context) CertOutput

type CertState

type CertState struct {
	// Name of app to attach to
	App pulumi.StringPtrInput
	// check
	Check pulumi.BoolPtrInput
	// DnsValidationHostname
	Dnsvalidationhostname pulumi.StringPtrInput
	// DnsValidationHostname
	Dnsvalidationinstructions pulumi.StringPtrInput
	// DnsValidationTarget
	Dnsvalidationtarget pulumi.StringPtrInput
	// hostname
	Hostname pulumi.StringPtrInput
}

func (CertState) ElementType

func (CertState) ElementType() reflect.Type

type Ip

type Ip struct {
	pulumi.CustomResourceState

	// IP address
	Address pulumi.StringOutput `pulumi:"address"`
	// Name of app to attach to
	App pulumi.StringOutput `pulumi:"app"`
	// region
	Region pulumi.StringOutput `pulumi:"region"`
	// v4 or v6
	Type pulumi.StringOutput `pulumi:"type"`
}

Fly ip resource

## Example Usage

## Import

<break><break>```sh<break> $ pulumi import fly:index/ip:Ip exampleIp <app_id>,<ip_address> <break>```<break><break>

func GetIp

func GetIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IpState, opts ...pulumi.ResourceOption) (*Ip, error)

GetIp gets an existing Ip 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 NewIp

func NewIp(ctx *pulumi.Context,
	name string, args *IpArgs, opts ...pulumi.ResourceOption) (*Ip, error)

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

func (*Ip) ElementType

func (*Ip) ElementType() reflect.Type

func (*Ip) ToIpOutput

func (i *Ip) ToIpOutput() IpOutput

func (*Ip) ToIpOutputWithContext

func (i *Ip) ToIpOutputWithContext(ctx context.Context) IpOutput

type IpArgs

type IpArgs struct {
	// Name of app to attach to
	App pulumi.StringInput
	// region
	Region pulumi.StringPtrInput
	// v4 or v6
	Type pulumi.StringInput
}

The set of arguments for constructing a Ip resource.

func (IpArgs) ElementType

func (IpArgs) ElementType() reflect.Type

type IpArray

type IpArray []IpInput

func (IpArray) ElementType

func (IpArray) ElementType() reflect.Type

func (IpArray) ToIpArrayOutput

func (i IpArray) ToIpArrayOutput() IpArrayOutput

func (IpArray) ToIpArrayOutputWithContext

func (i IpArray) ToIpArrayOutputWithContext(ctx context.Context) IpArrayOutput

type IpArrayInput

type IpArrayInput interface {
	pulumi.Input

	ToIpArrayOutput() IpArrayOutput
	ToIpArrayOutputWithContext(context.Context) IpArrayOutput
}

IpArrayInput is an input type that accepts IpArray and IpArrayOutput values. You can construct a concrete instance of `IpArrayInput` via:

IpArray{ IpArgs{...} }

type IpArrayOutput

type IpArrayOutput struct{ *pulumi.OutputState }

func (IpArrayOutput) ElementType

func (IpArrayOutput) ElementType() reflect.Type

func (IpArrayOutput) Index

func (IpArrayOutput) ToIpArrayOutput

func (o IpArrayOutput) ToIpArrayOutput() IpArrayOutput

func (IpArrayOutput) ToIpArrayOutputWithContext

func (o IpArrayOutput) ToIpArrayOutputWithContext(ctx context.Context) IpArrayOutput

type IpInput

type IpInput interface {
	pulumi.Input

	ToIpOutput() IpOutput
	ToIpOutputWithContext(ctx context.Context) IpOutput
}

type IpMap

type IpMap map[string]IpInput

func (IpMap) ElementType

func (IpMap) ElementType() reflect.Type

func (IpMap) ToIpMapOutput

func (i IpMap) ToIpMapOutput() IpMapOutput

func (IpMap) ToIpMapOutputWithContext

func (i IpMap) ToIpMapOutputWithContext(ctx context.Context) IpMapOutput

type IpMapInput

type IpMapInput interface {
	pulumi.Input

	ToIpMapOutput() IpMapOutput
	ToIpMapOutputWithContext(context.Context) IpMapOutput
}

IpMapInput is an input type that accepts IpMap and IpMapOutput values. You can construct a concrete instance of `IpMapInput` via:

IpMap{ "key": IpArgs{...} }

type IpMapOutput

type IpMapOutput struct{ *pulumi.OutputState }

func (IpMapOutput) ElementType

func (IpMapOutput) ElementType() reflect.Type

func (IpMapOutput) MapIndex

func (o IpMapOutput) MapIndex(k pulumi.StringInput) IpOutput

func (IpMapOutput) ToIpMapOutput

func (o IpMapOutput) ToIpMapOutput() IpMapOutput

func (IpMapOutput) ToIpMapOutputWithContext

func (o IpMapOutput) ToIpMapOutputWithContext(ctx context.Context) IpMapOutput

type IpOutput

type IpOutput struct{ *pulumi.OutputState }

func (IpOutput) Address

func (o IpOutput) Address() pulumi.StringOutput

IP address

func (IpOutput) App

func (o IpOutput) App() pulumi.StringOutput

Name of app to attach to

func (IpOutput) ElementType

func (IpOutput) ElementType() reflect.Type

func (IpOutput) Region

func (o IpOutput) Region() pulumi.StringOutput

region

func (IpOutput) ToIpOutput

func (o IpOutput) ToIpOutput() IpOutput

func (IpOutput) ToIpOutputWithContext

func (o IpOutput) ToIpOutputWithContext(ctx context.Context) IpOutput

func (IpOutput) Type

func (o IpOutput) Type() pulumi.StringOutput

v4 or v6

type IpState

type IpState struct {
	// IP address
	Address pulumi.StringPtrInput
	// Name of app to attach to
	App pulumi.StringPtrInput
	// region
	Region pulumi.StringPtrInput
	// v4 or v6
	Type pulumi.StringPtrInput
}

func (IpState) ElementType

func (IpState) ElementType() reflect.Type

type LookupAppArgs

type LookupAppArgs struct {
	// Name of app
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getApp.

type LookupAppOutputArgs

type LookupAppOutputArgs struct {
	// Name of app
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getApp.

func (LookupAppOutputArgs) ElementType

func (LookupAppOutputArgs) ElementType() reflect.Type

type LookupAppResult

type LookupAppResult struct {
	Appurl         string   `pulumi:"appurl"`
	Currentrelease string   `pulumi:"currentrelease"`
	Deployed       bool     `pulumi:"deployed"`
	Healthchecks   []string `pulumi:"healthchecks"`
	Hostname       string   `pulumi:"hostname"`
	// The ID of this resource.
	Id          string   `pulumi:"id"`
	Ipaddresses []string `pulumi:"ipaddresses"`
	// Name of app
	Name   string `pulumi:"name"`
	Status string `pulumi:"status"`
}

A collection of values returned by getApp.

func LookupApp

func LookupApp(ctx *pulumi.Context, args *LookupAppArgs, opts ...pulumi.InvokeOption) (*LookupAppResult, error)

Retrieve info about graphql app

## Example Usage

type LookupAppResultOutput

type LookupAppResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getApp.

func (LookupAppResultOutput) Appurl

func (LookupAppResultOutput) Currentrelease

func (o LookupAppResultOutput) Currentrelease() pulumi.StringOutput

func (LookupAppResultOutput) Deployed

func (LookupAppResultOutput) ElementType

func (LookupAppResultOutput) ElementType() reflect.Type

func (LookupAppResultOutput) Healthchecks

func (LookupAppResultOutput) Hostname

func (LookupAppResultOutput) Id

The ID of this resource.

func (LookupAppResultOutput) Ipaddresses

func (LookupAppResultOutput) Name

Name of app

func (LookupAppResultOutput) Status

func (LookupAppResultOutput) ToLookupAppResultOutput

func (o LookupAppResultOutput) ToLookupAppResultOutput() LookupAppResultOutput

func (LookupAppResultOutput) ToLookupAppResultOutputWithContext

func (o LookupAppResultOutput) ToLookupAppResultOutputWithContext(ctx context.Context) LookupAppResultOutput

type LookupCertArgs

type LookupCertArgs struct {
	// Name of app attached to
	App string `pulumi:"app"`
	// hostname
	Hostname string `pulumi:"hostname"`
}

A collection of arguments for invoking getCert.

type LookupCertOutputArgs

type LookupCertOutputArgs struct {
	// Name of app attached to
	App pulumi.StringInput `pulumi:"app"`
	// hostname
	Hostname pulumi.StringInput `pulumi:"hostname"`
}

A collection of arguments for invoking getCert.

func (LookupCertOutputArgs) ElementType

func (LookupCertOutputArgs) ElementType() reflect.Type

type LookupCertResult

type LookupCertResult struct {
	// Name of app attached to
	App string `pulumi:"app"`
	// check
	Check bool `pulumi:"check"`
	// DnsValidationHostname
	Dnsvalidationhostname string `pulumi:"dnsvalidationhostname"`
	// DnsValidationHostname
	Dnsvalidationinstructions string `pulumi:"dnsvalidationinstructions"`
	// DnsValidationTarget
	Dnsvalidationtarget string `pulumi:"dnsvalidationtarget"`
	// hostname
	Hostname string `pulumi:"hostname"`
	// ID of certificate
	Id string `pulumi:"id"`
}

A collection of values returned by getCert.

func LookupCert

func LookupCert(ctx *pulumi.Context, args *LookupCertArgs, opts ...pulumi.InvokeOption) (*LookupCertResult, error)

Fly certificate data source

type LookupCertResultOutput

type LookupCertResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCert.

func (LookupCertResultOutput) App

Name of app attached to

func (LookupCertResultOutput) Check

check

func (LookupCertResultOutput) Dnsvalidationhostname

func (o LookupCertResultOutput) Dnsvalidationhostname() pulumi.StringOutput

DnsValidationHostname

func (LookupCertResultOutput) Dnsvalidationinstructions

func (o LookupCertResultOutput) Dnsvalidationinstructions() pulumi.StringOutput

DnsValidationHostname

func (LookupCertResultOutput) Dnsvalidationtarget

func (o LookupCertResultOutput) Dnsvalidationtarget() pulumi.StringOutput

DnsValidationTarget

func (LookupCertResultOutput) ElementType

func (LookupCertResultOutput) ElementType() reflect.Type

func (LookupCertResultOutput) Hostname

hostname

func (LookupCertResultOutput) Id

ID of certificate

func (LookupCertResultOutput) ToLookupCertResultOutput

func (o LookupCertResultOutput) ToLookupCertResultOutput() LookupCertResultOutput

func (LookupCertResultOutput) ToLookupCertResultOutputWithContext

func (o LookupCertResultOutput) ToLookupCertResultOutputWithContext(ctx context.Context) LookupCertResultOutput

type LookupIpArgs

type LookupIpArgs struct {
	// IP address
	Address string `pulumi:"address"`
	// Name of app attached to
	App string `pulumi:"app"`
}

A collection of arguments for invoking getIp.

type LookupIpOutputArgs

type LookupIpOutputArgs struct {
	// IP address
	Address pulumi.StringInput `pulumi:"address"`
	// Name of app attached to
	App pulumi.StringInput `pulumi:"app"`
}

A collection of arguments for invoking getIp.

func (LookupIpOutputArgs) ElementType

func (LookupIpOutputArgs) ElementType() reflect.Type

type LookupIpResult

type LookupIpResult struct {
	// IP address
	Address string `pulumi:"address"`
	// Name of app attached to
	App string `pulumi:"app"`
	// ID of address
	Id string `pulumi:"id"`
	// region
	Region string `pulumi:"region"`
	// v4 or v6
	Type string `pulumi:"type"`
}

A collection of values returned by getIp.

func LookupIp

func LookupIp(ctx *pulumi.Context, args *LookupIpArgs, opts ...pulumi.InvokeOption) (*LookupIpResult, error)

Fly ip data source

type LookupIpResultOutput

type LookupIpResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getIp.

func (LookupIpResultOutput) Address

IP address

func (LookupIpResultOutput) App

Name of app attached to

func (LookupIpResultOutput) ElementType

func (LookupIpResultOutput) ElementType() reflect.Type

func (LookupIpResultOutput) Id

ID of address

func (LookupIpResultOutput) Region

region

func (LookupIpResultOutput) ToLookupIpResultOutput

func (o LookupIpResultOutput) ToLookupIpResultOutput() LookupIpResultOutput

func (LookupIpResultOutput) ToLookupIpResultOutputWithContext

func (o LookupIpResultOutput) ToLookupIpResultOutputWithContext(ctx context.Context) LookupIpResultOutput

func (LookupIpResultOutput) Type

v4 or v6

type LookupVolumeArgs

type LookupVolumeArgs struct {
	// Name of app attached to
	App string `pulumi:"app"`
	// ID of volume
	Id string `pulumi:"id"`
}

A collection of arguments for invoking getVolume.

type LookupVolumeOutputArgs

type LookupVolumeOutputArgs struct {
	// Name of app attached to
	App pulumi.StringInput `pulumi:"app"`
	// ID of volume
	Id pulumi.StringInput `pulumi:"id"`
}

A collection of arguments for invoking getVolume.

func (LookupVolumeOutputArgs) ElementType

func (LookupVolumeOutputArgs) ElementType() reflect.Type

type LookupVolumeResult

type LookupVolumeResult struct {
	// Name of app attached to
	App string `pulumi:"app"`
	// ID of volume
	Id string `pulumi:"id"`
	// name
	Name string `pulumi:"name"`
	// region
	Region string `pulumi:"region"`
	// Size of volume in GB
	Size int `pulumi:"size"`
}

A collection of values returned by getVolume.

func LookupVolume

func LookupVolume(ctx *pulumi.Context, args *LookupVolumeArgs, opts ...pulumi.InvokeOption) (*LookupVolumeResult, error)

Fly volume resource

type LookupVolumeResultOutput

type LookupVolumeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVolume.

func (LookupVolumeResultOutput) App

Name of app attached to

func (LookupVolumeResultOutput) ElementType

func (LookupVolumeResultOutput) ElementType() reflect.Type

func (LookupVolumeResultOutput) Id

ID of volume

func (LookupVolumeResultOutput) Name

name

func (LookupVolumeResultOutput) Region

region

func (LookupVolumeResultOutput) Size

Size of volume in GB

func (LookupVolumeResultOutput) ToLookupVolumeResultOutput

func (o LookupVolumeResultOutput) ToLookupVolumeResultOutput() LookupVolumeResultOutput

func (LookupVolumeResultOutput) ToLookupVolumeResultOutputWithContext

func (o LookupVolumeResultOutput) ToLookupVolumeResultOutputWithContext(ctx context.Context) LookupVolumeResultOutput

type Machine

type Machine struct {
	pulumi.CustomResourceState

	// fly app
	App pulumi.StringOutput `pulumi:"app"`
	// cmd
	Cmds pulumi.StringArrayOutput `pulumi:"cmds"`
	// cpu count
	Cpus pulumi.IntOutput `pulumi:"cpus"`
	// cpu type
	Cputype pulumi.StringOutput `pulumi:"cputype"`
	// image entrypoint
	Entrypoints pulumi.StringArrayOutput `pulumi:"entrypoints"`
	// Optional environment variables, keys and values must be strings
	Env pulumi.StringMapOutput `pulumi:"env"`
	// exec command
	Execs pulumi.StringArrayOutput `pulumi:"execs"`
	// docker image
	Image pulumi.StringOutput `pulumi:"image"`
	// memory mb
	Memorymb pulumi.IntOutput `pulumi:"memorymb"`
	// Volume mounts
	Mounts MachineMountArrayOutput `pulumi:"mounts"`
	// machine name
	Name pulumi.StringOutput `pulumi:"name"`
	// Private IP
	Privateip pulumi.StringOutput `pulumi:"privateip"`
	// machine region
	Region pulumi.StringOutput `pulumi:"region"`
	// services
	Services MachineServiceArrayOutput `pulumi:"services"`
}

Fly machine resource

## Example Usage

## Import

<break><break>```sh<break> $ pulumi import fly:index/machine:Machine exampleMachine <app_id>,<machine_id> <break>```<break><break>

func GetMachine

func GetMachine(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MachineState, opts ...pulumi.ResourceOption) (*Machine, error)

GetMachine gets an existing Machine 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 NewMachine

func NewMachine(ctx *pulumi.Context,
	name string, args *MachineArgs, opts ...pulumi.ResourceOption) (*Machine, error)

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

func (*Machine) ElementType

func (*Machine) ElementType() reflect.Type

func (*Machine) ToMachineOutput

func (i *Machine) ToMachineOutput() MachineOutput

func (*Machine) ToMachineOutputWithContext

func (i *Machine) ToMachineOutputWithContext(ctx context.Context) MachineOutput

type MachineArgs

type MachineArgs struct {
	// fly app
	App pulumi.StringInput
	// cmd
	Cmds pulumi.StringArrayInput
	// cpu count
	Cpus pulumi.IntPtrInput
	// cpu type
	Cputype pulumi.StringPtrInput
	// image entrypoint
	Entrypoints pulumi.StringArrayInput
	// Optional environment variables, keys and values must be strings
	Env pulumi.StringMapInput
	// exec command
	Execs pulumi.StringArrayInput
	// docker image
	Image pulumi.StringInput
	// memory mb
	Memorymb pulumi.IntPtrInput
	// Volume mounts
	Mounts MachineMountArrayInput
	// machine name
	Name pulumi.StringPtrInput
	// machine region
	Region pulumi.StringInput
	// services
	Services MachineServiceArrayInput
}

The set of arguments for constructing a Machine resource.

func (MachineArgs) ElementType

func (MachineArgs) ElementType() reflect.Type

type MachineArray

type MachineArray []MachineInput

func (MachineArray) ElementType

func (MachineArray) ElementType() reflect.Type

func (MachineArray) ToMachineArrayOutput

func (i MachineArray) ToMachineArrayOutput() MachineArrayOutput

func (MachineArray) ToMachineArrayOutputWithContext

func (i MachineArray) ToMachineArrayOutputWithContext(ctx context.Context) MachineArrayOutput

type MachineArrayInput

type MachineArrayInput interface {
	pulumi.Input

	ToMachineArrayOutput() MachineArrayOutput
	ToMachineArrayOutputWithContext(context.Context) MachineArrayOutput
}

MachineArrayInput is an input type that accepts MachineArray and MachineArrayOutput values. You can construct a concrete instance of `MachineArrayInput` via:

MachineArray{ MachineArgs{...} }

type MachineArrayOutput

type MachineArrayOutput struct{ *pulumi.OutputState }

func (MachineArrayOutput) ElementType

func (MachineArrayOutput) ElementType() reflect.Type

func (MachineArrayOutput) Index

func (MachineArrayOutput) ToMachineArrayOutput

func (o MachineArrayOutput) ToMachineArrayOutput() MachineArrayOutput

func (MachineArrayOutput) ToMachineArrayOutputWithContext

func (o MachineArrayOutput) ToMachineArrayOutputWithContext(ctx context.Context) MachineArrayOutput

type MachineInput

type MachineInput interface {
	pulumi.Input

	ToMachineOutput() MachineOutput
	ToMachineOutputWithContext(ctx context.Context) MachineOutput
}

type MachineMap

type MachineMap map[string]MachineInput

func (MachineMap) ElementType

func (MachineMap) ElementType() reflect.Type

func (MachineMap) ToMachineMapOutput

func (i MachineMap) ToMachineMapOutput() MachineMapOutput

func (MachineMap) ToMachineMapOutputWithContext

func (i MachineMap) ToMachineMapOutputWithContext(ctx context.Context) MachineMapOutput

type MachineMapInput

type MachineMapInput interface {
	pulumi.Input

	ToMachineMapOutput() MachineMapOutput
	ToMachineMapOutputWithContext(context.Context) MachineMapOutput
}

MachineMapInput is an input type that accepts MachineMap and MachineMapOutput values. You can construct a concrete instance of `MachineMapInput` via:

MachineMap{ "key": MachineArgs{...} }

type MachineMapOutput

type MachineMapOutput struct{ *pulumi.OutputState }

func (MachineMapOutput) ElementType

func (MachineMapOutput) ElementType() reflect.Type

func (MachineMapOutput) MapIndex

func (MachineMapOutput) ToMachineMapOutput

func (o MachineMapOutput) ToMachineMapOutput() MachineMapOutput

func (MachineMapOutput) ToMachineMapOutputWithContext

func (o MachineMapOutput) ToMachineMapOutputWithContext(ctx context.Context) MachineMapOutput

type MachineMount

type MachineMount struct {
	Encrypted *bool `pulumi:"encrypted"`
	// Path for volume to be mounted on vm
	Path   string `pulumi:"path"`
	SizeGb *int   `pulumi:"sizeGb"`
	// Name or ID of volume
	Volume string `pulumi:"volume"`
}

type MachineMountArgs

type MachineMountArgs struct {
	Encrypted pulumi.BoolPtrInput `pulumi:"encrypted"`
	// Path for volume to be mounted on vm
	Path   pulumi.StringInput `pulumi:"path"`
	SizeGb pulumi.IntPtrInput `pulumi:"sizeGb"`
	// Name or ID of volume
	Volume pulumi.StringInput `pulumi:"volume"`
}

func (MachineMountArgs) ElementType

func (MachineMountArgs) ElementType() reflect.Type

func (MachineMountArgs) ToMachineMountOutput

func (i MachineMountArgs) ToMachineMountOutput() MachineMountOutput

func (MachineMountArgs) ToMachineMountOutputWithContext

func (i MachineMountArgs) ToMachineMountOutputWithContext(ctx context.Context) MachineMountOutput

type MachineMountArray

type MachineMountArray []MachineMountInput

func (MachineMountArray) ElementType

func (MachineMountArray) ElementType() reflect.Type

func (MachineMountArray) ToMachineMountArrayOutput

func (i MachineMountArray) ToMachineMountArrayOutput() MachineMountArrayOutput

func (MachineMountArray) ToMachineMountArrayOutputWithContext

func (i MachineMountArray) ToMachineMountArrayOutputWithContext(ctx context.Context) MachineMountArrayOutput

type MachineMountArrayInput

type MachineMountArrayInput interface {
	pulumi.Input

	ToMachineMountArrayOutput() MachineMountArrayOutput
	ToMachineMountArrayOutputWithContext(context.Context) MachineMountArrayOutput
}

MachineMountArrayInput is an input type that accepts MachineMountArray and MachineMountArrayOutput values. You can construct a concrete instance of `MachineMountArrayInput` via:

MachineMountArray{ MachineMountArgs{...} }

type MachineMountArrayOutput

type MachineMountArrayOutput struct{ *pulumi.OutputState }

func (MachineMountArrayOutput) ElementType

func (MachineMountArrayOutput) ElementType() reflect.Type

func (MachineMountArrayOutput) Index

func (MachineMountArrayOutput) ToMachineMountArrayOutput

func (o MachineMountArrayOutput) ToMachineMountArrayOutput() MachineMountArrayOutput

func (MachineMountArrayOutput) ToMachineMountArrayOutputWithContext

func (o MachineMountArrayOutput) ToMachineMountArrayOutputWithContext(ctx context.Context) MachineMountArrayOutput

type MachineMountInput

type MachineMountInput interface {
	pulumi.Input

	ToMachineMountOutput() MachineMountOutput
	ToMachineMountOutputWithContext(context.Context) MachineMountOutput
}

MachineMountInput is an input type that accepts MachineMountArgs and MachineMountOutput values. You can construct a concrete instance of `MachineMountInput` via:

MachineMountArgs{...}

type MachineMountOutput

type MachineMountOutput struct{ *pulumi.OutputState }

func (MachineMountOutput) ElementType

func (MachineMountOutput) ElementType() reflect.Type

func (MachineMountOutput) Encrypted

func (o MachineMountOutput) Encrypted() pulumi.BoolPtrOutput

func (MachineMountOutput) Path

Path for volume to be mounted on vm

func (MachineMountOutput) SizeGb

func (MachineMountOutput) ToMachineMountOutput

func (o MachineMountOutput) ToMachineMountOutput() MachineMountOutput

func (MachineMountOutput) ToMachineMountOutputWithContext

func (o MachineMountOutput) ToMachineMountOutputWithContext(ctx context.Context) MachineMountOutput

func (MachineMountOutput) Volume

Name or ID of volume

type MachineOutput

type MachineOutput struct{ *pulumi.OutputState }

func (MachineOutput) App

fly app

func (MachineOutput) Cmds

cmd

func (MachineOutput) Cpus

func (o MachineOutput) Cpus() pulumi.IntOutput

cpu count

func (MachineOutput) Cputype

func (o MachineOutput) Cputype() pulumi.StringOutput

cpu type

func (MachineOutput) ElementType

func (MachineOutput) ElementType() reflect.Type

func (MachineOutput) Entrypoints

func (o MachineOutput) Entrypoints() pulumi.StringArrayOutput

image entrypoint

func (MachineOutput) Env

Optional environment variables, keys and values must be strings

func (MachineOutput) Execs

exec command

func (MachineOutput) Image

func (o MachineOutput) Image() pulumi.StringOutput

docker image

func (MachineOutput) Memorymb

func (o MachineOutput) Memorymb() pulumi.IntOutput

memory mb

func (MachineOutput) Mounts

Volume mounts

func (MachineOutput) Name

machine name

func (MachineOutput) Privateip

func (o MachineOutput) Privateip() pulumi.StringOutput

Private IP

func (MachineOutput) Region

func (o MachineOutput) Region() pulumi.StringOutput

machine region

func (MachineOutput) Services

services

func (MachineOutput) ToMachineOutput

func (o MachineOutput) ToMachineOutput() MachineOutput

func (MachineOutput) ToMachineOutputWithContext

func (o MachineOutput) ToMachineOutputWithContext(ctx context.Context) MachineOutput

type MachineService

type MachineService struct {
	// Port application listens on internally
	InternalPort int `pulumi:"internalPort"`
	// External ports and handlers
	Ports []MachineServicePort `pulumi:"ports"`
	// network protocol
	Protocol string `pulumi:"protocol"`
}

type MachineServiceArgs

type MachineServiceArgs struct {
	// Port application listens on internally
	InternalPort pulumi.IntInput `pulumi:"internalPort"`
	// External ports and handlers
	Ports MachineServicePortArrayInput `pulumi:"ports"`
	// network protocol
	Protocol pulumi.StringInput `pulumi:"protocol"`
}

func (MachineServiceArgs) ElementType

func (MachineServiceArgs) ElementType() reflect.Type

func (MachineServiceArgs) ToMachineServiceOutput

func (i MachineServiceArgs) ToMachineServiceOutput() MachineServiceOutput

func (MachineServiceArgs) ToMachineServiceOutputWithContext

func (i MachineServiceArgs) ToMachineServiceOutputWithContext(ctx context.Context) MachineServiceOutput

type MachineServiceArray

type MachineServiceArray []MachineServiceInput

func (MachineServiceArray) ElementType

func (MachineServiceArray) ElementType() reflect.Type

func (MachineServiceArray) ToMachineServiceArrayOutput

func (i MachineServiceArray) ToMachineServiceArrayOutput() MachineServiceArrayOutput

func (MachineServiceArray) ToMachineServiceArrayOutputWithContext

func (i MachineServiceArray) ToMachineServiceArrayOutputWithContext(ctx context.Context) MachineServiceArrayOutput

type MachineServiceArrayInput

type MachineServiceArrayInput interface {
	pulumi.Input

	ToMachineServiceArrayOutput() MachineServiceArrayOutput
	ToMachineServiceArrayOutputWithContext(context.Context) MachineServiceArrayOutput
}

MachineServiceArrayInput is an input type that accepts MachineServiceArray and MachineServiceArrayOutput values. You can construct a concrete instance of `MachineServiceArrayInput` via:

MachineServiceArray{ MachineServiceArgs{...} }

type MachineServiceArrayOutput

type MachineServiceArrayOutput struct{ *pulumi.OutputState }

func (MachineServiceArrayOutput) ElementType

func (MachineServiceArrayOutput) ElementType() reflect.Type

func (MachineServiceArrayOutput) Index

func (MachineServiceArrayOutput) ToMachineServiceArrayOutput

func (o MachineServiceArrayOutput) ToMachineServiceArrayOutput() MachineServiceArrayOutput

func (MachineServiceArrayOutput) ToMachineServiceArrayOutputWithContext

func (o MachineServiceArrayOutput) ToMachineServiceArrayOutputWithContext(ctx context.Context) MachineServiceArrayOutput

type MachineServiceInput

type MachineServiceInput interface {
	pulumi.Input

	ToMachineServiceOutput() MachineServiceOutput
	ToMachineServiceOutputWithContext(context.Context) MachineServiceOutput
}

MachineServiceInput is an input type that accepts MachineServiceArgs and MachineServiceOutput values. You can construct a concrete instance of `MachineServiceInput` via:

MachineServiceArgs{...}

type MachineServiceOutput

type MachineServiceOutput struct{ *pulumi.OutputState }

func (MachineServiceOutput) ElementType

func (MachineServiceOutput) ElementType() reflect.Type

func (MachineServiceOutput) InternalPort

func (o MachineServiceOutput) InternalPort() pulumi.IntOutput

Port application listens on internally

func (MachineServiceOutput) Ports

External ports and handlers

func (MachineServiceOutput) Protocol

network protocol

func (MachineServiceOutput) ToMachineServiceOutput

func (o MachineServiceOutput) ToMachineServiceOutput() MachineServiceOutput

func (MachineServiceOutput) ToMachineServiceOutputWithContext

func (o MachineServiceOutput) ToMachineServiceOutputWithContext(ctx context.Context) MachineServiceOutput

type MachineServicePort

type MachineServicePort struct {
	Handlers []string `pulumi:"handlers"`
	Port     int      `pulumi:"port"`
}

type MachineServicePortArgs

type MachineServicePortArgs struct {
	Handlers pulumi.StringArrayInput `pulumi:"handlers"`
	Port     pulumi.IntInput         `pulumi:"port"`
}

func (MachineServicePortArgs) ElementType

func (MachineServicePortArgs) ElementType() reflect.Type

func (MachineServicePortArgs) ToMachineServicePortOutput

func (i MachineServicePortArgs) ToMachineServicePortOutput() MachineServicePortOutput

func (MachineServicePortArgs) ToMachineServicePortOutputWithContext

func (i MachineServicePortArgs) ToMachineServicePortOutputWithContext(ctx context.Context) MachineServicePortOutput

type MachineServicePortArray

type MachineServicePortArray []MachineServicePortInput

func (MachineServicePortArray) ElementType

func (MachineServicePortArray) ElementType() reflect.Type

func (MachineServicePortArray) ToMachineServicePortArrayOutput

func (i MachineServicePortArray) ToMachineServicePortArrayOutput() MachineServicePortArrayOutput

func (MachineServicePortArray) ToMachineServicePortArrayOutputWithContext

func (i MachineServicePortArray) ToMachineServicePortArrayOutputWithContext(ctx context.Context) MachineServicePortArrayOutput

type MachineServicePortArrayInput

type MachineServicePortArrayInput interface {
	pulumi.Input

	ToMachineServicePortArrayOutput() MachineServicePortArrayOutput
	ToMachineServicePortArrayOutputWithContext(context.Context) MachineServicePortArrayOutput
}

MachineServicePortArrayInput is an input type that accepts MachineServicePortArray and MachineServicePortArrayOutput values. You can construct a concrete instance of `MachineServicePortArrayInput` via:

MachineServicePortArray{ MachineServicePortArgs{...} }

type MachineServicePortArrayOutput

type MachineServicePortArrayOutput struct{ *pulumi.OutputState }

func (MachineServicePortArrayOutput) ElementType

func (MachineServicePortArrayOutput) Index

func (MachineServicePortArrayOutput) ToMachineServicePortArrayOutput

func (o MachineServicePortArrayOutput) ToMachineServicePortArrayOutput() MachineServicePortArrayOutput

func (MachineServicePortArrayOutput) ToMachineServicePortArrayOutputWithContext

func (o MachineServicePortArrayOutput) ToMachineServicePortArrayOutputWithContext(ctx context.Context) MachineServicePortArrayOutput

type MachineServicePortInput

type MachineServicePortInput interface {
	pulumi.Input

	ToMachineServicePortOutput() MachineServicePortOutput
	ToMachineServicePortOutputWithContext(context.Context) MachineServicePortOutput
}

MachineServicePortInput is an input type that accepts MachineServicePortArgs and MachineServicePortOutput values. You can construct a concrete instance of `MachineServicePortInput` via:

MachineServicePortArgs{...}

type MachineServicePortOutput

type MachineServicePortOutput struct{ *pulumi.OutputState }

func (MachineServicePortOutput) ElementType

func (MachineServicePortOutput) ElementType() reflect.Type

func (MachineServicePortOutput) Handlers

func (MachineServicePortOutput) Port

func (MachineServicePortOutput) ToMachineServicePortOutput

func (o MachineServicePortOutput) ToMachineServicePortOutput() MachineServicePortOutput

func (MachineServicePortOutput) ToMachineServicePortOutputWithContext

func (o MachineServicePortOutput) ToMachineServicePortOutputWithContext(ctx context.Context) MachineServicePortOutput

type MachineState

type MachineState struct {
	// fly app
	App pulumi.StringPtrInput
	// cmd
	Cmds pulumi.StringArrayInput
	// cpu count
	Cpus pulumi.IntPtrInput
	// cpu type
	Cputype pulumi.StringPtrInput
	// image entrypoint
	Entrypoints pulumi.StringArrayInput
	// Optional environment variables, keys and values must be strings
	Env pulumi.StringMapInput
	// exec command
	Execs pulumi.StringArrayInput
	// docker image
	Image pulumi.StringPtrInput
	// memory mb
	Memorymb pulumi.IntPtrInput
	// Volume mounts
	Mounts MachineMountArrayInput
	// machine name
	Name pulumi.StringPtrInput
	// Private IP
	Privateip pulumi.StringPtrInput
	// machine region
	Region pulumi.StringPtrInput
	// services
	Services MachineServiceArrayInput
}

func (MachineState) ElementType

func (MachineState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// fly.io api token. If not set checks env for FLY_API_TOKEN
	FlyApiToken pulumi.StringPtrOutput `pulumi:"flyApiToken"`
	// Where the provider should look to find the fly http endpoint
	FlyHttpEndpoint pulumi.StringPtrOutput `pulumi:"flyHttpEndpoint"`
}

The provider type for the fly package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// fly.io api token. If not set checks env for FLY_API_TOKEN
	FlyApiToken pulumi.StringPtrInput
	// Where the provider should look to find the fly http endpoint
	FlyHttpEndpoint pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) FlyApiToken

func (o ProviderOutput) FlyApiToken() pulumi.StringPtrOutput

fly.io api token. If not set checks env for FLY_API_TOKEN

func (ProviderOutput) FlyHttpEndpoint

func (o ProviderOutput) FlyHttpEndpoint() pulumi.StringPtrOutput

Where the provider should look to find the fly http endpoint

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Volume

type Volume struct {
	pulumi.CustomResourceState

	// Name of app to attach to
	App pulumi.StringOutput `pulumi:"app"`
	// name
	Name pulumi.StringOutput `pulumi:"name"`
	// region
	Region pulumi.StringOutput `pulumi:"region"`
	// Size of volume in GB
	Size pulumi.IntOutput `pulumi:"size"`
}

Fly volume resource

## Example Usage

## Import

<break><break>```sh<break> $ pulumi import fly:index/volume:Volume exampleApp <app_id>,<volume_internal_id> <break>```<break><break>

func GetVolume

func GetVolume(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VolumeState, opts ...pulumi.ResourceOption) (*Volume, error)

GetVolume gets an existing Volume 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 NewVolume

func NewVolume(ctx *pulumi.Context,
	name string, args *VolumeArgs, opts ...pulumi.ResourceOption) (*Volume, error)

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

func (*Volume) ElementType

func (*Volume) ElementType() reflect.Type

func (*Volume) ToVolumeOutput

func (i *Volume) ToVolumeOutput() VolumeOutput

func (*Volume) ToVolumeOutputWithContext

func (i *Volume) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

type VolumeArgs

type VolumeArgs struct {
	// Name of app to attach to
	App pulumi.StringInput
	// name
	Name pulumi.StringPtrInput
	// region
	Region pulumi.StringInput
	// Size of volume in GB
	Size pulumi.IntInput
}

The set of arguments for constructing a Volume resource.

func (VolumeArgs) ElementType

func (VolumeArgs) ElementType() reflect.Type

type VolumeArray

type VolumeArray []VolumeInput

func (VolumeArray) ElementType

func (VolumeArray) ElementType() reflect.Type

func (VolumeArray) ToVolumeArrayOutput

func (i VolumeArray) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArray) ToVolumeArrayOutputWithContext

func (i VolumeArray) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeArrayInput

type VolumeArrayInput interface {
	pulumi.Input

	ToVolumeArrayOutput() VolumeArrayOutput
	ToVolumeArrayOutputWithContext(context.Context) VolumeArrayOutput
}

VolumeArrayInput is an input type that accepts VolumeArray and VolumeArrayOutput values. You can construct a concrete instance of `VolumeArrayInput` via:

VolumeArray{ VolumeArgs{...} }

type VolumeArrayOutput

type VolumeArrayOutput struct{ *pulumi.OutputState }

func (VolumeArrayOutput) ElementType

func (VolumeArrayOutput) ElementType() reflect.Type

func (VolumeArrayOutput) Index

func (VolumeArrayOutput) ToVolumeArrayOutput

func (o VolumeArrayOutput) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArrayOutput) ToVolumeArrayOutputWithContext

func (o VolumeArrayOutput) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeInput

type VolumeInput interface {
	pulumi.Input

	ToVolumeOutput() VolumeOutput
	ToVolumeOutputWithContext(ctx context.Context) VolumeOutput
}

type VolumeMap

type VolumeMap map[string]VolumeInput

func (VolumeMap) ElementType

func (VolumeMap) ElementType() reflect.Type

func (VolumeMap) ToVolumeMapOutput

func (i VolumeMap) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMap) ToVolumeMapOutputWithContext

func (i VolumeMap) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeMapInput

type VolumeMapInput interface {
	pulumi.Input

	ToVolumeMapOutput() VolumeMapOutput
	ToVolumeMapOutputWithContext(context.Context) VolumeMapOutput
}

VolumeMapInput is an input type that accepts VolumeMap and VolumeMapOutput values. You can construct a concrete instance of `VolumeMapInput` via:

VolumeMap{ "key": VolumeArgs{...} }

type VolumeMapOutput

type VolumeMapOutput struct{ *pulumi.OutputState }

func (VolumeMapOutput) ElementType

func (VolumeMapOutput) ElementType() reflect.Type

func (VolumeMapOutput) MapIndex

func (VolumeMapOutput) ToVolumeMapOutput

func (o VolumeMapOutput) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMapOutput) ToVolumeMapOutputWithContext

func (o VolumeMapOutput) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeOutput

type VolumeOutput struct{ *pulumi.OutputState }

func (VolumeOutput) App

Name of app to attach to

func (VolumeOutput) ElementType

func (VolumeOutput) ElementType() reflect.Type

func (VolumeOutput) Name

func (o VolumeOutput) Name() pulumi.StringOutput

name

func (VolumeOutput) Region

func (o VolumeOutput) Region() pulumi.StringOutput

region

func (VolumeOutput) Size

func (o VolumeOutput) Size() pulumi.IntOutput

Size of volume in GB

func (VolumeOutput) ToVolumeOutput

func (o VolumeOutput) ToVolumeOutput() VolumeOutput

func (VolumeOutput) ToVolumeOutputWithContext

func (o VolumeOutput) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

type VolumeState

type VolumeState struct {
	// Name of app to attach to
	App pulumi.StringPtrInput
	// name
	Name pulumi.StringPtrInput
	// region
	Region pulumi.StringPtrInput
	// Size of volume in GB
	Size pulumi.IntPtrInput
}

func (VolumeState) ElementType

func (VolumeState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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