Documentation
¶
Index ¶
- type Args
- type AutoScalingPolicy
- type AutoScalingPolicyAttributes
- func (asp AutoScalingPolicyAttributes) EstimatedInstanceWarmup() terra.NumberValue
- func (asp AutoScalingPolicyAttributes) InternalRef() (terra.Reference, error)
- func (asp AutoScalingPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (asp AutoScalingPolicyAttributes) InternalWithRef(ref terra.Reference) AutoScalingPolicyAttributes
- func (asp AutoScalingPolicyAttributes) TargetTrackingConfiguration() terra.ListValue[AutoScalingPolicyTargetTrackingConfigurationAttributes]
- type AutoScalingPolicyState
- type AutoScalingPolicyTargetTrackingConfiguration
- type AutoScalingPolicyTargetTrackingConfigurationAttributes
- func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalRef() (terra.Reference, error)
- func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalWithRef(ref terra.Reference) AutoScalingPolicyTargetTrackingConfigurationAttributes
- func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) TargetValue() terra.NumberValue
- type AutoScalingPolicyTargetTrackingConfigurationState
- type InstanceDefinition
- type InstanceDefinitionAttributes
- func (id InstanceDefinitionAttributes) InstanceType() terra.StringValue
- func (id InstanceDefinitionAttributes) InternalRef() (terra.Reference, error)
- func (id InstanceDefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (id InstanceDefinitionAttributes) InternalWithRef(ref terra.Reference) InstanceDefinitionAttributes
- func (id InstanceDefinitionAttributes) WeightedCapacity() terra.StringValue
- type InstanceDefinitionState
- type LaunchTemplate
- type LaunchTemplateAttributes
- func (lt LaunchTemplateAttributes) Id() terra.StringValue
- func (lt LaunchTemplateAttributes) InternalRef() (terra.Reference, error)
- func (lt LaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (lt LaunchTemplateAttributes) InternalWithRef(ref terra.Reference) LaunchTemplateAttributes
- func (lt LaunchTemplateAttributes) Name() terra.StringValue
- func (lt LaunchTemplateAttributes) Version() terra.StringValue
- type LaunchTemplateState
- type Resource
- func (aggsg *Resource) Attributes() awsGameliftGameServerGroupAttributes
- func (aggsg *Resource) Configuration() interface{}
- func (aggsg *Resource) DependOn() terra.Reference
- func (aggsg *Resource) Dependencies() terra.Dependencies
- func (aggsg *Resource) ImportState(state io.Reader) error
- func (aggsg *Resource) LifecycleManagement() *terra.Lifecycle
- func (aggsg *Resource) LocalName() string
- func (aggsg *Resource) State() (*awsGameliftGameServerGroupState, bool)
- func (aggsg *Resource) StateMust() *awsGameliftGameServerGroupState
- func (aggsg *Resource) Type() string
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- type TimeoutsState
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 (asp AutoScalingPolicyAttributes) InternalWithRef(ref terra.Reference) AutoScalingPolicyAttributes
func (AutoScalingPolicyAttributes) TargetTrackingConfiguration ¶
func (asp AutoScalingPolicyAttributes) TargetTrackingConfiguration() terra.ListValue[AutoScalingPolicyTargetTrackingConfigurationAttributes]
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 (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalRef() (terra.Reference, error)
func (AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalTokens ¶
func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)
func (AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalWithRef ¶
func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) InternalWithRef(ref terra.Reference) AutoScalingPolicyTargetTrackingConfigurationAttributes
func (AutoScalingPolicyTargetTrackingConfigurationAttributes) TargetValue ¶
func (ttc AutoScalingPolicyTargetTrackingConfigurationAttributes) TargetValue() terra.NumberValue
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 (id InstanceDefinitionAttributes) InstanceType() terra.StringValue
func (InstanceDefinitionAttributes) InternalRef ¶
func (id InstanceDefinitionAttributes) InternalRef() (terra.Reference, error)
func (InstanceDefinitionAttributes) InternalTokens ¶
func (id InstanceDefinitionAttributes) InternalTokens() (hclwrite.Tokens, error)
func (InstanceDefinitionAttributes) InternalWithRef ¶
func (id InstanceDefinitionAttributes) InternalWithRef(ref terra.Reference) InstanceDefinitionAttributes
func (InstanceDefinitionAttributes) WeightedCapacity ¶
func (id InstanceDefinitionAttributes) WeightedCapacity() terra.StringValue
type InstanceDefinitionState ¶
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 (lt LaunchTemplateAttributes) Id() terra.StringValue
func (LaunchTemplateAttributes) InternalRef ¶
func (lt LaunchTemplateAttributes) InternalRef() (terra.Reference, error)
func (LaunchTemplateAttributes) InternalTokens ¶
func (lt LaunchTemplateAttributes) InternalTokens() (hclwrite.Tokens, error)
func (LaunchTemplateAttributes) InternalWithRef ¶
func (lt LaunchTemplateAttributes) InternalWithRef(ref terra.Reference) LaunchTemplateAttributes
func (LaunchTemplateAttributes) Name ¶
func (lt LaunchTemplateAttributes) Name() terra.StringValue
func (LaunchTemplateAttributes) Version ¶
func (lt LaunchTemplateAttributes) Version() terra.StringValue
type LaunchTemplateState ¶
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 (*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) Dependencies ¶
func (aggsg *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 ¶
Click to show internal directories.
Click to hide internal directories.