{-# 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.Outposts.GetOutpostInstanceTypes
(
GetOutpostInstanceTypes (..),
newGetOutpostInstanceTypes,
getOutpostInstanceTypes_maxResults,
getOutpostInstanceTypes_nextToken,
getOutpostInstanceTypes_outpostId,
GetOutpostInstanceTypesResponse (..),
newGetOutpostInstanceTypesResponse,
getOutpostInstanceTypesResponse_instanceTypes,
getOutpostInstanceTypesResponse_nextToken,
getOutpostInstanceTypesResponse_outpostArn,
getOutpostInstanceTypesResponse_outpostId,
getOutpostInstanceTypesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Outposts.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetOutpostInstanceTypes = GetOutpostInstanceTypes'
{ GetOutpostInstanceTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetOutpostInstanceTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetOutpostInstanceTypes -> Text
outpostId :: Prelude.Text
}
deriving (GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
$c/= :: GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
== :: GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
$c== :: GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
Prelude.Eq, ReadPrec [GetOutpostInstanceTypes]
ReadPrec GetOutpostInstanceTypes
Int -> ReadS GetOutpostInstanceTypes
ReadS [GetOutpostInstanceTypes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetOutpostInstanceTypes]
$creadListPrec :: ReadPrec [GetOutpostInstanceTypes]
readPrec :: ReadPrec GetOutpostInstanceTypes
$creadPrec :: ReadPrec GetOutpostInstanceTypes
readList :: ReadS [GetOutpostInstanceTypes]
$creadList :: ReadS [GetOutpostInstanceTypes]
readsPrec :: Int -> ReadS GetOutpostInstanceTypes
$creadsPrec :: Int -> ReadS GetOutpostInstanceTypes
Prelude.Read, Int -> GetOutpostInstanceTypes -> ShowS
[GetOutpostInstanceTypes] -> ShowS
GetOutpostInstanceTypes -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetOutpostInstanceTypes] -> ShowS
$cshowList :: [GetOutpostInstanceTypes] -> ShowS
show :: GetOutpostInstanceTypes -> String
$cshow :: GetOutpostInstanceTypes -> String
showsPrec :: Int -> GetOutpostInstanceTypes -> ShowS
$cshowsPrec :: Int -> GetOutpostInstanceTypes -> ShowS
Prelude.Show, forall x. Rep GetOutpostInstanceTypes x -> GetOutpostInstanceTypes
forall x. GetOutpostInstanceTypes -> Rep GetOutpostInstanceTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetOutpostInstanceTypes x -> GetOutpostInstanceTypes
$cfrom :: forall x. GetOutpostInstanceTypes -> Rep GetOutpostInstanceTypes x
Prelude.Generic)
newGetOutpostInstanceTypes ::
Prelude.Text ->
GetOutpostInstanceTypes
newGetOutpostInstanceTypes :: Text -> GetOutpostInstanceTypes
newGetOutpostInstanceTypes Text
pOutpostId_ =
GetOutpostInstanceTypes'
{ $sel:maxResults:GetOutpostInstanceTypes' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetOutpostInstanceTypes' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:outpostId:GetOutpostInstanceTypes' :: Text
outpostId = Text
pOutpostId_
}
getOutpostInstanceTypes_maxResults :: Lens.Lens' GetOutpostInstanceTypes (Prelude.Maybe Prelude.Natural)
getOutpostInstanceTypes_maxResults :: Lens' GetOutpostInstanceTypes (Maybe Natural)
getOutpostInstanceTypes_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetOutpostInstanceTypes
s@GetOutpostInstanceTypes' {} Maybe Natural
a -> GetOutpostInstanceTypes
s {$sel:maxResults:GetOutpostInstanceTypes' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetOutpostInstanceTypes)
getOutpostInstanceTypes_nextToken :: Lens.Lens' GetOutpostInstanceTypes (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypes_nextToken :: Lens' GetOutpostInstanceTypes (Maybe Text)
getOutpostInstanceTypes_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetOutpostInstanceTypes
s@GetOutpostInstanceTypes' {} Maybe Text
a -> GetOutpostInstanceTypes
s {$sel:nextToken:GetOutpostInstanceTypes' :: Maybe Text
nextToken = Maybe Text
a} :: GetOutpostInstanceTypes)
getOutpostInstanceTypes_outpostId :: Lens.Lens' GetOutpostInstanceTypes Prelude.Text
getOutpostInstanceTypes_outpostId :: Lens' GetOutpostInstanceTypes Text
getOutpostInstanceTypes_outpostId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypes' {Text
outpostId :: Text
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
outpostId} -> Text
outpostId) (\s :: GetOutpostInstanceTypes
s@GetOutpostInstanceTypes' {} Text
a -> GetOutpostInstanceTypes
s {$sel:outpostId:GetOutpostInstanceTypes' :: Text
outpostId = Text
a} :: GetOutpostInstanceTypes)
instance Core.AWSRequest GetOutpostInstanceTypes where
type
AWSResponse GetOutpostInstanceTypes =
GetOutpostInstanceTypesResponse
request :: (Service -> Service)
-> GetOutpostInstanceTypes -> Request GetOutpostInstanceTypes
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetOutpostInstanceTypes
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetOutpostInstanceTypes)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [InstanceTypeItem]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetOutpostInstanceTypesResponse
GetOutpostInstanceTypesResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"InstanceTypes" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OutpostArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OutpostId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetOutpostInstanceTypes where
hashWithSalt :: Int -> GetOutpostInstanceTypes -> Int
hashWithSalt Int
_salt GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
outpostId
instance Prelude.NFData GetOutpostInstanceTypes where
rnf :: GetOutpostInstanceTypes -> ()
rnf GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
outpostId
instance Data.ToHeaders GetOutpostInstanceTypes where
toHeaders :: GetOutpostInstanceTypes -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath GetOutpostInstanceTypes where
toPath :: GetOutpostInstanceTypes -> ByteString
toPath GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/outposts/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
outpostId, ByteString
"/instanceTypes"]
instance Data.ToQuery GetOutpostInstanceTypes where
toQuery :: GetOutpostInstanceTypes -> QueryString
toQuery GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data GetOutpostInstanceTypesResponse = GetOutpostInstanceTypesResponse'
{ GetOutpostInstanceTypesResponse -> Maybe [InstanceTypeItem]
instanceTypes :: Prelude.Maybe [InstanceTypeItem],
GetOutpostInstanceTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetOutpostInstanceTypesResponse -> Maybe Text
outpostArn :: Prelude.Maybe Prelude.Text,
GetOutpostInstanceTypesResponse -> Maybe Text
outpostId :: Prelude.Maybe Prelude.Text,
GetOutpostInstanceTypesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
$c/= :: GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
== :: GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
$c== :: GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
Prelude.Eq, ReadPrec [GetOutpostInstanceTypesResponse]
ReadPrec GetOutpostInstanceTypesResponse
Int -> ReadS GetOutpostInstanceTypesResponse
ReadS [GetOutpostInstanceTypesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetOutpostInstanceTypesResponse]
$creadListPrec :: ReadPrec [GetOutpostInstanceTypesResponse]
readPrec :: ReadPrec GetOutpostInstanceTypesResponse
$creadPrec :: ReadPrec GetOutpostInstanceTypesResponse
readList :: ReadS [GetOutpostInstanceTypesResponse]
$creadList :: ReadS [GetOutpostInstanceTypesResponse]
readsPrec :: Int -> ReadS GetOutpostInstanceTypesResponse
$creadsPrec :: Int -> ReadS GetOutpostInstanceTypesResponse
Prelude.Read, Int -> GetOutpostInstanceTypesResponse -> ShowS
[GetOutpostInstanceTypesResponse] -> ShowS
GetOutpostInstanceTypesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetOutpostInstanceTypesResponse] -> ShowS
$cshowList :: [GetOutpostInstanceTypesResponse] -> ShowS
show :: GetOutpostInstanceTypesResponse -> String
$cshow :: GetOutpostInstanceTypesResponse -> String
showsPrec :: Int -> GetOutpostInstanceTypesResponse -> ShowS
$cshowsPrec :: Int -> GetOutpostInstanceTypesResponse -> ShowS
Prelude.Show, forall x.
Rep GetOutpostInstanceTypesResponse x
-> GetOutpostInstanceTypesResponse
forall x.
GetOutpostInstanceTypesResponse
-> Rep GetOutpostInstanceTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetOutpostInstanceTypesResponse x
-> GetOutpostInstanceTypesResponse
$cfrom :: forall x.
GetOutpostInstanceTypesResponse
-> Rep GetOutpostInstanceTypesResponse x
Prelude.Generic)
newGetOutpostInstanceTypesResponse ::
Prelude.Int ->
GetOutpostInstanceTypesResponse
newGetOutpostInstanceTypesResponse :: Int -> GetOutpostInstanceTypesResponse
newGetOutpostInstanceTypesResponse Int
pHttpStatus_ =
GetOutpostInstanceTypesResponse'
{ $sel:instanceTypes:GetOutpostInstanceTypesResponse' :: Maybe [InstanceTypeItem]
instanceTypes =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetOutpostInstanceTypesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:outpostArn:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostArn = forall a. Maybe a
Prelude.Nothing,
$sel:outpostId:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostId = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetOutpostInstanceTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getOutpostInstanceTypesResponse_instanceTypes :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe [InstanceTypeItem])
getOutpostInstanceTypesResponse_instanceTypes :: Lens' GetOutpostInstanceTypesResponse (Maybe [InstanceTypeItem])
getOutpostInstanceTypesResponse_instanceTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypesResponse' {Maybe [InstanceTypeItem]
instanceTypes :: Maybe [InstanceTypeItem]
$sel:instanceTypes:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe [InstanceTypeItem]
instanceTypes} -> Maybe [InstanceTypeItem]
instanceTypes) (\s :: GetOutpostInstanceTypesResponse
s@GetOutpostInstanceTypesResponse' {} Maybe [InstanceTypeItem]
a -> GetOutpostInstanceTypesResponse
s {$sel:instanceTypes:GetOutpostInstanceTypesResponse' :: Maybe [InstanceTypeItem]
instanceTypes = Maybe [InstanceTypeItem]
a} :: GetOutpostInstanceTypesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getOutpostInstanceTypesResponse_nextToken :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_nextToken :: Lens' GetOutpostInstanceTypesResponse (Maybe Text)
getOutpostInstanceTypesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetOutpostInstanceTypesResponse
s@GetOutpostInstanceTypesResponse' {} Maybe Text
a -> GetOutpostInstanceTypesResponse
s {$sel:nextToken:GetOutpostInstanceTypesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetOutpostInstanceTypesResponse)
getOutpostInstanceTypesResponse_outpostArn :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_outpostArn :: Lens' GetOutpostInstanceTypesResponse (Maybe Text)
getOutpostInstanceTypesResponse_outpostArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypesResponse' {Maybe Text
outpostArn :: Maybe Text
$sel:outpostArn:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
outpostArn} -> Maybe Text
outpostArn) (\s :: GetOutpostInstanceTypesResponse
s@GetOutpostInstanceTypesResponse' {} Maybe Text
a -> GetOutpostInstanceTypesResponse
s {$sel:outpostArn:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostArn = Maybe Text
a} :: GetOutpostInstanceTypesResponse)
getOutpostInstanceTypesResponse_outpostId :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_outpostId :: Lens' GetOutpostInstanceTypesResponse (Maybe Text)
getOutpostInstanceTypesResponse_outpostId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypesResponse' {Maybe Text
outpostId :: Maybe Text
$sel:outpostId:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
outpostId} -> Maybe Text
outpostId) (\s :: GetOutpostInstanceTypesResponse
s@GetOutpostInstanceTypesResponse' {} Maybe Text
a -> GetOutpostInstanceTypesResponse
s {$sel:outpostId:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostId = Maybe Text
a} :: GetOutpostInstanceTypesResponse)
getOutpostInstanceTypesResponse_httpStatus :: Lens.Lens' GetOutpostInstanceTypesResponse Prelude.Int
getOutpostInstanceTypesResponse_httpStatus :: Lens' GetOutpostInstanceTypesResponse Int
getOutpostInstanceTypesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetOutpostInstanceTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetOutpostInstanceTypesResponse
s@GetOutpostInstanceTypesResponse' {} Int
a -> GetOutpostInstanceTypesResponse
s {$sel:httpStatus:GetOutpostInstanceTypesResponse' :: Int
httpStatus = Int
a} :: GetOutpostInstanceTypesResponse)
instance
Prelude.NFData
GetOutpostInstanceTypesResponse
where
rnf :: GetOutpostInstanceTypesResponse -> ()
rnf GetOutpostInstanceTypesResponse' {Int
Maybe [InstanceTypeItem]
Maybe Text
httpStatus :: Int
outpostId :: Maybe Text
outpostArn :: Maybe Text
nextToken :: Maybe Text
instanceTypes :: Maybe [InstanceTypeItem]
$sel:httpStatus:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Int
$sel:outpostId:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
$sel:outpostArn:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
$sel:nextToken:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe Text
$sel:instanceTypes:GetOutpostInstanceTypesResponse' :: GetOutpostInstanceTypesResponse -> Maybe [InstanceTypeItem]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [InstanceTypeItem]
instanceTypes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outpostArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
outpostId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus