{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.OpsWorks.DescribeTimeBasedAutoScaling
-- 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)
--
-- Describes time-based auto scaling configurations for specified
-- instances.
--
-- You must specify at least one of the parameters.
--
-- __Required Permissions__: To use this action, an IAM user must have a
-- Show, Deploy, or Manage permissions level for the stack, or an attached
-- policy that explicitly grants permissions. For more information about
-- user permissions, see
-- <https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html Managing User Permissions>.
module Amazonka.OpsWorks.DescribeTimeBasedAutoScaling
  ( -- * Creating a Request
    DescribeTimeBasedAutoScaling (..),
    newDescribeTimeBasedAutoScaling,

    -- * Request Lenses
    describeTimeBasedAutoScaling_instanceIds,

    -- * Destructuring the Response
    DescribeTimeBasedAutoScalingResponse (..),
    newDescribeTimeBasedAutoScalingResponse,

    -- * Response Lenses
    describeTimeBasedAutoScalingResponse_timeBasedAutoScalingConfigurations,
    describeTimeBasedAutoScalingResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpsWorks.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeTimeBasedAutoScaling' smart constructor.
data DescribeTimeBasedAutoScaling = DescribeTimeBasedAutoScaling'
  { -- | An array of instance IDs.
    DescribeTimeBasedAutoScaling -> [Text]
instanceIds :: [Prelude.Text]
  }
  deriving (DescribeTimeBasedAutoScaling
-> DescribeTimeBasedAutoScaling -> Bool
(DescribeTimeBasedAutoScaling
 -> DescribeTimeBasedAutoScaling -> Bool)
-> (DescribeTimeBasedAutoScaling
    -> DescribeTimeBasedAutoScaling -> Bool)
-> Eq DescribeTimeBasedAutoScaling
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTimeBasedAutoScaling
-> DescribeTimeBasedAutoScaling -> Bool
$c/= :: DescribeTimeBasedAutoScaling
-> DescribeTimeBasedAutoScaling -> Bool
== :: DescribeTimeBasedAutoScaling
-> DescribeTimeBasedAutoScaling -> Bool
$c== :: DescribeTimeBasedAutoScaling
-> DescribeTimeBasedAutoScaling -> Bool
Prelude.Eq, ReadPrec [DescribeTimeBasedAutoScaling]
ReadPrec DescribeTimeBasedAutoScaling
Int -> ReadS DescribeTimeBasedAutoScaling
ReadS [DescribeTimeBasedAutoScaling]
(Int -> ReadS DescribeTimeBasedAutoScaling)
-> ReadS [DescribeTimeBasedAutoScaling]
-> ReadPrec DescribeTimeBasedAutoScaling
-> ReadPrec [DescribeTimeBasedAutoScaling]
-> Read DescribeTimeBasedAutoScaling
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTimeBasedAutoScaling]
$creadListPrec :: ReadPrec [DescribeTimeBasedAutoScaling]
readPrec :: ReadPrec DescribeTimeBasedAutoScaling
$creadPrec :: ReadPrec DescribeTimeBasedAutoScaling
readList :: ReadS [DescribeTimeBasedAutoScaling]
$creadList :: ReadS [DescribeTimeBasedAutoScaling]
readsPrec :: Int -> ReadS DescribeTimeBasedAutoScaling
$creadsPrec :: Int -> ReadS DescribeTimeBasedAutoScaling
Prelude.Read, Int -> DescribeTimeBasedAutoScaling -> ShowS
[DescribeTimeBasedAutoScaling] -> ShowS
DescribeTimeBasedAutoScaling -> String
(Int -> DescribeTimeBasedAutoScaling -> ShowS)
-> (DescribeTimeBasedAutoScaling -> String)
-> ([DescribeTimeBasedAutoScaling] -> ShowS)
-> Show DescribeTimeBasedAutoScaling
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTimeBasedAutoScaling] -> ShowS
$cshowList :: [DescribeTimeBasedAutoScaling] -> ShowS
show :: DescribeTimeBasedAutoScaling -> String
$cshow :: DescribeTimeBasedAutoScaling -> String
showsPrec :: Int -> DescribeTimeBasedAutoScaling -> ShowS
$cshowsPrec :: Int -> DescribeTimeBasedAutoScaling -> ShowS
Prelude.Show, (forall x.
 DescribeTimeBasedAutoScaling -> Rep DescribeTimeBasedAutoScaling x)
