aws_gamelift_fleet

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 {
	// BuildId: string, optional
	BuildId terra.StringValue `hcl:"build_id,attr"`
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Ec2InstanceType: string, required
	Ec2InstanceType terra.StringValue `hcl:"ec2_instance_type,attr" validate:"required"`
	// FleetType: string, optional
	FleetType terra.StringValue `hcl:"fleet_type,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceRoleArn: string, optional
	InstanceRoleArn terra.StringValue `hcl:"instance_role_arn,attr"`
	// MetricGroups: list of string, optional
	MetricGroups terra.ListValue[terra.StringValue] `hcl:"metric_groups,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NewGameSessionProtectionPolicy: string, optional
	NewGameSessionProtectionPolicy terra.StringValue `hcl:"new_game_session_protection_policy,attr"`
	// ScriptId: string, optional
	ScriptId terra.StringValue `hcl:"script_id,attr"`
	// 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"`
	// CertificateConfiguration: optional
	CertificateConfiguration *CertificateConfiguration `hcl:"certificate_configuration,block"`
	// Ec2InboundPermission: min=0,max=50
	Ec2InboundPermission []Ec2InboundPermission `hcl:"ec2_inbound_permission,block" validate:"min=0,max=50"`
	// ResourceCreationLimitPolicy: optional
	ResourceCreationLimitPolicy *ResourceCreationLimitPolicy `hcl:"resource_creation_limit_policy,block"`
	// RuntimeConfiguration: optional
	RuntimeConfiguration *RuntimeConfiguration `hcl:"runtime_configuration,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for aws_gamelift_fleet.

type CertificateConfiguration

type CertificateConfiguration struct {
	// CertificateType: string, optional
	CertificateType terra.StringValue `hcl:"certificate_type,attr"`
}

type CertificateConfigurationAttributes

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

func (CertificateConfigurationAttributes) CertificateType

func (CertificateConfigurationAttributes) InternalRef

func (CertificateConfigurationAttributes) InternalTokens

func (CertificateConfigurationAttributes) InternalWithRef

type CertificateConfigurationState

type CertificateConfigurationState struct {
	CertificateType string `json:"certificate_type"`
}

type Ec2InboundPermission

type Ec2InboundPermission struct {
	// FromPort: number, required
	FromPort terra.NumberValue `hcl:"from_port,attr" validate:"required"`
	// IpRange: string, required
	IpRange terra.StringValue `hcl:"ip_range,attr" validate:"required"`
	// Protocol: string, required
	Protocol terra.StringValue `hcl:"protocol,attr" validate:"required"`
	// ToPort: number, required
	ToPort terra.NumberValue `hcl:"to_port,attr" validate:"required"`
}

type Ec2InboundPermissionAttributes

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

func (Ec2InboundPermissionAttributes) FromPort

func (Ec2InboundPermissionAttributes) InternalRef

func (eip Ec2InboundPermissionAttributes) InternalRef() (terra.Reference, error)

func (Ec2InboundPermissionAttributes) InternalTokens

func (eip Ec2InboundPermissionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Ec2InboundPermissionAttributes) InternalWithRef

func (Ec2InboundPermissionAttributes) IpRange

func (Ec2InboundPermissionAttributes) Protocol

func (Ec2InboundPermissionAttributes) ToPort

type Ec2InboundPermissionState

type Ec2InboundPermissionState struct {
	FromPort float64 `json:"from_port"`
	IpRange  string  `json:"ip_range"`
	Protocol string  `json:"protocol"`
	ToPort   float64 `json:"to_port"`
}

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_fleet.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (agf *Resource) Attributes() awsGameliftFleetAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (agf *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (agf *Resource) State() (*awsGameliftFleetState, bool)

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

func (*Resource) StateMust

func (agf *Resource) StateMust() *awsGameliftFleetState

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

func (*Resource) Type

func (agf *Resource) Type() string

Type returns the Terraform object type for Resource.

type ResourceCreationLimitPolicy

type ResourceCreationLimitPolicy struct {
	// NewGameSessionsPerCreator: number, optional
	NewGameSessionsPerCreator terra.NumberValue `hcl:"new_game_sessions_per_creator,attr"`
	// PolicyPeriodInMinutes: number, optional
	PolicyPeriodInMinutes terra.NumberValue `hcl:"policy_period_in_minutes,attr"`
}

type ResourceCreationLimitPolicyAttributes

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

func (ResourceCreationLimitPolicyAttributes) InternalRef

func (ResourceCreationLimitPolicyAttributes) InternalTokens

func (ResourceCreationLimitPolicyAttributes) InternalWithRef

func (ResourceCreationLimitPolicyAttributes) NewGameSessionsPerCreator

func (rclp ResourceCreationLimitPolicyAttributes) NewGameSessionsPerCreator() terra.NumberValue

func (ResourceCreationLimitPolicyAttributes) PolicyPeriodInMinutes

func (rclp ResourceCreationLimitPolicyAttributes) PolicyPeriodInMinutes() terra.NumberValue

type ResourceCreationLimitPolicyState

type ResourceCreationLimitPolicyState struct {
	NewGameSessionsPerCreator float64 `json:"new_game_sessions_per_creator"`
	PolicyPeriodInMinutes     float64 `json:"policy_period_in_minutes"`
}

type RuntimeConfiguration

type RuntimeConfiguration struct {
	// GameSessionActivationTimeoutSeconds: number, optional
	GameSessionActivationTimeoutSeconds terra.NumberValue `hcl:"game_session_activation_timeout_seconds,attr"`
	// MaxConcurrentGameSessionActivations: number, optional
	MaxConcurrentGameSessionActivations terra.NumberValue `hcl:"max_concurrent_game_session_activations,attr"`
	// RuntimeConfigurationServerProcess: min=0,max=50
	ServerProcess []RuntimeConfigurationServerProcess `hcl:"server_process,block" validate:"min=0,max=50"`
}

type RuntimeConfigurationAttributes

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

func (RuntimeConfigurationAttributes) GameSessionActivationTimeoutSeconds

func (rc RuntimeConfigurationAttributes) GameSessionActivationTimeoutSeconds() terra.NumberValue

func (RuntimeConfigurationAttributes) InternalRef

func (RuntimeConfigurationAttributes) InternalTokens

func (rc RuntimeConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuntimeConfigurationAttributes) InternalWithRef

func (RuntimeConfigurationAttributes) MaxConcurrentGameSessionActivations

func (rc RuntimeConfigurationAttributes) MaxConcurrentGameSessionActivations() terra.NumberValue

func (RuntimeConfigurationAttributes) ServerProcess

type RuntimeConfigurationServerProcess

type RuntimeConfigurationServerProcess struct {
	// ConcurrentExecutions: number, required
	ConcurrentExecutions terra.NumberValue `hcl:"concurrent_executions,attr" validate:"required"`
	// LaunchPath: string, required
	LaunchPath terra.StringValue `hcl:"launch_path,attr" validate:"required"`
	// Parameters: string, optional
	Parameters terra.StringValue `hcl:"parameters,attr"`
}

type RuntimeConfigurationServerProcessAttributes

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

func (RuntimeConfigurationServerProcessAttributes) ConcurrentExecutions

func (RuntimeConfigurationServerProcessAttributes) InternalRef

func (RuntimeConfigurationServerProcessAttributes) InternalTokens

func (RuntimeConfigurationServerProcessAttributes) InternalWithRef

func (RuntimeConfigurationServerProcessAttributes) LaunchPath

func (RuntimeConfigurationServerProcessAttributes) Parameters

type RuntimeConfigurationServerProcessState

type RuntimeConfigurationServerProcessState struct {
	ConcurrentExecutions float64 `json:"concurrent_executions"`
	LaunchPath           string  `json:"launch_path"`
	Parameters           string  `json:"parameters"`
}

type RuntimeConfigurationState

type RuntimeConfigurationState struct {
	GameSessionActivationTimeoutSeconds float64                                  `json:"game_session_activation_timeout_seconds"`
	MaxConcurrentGameSessionActivations float64                                  `json:"max_concurrent_game_session_activations"`
	ServerProcess                       []RuntimeConfigurationServerProcessState `json:"server_process"`
}

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