AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GameSessionDetail

import "github.com/aws/aws-sdk-go/service/gamelift"

type GameSessionDetail struct { GameSession *GameSession `type:"structure"` ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"` }

A game session's properties plus the protection policy currently in force.

GameSession

Properties describing a game session.

A game session in ACTIVE status can host players. When a game session ends, its status is set to TERMINATED.

Once the session ends, the game session object is retained for 30 days. This means you can reuse idempotency token values after this time. Game session logs are retained for 14 days.

  • CreateGameSession

  • DescribeGameSessions

  • DescribeGameSessionDetails

  • SearchGameSessions

  • UpdateGameSession

  • GetGameSessionLogUrl

  • Game session placements

StartGameSessionPlacement

DescribeGameSessionPlacement

StopGameSessionPlacement

ProtectionPolicy

Type: *string

Current status of protection for the game session.

  • NoProtection -- The game session can be terminated during a scale-down event.

  • FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

Method

GoString

func (s GameSessionDetail) GoString() string

GoString returns the string representation

SetGameSession

func (s *GameSessionDetail) SetGameSession(v *GameSession) *GameSessionDetail

SetGameSession sets the GameSession field's value.

SetProtectionPolicy

func (s *GameSessionDetail) SetProtectionPolicy(v string) *GameSessionDetail

SetProtectionPolicy sets the ProtectionPolicy field's value.

String

func (s GameSessionDetail) String() string

String returns the string representation

On this page: