Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Updates fleet properties, including name and description, for a fleet. To update metadata, specify the fleet ID and the property values that you want to change. If successful, the fleet ID for the updated fleet is returned.
Fleet-related operations include:
CreateFleet
ListFleets
DeleteFleet
- Describe fleets:
DescribeFleetAttributes
DescribeFleetCapacity
DescribeFleetPortSettings
DescribeFleetUtilization
DescribeRuntimeConfiguration
DescribeEC2InstanceLimits
DescribeFleetEvents
- Update fleets:
UpdateFleetAttributes
UpdateFleetCapacity
UpdateFleetPortSettings
UpdateRuntimeConfiguration
- Manage fleet actions:
StartFleetActions
StopFleetActions
- updateFleetAttributes :: Text -> UpdateFleetAttributes
- data UpdateFleetAttributes
- ufaNewGameSessionProtectionPolicy :: Lens' UpdateFleetAttributes (Maybe ProtectionPolicy)
- ufaName :: Lens' UpdateFleetAttributes (Maybe Text)
- ufaMetricGroups :: Lens' UpdateFleetAttributes [Text]
- ufaDescription :: Lens' UpdateFleetAttributes (Maybe Text)
- ufaResourceCreationLimitPolicy :: Lens' UpdateFleetAttributes (Maybe ResourceCreationLimitPolicy)
- ufaFleetId :: Lens' UpdateFleetAttributes Text
- updateFleetAttributesResponse :: Int -> UpdateFleetAttributesResponse
- data UpdateFleetAttributesResponse
- ufarsFleetId :: Lens' UpdateFleetAttributesResponse (Maybe Text)
- ufarsResponseStatus :: Lens' UpdateFleetAttributesResponse Int
Creating a Request
updateFleetAttributes Source #
Creates a value of UpdateFleetAttributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ufaNewGameSessionProtectionPolicy
- Game session protection policy to apply to all new instances created in this fleet. Instances that already exist are not affected. You can set protection for individual instances usingUpdateGameSession
. * NoProtection -- The game session can be terminated during a scale-down event. * FullProtection -- If the game session is in anACTIVE
status, it cannot be terminated during a scale-down event.ufaName
- Descriptive label that is associated with a fleet. Fleet names do not need to be unique.ufaMetricGroups
- Names of metric groups to include this fleet in. Amazon CloudWatch uses a fleet metric group is to aggregate metrics from multiple fleets. Use an existing metric group name to add this fleet to the group. Or use a new name to create a new metric group. A fleet can only be included in one metric group at a time.ufaDescription
- Human-readable description of a fleet.ufaResourceCreationLimitPolicy
- Policy that limits the number of game sessions an individual player can create over a span of time.ufaFleetId
- Unique identifier for a fleet to update attribute metadata for.
data UpdateFleetAttributes Source #
Represents the input for a request action.
See: updateFleetAttributes
smart constructor.
Request Lenses
ufaNewGameSessionProtectionPolicy :: Lens' UpdateFleetAttributes (Maybe ProtectionPolicy) Source #
Game session protection policy to apply to all new instances created in this fleet. Instances that already exist are not affected. You can set protection for individual instances using UpdateGameSession
. * 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.
ufaName :: Lens' UpdateFleetAttributes (Maybe Text) Source #
Descriptive label that is associated with a fleet. Fleet names do not need to be unique.
ufaMetricGroups :: Lens' UpdateFleetAttributes [Text] Source #
Names of metric groups to include this fleet in. Amazon CloudWatch uses a fleet metric group is to aggregate metrics from multiple fleets. Use an existing metric group name to add this fleet to the group. Or use a new name to create a new metric group. A fleet can only be included in one metric group at a time.
ufaDescription :: Lens' UpdateFleetAttributes (Maybe Text) Source #
Human-readable description of a fleet.
ufaResourceCreationLimitPolicy :: Lens' UpdateFleetAttributes (Maybe ResourceCreationLimitPolicy) Source #
Policy that limits the number of game sessions an individual player can create over a span of time.
ufaFleetId :: Lens' UpdateFleetAttributes Text Source #
Unique identifier for a fleet to update attribute metadata for.
Destructuring the Response
updateFleetAttributesResponse Source #
Creates a value of UpdateFleetAttributesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ufarsFleetId
- Unique identifier for a fleet that was updated.ufarsResponseStatus
- -- | The response status code.
data UpdateFleetAttributesResponse Source #
Represents the returned data in response to a request action.
See: updateFleetAttributesResponse
smart constructor.
Response Lenses
ufarsFleetId :: Lens' UpdateFleetAttributesResponse (Maybe Text) Source #
Unique identifier for a fleet that was updated.
ufarsResponseStatus :: Lens' UpdateFleetAttributesResponse Int Source #
- - | The response status code.