amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.DeleteScalingPolicy

Description

Deletes a fleet scaling policy. Once deleted, the policy is no longer in force and GameLift removes all record of it. To delete a scaling policy, specify both the scaling policy name and the fleet ID it is associated with.

To temporarily suspend scaling policies, use StopFleetActions. This operation suspends all policies for the fleet.

Synopsis

Creating a Request

data DeleteScalingPolicy Source #

See: newDeleteScalingPolicy smart constructor.

Constructors

DeleteScalingPolicy' 

Fields

  • name :: Text

    A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.

  • fleetId :: Text

    A unique identifier for the fleet to be deleted. You can use either the fleet ID or ARN value.

Instances

Instances details
ToJSON DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

ToHeaders DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

ToPath DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

ToQuery DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

AWSRequest DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Associated Types

type AWSResponse DeleteScalingPolicy #

Generic DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Associated Types

type Rep DeleteScalingPolicy :: Type -> Type #

Read DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Show DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

NFData DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Methods

rnf :: DeleteScalingPolicy -> () #

Eq DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Hashable DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

type AWSResponse DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

type Rep DeleteScalingPolicy Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

type Rep DeleteScalingPolicy = D1 ('MetaData "DeleteScalingPolicy" "Amazonka.GameLift.DeleteScalingPolicy" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "DeleteScalingPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteScalingPolicy Source #

Create a value of DeleteScalingPolicy 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:

DeleteScalingPolicy, deleteScalingPolicy_name - A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.

DeleteScalingPolicy, deleteScalingPolicy_fleetId - A unique identifier for the fleet to be deleted. You can use either the fleet ID or ARN value.

Request Lenses

deleteScalingPolicy_name :: Lens' DeleteScalingPolicy Text Source #

A descriptive label that is associated with a fleet's scaling policy. Policy names do not need to be unique.

deleteScalingPolicy_fleetId :: Lens' DeleteScalingPolicy Text Source #

A unique identifier for the fleet to be deleted. You can use either the fleet ID or ARN value.

Destructuring the Response

data DeleteScalingPolicyResponse Source #

See: newDeleteScalingPolicyResponse smart constructor.

Instances

Instances details
Generic DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Associated Types

type Rep DeleteScalingPolicyResponse :: Type -> Type #

Read DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Show DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

NFData DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

Eq DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

type Rep DeleteScalingPolicyResponse Source # 
Instance details

Defined in Amazonka.GameLift.DeleteScalingPolicy

type Rep DeleteScalingPolicyResponse = D1 ('MetaData "DeleteScalingPolicyResponse" "Amazonka.GameLift.DeleteScalingPolicy" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "DeleteScalingPolicyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteScalingPolicyResponse :: DeleteScalingPolicyResponse Source #

Create a value of DeleteScalingPolicyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.