-> (forall x.
    Rep DescribeTimeBasedAutoScaling x -> DescribeTimeBasedAutoScaling)
-> Generic DescribeTimeBasedAutoScaling
forall x.
Rep DescribeTimeBasedAutoScaling x -> DescribeTimeBasedAutoScaling
forall x.
DescribeTimeBasedAutoScaling -> Rep DescribeTimeBasedAutoScaling x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTimeBasedAutoScaling x -> DescribeTimeBasedAutoScaling
$cfrom :: forall x.
DescribeTimeBasedAutoScaling -> Rep DescribeTimeBasedAutoScaling x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTimeBasedAutoScaling' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'instanceIds', 'describeTimeBasedAutoScaling_instanceIds' - An array of instance IDs.
newDescribeTimeBasedAutoScaling ::
  DescribeTimeBasedAutoScaling
newDescribeTimeBasedAutoScaling :: DescribeTimeBasedAutoScaling
newDescribeTimeBasedAutoScaling =
  DescribeTimeBasedAutoScaling' :: [Text] -> DescribeTimeBasedAutoScaling
DescribeTimeBasedAutoScaling'
    { $sel:instanceIds:DescribeTimeBasedAutoScaling' :: [Text]
instanceIds =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | An array of instance IDs.
describeTimeBasedAutoScaling_instanceIds :: Lens.Lens' DescribeTimeBasedAutoScaling [Prelude.Text]
describeTimeBasedAutoScaling_instanceIds :: ([Text] -> f [Text])
-> DescribeTimeBasedAutoScaling -> f DescribeTimeBasedAutoScaling
describeTimeBasedAutoScaling_instanceIds = (DescribeTimeBasedAutoScaling -> [Text])
-> (DescribeTimeBasedAutoScaling
    -> [Text] -> DescribeTimeBasedAutoScaling)
-> Lens
     DescribeTimeBasedAutoScaling
     DescribeTimeBasedAutoScaling
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTimeBasedAutoScaling' {[Text]
instanceIds :: [Text]
$sel:instanceIds:DescribeTimeBasedAutoScaling' :: DescribeTimeBasedAutoScaling -> [Text]
instanceIds} -> [Text]
instanceIds) (\s :: DescribeTimeBasedAutoScaling
s@DescribeTimeBasedAutoScaling' {} [Text]
a -> DescribeTimeBasedAutoScaling
s {$sel:instanceIds:DescribeTimeBasedAutoScaling' :: [Text]
instanceIds = [Text]
a} :: DescribeTimeBasedAutoScaling) (([Text] -> f [Text])
 -> DescribeTimeBasedAutoScaling -> f DescribeTimeBasedAutoScaling)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DescribeTimeBasedAutoScaling
-> f DescribeTimeBasedAutoScaling
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest DescribeTimeBasedAutoScaling where
  type
    AWSResponse DescribeTimeBasedAutoScaling =
      DescribeTimeBasedAutoScalingResponse
  request :: DescribeTimeBasedAutoScaling
-> Request DescribeTimeBasedAutoScaling
request = Service
-> DescribeTimeBasedAutoScaling
-> Request DescribeTimeBasedAutoScaling
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTimeBasedAutoScaling
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTimeBasedAutoScaling)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeTimeBasedAutoScaling))
-> Logger
-> Service
-> Proxy DescribeTimeBasedAutoScaling
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTimeBasedAutoScaling)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [TimeBasedAutoScalingConfiguration]
-> Int -> DescribeTimeBasedAutoScalingResponse
DescribeTimeBasedAutoScalingResponse'
            (Maybe [TimeBasedAutoScalingConfiguration]
 -> Int -> DescribeTimeBasedAutoScalingResponse)
