{-# 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.Outposts.GetOutpostInstanceTypes
-- 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)
--
-- Lists the instance types for the specified Outpost.
module Amazonka.Outposts.GetOutpostInstanceTypes
  ( -- * Creating a Request
    GetOutpostInstanceTypes (..),
    newGetOutpostInstanceTypes,

    -- * Request Lenses
    getOutpostInstanceTypes_nextToken,
    getOutpostInstanceTypes_maxResults,
    getOutpostInstanceTypes_outpostId,

    -- * Destructuring the Response
    GetOutpostInstanceTypesResponse (..),
    newGetOutpostInstanceTypesResponse,

    -- * Response Lenses
    getOutpostInstanceTypesResponse_instanceTypes,
    getOutpostInstanceTypesResponse_outpostArn,
    getOutpostInstanceTypesResponse_nextToken,
    getOutpostInstanceTypesResponse_outpostId,
    getOutpostInstanceTypesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newGetOutpostInstanceTypes' smart constructor.
data GetOutpostInstanceTypes = GetOutpostInstanceTypes'
  { GetOutpostInstanceTypes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    GetOutpostInstanceTypes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the Outpost.
    GetOutpostInstanceTypes -> Text
outpostId :: Prelude.Text
  }
  deriving (GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool
(GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool)
-> (GetOutpostInstanceTypes -> GetOutpostInstanceTypes -> Bool)
-> Eq GetOutpostInstanceTypes
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]
(Int -> ReadS GetOutpostInstanceTypes)
-> ReadS [GetOutpostInstanceTypes]
-> ReadPrec GetOutpostInstanceTypes
-> ReadPrec [GetOutpostInstanceTypes]
-> Read 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
(Int -> GetOutpostInstanceTypes -> ShowS)
-> (GetOutpostInstanceTypes -> String)
-> ([GetOutpostInstanceTypes] -> ShowS)
-> Show GetOutpostInstanceTypes
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.
 GetOutpostInstanceTypes -> Rep GetOutpostInstanceTypes x)
-> (forall x.
    Rep GetOutpostInstanceTypes x -> GetOutpostInstanceTypes)
-> Generic GetOutpostInstanceTypes
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)

-- |
-- Create a value of 'GetOutpostInstanceTypes' 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:
--
-- 'nextToken', 'getOutpostInstanceTypes_nextToken' - Undocumented member.
--
-- 'maxResults', 'getOutpostInstanceTypes_maxResults' - Undocumented member.
--
-- 'outpostId', 'getOutpostInstanceTypes_outpostId' - The ID of the Outpost.
newGetOutpostInstanceTypes ::
  -- | 'outpostId'
  Prelude.Text ->
  GetOutpostInstanceTypes
newGetOutpostInstanceTypes :: Text -> GetOutpostInstanceTypes
newGetOutpostInstanceTypes Text
pOutpostId_ =
  GetOutpostInstanceTypes' :: Maybe Text -> Maybe Natural -> Text -> GetOutpostInstanceTypes
GetOutpostInstanceTypes'
    { $sel:nextToken:GetOutpostInstanceTypes' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:GetOutpostInstanceTypes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:outpostId:GetOutpostInstanceTypes' :: Text
outpostId = Text
pOutpostId_
    }

-- | Undocumented member.
getOutpostInstanceTypes_nextToken :: Lens.Lens' GetOutpostInstanceTypes (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypes_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetOutpostInstanceTypes -> f GetOutpostInstanceTypes
getOutpostInstanceTypes_nextToken = (GetOutpostInstanceTypes -> Maybe Text)
-> (GetOutpostInstanceTypes
    -> Maybe Text -> GetOutpostInstanceTypes)
-> Lens
     GetOutpostInstanceTypes
     GetOutpostInstanceTypes
     (Maybe Text)
     (Maybe Text)
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)

-- | Undocumented member.
getOutpostInstanceTypes_maxResults :: Lens.Lens' GetOutpostInstanceTypes (Prelude.Maybe Prelude.Natural)
getOutpostInstanceTypes_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetOutpostInstanceTypes -> f GetOutpostInstanceTypes
getOutpostInstanceTypes_maxResults = (GetOutpostInstanceTypes -> Maybe Natural)
-> (GetOutpostInstanceTypes
    -> Maybe Natural -> GetOutpostInstanceTypes)
-> Lens
     GetOutpostInstanceTypes
     GetOutpostInstanceTypes
     (Maybe Natural)
     (Maybe Natural)
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)

