aws_gamelift_game_server_group

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// BalancingStrategy: string, optional
	BalancingStrategy terra.StringValue `hcl:"balancing_strategy,attr"`
	// GameServerGroupName: string, required
	GameServerGroupName terra.StringValue `hcl:"game_server_group_name,attr" validate:"required"`
	// GameServerProtectionPolicy: string, optional
	GameServerProtectionPolicy terra.StringValue `hcl:"game_server_protection_policy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// MaxSize: number, required
	MaxSize terra.NumberValue `hcl:"max_size,attr" validate:"required"`
	// MinSize: number, required
	MinSize terra.NumberValue `hcl:"min_size,attr" validate:"required"`
	// RoleArn: string, required
	RoleArn terra.StringValue `hcl:"role_arn,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// VpcSubnets: set of string, optional
	VpcSubnets terra.SetValue[terra.StringValue] `hcl:"vpc_subnets,attr"`
	// AutoScalingPolicy: optional
	AutoScalingPolicy *AutoScalingPolicy `hcl:"auto_scaling_policy,block"`
	// InstanceDefinition: min=2,max=20
	InstanceDefinition []InstanceDefinition `hcl:"instance_definition,block" validate:"min=2,max=20"`
	// LaunchTemplate: required
	LaunchTemplate *LaunchTemplate `hcl:"launch_template,block" validate:"required"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_gamelift_game_server_group.

type AutoScalingPolicy

type AutoScalingPolicy struct {
	// EstimatedInstanceWarmup: number, optional
	EstimatedInstanceWarmup terra.NumberValue `hcl:"estimated_instance_warmup,attr"`
	// AutoScalingPolicyTargetTrackingConfiguration: required
	TargetTrackingConfiguration *AutoScalingPolicyTargetTrackingConfiguration `hcl:"target_tracking_configuration,block" validate:"required"`
}

type AutoScalingPolicyAttributes

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

func (AutoScalingPolicyAttributes) EstimatedInstanceWarmup

func (asp AutoScalingPolicyAttributes) EstimatedInstanceWarmup() terra.NumberValue

func (AutoScalingPolicyAttributes) InternalRef

func (asp AutoScalingPolicyAttributes) InternalRef() (terra.Reference, error)

func (AutoScalingPolicyAttributes) InternalTokens

func (asp AutoScalingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoScalingPolicyAttributes) InternalWithRef

func (AutoScalingPolicyAttributes) TargetTrackingConfiguration

type AutoScalingPolicyState

type AutoScalingPolicyState struct {
	EstimatedInstanceWarmup     float64                                             `json:"estimated_instance_warmup"`
	TargetTrackingConfiguration []AutoScalingPolicyTargetTrackingConfigurationState `json:"target_tracking_configuration"`
}

type AutoScalingPolicyTargetTrackingConfiguration

type AutoScalingPolicyTargetTrackingConfiguration struct {
	// TargetValue: number, required
	TargetValue terra.NumberValue `hcl:"target_value,attr" validate:"required"`
}

type AutoScalingPolicyTargetTrackingConfigurationAttributes

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

func (AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalRef

func (AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalTokens

func (AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalWithRef

func (AutoScalingPolicyTargetTrackingConfigurationAttributes) TargetValue

type AutoScalingPolicyTargetTrackingConfigurationState

type AutoScalingPolicyTargetTrackingConfigurationState struct {
	TargetValue float64 `json:"target_value"`
}

type InstanceDefinition

type InstanceDefinition struct {
	// InstanceType: string, required
	InstanceType terra.StringValue `hcl:"instance_type,attr" validate:"required"`
	// WeightedCapacity: string, optional
	WeightedCapacity terra.StringValue `hcl:"weighted_capacity,attr"`
}

type InstanceDefinitionAttributes

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

func (InstanceDefinitionAttributes) InstanceType

func (InstanceDefinitionAttributes) InternalRef

func (id InstanceDefinitionAttributes) InternalRef() (terra.Reference, error)

func (InstanceDefinitionAttributes) InternalTokens

func (id InstanceDefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InstanceDefinitionAttributes) InternalWithRef

func (InstanceDefinitionAttributes) WeightedCapacity

func (id InstanceDefinitionAttributes) WeightedCapacity() terra.StringValue

type InstanceDefinitionState

type InstanceDefinitionState struct {
	InstanceType     string `json:"instance_type"`
	WeightedCapacity string `json:"weighted_capacity"`
}

type LaunchTemplate

type LaunchTemplate struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
}

type LaunchTemplateAttributes

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

func (LaunchTemplateAttributes) Id

func (LaunchTemplateAttributes) InternalRef

func (lt LaunchTemplateAttributes) InternalRef() (terra.Reference, error)

func (LaunchTemplateAttributes) InternalTokens

func (lt LaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LaunchTemplateAttributes) InternalWithRef

func (LaunchTemplateAttributes) Name

func (LaunchTemplateAttributes) Version

type LaunchTemplateState

type LaunchTemplateState struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Version string `json:"version"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource aws_gamelift_game_server_group.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (aggsg *Resource) Attributes() awsGameliftGameServerGroupAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (aggsg *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (aggsg *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (aggsg *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (aggsg *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (aggsg *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (aggsg *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (aggsg *Resource) State() (*awsGameliftGameServerGroupState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (aggsg *Resource) StateMust() *awsGameliftGameServerGroupState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (aggsg *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
}

Jump to

Keyboard shortcuts

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