Documentation ¶
Index ¶
- Variables
- type Action
- func (o Action) MarshalJSON() ([]byte, error)
- func (o *Action) SetAdjustment(v *string) *Action
- func (o *Action) SetMaxTargetCapacity(v *string) *Action
- func (o *Action) SetMaximum(v *string) *Action
- func (o *Action) SetMinTargetCapacity(v *string) *Action
- func (o *Action) SetMinimum(v *string) *Action
- func (o *Action) SetTarget(v *string) *Action
- func (o *Action) SetType(v *string) *Action
- type AutoScale
- func (o AutoScale) MarshalJSON() ([]byte, error)
- func (o *AutoScale) SetCooldown(v *int) *AutoScale
- func (o *AutoScale) SetDown(v *AutoScaleDown) *AutoScale
- func (o *AutoScale) SetHeadroom(v *AutoScaleHeadroom) *AutoScale
- func (o *AutoScale) SetIsAutoConfig(v *bool) *AutoScale
- func (o *AutoScale) SetIsEnabled(v *bool) *AutoScale
- type AutoScaleAttributes
- type AutoScaleConstraint
- type AutoScaleDockerSwarm
- type AutoScaleDown
- type AutoScaleECS
- type AutoScaleHeadroom
- func (o AutoScaleHeadroom) MarshalJSON() ([]byte, error)
- func (o *AutoScaleHeadroom) SetCPUPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetGPUPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetMemoryPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetNumOfUnits(v *int) *AutoScaleHeadroom
- type AutoScaleKubernetes
- type AutoScaleLabel
- type AutoScaleNomad
- type AvailabilityZone
- type BeanstalkDeploymentPreferences
- func (o BeanstalkDeploymentPreferences) MarshalJSON() ([]byte, error)
- func (o *BeanstalkDeploymentPreferences) SetAutomaticRoll(v *bool) *BeanstalkDeploymentPreferences
- func (o *BeanstalkDeploymentPreferences) SetBatchSizePercentage(v *int) *BeanstalkDeploymentPreferences
- func (o *BeanstalkDeploymentPreferences) SetGracePeriod(v *int) *BeanstalkDeploymentPreferences
- func (o *BeanstalkDeploymentPreferences) SetStrategy(v *BeanstalkDeploymentStrategy) *BeanstalkDeploymentPreferences
- type BeanstalkDeploymentStrategy
- type BeanstalkMaintenanceInput
- type BeanstalkMaintenanceItem
- type BeanstalkMaintenanceOutput
- type BeanstalkManagedActions
- type BeanstalkPlatformUpdate
- func (o BeanstalkPlatformUpdate) MarshalJSON() ([]byte, error)
- func (o *BeanstalkPlatformUpdate) SetPerformAt(v *string) *BeanstalkPlatformUpdate
- func (o *BeanstalkPlatformUpdate) SetTimeWindow(v *string) *BeanstalkPlatformUpdate
- func (o *BeanstalkPlatformUpdate) SetUpdateLevel(v *string) *BeanstalkPlatformUpdate
- type BlockDeviceMapping
- type Capacity
- type ChefIntegration
- func (o ChefIntegration) MarshalJSON() ([]byte, error)
- func (o *ChefIntegration) SetOrganization(v *string) *ChefIntegration
- func (o *ChefIntegration) SetPEMKey(v *string) *ChefIntegration
- func (o *ChefIntegration) SetServer(v *string) *ChefIntegration
- func (o *ChefIntegration) SetUser(v *string) *ChefIntegration
- func (o *ChefIntegration) SetVersion(v *string) *ChefIntegration
- type CodeDeployIntegration
- func (o CodeDeployIntegration) MarshalJSON() ([]byte, error)
- func (o *CodeDeployIntegration) SetCleanUpOnFailure(v *bool) *CodeDeployIntegration
- func (o *CodeDeployIntegration) SetDeploymentGroups(v []*DeploymentGroup) *CodeDeployIntegration
- func (o *CodeDeployIntegration) SetTerminateInstanceOnFailure(v *bool) *CodeDeployIntegration
- type Compute
- func (o Compute) MarshalJSON() ([]byte, error)
- func (o *Compute) SetAvailabilityZones(v []*AvailabilityZone) *Compute
- func (o *Compute) SetEBSVolumePool(v []*EBSVolume) *Compute
- func (o *Compute) SetElasticIPs(v []string) *Compute
- func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute
- func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
- func (o *Compute) SetPreferredAvailabilityZones(v []string) *Compute
- func (o *Compute) SetPrivateIPs(v []string) *Compute
- func (o *Compute) SetProduct(v *string) *Compute
- func (o *Compute) SetSubnetIDs(v []string) *Compute
- type CreateGroupInput
- type CreateGroupOutput
- type CreditSpecification
- type DeleteGroupInput
- type DeleteGroupOutput
- type DeploymentGroup
- type DeploymentStatusInput
- type DetachGroupInput
- type DetachGroupOutput
- type Dimension
- type DockerSwarmIntegration
- func (o DockerSwarmIntegration) MarshalJSON() ([]byte, error)
- func (o *DockerSwarmIntegration) SetAutoScale(v *AutoScaleDockerSwarm) *DockerSwarmIntegration
- func (o *DockerSwarmIntegration) SetMasterHost(v *string) *DockerSwarmIntegration
- func (o *DockerSwarmIntegration) SetMasterPort(v *int) *DockerSwarmIntegration
- type Domain
- type EBS
- func (o EBS) MarshalJSON() ([]byte, error)
- func (o *EBS) SetDeleteOnTermination(v *bool) *EBS
- func (o *EBS) SetEncrypted(v *bool) *EBS
- func (o *EBS) SetIOPS(v *int) *EBS
- func (o *EBS) SetKmsKeyId(v *string) *EBS
- func (o *EBS) SetSnapshotId(v *string) *EBS
- func (o *EBS) SetVolumeSize(v *int) *EBS
- func (o *EBS) SetVolumeType(v *string) *EBS
- type EBSVolume
- type EC2ContainerServiceIntegration
- type ElasticBeanstalkIntegration
- func (o ElasticBeanstalkIntegration) MarshalJSON() ([]byte, error)
- func (o *ElasticBeanstalkIntegration) SetDeploymentPreferences(v *BeanstalkDeploymentPreferences) *ElasticBeanstalkIntegration
- func (o *ElasticBeanstalkIntegration) SetEnvironmentID(v *string) *ElasticBeanstalkIntegration
- func (o *ElasticBeanstalkIntegration) SetManagedActions(v *BeanstalkManagedActions) *ElasticBeanstalkIntegration
- type GetGroupEventsInput
- type GetGroupEventsOutput
- type GetInstanceHealthinessInput
- type GetInstanceHealthinessOutput
- type GitlabIntegration
- type GitlabRunner
- type Group
- func (o Group) MarshalJSON() ([]byte, error)
- func (o *Group) SetCapacity(v *Capacity) *Group
- func (o *Group) SetCompute(v *Compute) *Group
- func (o *Group) SetDescription(v *string) *Group
- func (o *Group) SetId(v *string) *Group
- func (o *Group) SetIntegration(v *Integration) *Group
- func (o *Group) SetName(v *string) *Group
- func (o *Group) SetRegion(v *string) *Group
- func (o *Group) SetScaling(v *Scaling) *Group
- func (o *Group) SetScheduling(v *Scheduling) *Group
- func (o *Group) SetStrategy(v *Strategy) *Group
- type GroupEvent
- type IAMInstanceProfile
- type ImportBeanstalkInput
- type ImportBeanstalkOutput
- type Instance
- type InstanceHealth
- type InstanceTypeWeight
- type InstanceTypes
- func (o InstanceTypes) MarshalJSON() ([]byte, error)
- func (o *InstanceTypes) SetOnDemand(v *string) *InstanceTypes
- func (o *InstanceTypes) SetPreferredSpot(v []string) *InstanceTypes
- func (o *InstanceTypes) SetSpot(v []string) *InstanceTypes
- func (o *InstanceTypes) SetWeights(v []*InstanceTypeWeight) *InstanceTypes
- type Integration
- func (o Integration) MarshalJSON() ([]byte, error)
- func (o *Integration) SetChef(v *ChefIntegration) *Integration
- func (o *Integration) SetCodeDeploy(v *CodeDeployIntegration) *Integration
- func (o *Integration) SetDockerSwarm(v *DockerSwarmIntegration) *Integration
- func (o *Integration) SetEC2ContainerService(v *EC2ContainerServiceIntegration) *Integration
- func (o *Integration) SetElasticBeanstalk(v *ElasticBeanstalkIntegration) *Integration
- func (o *Integration) SetGitlab(v *GitlabIntegration) *Integration
- func (o *Integration) SetKubernetes(v *KubernetesIntegration) *Integration
- func (o *Integration) SetMesosphere(v *MesosphereIntegration) *Integration
- func (o *Integration) SetMultai(v *MultaiIntegration) *Integration
- func (o *Integration) SetNomad(v *NomadIntegration) *Integration
- func (o *Integration) SetOpsWorks(v *OpsWorksIntegration) *Integration
- func (o *Integration) SetRancher(v *RancherIntegration) *Integration
- func (o *Integration) SetRoute53(v *Route53Integration) *Integration
- type KubernetesIntegration
- func (o KubernetesIntegration) MarshalJSON() ([]byte, error)
- func (o *KubernetesIntegration) SetAutoScale(v *AutoScaleKubernetes) *KubernetesIntegration
- func (o *KubernetesIntegration) SetClusterIdentifier(v *string) *KubernetesIntegration
- func (o *KubernetesIntegration) SetIntegrationMode(v *string) *KubernetesIntegration
- func (o *KubernetesIntegration) SetServer(v *string) *KubernetesIntegration
- func (o *KubernetesIntegration) SetToken(v *string) *KubernetesIntegration
- 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) SetHealthCheckGracePeriod(v *int) *LaunchSpecification
- func (o *LaunchSpecification) SetHealthCheckType(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetHealthCheckUnhealthyDurationBeforeReplacement(v *int) *LaunchSpecification
- func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification
- func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancerNames(v []string) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *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 ListGroupsInput
- type ListGroupsOutput
- 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 MesosphereIntegration
- type MultaiIntegration
- 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) SetDeleteOnTermination(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetDescription(v *string) *NetworkInterface
- func (o *NetworkInterface) SetDeviceIndex(v *int) *NetworkInterface
- func (o *NetworkInterface) SetId(v *string) *NetworkInterface
- func (o *NetworkInterface) SetPrivateIPAddress(v *string) *NetworkInterface
- func (o *NetworkInterface) SetSecondaryPrivateIPAddressCount(v *int) *NetworkInterface
- func (o *NetworkInterface) SetSecurityGroupsIDs(v []string) *NetworkInterface
- func (o *NetworkInterface) SetSubnetId(v *string) *NetworkInterface
- type NewInstance
- type NomadIntegration
- func (o NomadIntegration) MarshalJSON() ([]byte, error)
- func (o *NomadIntegration) SetAclToken(v *string) *NomadIntegration
- func (o *NomadIntegration) SetAutoScale(v *AutoScaleNomad) *NomadIntegration
- func (o *NomadIntegration) SetMasterHost(v *string) *NomadIntegration
- func (o *NomadIntegration) SetMasterPort(v *int) *NomadIntegration
- type OnFailure
- func (o OnFailure) MarshalJSON() ([]byte, error)
- func (o *OnFailure) SetActionType(v *string) *OnFailure
- func (o *OnFailure) SetBatchNum(v *int) *OnFailure
- func (o *OnFailure) SetDrainingTimeout(v *int) *OnFailure
- func (o *OnFailure) SetShouldDecrementTargetCapacity(v *bool) *OnFailure
- func (o *OnFailure) SetShouldHandleAllBatches(v *bool) *OnFailure
- type OpsWorksIntegration
- type Persistence
- func (o Persistence) MarshalJSON() ([]byte, error)
- func (o *Persistence) SetBlockDevicesMode(v *string) *Persistence
- func (o *Persistence) SetShouldPersistBlockDevices(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistPrivateIP(v *bool) *Persistence
- func (o *Persistence) SetShouldPersistRootDevice(v *bool) *Persistence
- type Predictive
- type Product
- type Progress
- type RancherIntegration
- func (o RancherIntegration) MarshalJSON() ([]byte, error)
- func (o *RancherIntegration) SetAccessKey(v *string) *RancherIntegration
- func (o *RancherIntegration) SetMasterHost(v *string) *RancherIntegration
- func (o *RancherIntegration) SetSecretKey(v *string) *RancherIntegration
- func (o *RancherIntegration) SetVersion(v *string) *RancherIntegration
- type ReadGroupInput
- type ReadGroupOutput
- type RecordSet
- type RevertToSpot
- type Roll
- type RollECSGroupInput
- type RollECSWrapper
- type RollGroupInput
- type RollGroupOutput
- type RollGroupStatus
- type RollStrategy
- type Route53Integration
- type ScaleDownOnDemandItem
- type ScaleDownSpotItem
- type ScaleGroupInput
- type ScaleGroupOutput
- type ScaleItem
- type ScaleUpOnDemandItem
- type ScaleUpSpotItem
- type Scaling
- type ScalingPolicy
- func (o ScalingPolicy) MarshalJSON() ([]byte, error)
- func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
- func (o *ScalingPolicy) SetAdjustment(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetDimensions(v []*Dimension) *ScalingPolicy
- func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetIsEnabled(v *bool) *ScalingPolicy
- func (o *ScalingPolicy) SetMaxTargetCapacity(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetMinTargetCapacity(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetPredictive(v *Predictive) *ScalingPolicy
- func (o *ScalingPolicy) SetSource(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetTarget(v *float64) *ScalingPolicy
- func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
- func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
- type ScalingStrategy
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
- func (s *ServiceOp) DeploymentStatus(ctx context.Context, input *DeploymentStatusInput) (*RollGroupOutput, error)
- func (s *ServiceOp) DeploymentStatusECS(ctx context.Context, input *DeploymentStatusInput) (*RollGroupOutput, error)
- func (s *ServiceOp) Detach(ctx context.Context, input *DetachGroupInput) (*DetachGroupOutput, error)
- func (s *ServiceOp) FinishBeanstalkMaintenance(ctx context.Context, input *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error)
- func (s *ServiceOp) GetBeanstalkMaintenanceStatus(ctx context.Context, input *BeanstalkMaintenanceInput) (*string, error)
- func (s *ServiceOp) GetGroupEvents(ctx context.Context, input *GetGroupEventsInput) (*GetGroupEventsOutput, error)
- func (s *ServiceOp) GetInstanceHealthiness(ctx context.Context, input *GetInstanceHealthinessInput) (*GetInstanceHealthinessOutput, error)
- func (s *ServiceOp) ImportBeanstalkEnv(ctx context.Context, input *ImportBeanstalkInput) (*ImportBeanstalkOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
- func (s *ServiceOp) Roll(ctx context.Context, input *RollGroupInput) (*RollGroupOutput, error)
- func (s *ServiceOp) RollECS(ctx context.Context, input *RollECSGroupInput) (*RollGroupOutput, error)
- func (s *ServiceOp) Scale(ctx context.Context, input *ScaleGroupInput) (*ScaleGroupOutput, error)
- func (s *ServiceOp) StartBeanstalkMaintenance(ctx context.Context, input *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error)
- func (s *ServiceOp) Status(ctx context.Context, input *StatusGroupInput) (*StatusGroupOutput, error)
- func (s *ServiceOp) StopDeployment(ctx context.Context, input *StopDeploymentInput) (*StopDeploymentOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
- type Signal
- type Spot
- type StatefulDeallocation
- type StatusGroupInput
- type StatusGroupOutput
- type StopDeploymentInput
- type StopDeploymentOutput
- type Strategy
- func (o Strategy) MarshalJSON() ([]byte, error)
- func (o *Strategy) SetAvailabilityVsCost(v *string) *Strategy
- func (o *Strategy) SetDrainingTimeout(v *int) *Strategy
- func (o *Strategy) SetFallbackToOnDemand(v *bool) *Strategy
- func (o *Strategy) SetLifetimePeriod(v *string) *Strategy
- func (o *Strategy) SetOnDemandCount(v *int) *Strategy
- func (o *Strategy) SetPersistence(v *Persistence) *Strategy
- func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
- func (o *Strategy) SetRisk(v *float64) *Strategy
- func (o *Strategy) SetScalingStrategy(v *ScalingStrategy) *Strategy
- func (o *Strategy) SetSignals(v []*Signal) *Strategy
- func (o *Strategy) SetSpinUpTime(v *int) *Strategy
- func (o *Strategy) SetUtilizeReservedInstances(v *bool) *Strategy
- type SubEvent
- type Tag
- type Task
- func (o Task) MarshalJSON() ([]byte, error)
- func (o *Task) SetAdjustment(v *int) *Task
- func (o *Task) SetAdjustmentPercentage(v *int) *Task
- func (o *Task) SetBatchSizePercentage(v *int) *Task
- func (o *Task) SetCronExpression(v *string) *Task
- func (o *Task) SetFrequency(v *string) *Task
- func (o *Task) SetGracePeriod(v *int) *Task
- func (o *Task) SetIsEnabled(v *bool) *Task
- func (o *Task) SetMaxCapacity(v *int) *Task
- func (o *Task) SetMinCapacity(v *int) *Task
- func (o *Task) SetScaleMaxCapacity(v *int) *Task
- func (o *Task) SetScaleMinCapacity(v *int) *Task
- func (o *Task) SetScaleTargetCapacity(v *int) *Task
- func (o *Task) SetStartTime(v *string) *Task
- func (o *Task) SetTargetCapacity(v *int) *Task
- func (o *Task) SetType(v *string) *Task
- type TerminatedInstance
- type UpdateGroupInput
- type UpdateGroupOutput
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 Action ¶
type Action struct { Type *string `json:"type,omitempty"` Adjustment *string `json:"adjustment,omitempty"` MinTargetCapacity *string `json:"minTargetCapacity,omitempty"` MaxTargetCapacity *string `json:"maxTargetCapacity,omitempty"` Maximum *string `json:"maximum,omitempty"` Minimum *string `json:"minimum,omitempty"` Target *string `json:"target,omitempty"` // contains filtered or unexported fields }
func (Action) MarshalJSON ¶
func (*Action) SetAdjustment ¶
func (*Action) SetMaxTargetCapacity ¶
func (*Action) SetMaximum ¶
func (*Action) SetMinTargetCapacity ¶
func (*Action) SetMinimum ¶
type AutoScale ¶
type AutoScale struct { IsEnabled *bool `json:"isEnabled,omitempty"` IsAutoConfig *bool `json:"isAutoConfig,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Headroom *AutoScaleHeadroom `json:"headroom,omitempty"` Down *AutoScaleDown `json:"down,omitempty"` // contains filtered or unexported fields }
func (AutoScale) MarshalJSON ¶
func (*AutoScale) SetCooldown ¶
func (*AutoScale) SetDown ¶
func (o *AutoScale) SetDown(v *AutoScaleDown) *AutoScale
func (*AutoScale) SetHeadroom ¶
func (o *AutoScale) SetHeadroom(v *AutoScaleHeadroom) *AutoScale
func (*AutoScale) SetIsAutoConfig ¶
func (*AutoScale) SetIsEnabled ¶
type AutoScaleAttributes ¶
type AutoScaleConstraint ¶
type AutoScaleConstraint struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (AutoScaleConstraint) MarshalJSON ¶
func (o AutoScaleConstraint) MarshalJSON() ([]byte, error)
func (*AutoScaleConstraint) SetKey ¶
func (o *AutoScaleConstraint) SetKey(v *string) *AutoScaleConstraint
func (*AutoScaleConstraint) SetValue ¶
func (o *AutoScaleConstraint) SetValue(v *string) *AutoScaleConstraint
type AutoScaleDockerSwarm ¶
type AutoScaleDockerSwarm struct { AutoScale // embedding // contains filtered or unexported fields }
func (AutoScaleDockerSwarm) MarshalJSON ¶
func (o AutoScaleDockerSwarm) MarshalJSON() ([]byte, error)
type AutoScaleDown ¶
type AutoScaleDown struct { EvaluationPeriods *int `json:"evaluationPeriods,omitempty"` MaxScaleDownPercentage *int `json:"maxScaleDownPercentage,omitempty"` // contains filtered or unexported fields }
func (AutoScaleDown) MarshalJSON ¶
func (o AutoScaleDown) MarshalJSON() ([]byte, error)
func (*AutoScaleDown) SetEvaluationPeriods ¶
func (o *AutoScaleDown) SetEvaluationPeriods(v *int) *AutoScaleDown
func (*AutoScaleDown) SetMaxScaleDownPercentage ¶
func (o *AutoScaleDown) SetMaxScaleDownPercentage(v *int) *AutoScaleDown
type AutoScaleECS ¶
type AutoScaleECS struct { AutoScale // embedding Attributes []*AutoScaleAttributes `json:"attributes,omitempty"` ShouldScaleDownNonServiceTasks *bool `json:"shouldScaleDownNonServiceTasks,omitempty"` // contains filtered or unexported fields }
func (AutoScaleECS) MarshalJSON ¶
func (o AutoScaleECS) MarshalJSON() ([]byte, error)
func (*AutoScaleECS) SetAttributes ¶
func (o *AutoScaleECS) SetAttributes(v []*AutoScaleAttributes) *AutoScaleECS
func (*AutoScaleECS) SetShouldScaleDownNonServiceTasks ¶
func (o *AutoScaleECS) SetShouldScaleDownNonServiceTasks(v *bool) *AutoScaleECS
type AutoScaleHeadroom ¶
type AutoScaleHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` GPUPerUnit *int `json:"gpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (AutoScaleHeadroom) MarshalJSON ¶
func (o AutoScaleHeadroom) MarshalJSON() ([]byte, error)
func (*AutoScaleHeadroom) SetCPUPerUnit ¶
func (o *AutoScaleHeadroom) SetCPUPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetGPUPerUnit ¶
func (o *AutoScaleHeadroom) SetGPUPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetMemoryPerUnit ¶
func (o *AutoScaleHeadroom) SetMemoryPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetNumOfUnits ¶
func (o *AutoScaleHeadroom) SetNumOfUnits(v *int) *AutoScaleHeadroom
type AutoScaleKubernetes ¶
type AutoScaleKubernetes struct { AutoScale // embedding Labels []*AutoScaleLabel `json:"labels,omitempty"` // contains filtered or unexported fields }
func (AutoScaleKubernetes) MarshalJSON ¶
func (o AutoScaleKubernetes) MarshalJSON() ([]byte, error)
func (*AutoScaleKubernetes) SetLabels ¶
func (o *AutoScaleKubernetes) SetLabels(v []*AutoScaleLabel) *AutoScaleKubernetes
type AutoScaleLabel ¶
type AutoScaleLabel struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (AutoScaleLabel) MarshalJSON ¶
func (o AutoScaleLabel) MarshalJSON() ([]byte, error)
func (*AutoScaleLabel) SetKey ¶
func (o *AutoScaleLabel) SetKey(v *string) *AutoScaleLabel
func (*AutoScaleLabel) SetValue ¶
func (o *AutoScaleLabel) SetValue(v *string) *AutoScaleLabel
type AutoScaleNomad ¶
type AutoScaleNomad struct { AutoScale // embedding Constraints []*AutoScaleConstraint `json:"constraints,omitempty"` // contains filtered or unexported fields }
func (AutoScaleNomad) MarshalJSON ¶
func (o AutoScaleNomad) MarshalJSON() ([]byte, error)
func (*AutoScaleNomad) SetConstraints ¶
func (o *AutoScaleNomad) SetConstraints(v []*AutoScaleConstraint) *AutoScaleNomad
type AvailabilityZone ¶
type AvailabilityZone struct { Name *string `json:"name,omitempty"` SubnetID *string `json:"subnetId,omitempty"` PlacementGroupName *string `json:"placementGroupName,omitempty"` // contains filtered or unexported fields }
func (AvailabilityZone) MarshalJSON ¶
func (o AvailabilityZone) MarshalJSON() ([]byte, error)
func (*AvailabilityZone) SetName ¶
func (o *AvailabilityZone) SetName(v *string) *AvailabilityZone
func (*AvailabilityZone) SetPlacementGroupName ¶
func (o *AvailabilityZone) SetPlacementGroupName(v *string) *AvailabilityZone
func (*AvailabilityZone) SetSubnetId ¶
func (o *AvailabilityZone) SetSubnetId(v *string) *AvailabilityZone
type BeanstalkDeploymentPreferences ¶
type BeanstalkDeploymentPreferences struct { AutomaticRoll *bool `json:"automaticRoll,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` Strategy *BeanstalkDeploymentStrategy `json:"strategy,omitempty"` // contains filtered or unexported fields }
func (BeanstalkDeploymentPreferences) MarshalJSON ¶
func (o BeanstalkDeploymentPreferences) MarshalJSON() ([]byte, error)
func (*BeanstalkDeploymentPreferences) SetAutomaticRoll ¶
func (o *BeanstalkDeploymentPreferences) SetAutomaticRoll(v *bool) *BeanstalkDeploymentPreferences
func (*BeanstalkDeploymentPreferences) SetBatchSizePercentage ¶
func (o *BeanstalkDeploymentPreferences) SetBatchSizePercentage(v *int) *BeanstalkDeploymentPreferences
func (*BeanstalkDeploymentPreferences) SetGracePeriod ¶
func (o *BeanstalkDeploymentPreferences) SetGracePeriod(v *int) *BeanstalkDeploymentPreferences
func (*BeanstalkDeploymentPreferences) SetStrategy ¶
func (o *BeanstalkDeploymentPreferences) SetStrategy(v *BeanstalkDeploymentStrategy) *BeanstalkDeploymentPreferences
type BeanstalkDeploymentStrategy ¶
type BeanstalkDeploymentStrategy struct { Action *string `json:"action,omitempty"` ShouldDrainInstances *bool `json:"shouldDrainInstances,omitempty"` // contains filtered or unexported fields }
func (BeanstalkDeploymentStrategy) MarshalJSON ¶
func (o BeanstalkDeploymentStrategy) MarshalJSON() ([]byte, error)
func (*BeanstalkDeploymentStrategy) SetAction ¶
func (o *BeanstalkDeploymentStrategy) SetAction(v *string) *BeanstalkDeploymentStrategy
func (*BeanstalkDeploymentStrategy) SetShouldDrainInstances ¶
func (o *BeanstalkDeploymentStrategy) SetShouldDrainInstances(v *bool) *BeanstalkDeploymentStrategy
type BeanstalkMaintenanceInput ¶
type BeanstalkMaintenanceInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type BeanstalkMaintenanceItem ¶
type BeanstalkMaintenanceItem struct {
Status *string `json:"status,omitempty"`
}
type BeanstalkMaintenanceOutput ¶
type BeanstalkMaintenanceOutput struct { Items []*BeanstalkMaintenanceItem `json:"items,omitempty"` Status *string `json:"status,omitempty"` }
type BeanstalkManagedActions ¶
type BeanstalkManagedActions struct { PlatformUpdate *BeanstalkPlatformUpdate `json:"platformUpdate,omitempty"` // contains filtered or unexported fields }
func (BeanstalkManagedActions) MarshalJSON ¶
func (o BeanstalkManagedActions) MarshalJSON() ([]byte, error)
func (*BeanstalkManagedActions) SetPlatformUpdate ¶
func (o *BeanstalkManagedActions) SetPlatformUpdate(v *BeanstalkPlatformUpdate) *BeanstalkManagedActions
type BeanstalkPlatformUpdate ¶
type BeanstalkPlatformUpdate struct { PerformAt *string `json:"performAt,omitempty"` TimeWindow *string `json:"timeWindow,omitempty"` UpdateLevel *string `json:"updateLevel,omitempty"` // contains filtered or unexported fields }
func (BeanstalkPlatformUpdate) MarshalJSON ¶
func (o BeanstalkPlatformUpdate) MarshalJSON() ([]byte, error)
func (*BeanstalkPlatformUpdate) SetPerformAt ¶
func (o *BeanstalkPlatformUpdate) SetPerformAt(v *string) *BeanstalkPlatformUpdate
func (*BeanstalkPlatformUpdate) SetTimeWindow ¶
func (o *BeanstalkPlatformUpdate) SetTimeWindow(v *string) *BeanstalkPlatformUpdate
func (*BeanstalkPlatformUpdate) SetUpdateLevel ¶
func (o *BeanstalkPlatformUpdate) SetUpdateLevel(v *string) *BeanstalkPlatformUpdate
type BlockDeviceMapping ¶
type BlockDeviceMapping struct { DeviceName *string `json:"deviceName,omitempty"` VirtualName *string `json:"virtualName,omitempty"` EBS *EBS `json:"ebs,omitempty"` // contains filtered or unexported fields }
func (BlockDeviceMapping) MarshalJSON ¶
func (o BlockDeviceMapping) MarshalJSON() ([]byte, error)
func (*BlockDeviceMapping) SetDeviceName ¶
func (o *BlockDeviceMapping) SetDeviceName(v *string) *BlockDeviceMapping
func (*BlockDeviceMapping) SetEBS ¶
func (o *BlockDeviceMapping) SetEBS(v *EBS) *BlockDeviceMapping
func (*BlockDeviceMapping) SetVirtualName ¶
func (o *BlockDeviceMapping) SetVirtualName(v *string) *BlockDeviceMapping
type Capacity ¶
type Capacity struct { Minimum *int `json:"minimum,omitempty"` Maximum *int `json:"maximum,omitempty"` Target *int `json:"target,omitempty"` Unit *string `json:"unit,omitempty"` // contains filtered or unexported fields }
func (Capacity) MarshalJSON ¶
func (*Capacity) SetMaximum ¶
func (*Capacity) SetMinimum ¶
type ChefIntegration ¶
type ChefIntegration struct { Server *string `json:"chefServer,omitempty"` Organization *string `json:"organization,omitempty"` User *string `json:"user,omitempty"` PEMKey *string `json:"pemKey,omitempty"` Version *string `json:"chefVersion,omitempty"` // contains filtered or unexported fields }
func (ChefIntegration) MarshalJSON ¶
func (o ChefIntegration) MarshalJSON() ([]byte, error)
func (*ChefIntegration) SetOrganization ¶
func (o *ChefIntegration) SetOrganization(v *string) *ChefIntegration
func (*ChefIntegration) SetPEMKey ¶
func (o *ChefIntegration) SetPEMKey(v *string) *ChefIntegration
func (*ChefIntegration) SetServer ¶
func (o *ChefIntegration) SetServer(v *string) *ChefIntegration
func (*ChefIntegration) SetUser ¶
func (o *ChefIntegration) SetUser(v *string) *ChefIntegration
func (*ChefIntegration) SetVersion ¶
func (o *ChefIntegration) SetVersion(v *string) *ChefIntegration
type CodeDeployIntegration ¶
type CodeDeployIntegration struct { DeploymentGroups []*DeploymentGroup `json:"deploymentGroups,omitempty"` CleanUpOnFailure *bool `json:"cleanUpOnFailure,omitempty"` TerminateInstanceOnFailure *bool `json:"terminateInstanceOnFailure,omitempty"` // contains filtered or unexported fields }
func (CodeDeployIntegration) MarshalJSON ¶
func (o CodeDeployIntegration) MarshalJSON() ([]byte, error)
func (*CodeDeployIntegration) SetCleanUpOnFailure ¶
func (o *CodeDeployIntegration) SetCleanUpOnFailure(v *bool) *CodeDeployIntegration
func (*CodeDeployIntegration) SetDeploymentGroups ¶
func (o *CodeDeployIntegration) SetDeploymentGroups(v []*DeploymentGroup) *CodeDeployIntegration
func (*CodeDeployIntegration) SetTerminateInstanceOnFailure ¶
func (o *CodeDeployIntegration) SetTerminateInstanceOnFailure(v *bool) *CodeDeployIntegration
type Compute ¶
type Compute struct { Product *string `json:"product,omitempty"` InstanceTypes *InstanceTypes `json:"instanceTypes,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` AvailabilityZones []*AvailabilityZone `json:"availabilityZones,omitempty"` PreferredAvailabilityZones []string `json:"preferredAvailabilityZones,omitempty"` ElasticIPs []string `json:"elasticIps,omitempty"` EBSVolumePool []*EBSVolume `json:"ebsVolumePool,omitempty"` PrivateIPs []string `json:"privateIps,omitempty"` SubnetIDs []string `json:"subnetIds,omitempty"` // contains filtered or unexported fields }
func (Compute) MarshalJSON ¶
func (*Compute) SetAvailabilityZones ¶
func (o *Compute) SetAvailabilityZones(v []*AvailabilityZone) *Compute
func (*Compute) SetEBSVolumePool ¶
func (*Compute) SetElasticIPs ¶
func (*Compute) SetInstanceTypes ¶
func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetPreferredAvailabilityZones ¶
func (*Compute) SetPrivateIPs ¶
func (*Compute) SetProduct ¶
func (*Compute) SetSubnetIDs ¶
type CreateGroupInput ¶
type CreateGroupInput struct {
Group *Group `json:"group,omitempty"`
}
type CreateGroupOutput ¶
type CreateGroupOutput struct {
Group *Group `json:"group,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 DeleteGroupInput ¶
type DeleteGroupInput struct { GroupID *string `json:"groupId,omitempty"` StatefulDeallocation *StatefulDeallocation `json:"statefulDeallocation,omitempty"` }
type DeleteGroupOutput ¶
type DeleteGroupOutput struct{}
type DeploymentGroup ¶
type DeploymentGroup struct { ApplicationName *string `json:"applicationName,omitempty"` DeploymentGroupName *string `json:"deploymentGroupName,omitempty"` // contains filtered or unexported fields }
func (DeploymentGroup) MarshalJSON ¶
func (o DeploymentGroup) MarshalJSON() ([]byte, error)
func (*DeploymentGroup) SetApplicationName ¶
func (o *DeploymentGroup) SetApplicationName(v *string) *DeploymentGroup
func (*DeploymentGroup) SetDeploymentGroupName ¶
func (o *DeploymentGroup) SetDeploymentGroupName(v *string) *DeploymentGroup
type DeploymentStatusInput ¶
type DetachGroupInput ¶
type DetachGroupInput struct { GroupID *string `json:"groupId,omitempty"` InstanceIDs []string `json:"instancesToDetach,omitempty"` ShouldDecrementTargetCapacity *bool `json:"shouldDecrementTargetCapacity,omitempty"` ShouldTerminateInstances *bool `json:"shouldTerminateInstances,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` }
type DetachGroupOutput ¶
type DetachGroupOutput struct{}
type Dimension ¶
type Dimension struct { Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Dimension) MarshalJSON ¶
type DockerSwarmIntegration ¶
type DockerSwarmIntegration struct { MasterHost *string `json:"masterHost,omitempty"` MasterPort *int `json:"masterPort,omitempty"` AutoScale *AutoScaleDockerSwarm `json:"autoScale,omitempty"` // contains filtered or unexported fields }
func (DockerSwarmIntegration) MarshalJSON ¶
func (o DockerSwarmIntegration) MarshalJSON() ([]byte, error)
func (*DockerSwarmIntegration) SetAutoScale ¶
func (o *DockerSwarmIntegration) SetAutoScale(v *AutoScaleDockerSwarm) *DockerSwarmIntegration
func (*DockerSwarmIntegration) SetMasterHost ¶
func (o *DockerSwarmIntegration) SetMasterHost(v *string) *DockerSwarmIntegration
func (*DockerSwarmIntegration) SetMasterPort ¶
func (o *DockerSwarmIntegration) SetMasterPort(v *int) *DockerSwarmIntegration
type Domain ¶
type Domain struct { HostedZoneID *string `json:"hostedZoneId,omitempty"` SpotinstAccountID *string `json:"spotinstAccountId,omitempty"` RecordSets []*RecordSet `json:"recordSets,omitempty"` // contains filtered or unexported fields }
func (Domain) MarshalJSON ¶
func (*Domain) SetHostedZoneID ¶
func (*Domain) SetRecordSets ¶
func (*Domain) SetSpotinstAccountID ¶
type EBS ¶
type EBS struct { DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"` Encrypted *bool `json:"encrypted,omitempty"` KmsKeyId *string `json:"kmsKeyId,omitempty"` SnapshotID *string `json:"snapshotId,omitempty"` VolumeType *string `json:"volumeType,omitempty"` VolumeSize *int `json:"volumeSize,omitempty"` IOPS *int `json:"iops,omitempty"` // contains filtered or unexported fields }
func (EBS) MarshalJSON ¶
func (*EBS) SetDeleteOnTermination ¶
func (*EBS) SetEncrypted ¶
func (*EBS) SetKmsKeyId ¶
func (*EBS) SetSnapshotId ¶
func (*EBS) SetVolumeSize ¶
func (*EBS) SetVolumeType ¶
type EBSVolume ¶
type EBSVolume struct { DeviceName *string `json:"deviceName,omitempty"` VolumeIDs []string `json:"volumeIds,omitempty"` // contains filtered or unexported fields }
func (EBSVolume) MarshalJSON ¶
func (*EBSVolume) SetDeviceName ¶
func (*EBSVolume) SetVolumeIDs ¶
type EC2ContainerServiceIntegration ¶
type EC2ContainerServiceIntegration struct { ClusterName *string `json:"clusterName,omitempty"` AutoScale *AutoScaleECS `json:"autoScale,omitempty"` // contains filtered or unexported fields }
func (EC2ContainerServiceIntegration) MarshalJSON ¶
func (o EC2ContainerServiceIntegration) MarshalJSON() ([]byte, error)
func (*EC2ContainerServiceIntegration) SetAutoScale ¶
func (o *EC2ContainerServiceIntegration) SetAutoScale(v *AutoScaleECS) *EC2ContainerServiceIntegration
func (*EC2ContainerServiceIntegration) SetClusterName ¶
func (o *EC2ContainerServiceIntegration) SetClusterName(v *string) *EC2ContainerServiceIntegration
type ElasticBeanstalkIntegration ¶
type ElasticBeanstalkIntegration struct { EnvironmentID *string `json:"environmentId,omitempty"` ManagedActions *BeanstalkManagedActions `json:"managedActions,omitempty"` DeploymentPreferences *BeanstalkDeploymentPreferences `json:"deploymentPreferences,omitempty"` // contains filtered or unexported fields }
func (ElasticBeanstalkIntegration) MarshalJSON ¶
func (o ElasticBeanstalkIntegration) MarshalJSON() ([]byte, error)
func (*ElasticBeanstalkIntegration) SetDeploymentPreferences ¶
func (o *ElasticBeanstalkIntegration) SetDeploymentPreferences(v *BeanstalkDeploymentPreferences) *ElasticBeanstalkIntegration
func (*ElasticBeanstalkIntegration) SetEnvironmentID ¶
func (o *ElasticBeanstalkIntegration) SetEnvironmentID(v *string) *ElasticBeanstalkIntegration
func (*ElasticBeanstalkIntegration) SetManagedActions ¶
func (o *ElasticBeanstalkIntegration) SetManagedActions(v *BeanstalkManagedActions) *ElasticBeanstalkIntegration
type GetGroupEventsInput ¶
type GetGroupEventsOutput ¶
type GetGroupEventsOutput struct {
GroupEvents []*GroupEvent `json:"groupEvents,omitempty"`
}
type GetInstanceHealthinessInput ¶
type GetInstanceHealthinessInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type GetInstanceHealthinessOutput ¶
type GetInstanceHealthinessOutput struct {
Instances []*InstanceHealth `json:"instances,omitempty"`
}
type GitlabIntegration ¶
type GitlabIntegration struct { Runner *GitlabRunner `json:"runner,omitempty"` // contains filtered or unexported fields }
func (GitlabIntegration) MarshalJSON ¶
func (o GitlabIntegration) MarshalJSON() ([]byte, error)
func (*GitlabIntegration) SetRunner ¶
func (o *GitlabIntegration) SetRunner(v *GitlabRunner) *GitlabIntegration
type GitlabRunner ¶
type GitlabRunner struct { IsEnabled *bool `json:"isEnabled,omitempty"` // contains filtered or unexported fields }
func (GitlabRunner) MarshalJSON ¶
func (o GitlabRunner) MarshalJSON() ([]byte, error)
func (*GitlabRunner) SetIsEnabled ¶
func (o *GitlabRunner) SetIsEnabled(v *bool) *GitlabRunner
type Group ¶
type Group struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Region *string `json:"region,omitempty"` Capacity *Capacity `json:"capacity,omitempty"` Compute *Compute `json:"compute,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Scaling *Scaling `json:"scaling,omitempty"` Scheduling *Scheduling `json:"scheduling,omitempty"` Integration *Integration `json:"thirdPartiesIntegration,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (Group) MarshalJSON ¶
func (*Group) SetCapacity ¶
func (*Group) SetCompute ¶
func (*Group) SetDescription ¶
func (*Group) SetIntegration ¶
func (o *Group) SetIntegration(v *Integration) *Group
func (*Group) SetScaling ¶
func (*Group) SetScheduling ¶
func (o *Group) SetScheduling(v *Scheduling) *Group
func (*Group) SetStrategy ¶
type GroupEvent ¶
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 ImportBeanstalkInput ¶
type ImportBeanstalkOutput ¶
type ImportBeanstalkOutput struct {
Group *Group `json:"group,omitempty"`
}
type Instance ¶
type Instance struct { ID *string `json:"instanceId,omitempty"` SpotRequestID *string `json:"spotInstanceRequestId,omitempty"` InstanceType *string `json:"instanceType,omitempty"` Status *string `json:"status,omitempty"` Product *string `json:"product,omitempty"` AvailabilityZone *string `json:"availabilityZone,omitempty"` PrivateIP *string `json:"privateIp,omitempty"` PublicIP *string `json:"publicIp,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` }
type InstanceHealth ¶
type InstanceHealth struct { InstanceID *string `json:"instanceId,omitempty"` SpotRequestID *string `json:"spotRequestId,omitempty"` GroupID *string `json:"groupId,omitempty"` AvailabilityZone *string `json:"availabilityZone,omitempty"` LifeCycle *string `json:"lifeCycle,omitempty"` HealthStatus *string `json:"healthStatus,omitempty"` }
type InstanceTypeWeight ¶
type InstanceTypeWeight struct { InstanceType *string `json:"instanceType,omitempty"` Weight *int `json:"weightedCapacity,omitempty"` // contains filtered or unexported fields }
func (InstanceTypeWeight) MarshalJSON ¶
func (o InstanceTypeWeight) MarshalJSON() ([]byte, error)
func (*InstanceTypeWeight) SetInstanceType ¶
func (o *InstanceTypeWeight) SetInstanceType(v *string) *InstanceTypeWeight
func (*InstanceTypeWeight) SetWeight ¶
func (o *InstanceTypeWeight) SetWeight(v *int) *InstanceTypeWeight
type InstanceTypes ¶
type InstanceTypes struct { OnDemand *string `json:"ondemand,omitempty"` Spot []string `json:"spot,omitempty"` PreferredSpot []string `json:"preferredSpot,omitempty"` Weights []*InstanceTypeWeight `json:"weights,omitempty"` // contains filtered or unexported fields }
func (InstanceTypes) MarshalJSON ¶
func (o InstanceTypes) MarshalJSON() ([]byte, error)
func (*InstanceTypes) SetOnDemand ¶
func (o *InstanceTypes) SetOnDemand(v *string) *InstanceTypes
func (*InstanceTypes) SetPreferredSpot ¶
func (o *InstanceTypes) SetPreferredSpot(v []string) *InstanceTypes
func (*InstanceTypes) SetSpot ¶
func (o *InstanceTypes) SetSpot(v []string) *InstanceTypes
func (*InstanceTypes) SetWeights ¶
func (o *InstanceTypes) SetWeights(v []*InstanceTypeWeight) *InstanceTypes
type Integration ¶
type Integration struct { EC2ContainerService *EC2ContainerServiceIntegration `json:"ecs,omitempty"` ElasticBeanstalk *ElasticBeanstalkIntegration `json:"elasticBeanstalk,omitempty"` CodeDeploy *CodeDeployIntegration `json:"codeDeploy,omitempty"` OpsWorks *OpsWorksIntegration `json:"opsWorks,omitempty"` Rancher *RancherIntegration `json:"rancher,omitempty"` Kubernetes *KubernetesIntegration `json:"kubernetes,omitempty"` Mesosphere *MesosphereIntegration `json:"mesosphere,omitempty"` Multai *MultaiIntegration `json:"mlbRuntime,omitempty"` Nomad *NomadIntegration `json:"nomad,omitempty"` Chef *ChefIntegration `json:"chef,omitempty"` Gitlab *GitlabIntegration `json:"gitlab,omitempty"` Route53 *Route53Integration `json:"route53,omitempty"` DockerSwarm *DockerSwarmIntegration `json:"dockerSwarm,omitempty"` // contains filtered or unexported fields }
func (Integration) MarshalJSON ¶
func (o Integration) MarshalJSON() ([]byte, error)
func (*Integration) SetChef ¶
func (o *Integration) SetChef(v *ChefIntegration) *Integration
func (*Integration) SetCodeDeploy ¶
func (o *Integration) SetCodeDeploy(v *CodeDeployIntegration) *Integration
func (*Integration) SetDockerSwarm ¶
func (o *Integration) SetDockerSwarm(v *DockerSwarmIntegration) *Integration
func (*Integration) SetEC2ContainerService ¶
func (o *Integration) SetEC2ContainerService(v *EC2ContainerServiceIntegration) *Integration
func (*Integration) SetElasticBeanstalk ¶
func (o *Integration) SetElasticBeanstalk(v *ElasticBeanstalkIntegration) *Integration
func (*Integration) SetGitlab ¶
func (o *Integration) SetGitlab(v *GitlabIntegration) *Integration
func (*Integration) SetKubernetes ¶
func (o *Integration) SetKubernetes(v *KubernetesIntegration) *Integration
func (*Integration) SetMesosphere ¶
func (o *Integration) SetMesosphere(v *MesosphereIntegration) *Integration
func (*Integration) SetMultai ¶
func (o *Integration) SetMultai(v *MultaiIntegration) *Integration
func (*Integration) SetNomad ¶
func (o *Integration) SetNomad(v *NomadIntegration) *Integration
func (*Integration) SetOpsWorks ¶
func (o *Integration) SetOpsWorks(v *OpsWorksIntegration) *Integration
func (*Integration) SetRancher ¶
func (o *Integration) SetRancher(v *RancherIntegration) *Integration
func (*Integration) SetRoute53 ¶
func (o *Integration) SetRoute53(v *Route53Integration) *Integration
type KubernetesIntegration ¶
type KubernetesIntegration struct { IntegrationMode *string `json:"integrationMode,omitempty"` ClusterIdentifier *string `json:"clusterIdentifier,omitempty"` Server *string `json:"apiServer,omitempty"` Token *string `json:"token,omitempty"` AutoScale *AutoScaleKubernetes `json:"autoScale,omitempty"` // contains filtered or unexported fields }
func (KubernetesIntegration) MarshalJSON ¶
func (o KubernetesIntegration) MarshalJSON() ([]byte, error)
func (*KubernetesIntegration) SetAutoScale ¶
func (o *KubernetesIntegration) SetAutoScale(v *AutoScaleKubernetes) *KubernetesIntegration
func (*KubernetesIntegration) SetClusterIdentifier ¶
func (o *KubernetesIntegration) SetClusterIdentifier(v *string) *KubernetesIntegration
func (*KubernetesIntegration) SetIntegrationMode ¶
func (o *KubernetesIntegration) SetIntegrationMode(v *string) *KubernetesIntegration
func (*KubernetesIntegration) SetServer ¶
func (o *KubernetesIntegration) SetServer(v *string) *KubernetesIntegration
func (*KubernetesIntegration) SetToken ¶
func (o *KubernetesIntegration) SetToken(v *string) *KubernetesIntegration
type LaunchSpecification ¶
type LaunchSpecification struct { LoadBalancerNames []string `json:"loadBalancerNames,omitempty"` LoadBalancersConfig *LoadBalancersConfig `json:"loadBalancersConfig,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` HealthCheckType *string `json:"healthCheckType,omitempty"` HealthCheckGracePeriod *int `json:"healthCheckGracePeriod,omitempty"` HealthCheckUnhealthyDurationBeforeReplacement *int `json:"healthCheckUnhealthyDurationBeforeReplacement,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"` IAMInstanceProfile *IAMInstanceProfile `json:"iamRole,omitempty"` CreditSpecification *CreditSpecification `json:"creditSpecification,omitempty"` BlockDeviceMappings []*BlockDeviceMapping `json:"blockDeviceMappings,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) SetBlockDeviceMappings ¶
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) SetHealthCheckGracePeriod ¶
func (o *LaunchSpecification) SetHealthCheckGracePeriod(v *int) *LaunchSpecification
func (*LaunchSpecification) SetHealthCheckType ¶
func (o *LaunchSpecification) SetHealthCheckType(v *string) *LaunchSpecification
func (*LaunchSpecification) SetHealthCheckUnhealthyDurationBeforeReplacement ¶
func (o *LaunchSpecification) SetHealthCheckUnhealthyDurationBeforeReplacement(v *int) *LaunchSpecification
func (*LaunchSpecification) SetIAMInstanceProfile ¶
func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification
func (*LaunchSpecification) SetImageId ¶
func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification
func (*LaunchSpecification) SetKeyPair ¶
func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancerNames ¶
func (o *LaunchSpecification) SetLoadBalancerNames(v []string) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancersConfig ¶
func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *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 ListGroupsInput ¶
type ListGroupsInput struct{}
type ListGroupsOutput ¶
type ListGroupsOutput struct {
Groups []*Group `json:"groups,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"` ZoneAwareness *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 MesosphereIntegration ¶
type MesosphereIntegration struct { Server *string `json:"apiServer,omitempty"` // contains filtered or unexported fields }
func (MesosphereIntegration) MarshalJSON ¶
func (o MesosphereIntegration) MarshalJSON() ([]byte, error)
func (*MesosphereIntegration) SetServer ¶
func (o *MesosphereIntegration) SetServer(v *string) *MesosphereIntegration
type MultaiIntegration ¶
type MultaiIntegration struct { DeploymentID *string `json:"deploymentId,omitempty"` // contains filtered or unexported fields }
func (MultaiIntegration) MarshalJSON ¶
func (o MultaiIntegration) MarshalJSON() ([]byte, error)
func (*MultaiIntegration) SetDeploymentId ¶
func (o *MultaiIntegration) SetDeploymentId(v *string) *MultaiIntegration
type NetworkInterface ¶
type NetworkInterface struct { ID *string `json:"networkInterfaceId,omitempty"` Description *string `json:"description,omitempty"` DeviceIndex *int `json:"deviceIndex,omitempty"` SecondaryPrivateIPAddressCount *int `json:"secondaryPrivateIpAddressCount,omitempty"` AssociatePublicIPAddress *bool `json:"associatePublicIpAddress,omitempty"` AssociateIPV6Address *bool `json:"associateIpv6Address,omitempty"` DeleteOnTermination *bool `json:"deleteOnTermination,omitempty"` SecurityGroupsIDs []string `json:"groups,omitempty"` PrivateIPAddress *string `json:"privateIpAddress,omitempty"` SubnetID *string `json:"subnetId,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) SetDeleteOnTermination ¶
func (o *NetworkInterface) SetDeleteOnTermination(v *bool) *NetworkInterface
func (*NetworkInterface) SetDescription ¶
func (o *NetworkInterface) SetDescription(v *string) *NetworkInterface
func (*NetworkInterface) SetDeviceIndex ¶
func (o *NetworkInterface) SetDeviceIndex(v *int) *NetworkInterface
func (*NetworkInterface) SetId ¶
func (o *NetworkInterface) SetId(v *string) *NetworkInterface
func (*NetworkInterface) SetPrivateIPAddress ¶
func (o *NetworkInterface) SetPrivateIPAddress(v *string) *NetworkInterface
func (*NetworkInterface) SetSecondaryPrivateIPAddressCount ¶
func (o *NetworkInterface) SetSecondaryPrivateIPAddressCount(v *int) *NetworkInterface
func (*NetworkInterface) SetSecurityGroupsIDs ¶
func (o *NetworkInterface) SetSecurityGroupsIDs(v []string) *NetworkInterface
func (*NetworkInterface) SetSubnetId ¶
func (o *NetworkInterface) SetSubnetId(v *string) *NetworkInterface
type NewInstance ¶
type NewInstance struct { }
type NomadIntegration ¶
type NomadIntegration struct { MasterHost *string `json:"masterHost,omitempty"` MasterPort *int `json:"masterPort,omitempty"` ACLToken *string `json:"aclToken,omitempty"` AutoScale *AutoScaleNomad `json:"autoScale,omitempty"` // contains filtered or unexported fields }
func (NomadIntegration) MarshalJSON ¶
func (o NomadIntegration) MarshalJSON() ([]byte, error)
func (*NomadIntegration) SetAclToken ¶
func (o *NomadIntegration) SetAclToken(v *string) *NomadIntegration
func (*NomadIntegration) SetAutoScale ¶
func (o *NomadIntegration) SetAutoScale(v *AutoScaleNomad) *NomadIntegration
func (*NomadIntegration) SetMasterHost ¶
func (o *NomadIntegration) SetMasterHost(v *string) *NomadIntegration
func (*NomadIntegration) SetMasterPort ¶
func (o *NomadIntegration) SetMasterPort(v *int) *NomadIntegration
type OnFailure ¶ added in v1.43.0
type OnFailure struct { ActionType *string `json:"actionType,omitempty"` ShouldHandleAllBatches *bool `json:"shouldHandleAllBatches,omitempty"` BatchNum *int `json:"batchNum,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` ShouldDecrementTargetCapacity *bool `json:"shouldDecrementTargetCapacity,omitempty"` // contains filtered or unexported fields }
func (OnFailure) MarshalJSON ¶ added in v1.43.0
func (*OnFailure) SetActionType ¶ added in v1.43.0
func (*OnFailure) SetBatchNum ¶ added in v1.43.0
func (*OnFailure) SetDrainingTimeout ¶ added in v1.43.0
func (*OnFailure) SetShouldDecrementTargetCapacity ¶ added in v1.43.0
func (*OnFailure) SetShouldHandleAllBatches ¶ added in v1.43.0
type OpsWorksIntegration ¶
type OpsWorksIntegration struct { LayerID *string `json:"layerId,omitempty"` StackType *string `json:"stackType,omitempty"` // contains filtered or unexported fields }
func (OpsWorksIntegration) MarshalJSON ¶
func (o OpsWorksIntegration) MarshalJSON() ([]byte, error)
func (*OpsWorksIntegration) SetLayerId ¶
func (o *OpsWorksIntegration) SetLayerId(v *string) *OpsWorksIntegration
func (*OpsWorksIntegration) SetStackType ¶
func (o *OpsWorksIntegration) SetStackType(v *string) *OpsWorksIntegration
type Persistence ¶
type Persistence struct { ShouldPersistPrivateIP *bool `json:"shouldPersistPrivateIp,omitempty"` ShouldPersistBlockDevices *bool `json:"shouldPersistBlockDevices,omitempty"` ShouldPersistRootDevice *bool `json:"shouldPersistRootDevice,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) SetShouldPersistBlockDevices ¶
func (o *Persistence) SetShouldPersistBlockDevices(v *bool) *Persistence
func (*Persistence) SetShouldPersistPrivateIP ¶
func (o *Persistence) SetShouldPersistPrivateIP(v *bool) *Persistence
func (*Persistence) SetShouldPersistRootDevice ¶
func (o *Persistence) SetShouldPersistRootDevice(v *bool) *Persistence
type Predictive ¶
type Predictive struct { Mode *string `json:"mode,omitempty"` // contains filtered or unexported fields }
func (*Predictive) MarshalJSON ¶
func (o *Predictive) MarshalJSON() ([]byte, error)
func (*Predictive) SetMode ¶
func (o *Predictive) SetMode(v *string) *Predictive
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 RancherIntegration ¶
type RancherIntegration struct { MasterHost *string `json:"masterHost,omitempty"` AccessKey *string `json:"accessKey,omitempty"` SecretKey *string `json:"secretKey,omitempty"` Version *string `json:"version,omitempty"` // contains filtered or unexported fields }
func (RancherIntegration) MarshalJSON ¶
func (o RancherIntegration) MarshalJSON() ([]byte, error)
func (*RancherIntegration) SetAccessKey ¶
func (o *RancherIntegration) SetAccessKey(v *string) *RancherIntegration
func (*RancherIntegration) SetMasterHost ¶
func (o *RancherIntegration) SetMasterHost(v *string) *RancherIntegration
func (*RancherIntegration) SetSecretKey ¶
func (o *RancherIntegration) SetSecretKey(v *string) *RancherIntegration
func (*RancherIntegration) SetVersion ¶
func (o *RancherIntegration) SetVersion(v *string) *RancherIntegration
type ReadGroupInput ¶
type ReadGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type ReadGroupOutput ¶
type ReadGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type RecordSet ¶
type RecordSet struct { UsePublicIP *bool `json:"usePublicIp,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (RecordSet) MarshalJSON ¶
func (*RecordSet) SetUsePublicIP ¶
type RevertToSpot ¶
type RevertToSpot struct { PerformAt *string `json:"performAt,omitempty"` TimeWindows []string `json:"timeWindows,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
func (*RevertToSpot) SetTimeWindows ¶
func (o *RevertToSpot) SetTimeWindows(v []string) *RevertToSpot
type RollECSGroupInput ¶
type RollECSGroupInput struct { GroupID *string `json:"groupId,omitempty"` Roll *RollECSWrapper `json:"roll,omitempty"` }
type RollECSWrapper ¶
type RollGroupInput ¶
type RollGroupInput struct { GroupID *string `json:"groupId,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` HealthCheckType *string `json:"healthCheckType,omitempty"` Strategy *RollStrategy `json:"strategy,omitempty"` }
type RollGroupOutput ¶
type RollGroupOutput struct {
RollGroupStatus []*RollGroupStatus `json:"groupDeploymentStatus,omitempty"`
}
type RollGroupStatus ¶
type RollStrategy ¶
type RollStrategy struct { Action *string `json:"action,omitempty"` ShouldDrainInstances *bool `json:"shouldDrainInstances,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` OnFailure *OnFailure `json:"onFailure,omitempty"` // contains filtered or unexported fields }
func (RollStrategy) MarshalJSON ¶
func (o RollStrategy) MarshalJSON() ([]byte, error)
func (*RollStrategy) SetAction ¶
func (o *RollStrategy) SetAction(v *string) *RollStrategy
func (*RollStrategy) SetOnFailure ¶ added in v1.43.0
func (o *RollStrategy) SetOnFailure(v *OnFailure) *RollStrategy
func (*RollStrategy) SetShouldDrainInstances ¶
func (o *RollStrategy) SetShouldDrainInstances(v *bool) *RollStrategy
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 ScaleDownOnDemandItem ¶
type ScaleDownOnDemandItem struct {
InstanceID *string `json:"instanceId,omitempty"`
}
type ScaleDownSpotItem ¶
type ScaleDownSpotItem struct {
SpotInstanceRequestID *string `json:"spotInstanceRequestId,omitempty"`
}
type ScaleGroupInput ¶
type ScaleGroupOutput ¶
type ScaleGroupOutput struct {
Items []*ScaleItem `json:"items"`
}
type ScaleItem ¶
type ScaleItem struct { NewSpotRequests []*ScaleUpSpotItem `json:"newSpotRequests,omitempty"` NewInstances []*ScaleUpOnDemandItem `json:"newInstances,omitempty"` VictimSpotRequests []*ScaleDownSpotItem `json:"victimSpotRequests,omitempty"` VictimInstances []*ScaleDownOnDemandItem `json:"victimInstances,omitempty"` }
type ScaleUpOnDemandItem ¶
type ScaleUpSpotItem ¶
type Scaling ¶
type Scaling struct { Up []*ScalingPolicy `json:"up,omitempty"` Down []*ScalingPolicy `json:"down,omitempty"` Target []*ScalingPolicy `json:"target,omitempty"` // contains filtered or unexported fields }
func (Scaling) MarshalJSON ¶
func (*Scaling) SetDown ¶
func (o *Scaling) SetDown(v []*ScalingPolicy) *Scaling
func (*Scaling) SetTarget ¶
func (o *Scaling) SetTarget(v []*ScalingPolicy) *Scaling
func (*Scaling) SetUp ¶
func (o *Scaling) SetUp(v []*ScalingPolicy) *Scaling
type ScalingPolicy ¶
type ScalingPolicy struct { PolicyName *string `json:"policyName,omitempty"` MetricName *string `json:"metricName,omitempty"` Namespace *string `json:"namespace,omitempty"` Source *string `json:"source,omitempty"` Statistic *string `json:"statistic,omitempty"` Unit *string `json:"unit,omitempty"` Threshold *float64 `json:"threshold,omitempty"` Adjustment *int `json:"adjustment,omitempty"` MinTargetCapacity *int `json:"minTargetCapacity,omitempty"` MaxTargetCapacity *int `json:"maxTargetCapacity,omitempty"` EvaluationPeriods *int `json:"evaluationPeriods,omitempty"` Period *int `json:"period,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Operator *string `json:"operator,omitempty"` Dimensions []*Dimension `json:"dimensions,omitempty"` Action *Action `json:"action,omitempty"` Target *float64 `json:"target,omitempty"` IsEnabled *bool `json:"isEnabled,omitempty"` Predictive *Predictive `json:"predictive,omitempty"` // contains filtered or unexported fields }
func (ScalingPolicy) MarshalJSON ¶
func (o ScalingPolicy) MarshalJSON() ([]byte, error)
func (*ScalingPolicy) SetAction ¶
func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
func (*ScalingPolicy) SetAdjustment ¶
func (o *ScalingPolicy) SetAdjustment(v *int) *ScalingPolicy
func (*ScalingPolicy) SetCooldown ¶
func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
func (*ScalingPolicy) SetDimensions ¶
func (o *ScalingPolicy) SetDimensions(v []*Dimension) *ScalingPolicy
func (*ScalingPolicy) SetEvaluationPeriods ¶
func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
func (*ScalingPolicy) SetIsEnabled ¶
func (o *ScalingPolicy) SetIsEnabled(v *bool) *ScalingPolicy
func (*ScalingPolicy) SetMaxTargetCapacity ¶
func (o *ScalingPolicy) SetMaxTargetCapacity(v *int) *ScalingPolicy
func (*ScalingPolicy) SetMetricName ¶
func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetMinTargetCapacity ¶
func (o *ScalingPolicy) SetMinTargetCapacity(v *int) *ScalingPolicy
func (*ScalingPolicy) SetNamespace ¶
func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
func (*ScalingPolicy) SetOperator ¶
func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
func (*ScalingPolicy) SetPeriod ¶
func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
func (*ScalingPolicy) SetPolicyName ¶
func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetPredictive ¶
func (o *ScalingPolicy) SetPredictive(v *Predictive) *ScalingPolicy
func (*ScalingPolicy) SetSource ¶
func (o *ScalingPolicy) SetSource(v *string) *ScalingPolicy
func (*ScalingPolicy) SetStatistic ¶
func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
func (*ScalingPolicy) SetTarget ¶
func (o *ScalingPolicy) SetTarget(v *float64) *ScalingPolicy
func (*ScalingPolicy) SetThreshold ¶
func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
func (*ScalingPolicy) SetUnit ¶
func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
type ScalingStrategy ¶
type ScalingStrategy struct { TerminateAtEndOfBillingHour *bool `json:"terminateAtEndOfBillingHour,omitempty"` TerminationPolicy *string `json:"terminationPolicy,omitempty"` // contains filtered or unexported fields }
func (ScalingStrategy) MarshalJSON ¶
func (o ScalingStrategy) MarshalJSON() ([]byte, error)
func (*ScalingStrategy) SetTerminateAtEndOfBillingHour ¶
func (o *ScalingStrategy) SetTerminateAtEndOfBillingHour(v *bool) *ScalingStrategy
func (*ScalingStrategy) SetTerminationPolicy ¶
func (o *ScalingStrategy) SetTerminationPolicy(v *string) *ScalingStrategy
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, *ListGroupsInput) (*ListGroupsOutput, error) Create(context.Context, *CreateGroupInput) (*CreateGroupOutput, error) Read(context.Context, *ReadGroupInput) (*ReadGroupOutput, error) Update(context.Context, *UpdateGroupInput) (*UpdateGroupOutput, error) Delete(context.Context, *DeleteGroupInput) (*DeleteGroupOutput, error) Status(context.Context, *StatusGroupInput) (*StatusGroupOutput, error) DeploymentStatus(context.Context, *DeploymentStatusInput) (*RollGroupOutput, error) DeploymentStatusECS(context.Context, *DeploymentStatusInput) (*RollGroupOutput, error) StopDeployment(context.Context, *StopDeploymentInput) (*StopDeploymentOutput, error) Detach(context.Context, *DetachGroupInput) (*DetachGroupOutput, error) Roll(context.Context, *RollGroupInput) (*RollGroupOutput, error) RollECS(context.Context, *RollECSGroupInput) (*RollGroupOutput, error) Scale(context.Context, *ScaleGroupInput) (*ScaleGroupOutput, error) GetInstanceHealthiness(context.Context, *GetInstanceHealthinessInput) (*GetInstanceHealthinessOutput, error) GetGroupEvents(context.Context, *GetGroupEventsInput) (*GetGroupEventsOutput, error) ImportBeanstalkEnv(context.Context, *ImportBeanstalkInput) (*ImportBeanstalkOutput, error) StartBeanstalkMaintenance(context.Context, *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error) FinishBeanstalkMaintenance(context.Context, *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error) GetBeanstalkMaintenanceStatus(context.Context, *BeanstalkMaintenanceInput) (*string, 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) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
func (*ServiceOp) DeploymentStatus ¶
func (s *ServiceOp) DeploymentStatus(ctx context.Context, input *DeploymentStatusInput) (*RollGroupOutput, error)
func (*ServiceOp) DeploymentStatusECS ¶ added in v1.38.1
func (s *ServiceOp) DeploymentStatusECS(ctx context.Context, input *DeploymentStatusInput) (*RollGroupOutput, error)
func (*ServiceOp) Detach ¶
func (s *ServiceOp) Detach(ctx context.Context, input *DetachGroupInput) (*DetachGroupOutput, error)
func (*ServiceOp) FinishBeanstalkMaintenance ¶
func (s *ServiceOp) FinishBeanstalkMaintenance(ctx context.Context, input *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error)
func (*ServiceOp) GetBeanstalkMaintenanceStatus ¶
func (*ServiceOp) GetGroupEvents ¶
func (s *ServiceOp) GetGroupEvents(ctx context.Context, input *GetGroupEventsInput) (*GetGroupEventsOutput, error)
func (*ServiceOp) GetInstanceHealthiness ¶
func (s *ServiceOp) GetInstanceHealthiness(ctx context.Context, input *GetInstanceHealthinessInput) (*GetInstanceHealthinessOutput, error)
func (*ServiceOp) ImportBeanstalkEnv ¶
func (s *ServiceOp) ImportBeanstalkEnv(ctx context.Context, input *ImportBeanstalkInput) (*ImportBeanstalkOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
func (*ServiceOp) Roll ¶
func (s *ServiceOp) Roll(ctx context.Context, input *RollGroupInput) (*RollGroupOutput, error)
func (*ServiceOp) RollECS ¶
func (s *ServiceOp) RollECS(ctx context.Context, input *RollECSGroupInput) (*RollGroupOutput, error)
func (*ServiceOp) Scale ¶
func (s *ServiceOp) Scale(ctx context.Context, input *ScaleGroupInput) (*ScaleGroupOutput, error)
func (*ServiceOp) StartBeanstalkMaintenance ¶
func (s *ServiceOp) StartBeanstalkMaintenance(ctx context.Context, input *BeanstalkMaintenanceInput) (*BeanstalkMaintenanceOutput, error)
func (*ServiceOp) Status ¶
func (s *ServiceOp) Status(ctx context.Context, input *StatusGroupInput) (*StatusGroupOutput, error)
func (*ServiceOp) StopDeployment ¶
func (s *ServiceOp) StopDeployment(ctx context.Context, input *StopDeploymentInput) (*StopDeploymentOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
type Signal ¶
type Signal struct { Name *string `json:"name,omitempty"` Timeout *int `json:"timeout,omitempty"` // contains filtered or unexported fields }
func (Signal) MarshalJSON ¶
func (*Signal) SetTimeout ¶
type Spot ¶
type Spot struct {
SpotInstanceRequestID *string `json:"spotInstanceRequestId,omitempty"`
}
type StatefulDeallocation ¶
type StatefulDeallocation struct { ShouldDeleteImages *bool `json:"shouldDeleteImages,omitempty"` ShouldDeleteNetworkInterfaces *bool `json:"shouldDeleteNetworkInterfaces,omitempty"` ShouldDeleteVolumes *bool `json:"shouldDeleteVolumes,omitempty"` ShouldDeleteSnapshots *bool `json:"shouldDeleteSnapshots,omitempty"` }
type StatusGroupInput ¶
type StatusGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type StatusGroupOutput ¶
type StatusGroupOutput struct {
Instances []*Instance `json:"instances,omitempty"`
}
type StopDeploymentInput ¶
type StopDeploymentOutput ¶
type StopDeploymentOutput struct{}
type Strategy ¶
type Strategy struct { Risk *float64 `json:"risk,omitempty"` OnDemandCount *int `json:"onDemandCount,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` AvailabilityVsCost *string `json:"availabilityVsCost,omitempty"` LifetimePeriod *string `json:"lifetimePeriod,omitempty"` UtilizeReservedInstances *bool `json:"utilizeReservedInstances,omitempty"` FallbackToOnDemand *bool `json:"fallbackToOd,omitempty"` SpinUpTime *int `json:"spinUpTime,omitempty"` Signals []*Signal `json:"signals,omitempty"` Persistence *Persistence `json:"persistence,omitempty"` RevertToSpot *RevertToSpot `json:"revertToSpot,omitempty"` ScalingStrategy *ScalingStrategy `json:"scalingStrategy,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetAvailabilityVsCost ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetFallbackToOnDemand ¶
func (*Strategy) SetLifetimePeriod ¶
func (*Strategy) SetOnDemandCount ¶
func (*Strategy) SetPersistence ¶
func (o *Strategy) SetPersistence(v *Persistence) *Strategy
func (*Strategy) SetRevertToSpot ¶
func (o *Strategy) SetRevertToSpot(v *RevertToSpot) *Strategy
func (*Strategy) SetScalingStrategy ¶
func (o *Strategy) SetScalingStrategy(v *ScalingStrategy) *Strategy
func (*Strategy) SetSignals ¶
func (*Strategy) SetSpinUpTime ¶
func (*Strategy) SetUtilizeReservedInstances ¶
type SubEvent ¶
type SubEvent struct { // common fields Type *string `json:"type,omitempty"` // type scaleUp NewSpots []*Spot `json:"newSpots,omitempty"` NewInstances []*NewInstance `json:"newInstances,omitempty"` // type scaleDown TerminatedSpots []*Spot `json:"terminatedSpots,omitempty"` TerminatedInstances []*TerminatedInstance `json:"terminatedInstances,omitempty"` // type scaleReason ScalingPolicyName *string `json:"scalingPolicyName,omitempty"` Value *int `json:"value,omitempty"` Unit *string `json:"unit,omitempty"` Threshold *int `json:"threshold,omitempty"` // type detachedInstance InstanceID *string `json:"instanceId,omitempty"` // type unhealthyInstances InstanceIDs []*string `json:"instanceIds,omitempty"` // type rollInfo ID *string `json:"id,omitempty"` GroupID *string `json:"groupId,omitempty"` CurrentBatch *int `json:"currentBatch,omitempty"` Status *string `json:"status,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` NumberOfBatches *int `json:"numOfBatches,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` // type recoverInstances OldSpotRequestIDs []*string `json:"oldSpotRequestIDs,omitempty"` NewSpotRequestIDs []*string `json:"newSpotRequestIDs,omitempty"` OldInstanceIDs []*string `json:"oldInstanceIDs,omitempty"` NewInstanceIDs []*string `json:"newInstanceIDs,omitempty"` }
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"` ScaleTargetCapacity *int `json:"scaleTargetCapacity,omitempty"` ScaleMinCapacity *int `json:"scaleMinCapacity,omitempty"` ScaleMaxCapacity *int `json:"scaleMaxCapacity,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` TargetCapacity *int `json:"targetCapacity,omitempty"` MinCapacity *int `json:"minCapacity,omitempty"` MaxCapacity *int `json:"maxCapacity,omitempty"` Adjustment *int `json:"adjustment,omitempty"` AdjustmentPercentage *int `json:"adjustmentPercentage,omitempty"` // contains filtered or unexported fields }
func (Task) MarshalJSON ¶
func (*Task) SetAdjustment ¶
func (*Task) SetAdjustmentPercentage ¶
func (*Task) SetBatchSizePercentage ¶
func (*Task) SetCronExpression ¶
func (*Task) SetFrequency ¶
func (*Task) SetGracePeriod ¶
func (*Task) SetIsEnabled ¶
func (*Task) SetMaxCapacity ¶
func (*Task) SetMinCapacity ¶
func (*Task) SetScaleMaxCapacity ¶
func (*Task) SetScaleMinCapacity ¶
func (*Task) SetScaleTargetCapacity ¶
func (*Task) SetStartTime ¶
func (*Task) SetTargetCapacity ¶
type TerminatedInstance ¶
type TerminatedInstance struct { }
type UpdateGroupInput ¶
type UpdateGroupOutput ¶
type UpdateGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.