Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Cancels a game session placement that is in PENDING
status. To stop a
placement, provide the placement ID values. If successful, the placement
is moved to CANCELLED
status.
Related actions
CreateGameSession | DescribeGameSessions | DescribeGameSessionDetails | SearchGameSessions | UpdateGameSession | GetGameSessionLogUrl | StartGameSessionPlacement | DescribeGameSessionPlacement | StopGameSessionPlacement | All APIs by task
Synopsis
- data StopGameSessionPlacement = StopGameSessionPlacement' {
- placementId :: Text
- newStopGameSessionPlacement :: Text -> StopGameSessionPlacement
- stopGameSessionPlacement_placementId :: Lens' StopGameSessionPlacement Text
- data StopGameSessionPlacementResponse = StopGameSessionPlacementResponse' {}
- newStopGameSessionPlacementResponse :: Int -> StopGameSessionPlacementResponse
- stopGameSessionPlacementResponse_gameSessionPlacement :: Lens' StopGameSessionPlacementResponse (Maybe GameSessionPlacement)
- stopGameSessionPlacementResponse_httpStatus :: Lens' StopGameSessionPlacementResponse Int
Creating a Request
data StopGameSessionPlacement Source #
Represents the input for a request operation.
See: newStopGameSessionPlacement
smart constructor.
StopGameSessionPlacement' | |
|
Instances
newStopGameSessionPlacement Source #
Create a value of StopGameSessionPlacement
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:placementId:StopGameSessionPlacement'
, stopGameSessionPlacement_placementId
- A unique identifier for a game session placement to cancel.
Request Lenses
stopGameSessionPlacement_placementId :: Lens' StopGameSessionPlacement Text Source #
A unique identifier for a game session placement to cancel.
Destructuring the Response
data StopGameSessionPlacementResponse Source #
Represents the returned data in response to a request operation.
See: newStopGameSessionPlacementResponse
smart constructor.
StopGameSessionPlacementResponse' | |
|
Instances
Eq StopGameSessionPlacementResponse Source # | |
Read StopGameSessionPlacementResponse Source # | |
Show StopGameSessionPlacementResponse Source # | |
Generic StopGameSessionPlacementResponse Source # | |
NFData StopGameSessionPlacementResponse Source # | |
Defined in Amazonka.GameLift.StopGameSessionPlacement rnf :: StopGameSessionPlacementResponse -> () # | |
type Rep StopGameSessionPlacementResponse Source # | |
Defined in Amazonka.GameLift.StopGameSessionPlacement type Rep StopGameSessionPlacementResponse = D1 ('MetaData "StopGameSessionPlacementResponse" "Amazonka.GameLift.StopGameSessionPlacement" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "StopGameSessionPlacementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gameSessionPlacement") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GameSessionPlacement)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newStopGameSessionPlacementResponse Source #
Create a value of StopGameSessionPlacementResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gameSessionPlacement:StopGameSessionPlacementResponse'
, stopGameSessionPlacementResponse_gameSessionPlacement
- Object that describes the canceled game session placement, with
CANCELLED
status and an end time stamp.
$sel:httpStatus:StopGameSessionPlacementResponse'
, stopGameSessionPlacementResponse_httpStatus
- The response's http status code.
Response Lenses
stopGameSessionPlacementResponse_gameSessionPlacement :: Lens' StopGameSessionPlacementResponse (Maybe GameSessionPlacement) Source #
Object that describes the canceled game session placement, with
CANCELLED
status and an end time stamp.
stopGameSessionPlacementResponse_httpStatus :: Lens' StopGameSessionPlacementResponse Int Source #
The response's http status code.