aws

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProductName = map[Product]string{
	ProductWindows:      "Windows",
	ProductWindowsVPC:   "Windows (Amazon VPC)",
	ProductLinuxUnix:    "Linux/UNIX",
	ProductLinuxUnixVPC: "Linux/UNIX (Amazon VPC)",
	ProductSUSELinux:    "SUSE Linux",
	ProductSUSELinuxVPC: "SUSE Linux (Amazon VPC)",
}
View Source
var ProductValue = map[string]Product{
	"Windows":                 ProductWindows,
	"Windows (Amazon VPC)":    ProductWindowsVPC,
	"Linux/UNIX":              ProductLinuxUnix,
	"Linux/UNIX (Amazon VPC)": ProductLinuxUnixVPC,
	"SUSE Linux":              ProductSUSELinux,
	"SUSE Linux (Amazon VPC)": ProductSUSELinuxVPC,
}

Functions

This section is empty.

Types

type Compute

type Compute struct {
	Product             *string              `json:"product,omitempty"`
	ElasticIP           *string              `json:"elasticIp,omitempty"`
	PrivateIP           *string              `json:"privateIp,omitempty"`
	SubnetIDs           []string             `json:"subnetIds,omitempty"`
	VpcID               *string              `json:"vpcId,omitempty"`
	LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"`
	// contains filtered or unexported fields
}

func (Compute) MarshalJSON

func (o Compute) MarshalJSON() ([]byte, error)

func (*Compute) SetElasticIP

func (o *Compute) SetElasticIP(v *string) *Compute

func (*Compute) SetLaunchSpecification

func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute

func (*Compute) SetPrivateIP

func (o *Compute) SetPrivateIP(v *string) *Compute

func (*Compute) SetProduct

func (o *Compute) SetProduct(v *string) *Compute

func (*Compute) SetSubnetIDs

func (o *Compute) SetSubnetIDs(v []string) *Compute

func (*Compute) SetVpcId

func (o *Compute) SetVpcId(v *string) *Compute

type CreateManagedInstanceInput

type CreateManagedInstanceInput struct {
	ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
}

type CreateManagedInstanceOutput

type CreateManagedInstanceOutput struct {
	ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
}

type CreditSpecification

type CreditSpecification struct {
	CPUCredits *string `json:"cpuCredits,omitempty"`
	// contains filtered or unexported fields
}

func (CreditSpecification) MarshalJSON

func (o CreditSpecification) MarshalJSON() ([]byte, error)

func (*CreditSpecification) SetCPUCredits

func (o *CreditSpecification) SetCPUCredits(v *string) *CreditSpecification

type DeleteManagedInstanceInput

type DeleteManagedInstanceInput struct {
	ManagedInstanceID *string `json:"managedInstanceId,omitempty"`
}

type DeleteManagedInstanceOutput

type DeleteManagedInstanceOutput struct{}

type Domain

type Domain struct {
	HostedZoneID      *string      `json:"hostedZoneId,omitempty"`
	SpotinstAccountID *string      `json:"spotinstAccountId,omitempty"`
	RecordSetType     *string      `json:"recordSetType,omitempty"`
	RecordSets        []*RecordSet `json:"recordSets,omitempty"`
	// contains filtered or unexported fields
}

func (Domain) MarshalJSON

func (o Domain) MarshalJSON() ([]byte, error)

func (*Domain) SetHostedZoneId

func (o *Domain) SetHostedZoneId(v *string) *Domain

func (*Domain) SetRecordSetType added in v1.57.0

func (o *Domain) SetRecordSetType(v *string) *Domain

func (*Domain) SetRecordSets

func (o *Domain) SetRecordSets(v []*RecordSet) *Domain

func (*Domain) SetSpotinstAccountId

func (o *Domain) SetSpotinstAccountId(v *string) *Domain

type HealthCheck

type HealthCheck struct {
	HealthCheckType   *string `json:"type,omitempty"`
	GracePeriod       *int    `json:"gracePeriod,omitempty"`
	UnhealthyDuration *int    `json:"unhealthyDuration,omitempty"`
	AutoHealing       *bool   `json:"autoHealing,omitempty"`
	// contains filtered or unexported fields
}

func (HealthCheck) MarshalJSON