-- | The ID of the Outpost.
getOutpostInstanceTypes_outpostId :: Lens.Lens' GetOutpostInstanceTypes Prelude.Text
getOutpostInstanceTypes_outpostId :: (Text -> f Text)
-> GetOutpostInstanceTypes -> f GetOutpostInstanceTypes
getOutpostInstanceTypes_outpostId = (GetOutpostInstanceTypes -> Text)
-> (GetOutpostInstanceTypes -> Text -> GetOutpostInstanceTypes)
-> Lens GetOutpostInstanceTypes GetOutpostInstanceTypes Text Text
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 :: GetOutpostInstanceTypes -> Request GetOutpostInstanceTypes
request = Service
-> GetOutpostInstanceTypes -> Request GetOutpostInstanceTypes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetOutpostInstanceTypes
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetOutpostInstanceTypes)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetOutpostInstanceTypes))
-> Logger
-> Service
-> Proxy GetOutpostInstanceTypes
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetOutpostInstanceTypes)))
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 [InstanceTypeItem]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetOutpostInstanceTypesResponse
GetOutpostInstanceTypesResponse'
            (Maybe [InstanceTypeItem]
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> GetOutpostInstanceTypesResponse)
-> Either String (Maybe [InstanceTypeItem])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> GetOutpostInstanceTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [InstanceTypeItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InstanceTypes" Either String (Maybe (Maybe [InstanceTypeItem]))
-> Maybe [InstanceTypeItem]
-> Either String (Maybe [InstanceTypeItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InstanceTypeItem]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> GetOutpostInstanceTypesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Int -> GetOutpostInstanceTypesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OutpostArn")
            Either
  String
  (Maybe Text
   -> Maybe Text -> Int -> GetOutpostInstanceTypesResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> GetOutpostInstanceTypesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either
  String (Maybe Text -> Int -> GetOutpostInstanceTypesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetOutpostInstanceTypesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"OutpostId")
            Either String (Int -> GetOutpostInstanceTypesResponse)
-> Either String Int
-> Either String GetOutpostInstanceTypesResponse
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 GetOutpostInstanceTypes

instance Prelude.NFData GetOutpostInstanceTypes

instance Core.ToHeaders GetOutpostInstanceTypes where
  toHeaders :: GetOutpostInstanceTypes -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetOutpostInstanceTypes -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath GetOutpostInstanceTypes where
  toPath :: GetOutpostInstanceTypes -> ByteString
toPath GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/outposts/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
outpostId, ByteString
"/instanceTypes"]

instance Core.ToQuery GetOutpostInstanceTypes where
  toQuery :: GetOutpostInstanceTypes -> QueryString
toQuery GetOutpostInstanceTypes' {Maybe Natural
Maybe Text
Text
outpostId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:outpostId:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Text
$sel:maxResults:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Natural
$sel:nextToken:GetOutpostInstanceTypes' :: GetOutpostInstanceTypes -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"NextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"MaxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newGetOutpostInstanceTypesResponse' smart constructor.
data GetOutpostInstanceTypesResponse = GetOutpostInstanceTypesResponse'
  { GetOutpostInstanceTypesResponse -> Maybe [InstanceTypeItem]
instanceTypes :: Prelude.Maybe [InstanceTypeItem],
    GetOutpostInstanceTypesResponse -> Maybe Text
outpostArn :: Prelude.Maybe Prelude.Text,
    GetOutpostInstanceTypesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Outpost.
    GetOutpostInstanceTypesResponse -> Maybe Text
outpostId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetOutpostInstanceTypesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetOutpostInstanceTypesResponse
-> GetOutpostInstanceTypesResponse -> Bool
(GetOutpostInstanceTypesResponse
 -> GetOutpostInstanceTypesResponse -> Bool)
-> (GetOutpostInstanceTypesResponse
    -> GetOutpostInstanceTypesResponse -> Bool)
-> Eq GetOutpostInstanceTypesResponse
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]
(Int -> ReadS GetOutpostInstanceTypesResponse)
-> ReadS [GetOutpostInstanceTypesResponse]
-> ReadPrec GetOutpostInstanceTypesResponse
-> ReadPrec [GetOutpostInstanceTypesResponse]
-> Read 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
(Int -> GetOutpostInstanceTypesResponse -> ShowS)
-> (GetOutpostInstanceTypesResponse -> String)
-> ([GetOutpostInstanceTypesResponse] -> ShowS)
-> Show GetOutpostInstanceTypesResponse
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.
 GetOutpostInstanceTypesResponse
 -> Rep GetOutpostInstanceTypesResponse x)
-> (forall x.
    Rep GetOutpostInstanceTypesResponse x
    -> GetOutpostInstanceTypesResponse)
-> Generic GetOutpostInstanceTypesResponse
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)

-- |
-- Create a value of 'GetOutpostInstanceTypesResponse' 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:
--
-- 'instanceTypes', 'getOutpostInstanceTypesResponse_instanceTypes' - Undocumented member.
--
-- 'outpostArn', 'getOutpostInstanceTypesResponse_outpostArn' - Undocumented member.
--
-- 'nextToken', 'getOutpostInstanceTypesResponse_nextToken' - Undocumented member.
--
-- 'outpostId', 'getOutpostInstanceTypesResponse_outpostId' - The ID of the Outpost.
--
-- 'httpStatus', 'getOutpostInstanceTypesResponse_httpStatus' - The response's http status code.
newGetOutpostInstanceTypesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetOutpostInstanceTypesResponse
newGetOutpostInstanceTypesResponse :: Int -> GetOutpostInstanceTypesResponse
newGetOutpostInstanceTypesResponse Int
pHttpStatus_ =
  GetOutpostInstanceTypesResponse' :: Maybe [InstanceTypeItem]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetOutpostInstanceTypesResponse
