| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.DeleteFleetLocations
Description
Removes locations from a multi-location fleet. When deleting a location, all game server process and all instances that are still active in the location are shut down.
To delete fleet locations, identify the fleet ID and provide a list of the locations to be deleted.
If successful, GameLift sets the location status to DELETING, and
begins to shut down existing server processes and terminate instances in
each location being deleted. When completed, the location status changes
to TERMINATED.
Learn more
Synopsis
- data DeleteFleetLocations = DeleteFleetLocations' {}
- newDeleteFleetLocations :: Text -> NonEmpty Text -> DeleteFleetLocations
- deleteFleetLocations_fleetId :: Lens' DeleteFleetLocations Text
- deleteFleetLocations_locations :: Lens' DeleteFleetLocations (NonEmpty Text)
- data DeleteFleetLocationsResponse = DeleteFleetLocationsResponse' {
- fleetArn :: Maybe Text
- fleetId :: Maybe Text
- locationStates :: Maybe [LocationState]
- httpStatus :: Int
- newDeleteFleetLocationsResponse :: Int -> DeleteFleetLocationsResponse
- deleteFleetLocationsResponse_fleetArn :: Lens' DeleteFleetLocationsResponse (Maybe Text)
- deleteFleetLocationsResponse_fleetId :: Lens' DeleteFleetLocationsResponse (Maybe Text)
- deleteFleetLocationsResponse_locationStates :: Lens' DeleteFleetLocationsResponse (Maybe [LocationState])
- deleteFleetLocationsResponse_httpStatus :: Lens' DeleteFleetLocationsResponse Int
Creating a Request
data DeleteFleetLocations Source #
See: newDeleteFleetLocations smart constructor.
Constructors
| DeleteFleetLocations' | |
Instances
newDeleteFleetLocations Source #
Arguments
| :: Text | |
| -> NonEmpty Text | |
| -> DeleteFleetLocations |
Create a value of DeleteFleetLocations 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:
DeleteFleetLocations, deleteFleetLocations_fleetId - A unique identifier for the fleet to delete locations for. You can use
either the fleet ID or ARN value.
$sel:locations:DeleteFleetLocations', deleteFleetLocations_locations - The list of fleet locations to delete. Specify locations in the form of
an Amazon Web Services Region code, such as us-west-2.
Request Lenses
deleteFleetLocations_fleetId :: Lens' DeleteFleetLocations Text Source #
A unique identifier for the fleet to delete locations for. You can use either the fleet ID or ARN value.
deleteFleetLocations_locations :: Lens' DeleteFleetLocations (NonEmpty Text) Source #
The list of fleet locations to delete. Specify locations in the form of
an Amazon Web Services Region code, such as us-west-2.
Destructuring the Response
data DeleteFleetLocationsResponse Source #
See: newDeleteFleetLocationsResponse smart constructor.
Constructors
| DeleteFleetLocationsResponse' | |
Fields
| |
Instances
newDeleteFleetLocationsResponse Source #
Create a value of DeleteFleetLocationsResponse 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:
DeleteFleetLocationsResponse, deleteFleetLocationsResponse_fleetArn - The Amazon Resource Name
(ARN)
that is assigned to a GameLift fleet resource and uniquely identifies
it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.
DeleteFleetLocations, deleteFleetLocationsResponse_fleetId - A unique identifier for the fleet that location attributes are being
deleted for.
$sel:locationStates:DeleteFleetLocationsResponse', deleteFleetLocationsResponse_locationStates - The remote locations that are being deleted, with each location status
set to DELETING.
$sel:httpStatus:DeleteFleetLocationsResponse', deleteFleetLocationsResponse_httpStatus - The response's http status code.
Response Lenses
deleteFleetLocationsResponse_fleetArn :: Lens' DeleteFleetLocationsResponse (Maybe Text) Source #
The Amazon Resource Name
(ARN)
that is assigned to a GameLift fleet resource and uniquely identifies
it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.
deleteFleetLocationsResponse_fleetId :: Lens' DeleteFleetLocationsResponse (Maybe Text) Source #
A unique identifier for the fleet that location attributes are being deleted for.
deleteFleetLocationsResponse_locationStates :: Lens' DeleteFleetLocationsResponse (Maybe [LocationState]) Source #
The remote locations that are being deleted, with each location status
set to DELETING.
deleteFleetLocationsResponse_httpStatus :: Lens' DeleteFleetLocationsResponse Int Source #
The response's http status code.