func (o HealthCheck) MarshalJSON() ([]byte, error)

func (*HealthCheck) SetAutoHealing

func (o *HealthCheck) SetAutoHealing(v *bool) *HealthCheck

func (*HealthCheck) SetGracePeriod

func (o *HealthCheck) SetGracePeriod(v *int) *HealthCheck

func (*HealthCheck) SetHealthCheckType

func (o *HealthCheck) SetHealthCheckType(v *string) *HealthCheck

func (*HealthCheck) SetUnhealthyDuration

func (o *HealthCheck) SetUnhealthyDuration(v *int) *HealthCheck

type IAMInstanceProfile

type IAMInstanceProfile struct {
	Name *string `json:"name,omitempty"`
	Arn  *string `json:"arn,omitempty"`
	// contains filtered or unexported fields
}

func (IAMInstanceProfile) MarshalJSON

func (o IAMInstanceProfile) MarshalJSON() ([]byte, error)

func (*IAMInstanceProfile) SetArn

func (*IAMInstanceProfile) SetName

type InstanceTypes

type InstanceTypes struct {
	PreferredType *string  `json:"preferredType,omitempty"`
	Types         []string `json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (InstanceTypes) MarshalJSON

func (o InstanceTypes) MarshalJSON() ([]byte, error)

func (*InstanceTypes) SetInstanceTypes

func (o *InstanceTypes) SetInstanceTypes(v []string) *InstanceTypes

func (*InstanceTypes) SetPreferredType

func (o *InstanceTypes) SetPreferredType(v *string) *InstanceTypes

type Integration

type Integration struct {
	LoadBalancersConfig *LoadBalancersConfig `json:"loadBalancersConfig,omitempty"`
	Route53             *Route53Integration  `json:"route53,omitempty"`
	// contains filtered or unexported fields
}

func (Integration) MarshalJSON

func (o Integration) MarshalJSON() ([]byte, error)

func (*Integration) SetLoadBalancersConfig

func (o *Integration) SetLoadBalancersConfig(v *LoadBalancersConfig) *Integration

func (*Integration) SetRoute53

func (o *Integration) SetRoute53(v *Route53Integration) *Integration

type LaunchSpecification

type LaunchSpecification struct {
	SecurityGroupIDs    []string             `json:"securityGroupIds,omitempty"`
	ImageID             *string              `json:"imageId,omitempty"`
	KeyPair             *string              `json:"keyPair,omitempty"`
	UserData            *string              `json:"userData,omitempty"`
	ShutdownScript      *string              `json:"shutdownScript,omitempty"`
	Tenancy             *string              `json:"tenancy,omitempty"`
	Monitoring          *bool                `json:"monitoring,omitempty"`
	EBSOptimized        *bool                `json:"ebsOptimized,omitempty"`
	InstanceTypes       *InstanceTypes       `json:"instanceTypes,omitempty"`
	CreditSpecification *CreditSpecification `json:"creditSpecification,omitempty"`
	IAMInstanceProfile  *IAMInstanceProfile  `json:"iamRole,omitempty"`
	NetworkInterfaces   []*NetworkInterface  `json:"networkInterfaces,omitempty"`
	Tags                []*Tag               `json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecification) MarshalJSON

func (o LaunchSpecification) MarshalJSON() ([]byte, error)

func (*LaunchSpecification) SetCreditSpecification

func (o *LaunchSpecification) SetCreditSpecification(v *CreditSpecification) *LaunchSpecification

func (*LaunchSpecification) SetEBSOptimized

func (o *LaunchSpecification) SetEBSOptimized(v *bool) *LaunchSpecification

func (*LaunchSpecification) SetIAMInstanceProfile

func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification

func (*LaunchSpecification) SetImageId

func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification

func (*LaunchSpecification) SetInstanceTypes

func (o *LaunchSpecification) SetInstanceTypes(v *InstanceTypes) *LaunchSpecification

func (*LaunchSpecification) SetKeyPair

func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification

func (*LaunchSpecification) SetMonitoring

func (o *LaunchSpecification) SetMonitoring(v *bool) *LaunchSpecification

func (*LaunchSpecification) SetNetworkInterfaces

func (o *LaunchSpecification) SetNetworkInterfaces(v []*NetworkInterface) *LaunchSpecification