-> Either String (Maybe [TimeBasedAutoScalingConfiguration])
-> Either String (Int -> DescribeTimeBasedAutoScalingResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either
     String (Maybe (Maybe [TimeBasedAutoScalingConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TimeBasedAutoScalingConfigurations"
                            Either String (Maybe (Maybe [TimeBasedAutoScalingConfiguration]))
-> Maybe [TimeBasedAutoScalingConfiguration]
-> Either String (Maybe [TimeBasedAutoScalingConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TimeBasedAutoScalingConfiguration]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> DescribeTimeBasedAutoScalingResponse)
-> Either String Int
-> Either String DescribeTimeBasedAutoScalingResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeTimeBasedAutoScaling

instance Prelude.NFData DescribeTimeBasedAutoScaling

instance Core.ToHeaders DescribeTimeBasedAutoScaling where
  toHeaders :: DescribeTimeBasedAutoScaling -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeTimeBasedAutoScaling -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"OpsWorks_20130218.DescribeTimeBasedAutoScaling" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DescribeTimeBasedAutoScaling where
  toJSON :: DescribeTimeBasedAutoScaling -> Value
toJSON DescribeTimeBasedAutoScaling' {[Text]
instanceIds :: [Text]
$sel:instanceIds:DescribeTimeBasedAutoScaling' :: DescribeTimeBasedAutoScaling -> [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InstanceIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
instanceIds)]
      )

instance Core.ToPath DescribeTimeBasedAutoScaling where
  toPath :: DescribeTimeBasedAutoScaling -> ByteString
toPath = ByteString -> DescribeTimeBasedAutoScaling -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeTimeBasedAutoScaling where
  toQuery :: DescribeTimeBasedAutoScaling -> QueryString
toQuery = QueryString -> DescribeTimeBasedAutoScaling -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | Contains the response to a @DescribeTimeBasedAutoScaling@ request.
--
-- /See:/ 'newDescribeTimeBasedAutoScalingResponse' smart constructor.
data DescribeTimeBasedAutoScalingResponse = DescribeTimeBasedAutoScalingResponse'
  { -- | An array of @TimeBasedAutoScalingConfiguration@ objects that describe
    -- the configuration for the specified instances.
    DescribeTimeBasedAutoScalingResponse
-> Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations :: Prelude.Maybe [TimeBasedAutoScalingConfiguration],
    -- | The response's http status code.
    DescribeTimeBasedAutoScalingResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeTimeBasedAutoScalingResponse
-> DescribeTimeBasedAutoScalingResponse -> Bool
(DescribeTimeBasedAutoScalingResponse
 -> DescribeTimeBasedAutoScalingResponse -> Bool)
-> (DescribeTimeBasedAutoScalingResponse
    -> DescribeTimeBasedAutoScalingResponse -> Bool)
-> Eq DescribeTimeBasedAutoScalingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTimeBasedAutoScalingResponse
-> DescribeTimeBasedAutoScalingResponse -> Bool
$c/= :: DescribeTimeBasedAutoScalingResponse
-> DescribeTimeBasedAutoScalingResponse -> Bool
== :: DescribeTimeBasedAutoScalingResponse
-> DescribeTimeBasedAutoScalingResponse -> Bool
$c== :: DescribeTimeBasedAutoScalingResponse
-> DescribeTimeBasedAutoScalingResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTimeBasedAutoScalingResponse]
ReadPrec DescribeTimeBasedAutoScalingResponse
Int -> ReadS DescribeTimeBasedAutoScalingResponse
ReadS [DescribeTimeBasedAutoScalingResponse]
(Int -> ReadS DescribeTimeBasedAutoScalingResponse)
-> ReadS [DescribeTimeBasedAutoScalingResponse]
-> ReadPrec DescribeTimeBasedAutoScalingResponse
-> ReadPrec [DescribeTimeBasedAutoScalingResponse]
-> Read DescribeTimeBasedAutoScalingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTimeBasedAutoScalingResponse]
$creadListPrec :: ReadPrec [DescribeTimeBasedAutoScalingResponse]
readPrec :: ReadPrec DescribeTimeBasedAutoScalingResponse
$creadPrec :: ReadPrec DescribeTimeBasedAutoScalingResponse
readList :: ReadS [DescribeTimeBasedAutoScalingResponse]
$creadList :: ReadS [DescribeTimeBasedAutoScalingResponse]
readsPrec :: Int -> ReadS DescribeTimeBasedAutoScalingResponse
$creadsPrec :: Int -> ReadS DescribeTimeBasedAutoScalingResponse
Prelude.Read, Int -> DescribeTimeBasedAutoScalingResponse -> ShowS
[DescribeTimeBasedAutoScalingResponse] -> ShowS
DescribeTimeBasedAutoScalingResponse -> String
(Int -> DescribeTimeBasedAutoScalingResponse -> ShowS)
-> (DescribeTimeBasedAutoScalingResponse -> String)
-> ([DescribeTimeBasedAutoScalingResponse] -> ShowS)
-> Show DescribeTimeBasedAutoScalingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTimeBasedAutoScalingResponse] -> ShowS
$cshowList :: [DescribeTimeBasedAutoScalingResponse] -> ShowS
show :: DescribeTimeBasedAutoScalingResponse -> String
$cshow :: DescribeTimeBasedAutoScalingResponse -> String
showsPrec :: Int -> DescribeTimeBasedAutoScalingResponse -> ShowS
$cshowsPrec :: Int -> DescribeTimeBasedAutoScalingResponse -> ShowS
Prelude.Show, (forall x.
 DescribeTimeBasedAutoScalingResponse
 -> Rep DescribeTimeBasedAutoScalingResponse x)