GetOutpostInstanceTypesResponse'
    { $sel:instanceTypes:GetOutpostInstanceTypesResponse' :: Maybe [InstanceTypeItem]
instanceTypes =
        Maybe [InstanceTypeItem]
forall a. Maybe a
Prelude.Nothing,
      $sel:outpostArn:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetOutpostInstanceTypesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:outpostId:GetOutpostInstanceTypesResponse' :: Maybe Text
outpostId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetOutpostInstanceTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
getOutpostInstanceTypesResponse_instanceTypes :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe [InstanceTypeItem])
getOutpostInstanceTypesResponse_instanceTypes :: (Maybe [InstanceTypeItem] -> f (Maybe [InstanceTypeItem]))
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
getOutpostInstanceTypesResponse_instanceTypes = (GetOutpostInstanceTypesResponse -> Maybe [InstanceTypeItem])
-> (GetOutpostInstanceTypesResponse
    -> Maybe [InstanceTypeItem] -> GetOutpostInstanceTypesResponse)
-> Lens
     GetOutpostInstanceTypesResponse
     GetOutpostInstanceTypesResponse
     (Maybe [InstanceTypeItem])
     (Maybe [InstanceTypeItem])
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) ((Maybe [InstanceTypeItem] -> f (Maybe [InstanceTypeItem]))
 -> GetOutpostInstanceTypesResponse
 -> f GetOutpostInstanceTypesResponse)
-> ((Maybe [InstanceTypeItem] -> f (Maybe [InstanceTypeItem]))
    -> Maybe [InstanceTypeItem] -> f (Maybe [InstanceTypeItem]))
-> (Maybe [InstanceTypeItem] -> f (Maybe [InstanceTypeItem]))
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InstanceTypeItem]
  [InstanceTypeItem]
  [InstanceTypeItem]
  [InstanceTypeItem]
-> Iso
     (Maybe [InstanceTypeItem])
     (Maybe [InstanceTypeItem])
     (Maybe [InstanceTypeItem])
     (Maybe [InstanceTypeItem])
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
  [InstanceTypeItem]
  [InstanceTypeItem]
  [InstanceTypeItem]
  [InstanceTypeItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
getOutpostInstanceTypesResponse_outpostArn :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_outpostArn :: (Maybe Text -> f (Maybe Text))
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
getOutpostInstanceTypesResponse_outpostArn = (GetOutpostInstanceTypesResponse -> Maybe Text)
-> (GetOutpostInstanceTypesResponse
    -> Maybe Text -> GetOutpostInstanceTypesResponse)
-> Lens
     GetOutpostInstanceTypesResponse
     GetOutpostInstanceTypesResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | Undocumented member.
getOutpostInstanceTypesResponse_nextToken :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
getOutpostInstanceTypesResponse_nextToken = (GetOutpostInstanceTypesResponse -> Maybe Text)
-> (GetOutpostInstanceTypesResponse
    -> Maybe Text -> GetOutpostInstanceTypesResponse)
-> Lens
     GetOutpostInstanceTypesResponse
     GetOutpostInstanceTypesResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | The ID of the Outpost.
getOutpostInstanceTypesResponse_outpostId :: Lens.Lens' GetOutpostInstanceTypesResponse (Prelude.Maybe Prelude.Text)
getOutpostInstanceTypesResponse_outpostId :: (Maybe Text -> f (Maybe Text))
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
getOutpostInstanceTypesResponse_outpostId = (GetOutpostInstanceTypesResponse -> Maybe Text)
-> (GetOutpostInstanceTypesResponse
    -> Maybe Text -> GetOutpostInstanceTypesResponse)
-> Lens
     GetOutpostInstanceTypesResponse
     GetOutpostInstanceTypesResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | The response's http status code.
getOutpostInstanceTypesResponse_httpStatus :: Lens.Lens' GetOutpostInstanceTypesResponse Prelude.Int
getOutpostInstanceTypesResponse_httpStatus :: (Int -> f Int)
-> GetOutpostInstanceTypesResponse
-> f GetOutpostInstanceTypesResponse
getOutpostInstanceTypesResponse_httpStatus = (GetOutpostInstanceTypesResponse -> Int)
-> (GetOutpostInstanceTypesResponse
    -> Int -> GetOutpostInstanceTypesResponse)
-> Lens
     GetOutpostInstanceTypesResponse
     GetOutpostInstanceTypesResponse
     Int
     Int
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