| 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.OpsWorks.SetTimeBasedAutoScaling
Description
Specify the time-based auto scaling configuration for a specified instance. For more information, see Managing Load with Time-based and Load-based Instances.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Synopsis
- data SetTimeBasedAutoScaling = SetTimeBasedAutoScaling' {}
- newSetTimeBasedAutoScaling :: Text -> SetTimeBasedAutoScaling
- setTimeBasedAutoScaling_autoScalingSchedule :: Lens' SetTimeBasedAutoScaling (Maybe WeeklyAutoScalingSchedule)
- setTimeBasedAutoScaling_instanceId :: Lens' SetTimeBasedAutoScaling Text
- data SetTimeBasedAutoScalingResponse = SetTimeBasedAutoScalingResponse' {
- newSetTimeBasedAutoScalingResponse :: SetTimeBasedAutoScalingResponse
Creating a Request
data SetTimeBasedAutoScaling Source #
See: newSetTimeBasedAutoScaling smart constructor.
Constructors
| SetTimeBasedAutoScaling' | |
Fields
| |
Instances
newSetTimeBasedAutoScaling Source #
Arguments
| :: Text | |
| -> SetTimeBasedAutoScaling |
Create a value of SetTimeBasedAutoScaling 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:
SetTimeBasedAutoScaling, setTimeBasedAutoScaling_autoScalingSchedule - An AutoScalingSchedule with the instance schedule.
SetTimeBasedAutoScaling, setTimeBasedAutoScaling_instanceId - The instance ID.
Request Lenses
setTimeBasedAutoScaling_autoScalingSchedule :: Lens' SetTimeBasedAutoScaling (Maybe WeeklyAutoScalingSchedule) Source #
An AutoScalingSchedule with the instance schedule.
setTimeBasedAutoScaling_instanceId :: Lens' SetTimeBasedAutoScaling Text Source #
The instance ID.
Destructuring the Response
data SetTimeBasedAutoScalingResponse Source #
See: newSetTimeBasedAutoScalingResponse smart constructor.
Constructors
| SetTimeBasedAutoScalingResponse' | |
Instances
| Generic SetTimeBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetTimeBasedAutoScaling Associated Types type Rep SetTimeBasedAutoScalingResponse :: Type -> Type # | |
| Read SetTimeBasedAutoScalingResponse Source # | |
| Show SetTimeBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetTimeBasedAutoScaling Methods showsPrec :: Int -> SetTimeBasedAutoScalingResponse -> ShowS # | |
| NFData SetTimeBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetTimeBasedAutoScaling Methods rnf :: SetTimeBasedAutoScalingResponse -> () # | |
| Eq SetTimeBasedAutoScalingResponse Source # | |
| type Rep SetTimeBasedAutoScalingResponse Source # | |
Defined in Amazonka.OpsWorks.SetTimeBasedAutoScaling | |
newSetTimeBasedAutoScalingResponse :: SetTimeBasedAutoScalingResponse Source #
Create a value of SetTimeBasedAutoScalingResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.