-> (forall x.
    Rep DescribeTimeBasedAutoScalingResponse x
    -> DescribeTimeBasedAutoScalingResponse)
-> Generic DescribeTimeBasedAutoScalingResponse
forall x.
Rep DescribeTimeBasedAutoScalingResponse x
-> DescribeTimeBasedAutoScalingResponse
forall x.
DescribeTimeBasedAutoScalingResponse
-> Rep DescribeTimeBasedAutoScalingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTimeBasedAutoScalingResponse x
-> DescribeTimeBasedAutoScalingResponse
$cfrom :: forall x.
DescribeTimeBasedAutoScalingResponse
-> Rep DescribeTimeBasedAutoScalingResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTimeBasedAutoScalingResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'timeBasedAutoScalingConfigurations', 'describeTimeBasedAutoScalingResponse_timeBasedAutoScalingConfigurations' - An array of @TimeBasedAutoScalingConfiguration@ objects that describe
-- the configuration for the specified instances.
--
-- 'httpStatus', 'describeTimeBasedAutoScalingResponse_httpStatus' - The response's http status code.
newDescribeTimeBasedAutoScalingResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeTimeBasedAutoScalingResponse
newDescribeTimeBasedAutoScalingResponse :: Int -> DescribeTimeBasedAutoScalingResponse
newDescribeTimeBasedAutoScalingResponse Int
pHttpStatus_ =
  DescribeTimeBasedAutoScalingResponse' :: Maybe [TimeBasedAutoScalingConfiguration]
