{-# 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 #-}
module Amazonka.AppRunner.CreateAutoScalingConfiguration
(
CreateAutoScalingConfiguration (..),
newCreateAutoScalingConfiguration,
createAutoScalingConfiguration_maxSize,
createAutoScalingConfiguration_minSize,
createAutoScalingConfiguration_tags,
createAutoScalingConfiguration_maxConcurrency,
createAutoScalingConfiguration_autoScalingConfigurationName,
CreateAutoScalingConfigurationResponse (..),
newCreateAutoScalingConfigurationResponse,
createAutoScalingConfigurationResponse_httpStatus,
createAutoScalingConfigurationResponse_autoScalingConfiguration,
)
where
import Amazonka.AppRunner.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateAutoScalingConfiguration = CreateAutoScalingConfiguration'
{
CreateAutoScalingConfiguration -> Maybe Natural
maxSize :: Prelude.Maybe Prelude.Natural,
CreateAutoScalingConfiguration -> Maybe Natural
minSize :: Prelude.Maybe Prelude.Natural,
CreateAutoScalingConfiguration -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateAutoScalingConfiguration -> Maybe Natural
maxConcurrency :: Prelude.Maybe Prelude.Natural,
CreateAutoScalingConfiguration -> Text
autoScalingConfigurationName :: Prelude.Text
}
deriving (CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool
(CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool)
-> (CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool)
-> Eq CreateAutoScalingConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool
$c/= :: CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool
== :: CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool
$c== :: CreateAutoScalingConfiguration
-> CreateAutoScalingConfiguration -> Bool
Prelude.Eq, ReadPrec [CreateAutoScalingConfiguration]
ReadPrec CreateAutoScalingConfiguration
Int -> ReadS CreateAutoScalingConfiguration
ReadS [CreateAutoScalingConfiguration]
(Int -> ReadS CreateAutoScalingConfiguration)
-> ReadS [CreateAutoScalingConfiguration]
-> ReadPrec CreateAutoScalingConfiguration
-> ReadPrec [CreateAutoScalingConfiguration]
-> Read CreateAutoScalingConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAutoScalingConfiguration]
$creadListPrec :: ReadPrec [CreateAutoScalingConfiguration]
readPrec :: ReadPrec CreateAutoScalingConfiguration
$creadPrec :: ReadPrec CreateAutoScalingConfiguration
readList :: ReadS [CreateAutoScalingConfiguration]
$creadList :: ReadS [CreateAutoScalingConfiguration]
readsPrec :: Int -> ReadS CreateAutoScalingConfiguration
$creadsPrec :: Int -> ReadS CreateAutoScalingConfiguration
Prelude.Read, Int -> CreateAutoScalingConfiguration -> ShowS
[CreateAutoScalingConfiguration] -> ShowS
CreateAutoScalingConfiguration -> String
(Int -> CreateAutoScalingConfiguration -> ShowS)
-> (CreateAutoScalingConfiguration -> String)
-> ([CreateAutoScalingConfiguration] -> ShowS)
-> Show CreateAutoScalingConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAutoScalingConfiguration] -> ShowS
$cshowList :: [CreateAutoScalingConfiguration] -> ShowS
show :: CreateAutoScalingConfiguration -> String
$cshow :: CreateAutoScalingConfiguration -> String
showsPrec :: Int -> CreateAutoScalingConfiguration -> ShowS
$cshowsPrec :: Int -> CreateAutoScalingConfiguration -> ShowS
Prelude.Show, (forall x.
CreateAutoScalingConfiguration
-> Rep CreateAutoScalingConfiguration x)
-> (forall x.
Rep CreateAutoScalingConfiguration x
-> CreateAutoScalingConfiguration)
-> Generic CreateAutoScalingConfiguration
forall x.
Rep CreateAutoScalingConfiguration x
-> CreateAutoScalingConfiguration
forall x.
CreateAutoScalingConfiguration
-> Rep CreateAutoScalingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateAutoScalingConfiguration x
-> CreateAutoScalingConfiguration
$cfrom :: forall x.
CreateAutoScalingConfiguration
-> Rep CreateAutoScalingConfiguration x
Prelude.Generic)
newCreateAutoScalingConfiguration ::
Prelude.Text ->
CreateAutoScalingConfiguration
newCreateAutoScalingConfiguration :: Text -> CreateAutoScalingConfiguration
newCreateAutoScalingConfiguration
Text
pAutoScalingConfigurationName_ =
CreateAutoScalingConfiguration' :: Maybe Natural
-> Maybe Natural
-> Maybe [Tag]
-> Maybe Natural
-> Text
-> CreateAutoScalingConfiguration
CreateAutoScalingConfiguration'
{ $sel:maxSize:CreateAutoScalingConfiguration' :: Maybe Natural
maxSize =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:minSize:CreateAutoScalingConfiguration' :: Maybe Natural
minSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateAutoScalingConfiguration' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:maxConcurrency:CreateAutoScalingConfiguration' :: Maybe Natural
maxConcurrency = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:autoScalingConfigurationName:CreateAutoScalingConfiguration' :: Text
autoScalingConfigurationName =
Text
pAutoScalingConfigurationName_
}
createAutoScalingConfiguration_maxSize :: Lens.Lens' CreateAutoScalingConfiguration (Prelude.Maybe Prelude.Natural)
createAutoScalingConfiguration_maxSize :: (Maybe Natural -> f (Maybe Natural))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
createAutoScalingConfiguration_maxSize = (CreateAutoScalingConfiguration -> Maybe Natural)
-> (CreateAutoScalingConfiguration
-> Maybe Natural -> CreateAutoScalingConfiguration)
-> Lens
CreateAutoScalingConfiguration
CreateAutoScalingConfiguration
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfiguration' {Maybe Natural
maxSize :: Maybe Natural
$sel:maxSize:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
maxSize} -> Maybe Natural
maxSize) (\s :: CreateAutoScalingConfiguration
s@CreateAutoScalingConfiguration' {} Maybe Natural
a -> CreateAutoScalingConfiguration
s {$sel:maxSize:CreateAutoScalingConfiguration' :: Maybe Natural
maxSize = Maybe Natural
a} :: CreateAutoScalingConfiguration)
createAutoScalingConfiguration_minSize :: Lens.Lens' CreateAutoScalingConfiguration (Prelude.Maybe Prelude.Natural)
createAutoScalingConfiguration_minSize :: (Maybe Natural -> f (Maybe Natural))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
createAutoScalingConfiguration_minSize = (CreateAutoScalingConfiguration -> Maybe Natural)
-> (CreateAutoScalingConfiguration
-> Maybe Natural -> CreateAutoScalingConfiguration)
-> Lens
CreateAutoScalingConfiguration
CreateAutoScalingConfiguration
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfiguration' {Maybe Natural
minSize :: Maybe Natural
$sel:minSize:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
minSize} -> Maybe Natural
minSize) (\s :: CreateAutoScalingConfiguration
s@CreateAutoScalingConfiguration' {} Maybe Natural
a -> CreateAutoScalingConfiguration
s {$sel:minSize:CreateAutoScalingConfiguration' :: Maybe Natural
minSize = Maybe Natural
a} :: CreateAutoScalingConfiguration)
createAutoScalingConfiguration_tags :: Lens.Lens' CreateAutoScalingConfiguration (Prelude.Maybe [Tag])
createAutoScalingConfiguration_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
createAutoScalingConfiguration_tags = (CreateAutoScalingConfiguration -> Maybe [Tag])
-> (CreateAutoScalingConfiguration
-> Maybe [Tag] -> CreateAutoScalingConfiguration)
-> Lens
CreateAutoScalingConfiguration
CreateAutoScalingConfiguration
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfiguration' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateAutoScalingConfiguration
s@CreateAutoScalingConfiguration' {} Maybe [Tag]
a -> CreateAutoScalingConfiguration
s {$sel:tags:CreateAutoScalingConfiguration' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateAutoScalingConfiguration) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createAutoScalingConfiguration_maxConcurrency :: Lens.Lens' CreateAutoScalingConfiguration (Prelude.Maybe Prelude.Natural)
createAutoScalingConfiguration_maxConcurrency :: (Maybe Natural -> f (Maybe Natural))
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
createAutoScalingConfiguration_maxConcurrency = (CreateAutoScalingConfiguration -> Maybe Natural)
-> (CreateAutoScalingConfiguration
-> Maybe Natural -> CreateAutoScalingConfiguration)
-> Lens
CreateAutoScalingConfiguration
CreateAutoScalingConfiguration
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfiguration' {Maybe Natural
maxConcurrency :: Maybe Natural
$sel:maxConcurrency:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
maxConcurrency} -> Maybe Natural
maxConcurrency) (\s :: CreateAutoScalingConfiguration
s@CreateAutoScalingConfiguration' {} Maybe Natural
a -> CreateAutoScalingConfiguration
s {$sel:maxConcurrency:CreateAutoScalingConfiguration' :: Maybe Natural
maxConcurrency = Maybe Natural
a} :: CreateAutoScalingConfiguration)
createAutoScalingConfiguration_autoScalingConfigurationName :: Lens.Lens' CreateAutoScalingConfiguration Prelude.Text
createAutoScalingConfiguration_autoScalingConfigurationName :: (Text -> f Text)
-> CreateAutoScalingConfiguration
-> f CreateAutoScalingConfiguration
createAutoScalingConfiguration_autoScalingConfigurationName = (CreateAutoScalingConfiguration -> Text)
-> (CreateAutoScalingConfiguration
-> Text -> CreateAutoScalingConfiguration)
-> Lens
CreateAutoScalingConfiguration
CreateAutoScalingConfiguration
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfiguration' {Text
autoScalingConfigurationName :: Text
$sel:autoScalingConfigurationName:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Text
autoScalingConfigurationName} -> Text
autoScalingConfigurationName) (\s :: CreateAutoScalingConfiguration
s@CreateAutoScalingConfiguration' {} Text
a -> CreateAutoScalingConfiguration
s {$sel:autoScalingConfigurationName:CreateAutoScalingConfiguration' :: Text
autoScalingConfigurationName = Text
a} :: CreateAutoScalingConfiguration)
instance
Core.AWSRequest
CreateAutoScalingConfiguration
where
type
AWSResponse CreateAutoScalingConfiguration =
CreateAutoScalingConfigurationResponse
request :: CreateAutoScalingConfiguration
-> Request CreateAutoScalingConfiguration
request = Service
-> CreateAutoScalingConfiguration
-> Request CreateAutoScalingConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateAutoScalingConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateAutoScalingConfiguration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateAutoScalingConfiguration))
-> Logger
-> Service
-> Proxy CreateAutoScalingConfiguration
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse CreateAutoScalingConfiguration)))
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 ->
Int
-> AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse
CreateAutoScalingConfigurationResponse'
(Int
-> AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse)
-> Either String Int
-> Either
String
(AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse)
forall (f :: * -> *) a b. Functor 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))
Either
String
(AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse)
-> Either String AutoScalingConfiguration
-> Either String CreateAutoScalingConfigurationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String AutoScalingConfiguration
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"AutoScalingConfiguration")
)
instance
Prelude.Hashable
CreateAutoScalingConfiguration
instance
Prelude.NFData
CreateAutoScalingConfiguration
instance
Core.ToHeaders
CreateAutoScalingConfiguration
where
toHeaders :: CreateAutoScalingConfiguration -> ResponseHeaders
toHeaders =
ResponseHeaders
-> CreateAutoScalingConfiguration -> 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
"AppRunner.CreateAutoScalingConfiguration" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateAutoScalingConfiguration where
toJSON :: CreateAutoScalingConfiguration -> Value
toJSON CreateAutoScalingConfiguration' {Maybe Natural
Maybe [Tag]
Text
autoScalingConfigurationName :: Text
maxConcurrency :: Maybe Natural
tags :: Maybe [Tag]
minSize :: Maybe Natural
maxSize :: Maybe Natural
$sel:autoScalingConfigurationName:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Text
$sel:maxConcurrency:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
$sel:tags:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe [Tag]
$sel:minSize:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
$sel:maxSize:CreateAutoScalingConfiguration' :: CreateAutoScalingConfiguration -> Maybe Natural
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"MaxSize" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxSize,
(Text
"MinSize" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
minSize,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
(Text
"MaxConcurrency" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxConcurrency,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"AutoScalingConfigurationName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
autoScalingConfigurationName
)
]
)
instance Core.ToPath CreateAutoScalingConfiguration where
toPath :: CreateAutoScalingConfiguration -> ByteString
toPath = ByteString -> CreateAutoScalingConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateAutoScalingConfiguration where
toQuery :: CreateAutoScalingConfiguration -> QueryString
toQuery = QueryString -> CreateAutoScalingConfiguration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateAutoScalingConfigurationResponse = CreateAutoScalingConfigurationResponse'
{
CreateAutoScalingConfigurationResponse -> Int
httpStatus :: Prelude.Int,
CreateAutoScalingConfigurationResponse -> AutoScalingConfiguration
autoScalingConfiguration :: AutoScalingConfiguration
}
deriving (CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool
(CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool)
-> (CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool)
-> Eq CreateAutoScalingConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool
$c/= :: CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool
== :: CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool
$c== :: CreateAutoScalingConfigurationResponse
-> CreateAutoScalingConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [CreateAutoScalingConfigurationResponse]
ReadPrec CreateAutoScalingConfigurationResponse
Int -> ReadS CreateAutoScalingConfigurationResponse
ReadS [CreateAutoScalingConfigurationResponse]
(Int -> ReadS CreateAutoScalingConfigurationResponse)
-> ReadS [CreateAutoScalingConfigurationResponse]
-> ReadPrec CreateAutoScalingConfigurationResponse
-> ReadPrec [CreateAutoScalingConfigurationResponse]
-> Read CreateAutoScalingConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAutoScalingConfigurationResponse]
$creadListPrec :: ReadPrec [CreateAutoScalingConfigurationResponse]
readPrec :: ReadPrec CreateAutoScalingConfigurationResponse
$creadPrec :: ReadPrec CreateAutoScalingConfigurationResponse
readList :: ReadS [CreateAutoScalingConfigurationResponse]
$creadList :: ReadS [CreateAutoScalingConfigurationResponse]
readsPrec :: Int -> ReadS CreateAutoScalingConfigurationResponse
$creadsPrec :: Int -> ReadS CreateAutoScalingConfigurationResponse
Prelude.Read, Int -> CreateAutoScalingConfigurationResponse -> ShowS
[CreateAutoScalingConfigurationResponse] -> ShowS
CreateAutoScalingConfigurationResponse -> String
(Int -> CreateAutoScalingConfigurationResponse -> ShowS)
-> (CreateAutoScalingConfigurationResponse -> String)
-> ([CreateAutoScalingConfigurationResponse] -> ShowS)
-> Show CreateAutoScalingConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAutoScalingConfigurationResponse] -> ShowS
$cshowList :: [CreateAutoScalingConfigurationResponse] -> ShowS
show :: CreateAutoScalingConfigurationResponse -> String
$cshow :: CreateAutoScalingConfigurationResponse -> String
showsPrec :: Int -> CreateAutoScalingConfigurationResponse -> ShowS
$cshowsPrec :: Int -> CreateAutoScalingConfigurationResponse -> ShowS
Prelude.Show, (forall x.
CreateAutoScalingConfigurationResponse
-> Rep CreateAutoScalingConfigurationResponse x)
-> (forall x.
Rep CreateAutoScalingConfigurationResponse x
-> CreateAutoScalingConfigurationResponse)
-> Generic CreateAutoScalingConfigurationResponse
forall x.
Rep CreateAutoScalingConfigurationResponse x
-> CreateAutoScalingConfigurationResponse
forall x.
CreateAutoScalingConfigurationResponse
-> Rep CreateAutoScalingConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateAutoScalingConfigurationResponse x
-> CreateAutoScalingConfigurationResponse
$cfrom :: forall x.
CreateAutoScalingConfigurationResponse
-> Rep CreateAutoScalingConfigurationResponse x
Prelude.Generic)
newCreateAutoScalingConfigurationResponse ::
Prelude.Int ->
AutoScalingConfiguration ->
CreateAutoScalingConfigurationResponse
newCreateAutoScalingConfigurationResponse :: Int
-> AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse
newCreateAutoScalingConfigurationResponse
Int
pHttpStatus_
AutoScalingConfiguration
pAutoScalingConfiguration_ =
CreateAutoScalingConfigurationResponse' :: Int
-> AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse
CreateAutoScalingConfigurationResponse'
{ $sel:httpStatus:CreateAutoScalingConfigurationResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:autoScalingConfiguration:CreateAutoScalingConfigurationResponse' :: AutoScalingConfiguration
autoScalingConfiguration =
AutoScalingConfiguration
pAutoScalingConfiguration_
}
createAutoScalingConfigurationResponse_httpStatus :: Lens.Lens' CreateAutoScalingConfigurationResponse Prelude.Int
createAutoScalingConfigurationResponse_httpStatus :: (Int -> f Int)
-> CreateAutoScalingConfigurationResponse
-> f CreateAutoScalingConfigurationResponse
createAutoScalingConfigurationResponse_httpStatus = (CreateAutoScalingConfigurationResponse -> Int)
-> (CreateAutoScalingConfigurationResponse
-> Int -> CreateAutoScalingConfigurationResponse)
-> Lens
CreateAutoScalingConfigurationResponse
CreateAutoScalingConfigurationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateAutoScalingConfigurationResponse' :: CreateAutoScalingConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateAutoScalingConfigurationResponse
s@CreateAutoScalingConfigurationResponse' {} Int
a -> CreateAutoScalingConfigurationResponse
s {$sel:httpStatus:CreateAutoScalingConfigurationResponse' :: Int
httpStatus = Int
a} :: CreateAutoScalingConfigurationResponse)
createAutoScalingConfigurationResponse_autoScalingConfiguration :: Lens.Lens' CreateAutoScalingConfigurationResponse AutoScalingConfiguration
createAutoScalingConfigurationResponse_autoScalingConfiguration :: (AutoScalingConfiguration -> f AutoScalingConfiguration)
-> CreateAutoScalingConfigurationResponse
-> f CreateAutoScalingConfigurationResponse
createAutoScalingConfigurationResponse_autoScalingConfiguration = (CreateAutoScalingConfigurationResponse
-> AutoScalingConfiguration)
-> (CreateAutoScalingConfigurationResponse
-> AutoScalingConfiguration
-> CreateAutoScalingConfigurationResponse)
-> Lens
CreateAutoScalingConfigurationResponse
CreateAutoScalingConfigurationResponse
AutoScalingConfiguration
AutoScalingConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAutoScalingConfigurationResponse' {AutoScalingConfiguration
autoScalingConfiguration :: AutoScalingConfiguration
$sel:autoScalingConfiguration:CreateAutoScalingConfigurationResponse' :: CreateAutoScalingConfigurationResponse -> AutoScalingConfiguration
autoScalingConfiguration} -> AutoScalingConfiguration
autoScalingConfiguration) (\s :: CreateAutoScalingConfigurationResponse
s@CreateAutoScalingConfigurationResponse' {} AutoScalingConfiguration
a -> CreateAutoScalingConfigurationResponse
s {$sel:autoScalingConfiguration:CreateAutoScalingConfigurationResponse' :: AutoScalingConfiguration
autoScalingConfiguration = AutoScalingConfiguration
a} :: CreateAutoScalingConfigurationResponse)
instance
Prelude.NFData
CreateAutoScalingConfigurationResponse