Documentation ¶
Index ¶
- Variables
- type BlockDeviceMapping
- type Compute
- func (o Compute) MarshalJSON() ([]byte, error)
- func (o *Compute) SetElasticIP(v *string) *Compute
- func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
- func (o *Compute) SetPrivateIP(v *string) *Compute
- func (o *Compute) SetProduct(v *string) *Compute
- func (o *Compute) SetSubnetIDs(v []string) *Compute
- func (o *Compute) SetVpcId(v *string) *Compute
- type Costs
- type CostsManagedInstanceInput
- type CostsManagedInstanceOutput
- type CreateManagedInstanceInput
- type CreateManagedInstanceOutput
- type CreditSpecification
- type DeleteManagedInstanceInput
- type DeleteManagedInstanceOutput
- type Domain
- type EBS
- type HealthCheck
- type IAMInstanceProfile
- type InstanceTypes
- type Integration
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification
- func (o *LaunchSpecification) SetCreditSpecification(v *CreditSpecification) *LaunchSpecification
- func (o *LaunchSpecification) SetEBSOptimized(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification
- func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetInstanceTypes(v *InstanceTypes) *LaunchSpecification
- func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetMonitoring(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetNetworkInterfaces(v []*NetworkInterface) *LaunchSpecification
- func (o *LaunchSpecification) SetSecurityGroupIDs(v []string) *LaunchSpecification
- func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
- func (o *LaunchSpecification) SetTenancy(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification
- type ListManagedInstancesInput
- type ListManagedInstancesOutput
- type LoadBalancer
- func (o LoadBalancer) MarshalJSON() ([]byte, error)
- func (o *LoadBalancer) SetArn(v *string) *LoadBalancer
- func (o *LoadBalancer) SetAutoWeight(v *bool) *LoadBalancer
- func (o *LoadBalancer) SetBalancerId(v *string) *LoadBalancer
- func (o *LoadBalancer) SetName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetTargetSetId(v *string) *LoadBalancer
- func (o *LoadBalancer) SetType(v *string) *LoadBalancer
- func (o *LoadBalancer) SetZoneAwareness(v *bool) *LoadBalancer
- type LoadBalancersConfig
- type ManagedInstance
- func (o ManagedInstance) MarshalJSON() ([]byte, error)
- func (o *ManagedInstance) SetCompute(v *Compute) *ManagedInstance
- func (o *ManagedInstance) SetDescription(v *string) *ManagedInstance
- func (o *ManagedInstance) SetHealthCheck(v *HealthCheck) *ManagedInstance
- func (o *ManagedInstance) SetId(v *string) *ManagedInstance
- func (o *ManagedInstance) SetIntegration(v *Integration) *ManagedInstance
- func (o *ManagedInstance) SetName(v *string) *ManagedInstance
- func (o *ManagedInstance) SetPersistence(v *Persistence) *ManagedInstance
- func (o *ManagedInstance) SetRegion(v *string) *ManagedInstance
- func (o *ManagedInstance) SetScheduling(v *Scheduling) *ManagedInstance
- func (o *ManagedInstance) SetStrategy(v *Strategy) *ManagedInstance
- type NetworkInterface
- func (o NetworkInterface) MarshalJSON() ([]byte, error)
- func (o *NetworkInterface) SetAssociateIPV6Address(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetAssociatePublicIPAddress(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetDeviceIndex(v *int) *NetworkInterface
- func (o *NetworkInterface) SetId(v *string) *NetworkInterface
- type Persistence
- func (o Persistence) MarshalJSON() ([]byte, error)
- func (o *Persistence) SetBlockDevicesMode(v *string) *Persistence
- func (o *Persistence) SetPersistPrivateIP(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistBlockDevices(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistRootDevice(v *bool) *Persistence
- type Product
- type ReadManagedInstanceInput
- type ReadManagedInstanceOutput
- type RecordSet
- type RevertToSpot
- type Route53Integration
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) Costs(ctx context.Context, input *CostsManagedInstanceInput) (*CostsManagedInstanceOutput, error)
- func (s *ServiceOp) Create(ctx context.Context, input *CreateManagedInstanceInput) (*CreateManagedInstanceOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteManagedInstanceInput) (*DeleteManagedInstanceOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListManagedInstancesInput) (*ListManagedInstancesOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadManagedInstanceInput) (*ReadManagedInstanceOutput, error)
- func (s *ServiceOp) Status(ctx context.Context, input *StatusManagedInstanceInput) (*StatusManagedInstanceOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateManagedInstanceInput) (*UpdateManagedInstanceOutput, error)
- type StatusManagedInstanceInput
- type StatusManagedInstanceOutput
- type Strategy
- func (o Strategy) MarshalJSON() ([]byte, error)
- func (o *Strategy) SetDrainingTimeout(v *int) *Strategy
- func (o *Strategy) SetFallbackToOnDemand(v *bool) *Strategy
- func (o *Strategy) SetLifeCycle(v *string) *Strategy
- func (o *Strategy) SetMinimumInstanceLifetime(v *int) *Strategy
- func (o *Strategy) SetOptimizationWindows(v []string) *Strategy
- func (o *Strategy) SetOrientation(v *string) *Strategy
- func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
- func (o *Strategy) SetUtilizeReservedInstances(v *bool) *Strategy
- type Tag
- type Task
- type UnitValue
- type UpdateManagedInstanceInput
- type UpdateManagedInstanceOutput
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 BlockDeviceMapping ¶ added in v1.84.0
type BlockDeviceMapping struct { DeviceName *string `json:"deviceName,omitempty"` EBS *EBS `json:"ebs,omitempty"` // contains filtered or unexported fields }
func (BlockDeviceMapping) MarshalJSON ¶ added in v1.84.0
func (o BlockDeviceMapping) MarshalJSON() ([]byte, error)
func (*BlockDeviceMapping) SetDeviceName ¶ added in v1.84.0
func (o *BlockDeviceMapping) SetDeviceName(v *string) *BlockDeviceMapping
func (*BlockDeviceMapping) SetEBS ¶ added in v1.84.0
func (o *BlockDeviceMapping) SetEBS(v *EBS) *BlockDeviceMapping
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 (*Compute) SetElasticIP ¶
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetPrivateIP ¶
func (*Compute) SetProduct ¶
func (*Compute) SetSubnetIDs ¶
type CostsManagedInstanceInput ¶ added in v1.87.0
type CostsManagedInstanceOutput ¶ added in v1.87.0
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 (*Domain) SetHostedZoneId ¶
func (*Domain) SetRecordSetType ¶ added in v1.57.0
func (*Domain) SetRecordSets ¶
func (*Domain) SetSpotinstAccountId ¶
type EBS ¶ added in v1.84.0
type EBS struct { DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"` VolumeType *string `json:"volumeType,omitempty"` IOPS *int `json:"iops,omitempty"` VolumeSize *int `json:"volumeSize,omitempty"` Throughput *int `json:"throughput,omitempty"` // contains filtered or unexported fields }
func (EBS) MarshalJSON ¶ added in v1.84.0
func (*EBS) SetDeleteOnTermination ¶ added in v1.84.0
func (*EBS) SetThroughput ¶ added in v1.84.0
func (*EBS) SetVolumeSize ¶ added in v1.84.0
func (*EBS) SetVolumeType ¶ added in v1.84.0
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 (o *IAMInstanceProfile) SetArn(v *string) *IAMInstanceProfile
func (*IAMInstanceProfile) SetName ¶
func (o *IAMInstanceProfile) SetName(v *string) *IAMInstanceProfile
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"` BlockDeviceMappings []*BlockDeviceMapping `json:"blockDeviceMappings,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecification) MarshalJSON ¶
func (o LaunchSpecification) MarshalJSON() ([]byte, error)
func (*LaunchSpecification) SetBlockDeviceMappings ¶ added in v1.84.0
func (o *LaunchSpecification) SetBlockDeviceMappings(v []*BlockDeviceMapping) *LaunchSpecification
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 ¶
func (o *NetworkInterface) SetId(v *string) *NetworkInterface
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 )
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 (*RecordSet) SetUsePublicDNS ¶ added in v1.57.0
func (*RecordSet) SetUsePublicIP ¶
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 ¶
type Service interface { List(context.Context, *ListManagedInstancesInput) (*ListManagedInstancesOutput, error) Create(context.Context, *CreateManagedInstanceInput) (*CreateManagedInstanceOutput, error) Read(context.Context, *ReadManagedInstanceInput) (*ReadManagedInstanceOutput, error) Update(context.Context, *UpdateManagedInstanceInput) (*UpdateManagedInstanceOutput, error) Delete(context.Context, *DeleteManagedInstanceInput) (*DeleteManagedInstanceOutput, error) Status(context.Context, *StatusManagedInstanceInput) (*StatusManagedInstanceOutput, error) Costs(context.Context, *CostsManagedInstanceInput) (*CostsManagedInstanceOutput, error) }
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 ¶
func (*ServiceOp) Costs ¶ added in v1.87.0
func (s *ServiceOp) Costs(ctx context.Context, input *CostsManagedInstanceInput) (*CostsManagedInstanceOutput, error)
func (*ServiceOp) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateManagedInstanceInput) (*CreateManagedInstanceOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteManagedInstanceInput) (*DeleteManagedInstanceOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListManagedInstancesInput) (*ListManagedInstancesOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadManagedInstanceInput) (*ReadManagedInstanceOutput, error)
func (*ServiceOp) Status ¶ added in v1.78.0
func (s *ServiceOp) Status(ctx context.Context, input *StatusManagedInstanceInput) (*StatusManagedInstanceOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateManagedInstanceInput) (*UpdateManagedInstanceOutput, error)
type StatusManagedInstanceInput ¶ added in v1.78.0
type StatusManagedInstanceInput struct {
ManagedInstanceID *string `json:"managedInstanceId,omitempty"`
}
type StatusManagedInstanceOutput ¶ added in v1.78.0
type StatusManagedInstanceOutput struct { ID *string `json:"id,omitempty"` ImageID *string `json:"imageId,omitempty"` InstanceID *string `json:"instanceId,omitempty"` InstanceType *string `json:"instanceType,omitempty"` Name *string `json:"name,omitempty"` PrivateIP *string `json:"privateIp,omitempty"` PublicIP *string `json:"publicIp,omitempty"` Status *string `json:"status,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` LaunchedAt *time.Time `json:"launchedAt,omitempty"` }
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"` MinimumInstanceLifetime *int `json:"minimumInstanceLifetime,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetFallbackToOnDemand ¶
func (*Strategy) SetLifeCycle ¶
func (*Strategy) SetMinimumInstanceLifetime ¶ added in v1.89.0
func (*Strategy) SetOptimizationWindows ¶
func (*Strategy) SetOrientation ¶
func (*Strategy) SetRevertToSpot ¶
func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
func (*Strategy) SetUtilizeReservedInstances ¶
type Tag ¶
type Tag struct { Key *string `json:"tagKey,omitempty"` Value *string `json:"tagValue,omitempty"` // contains filtered or unexported fields }
func (Tag) MarshalJSON ¶
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 (*Task) SetCronExpression ¶
func (*Task) SetFrequency ¶
func (*Task) SetIsEnabled ¶
func (*Task) SetStartTime ¶
type UpdateManagedInstanceInput ¶
type UpdateManagedInstanceInput struct { ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"` AutoApplyTags *bool `json:"-"` }
type UpdateManagedInstanceOutput ¶
type UpdateManagedInstanceOutput struct {
ManagedInstance *ManagedInstance `json:"managedInstance,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.