-> Int -> DescribeTimeBasedAutoScalingResponse
DescribeTimeBasedAutoScalingResponse'
    { $sel:timeBasedAutoScalingConfigurations:DescribeTimeBasedAutoScalingResponse' :: Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations =
        Maybe [TimeBasedAutoScalingConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeTimeBasedAutoScalingResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of @TimeBasedAutoScalingConfiguration@ objects that describe
-- the configuration for the specified instances.
describeTimeBasedAutoScalingResponse_timeBasedAutoScalingConfigurations :: Lens.Lens' DescribeTimeBasedAutoScalingResponse (Prelude.Maybe [TimeBasedAutoScalingConfiguration])
describeTimeBasedAutoScalingResponse_timeBasedAutoScalingConfigurations :: (Maybe [TimeBasedAutoScalingConfiguration]
 -> f (Maybe [TimeBasedAutoScalingConfiguration]))
-> DescribeTimeBasedAutoScalingResponse
-> f DescribeTimeBasedAutoScalingResponse
describeTimeBasedAutoScalingResponse_timeBasedAutoScalingConfigurations = (DescribeTimeBasedAutoScalingResponse
 -> Maybe [TimeBasedAutoScalingConfiguration])
-> (DescribeTimeBasedAutoScalingResponse
    -> Maybe [TimeBasedAutoScalingConfiguration]
    -> DescribeTimeBasedAutoScalingResponse)
-> Lens
     DescribeTimeBasedAutoScalingResponse
     DescribeTimeBasedAutoScalingResponse
     (Maybe [TimeBasedAutoScalingConfiguration])
     (Maybe [TimeBasedAutoScalingConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTimeBasedAutoScalingResponse' {Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations :: Maybe [TimeBasedAutoScalingConfiguration]
$sel:timeBasedAutoScalingConfigurations:DescribeTimeBasedAutoScalingResponse' :: DescribeTimeBasedAutoScalingResponse
-> Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations} -> Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations) (\s :: DescribeTimeBasedAutoScalingResponse
s@DescribeTimeBasedAutoScalingResponse' {} Maybe [TimeBasedAutoScalingConfiguration]
a -> DescribeTimeBasedAutoScalingResponse
s {$sel:timeBasedAutoScalingConfigurations:DescribeTimeBasedAutoScalingResponse' :: Maybe [TimeBasedAutoScalingConfiguration]
timeBasedAutoScalingConfigurations = Maybe [TimeBasedAutoScalingConfiguration]
a} :: DescribeTimeBasedAutoScalingResponse) ((Maybe [TimeBasedAutoScalingConfiguration]
  -> f (Maybe [TimeBasedAutoScalingConfiguration]))
 -> DescribeTimeBasedAutoScalingResponse
 -> f DescribeTimeBasedAutoScalingResponse)
-> ((Maybe [TimeBasedAutoScalingConfiguration]
     -> f (Maybe [TimeBasedAutoScalingConfiguration]))
    -> Maybe [TimeBasedAutoScalingConfiguration]
    -> f (Maybe [TimeBasedAutoScalingConfiguration]))
-> (Maybe [TimeBasedAutoScalingConfiguration]
    -> f (Maybe [TimeBasedAutoScalingConfiguration]))
-> DescribeTimeBasedAutoScalingResponse
-> f DescribeTimeBasedAutoScalingResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
-> Iso
     (Maybe [TimeBasedAutoScalingConfiguration])
     (Maybe [TimeBasedAutoScalingConfiguration])
     (Maybe [TimeBasedAutoScalingConfiguration])
     (Maybe [TimeBasedAutoScalingConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
  [TimeBasedAutoScalingConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeTimeBasedAutoScalingResponse_httpStatus :: Lens.Lens' DescribeTimeBasedAutoScalingResponse Prelude.Int
describeTimeBasedAutoScalingResponse_httpStatus :: (Int -> f Int)
-> DescribeTimeBasedAutoScalingResponse
-> f DescribeTimeBasedAutoScalingResponse
describeTimeBasedAutoScalingResponse_httpStatus = (DescribeTimeBasedAutoScalingResponse -> Int)
-> (DescribeTimeBasedAutoScalingResponse
    -> Int -> DescribeTimeBasedAutoScalingResponse)
-> Lens
     DescribeTimeBasedAutoScalingResponse
     DescribeTimeBasedAutoScalingResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTimeBasedAutoScalingResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeTimeBasedAutoScalingResponse' :: DescribeTimeBasedAutoScalingResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeTimeBasedAutoScalingResponse
s@DescribeTimeBasedAutoScalingResponse' {} Int
a -> DescribeTimeBasedAutoScalingResponse
s {$sel:httpStatus:DescribeTimeBasedAutoScalingResponse' :: Int
httpStatus = Int
a} :: DescribeTimeBasedAutoScalingResponse)

instance
  Prelude.NFData
    DescribeTimeBasedAutoScalingResponse