func (*LaunchSpecification) SetSecurityGroupIDs

func (o *LaunchSpecification) SetSecurityGroupIDs(v []string) *LaunchSpecification

func (*LaunchSpecification) SetShutdownScript

func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification

func (*LaunchSpecification) SetTags

func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification

func (*LaunchSpecification) SetTenancy

func (o *LaunchSpecification) SetTenancy(v *string) *LaunchSpecification

func (*LaunchSpecification) SetUserData

func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification

type ListManagedInstancesInput

type ListManagedInstancesInput struct{}

type ListManagedInstancesOutput

type ListManagedInstancesOutput struct {
	ManagedInstances []*ManagedInstance `json:"managedInstances,omitempty"`
}

type LoadBalancer

type LoadBalancer struct {
	Name        *string `json:"name,omitempty"`
	Arn         *string `json:"arn,omitempty"`
	Type        *string `json:"type,omitempty"`
	BalancerID  *string `json:"balancerId,omitempty"`
	TargetSetID *string `json:"targetSetId,omitempty"`
	AzAwareness *bool   `json:"azAwareness,omitempty"`
	AutoWeight  *bool   `json:"autoWeight,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancer) MarshalJSON

func (o LoadBalancer) MarshalJSON() ([]byte, error)

func (*LoadBalancer) SetArn

func (o *LoadBalancer) SetArn(v *string) *LoadBalancer

func (*LoadBalancer) SetAutoWeight

func (o *LoadBalancer) SetAutoWeight(v *bool) *LoadBalancer

func (*LoadBalancer) SetBalancerId

func (o *LoadBalancer) SetBalancerId(v *string) *LoadBalancer

func (*LoadBalancer) SetName

func (o *LoadBalancer) SetName(v *string) *LoadBalancer

func (*LoadBalancer) SetTargetSetId

func (o *LoadBalancer) SetTargetSetId(v *string) *LoadBalancer

func (*LoadBalancer) SetType

func (o *LoadBalancer) SetType(v *string) *LoadBalancer

func (*LoadBalancer) SetZoneAwareness

func (o *LoadBalancer) SetZoneAwareness(v *bool) *LoadBalancer

type LoadBalancersConfig

type LoadBalancersConfig struct {
	LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancersConfig) MarshalJSON

func (o LoadBalancersConfig) MarshalJSON() ([]byte, error)

func (*LoadBalancersConfig) SetLoadBalancers

func (o *LoadBalancersConfig) SetLoadBalancers(v []*LoadBalancer) *LoadBalancersConfig

type ManagedInstance

type ManagedInstance struct {
	ID          *string      `json:"id,omitempty"`
	Name        *string      `json:"name,omitempty"`
	Description *string      `json:"description,omitempty"`
	Region      *string      `json:"region,omitempty"`
	Strategy    *Strategy    `json:"strategy,omitempty"`
	Compute     *Compute     `json:"compute,omitempty"`
	Persistence *Persistence `json:"persistence,omitempty"`
	HealthCheck *HealthCheck `json:"healthCheck,omitempty"`
	Scheduling  *Scheduling  `json:"scheduling,omitempty"`
	Integration *Integration `json:"integrations,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (ManagedInstance) MarshalJSON

func (o ManagedInstance) MarshalJSON() ([]byte, error)

func (*ManagedInstance) SetCompute

func (o *ManagedInstance) SetCompute(v *Compute) *ManagedInstance

func (*ManagedInstance) SetDescription

func (o *ManagedInstance) SetDescription(v *string) *ManagedInstance

func (*ManagedInstance) SetHealthCheck

func (o *ManagedInstance) SetHealthCheck(v *HealthCheck) *ManagedInstance

func (*ManagedInstance) SetId

func (o *ManagedInstance) SetId(v *string) *ManagedInstance

func (*ManagedInstance) SetIntegration

func (o *ManagedInstance) SetIntegration(v *Integration) *ManagedInstance

func (*ManagedInstance) SetName

func (o *ManagedInstance) SetName(v *string) *ManagedInstance

func (*ManagedInstance) SetPersistence

func (o *ManagedInstance) SetPersistence(v *Persistence) *ManagedInstance

func (*ManagedInstance) SetRegion

func (o *ManagedInstance) SetRegion(v *string) *ManagedInstance

func (*ManagedInstance) SetScheduling

func (o *ManagedInstance) SetScheduling(v *Scheduling) *ManagedInstance

func (*ManagedInstance) SetStrategy

func (o *ManagedInstance) SetStrategy(v *Strategy) *ManagedInstance

type NetworkInterface

type NetworkInterface struct {
	ID                       *string `json:"networkInterfaceId,omitempty"`
	DeviceIndex              *int    `json:"deviceIndex,omitempty"`
	AssociatePublicIPAddress *bool   `json:"associatePublicIpAddress,omitempty"`
	AssociateIPV6Address     *bool   `json:"associateIpv6Address,omitempty"`
	// contains filtered or unexported fields
}

func (NetworkInterface) MarshalJSON

func (o NetworkInterface) MarshalJSON() ([]byte, error)

func (*NetworkInterface) SetAssociateIPV6Address

func (o *NetworkInterface) SetAssociateIPV6Address(v *bool) *NetworkInterface

func (*NetworkInterface) SetAssociatePublicIPAddress

func (o *NetworkInterface) SetAssociatePublicIPAddress(v *bool) *NetworkInterface

func (*NetworkInterface) SetDeviceIndex

func (o *NetworkInterface) SetDeviceIndex(v *int) *NetworkInterface

func (*NetworkInterface) SetId

type Persistence

type Persistence struct {
	PersistBlockDevices *bool   `json:"persistBlockDevices,omitempty"`
	PersistRootDevice   *bool   `json:"persistRootDevice,omitempty"`
	PersistPrivateIP    *bool   `json:"persistPrivateIp,omitempty"`
	BlockDevicesMode    *string `json:"blockDevicesMode,omitempty"`
	// contains filtered or unexported fields
}

func (Persistence) MarshalJSON

func (o Persistence) MarshalJSON() ([]byte, error)

func (*Persistence) SetBlockDevicesMode

func (o *Persistence) SetBlockDevicesMode(v *string) *Persistence

func (*Persistence) SetPersistPrivateIP

func (o *Persistence) SetPersistPrivateIP(v *bool) *Persistence

func (*Persistence) SetShouldPersistBlockDevices

func (o *Persistence) SetShouldPersistBlockDevices(v *bool) *Persistence

func (*Persistence) SetShouldPersistRootDevice

func (o *Persistence) SetShouldPersistRootDevice(v *bool) *Persistence

type Product

type Product int

A Product represents the type of an operating system.

const (
	// ProductWindows represents the Windows product.
	ProductWindows Product = iota

	// ProductWindowsVPC represents the Windows (Amazon VPC) product.
	ProductWindowsVPC

	// ProductLinuxUnix represents the Linux/Unix product.
	ProductLinuxUnix

	// ProductLinuxUnixVPC represents the Linux/Unix (Amazon VPC) product.
	ProductLinuxUnixVPC

	// ProductSUSELinux represents the SUSE Linux product.
	ProductSUSELinux

	// ProductSUSELinuxVPC represents the SUSE Linux (Amazon VPC) product.
	ProductSUSELinuxVPC
)

func (Product) String

func (p Product) String() string

type ReadManagedInstanceInput

type ReadManagedInstanceInput struct {
	ManagedInstanceID *string `json:"managedInstanceId,omitempty"`
}

type ReadManagedInstanceOutput

type ReadManagedInstanceOutput struct {
	ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
}

type RecordSet

type RecordSet struct {
	Name         *string `json:"name,omitempty"`
	UsePublicIP  *bool   `json:"usePublicIp,omitempty"`
	UsePublicDNS *bool   `json:"usePublicDns,omitempty"`
	// contains filtered or unexported fields
}

func (RecordSet) MarshalJSON

func (o RecordSet) MarshalJSON() ([]byte, error)

func (*RecordSet) SetName

func (o *RecordSet) SetName(v *string) *RecordSet

func (*RecordSet) SetUsePublicDNS added in v1.57.0

func (o *RecordSet) SetUsePublicDNS(v *bool) *RecordSet

func (*RecordSet) SetUsePublicIP

func (o *RecordSet) SetUsePublicIP(v *bool) *RecordSet

type RevertToSpot

type RevertToSpot struct {
	PerformAt *string `json:"performAt,omitempty"`
	// contains filtered or unexported fields
}

func (RevertToSpot) MarshalJSON

func (o RevertToSpot) MarshalJSON() ([]byte, error)

func (*RevertToSpot) SetPerformAt

func (o *RevertToSpot) SetPerformAt(v *string) *RevertToSpot

type Route53Integration

type Route53Integration struct {
	Domains []*Domain `json:"domains,omitempty"`
	// contains filtered or unexported fields
}

func (Route53Integration) MarshalJSON

func (o Route53Integration) MarshalJSON() ([]byte, error)

func (*Route53Integration) SetDomains

func (o *Route53Integration) SetDomains(v []*Domain) *Route53Integration

type Scheduling

type Scheduling struct {
	Tasks []*Task `json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (Scheduling) MarshalJSON

func (o Scheduling) MarshalJSON() ([]byte, error)

func (*Scheduling) SetTasks

func (o *Scheduling) SetTasks(v []*Task) *Scheduling

type Service

Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) Create

func (*ServiceOp) Delete

func (*ServiceOp) List

func (*ServiceOp) Read

func (*ServiceOp) Update

type Strategy

type Strategy struct {
	LifeCycle                *string       `json:"lifeCycle,omitempty"`
	Orientation              *string       `json:"orientation,omitempty"`
	DrainingTimeout          *int          `json:"drainingTimeout,omitempty"`
	FallbackToOnDemand       *bool         `json:"fallbackToOd,omitempty"`
	UtilizeReservedInstances *bool         `json:"utilizeReservedInstances,omitempty"`
	OptimizationWindows      []string      `json:"optimizationWindows,omitempty"`
	RevertToSpot             *RevertToSpot `json:"revertToSpot,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON

func (o Strategy) MarshalJSON() ([]byte, error)

func (*Strategy) SetDrainingTimeout

func (o *Strategy) SetDrainingTimeout(v *int) *Strategy

func (*Strategy) SetFallbackToOnDemand

func (o *Strategy) SetFallbackToOnDemand(v *bool) *Strategy

func (*Strategy) SetLifeCycle

func (o *Strategy) SetLifeCycle(v *string) *Strategy

func (*Strategy) SetOptimizationWindows

func (o *Strategy) SetOptimizationWindows(v []string) *Strategy

func (*Strategy) SetOrientation

func (o *Strategy) SetOrientation(v *string) *Strategy

func (*Strategy) SetRevertToSpot

func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy

func (*Strategy) SetUtilizeReservedInstances

func (o *Strategy) SetUtilizeReservedInstances(v *bool) *Strategy

type Tag

type Tag struct {
	Key   *string `json:"tagKey,omitempty"`
	Value *string `json:"tagValue,omitempty"`
	// contains filtered or unexported fields
}

func (Tag) MarshalJSON

func (o Tag) MarshalJSON() ([]byte, error)

func (*Tag) SetKey

func (o *Tag) SetKey(v *string) *Tag

func (*Tag) SetValue

func (o *Tag) SetValue(v *string) *Tag

type Task

type Task struct {
	IsEnabled      *bool   `json:"isEnabled,omitempty"`
	Type           *string `json:"taskType,omitempty"`
	Frequency      *string `json:"frequency,omitempty"`
	CronExpression *string `json:"cronExpression,omitempty"`
	StartTime      *string `json:"startTime,omitempty"`
	// contains filtered or unexported fields
}

func (Task) MarshalJSON

func (o Task) MarshalJSON() ([]byte, error)

func (*Task) SetCronExpression

func (o *Task) SetCronExpression(v *string) *Task

func (*Task) SetFrequency

func (o *Task) SetFrequency(v *string) *Task

func (*Task) SetIsEnabled

func (o *Task) SetIsEnabled(v *bool) *Task

func (*Task) SetStartTime

func (o *Task) SetStartTime(v *string) *Task

func (*Task) SetType

func (o *Task) SetType(v *string) *Task

type UpdateManagedInstanceInput

type UpdateManagedInstanceInput struct {
	ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
	AutoApplyTags   *bool            `json:"-"`
}

type UpdateManagedInstanceOutput

type UpdateManagedInstanceOutput struct {
	ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
}

Jump to

Keyboard shortcuts

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