{-# 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.MediaLive.StopChannel
(
StopChannel (..),
newStopChannel,
stopChannel_channelId,
StopChannelResponse (..),
newStopChannelResponse,
stopChannelResponse_state,
stopChannelResponse_logLevel,
stopChannelResponse_arn,
stopChannelResponse_pipelinesRunningCount,
stopChannelResponse_pipelineDetails,
stopChannelResponse_inputSpecification,
stopChannelResponse_inputAttachments,
stopChannelResponse_destinations,
stopChannelResponse_name,
stopChannelResponse_cdiInputSpecification,
stopChannelResponse_id,
stopChannelResponse_channelClass,
stopChannelResponse_vpc,
stopChannelResponse_egressEndpoints,
stopChannelResponse_tags,
stopChannelResponse_encoderSettings,
stopChannelResponse_roleArn,
stopChannelResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StopChannel = StopChannel'
{
StopChannel -> Text
channelId :: Prelude.Text
}
deriving (StopChannel -> StopChannel -> Bool
(StopChannel -> StopChannel -> Bool)
-> (StopChannel -> StopChannel -> Bool) -> Eq StopChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopChannel -> StopChannel -> Bool
$c/= :: StopChannel -> StopChannel -> Bool
== :: StopChannel -> StopChannel -> Bool
$c== :: StopChannel -> StopChannel -> Bool
Prelude.Eq, ReadPrec [StopChannel]
ReadPrec StopChannel
Int -> ReadS StopChannel
ReadS [StopChannel]
(Int -> ReadS StopChannel)
-> ReadS [StopChannel]
-> ReadPrec StopChannel
-> ReadPrec [StopChannel]
-> Read StopChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopChannel]
$creadListPrec :: ReadPrec [StopChannel]
readPrec :: ReadPrec StopChannel
$creadPrec :: ReadPrec StopChannel
readList :: ReadS [StopChannel]
$creadList :: ReadS [StopChannel]
readsPrec :: Int -> ReadS StopChannel
$creadsPrec :: Int -> ReadS StopChannel
Prelude.Read, Int -> StopChannel -> ShowS
[StopChannel] -> ShowS
StopChannel -> String
(Int -> StopChannel -> ShowS)
-> (StopChannel -> String)
-> ([StopChannel] -> ShowS)
-> Show StopChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopChannel] -> ShowS
$cshowList :: [StopChannel] -> ShowS
show :: StopChannel -> String
$cshow :: StopChannel -> String
showsPrec :: Int -> StopChannel -> ShowS
$cshowsPrec :: Int -> StopChannel -> ShowS
Prelude.Show, (forall x. StopChannel -> Rep StopChannel x)
-> (forall x. Rep StopChannel x -> StopChannel)
-> Generic StopChannel
forall x. Rep StopChannel x -> StopChannel
forall x. StopChannel -> Rep StopChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StopChannel x -> StopChannel
$cfrom :: forall x. StopChannel -> Rep StopChannel x
Prelude.Generic)
newStopChannel ::
Prelude.Text ->
StopChannel
newStopChannel :: Text -> StopChannel
newStopChannel Text
pChannelId_ =
StopChannel' :: Text -> StopChannel
StopChannel' {$sel:channelId:StopChannel' :: Text
channelId = Text
pChannelId_}
stopChannel_channelId :: Lens.Lens' StopChannel Prelude.Text
stopChannel_channelId :: (Text -> f Text) -> StopChannel -> f StopChannel
stopChannel_channelId = (StopChannel -> Text)
-> (StopChannel -> Text -> StopChannel)
-> Lens StopChannel StopChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannel' {Text
channelId :: Text
$sel:channelId:StopChannel' :: StopChannel -> Text
channelId} -> Text
channelId) (\s :: StopChannel
s@StopChannel' {} Text
a -> StopChannel
s {$sel:channelId:StopChannel' :: Text
channelId = Text
a} :: StopChannel)
instance Core.AWSRequest StopChannel where
type AWSResponse StopChannel = StopChannelResponse
request :: StopChannel -> Request StopChannel
request = Service -> StopChannel -> Request StopChannel
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StopChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StopChannel)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StopChannel))
-> Logger
-> Service
-> Proxy StopChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse StopChannel)))
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 ChannelState
-> Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse
StopChannelResponse'
(Maybe ChannelState
-> Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe ChannelState)
-> Either
String
(Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ChannelState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"state")
Either
String
(Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe LogLevel)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LogLevel)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"logLevel")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
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
"arn")
Either
String
(Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelinesRunningCount")
Either
String
(Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe [PipelineDetail])
-> Either
String
(Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [PipelineDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineDetails"
Either String (Maybe (Maybe [PipelineDetail]))
-> Maybe [PipelineDetail] -> Either String (Maybe [PipelineDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PipelineDetail]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe InputSpecification)
-> Either
String
(Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputSpecification")
Either
String
(Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe [InputAttachment])
-> Either
String
(Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [InputAttachment]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputAttachments"
Either String (Maybe (Maybe [InputAttachment]))
-> Maybe [InputAttachment]
-> Either String (Maybe [InputAttachment])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InputAttachment]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe [OutputDestination])
-> Either
String
(Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [OutputDestination]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"destinations" Either String (Maybe (Maybe [OutputDestination]))
-> Maybe [OutputDestination]
-> Either String (Maybe [OutputDestination])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OutputDestination]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
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
"name")
Either
String
(Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe CdiInputSpecification)
-> Either
String
(Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CdiInputSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cdiInputSpecification")
Either
String
(Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
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
"id")
Either
String
(Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe ChannelClass)
-> Either
String
(Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ChannelClass)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"channelClass")
Either
String
(Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe VpcOutputSettingsDescription)
-> Either
String
(Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe VpcOutputSettingsDescription)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"vpc")
Either
String
(Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe [ChannelEgressEndpoint])
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ChannelEgressEndpoint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressEndpoints"
Either String (Maybe (Maybe [ChannelEgressEndpoint]))
-> Maybe [ChannelEgressEndpoint]
-> Either String (Maybe [ChannelEgressEndpoint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ChannelEgressEndpoint]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe EncoderSettings -> Maybe Text -> Int -> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe EncoderSettings -> Maybe Text -> Int -> StopChannelResponse)
-> Either String (Maybe EncoderSettings)
-> Either String (Maybe Text -> Int -> StopChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EncoderSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"encoderSettings")
Either String (Maybe Text -> Int -> StopChannelResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StopChannelResponse)
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
"roleArn")
Either String (Int -> StopChannelResponse)
-> Either String Int -> Either String StopChannelResponse
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 StopChannel
instance Prelude.NFData StopChannel
instance Core.ToHeaders StopChannel where
toHeaders :: StopChannel -> ResponseHeaders
toHeaders =
ResponseHeaders -> StopChannel -> 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.ToJSON StopChannel where
toJSON :: StopChannel -> Value
toJSON = Value -> StopChannel -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath StopChannel where
toPath :: StopChannel -> ByteString
toPath StopChannel' {Text
channelId :: Text
$sel:channelId:StopChannel' :: StopChannel -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/prod/channels/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
channelId, ByteString
"/stop"]
instance Core.ToQuery StopChannel where
toQuery :: StopChannel -> QueryString
toQuery = QueryString -> StopChannel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StopChannelResponse = StopChannelResponse'
{ StopChannelResponse -> Maybe ChannelState
state :: Prelude.Maybe ChannelState,
StopChannelResponse -> Maybe LogLevel
logLevel :: Prelude.Maybe LogLevel,
StopChannelResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
StopChannelResponse -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
StopChannelResponse -> Maybe [PipelineDetail]
pipelineDetails :: Prelude.Maybe [PipelineDetail],
StopChannelResponse -> Maybe InputSpecification
inputSpecification :: Prelude.Maybe InputSpecification,
StopChannelResponse -> Maybe [InputAttachment]
inputAttachments :: Prelude.Maybe [InputAttachment],
StopChannelResponse -> Maybe [OutputDestination]
destinations :: Prelude.Maybe [OutputDestination],
StopChannelResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
StopChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification :: Prelude.Maybe CdiInputSpecification,
StopChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
StopChannelResponse -> Maybe ChannelClass
channelClass :: Prelude.Maybe ChannelClass,
StopChannelResponse -> Maybe VpcOutputSettingsDescription
vpc :: Prelude.Maybe VpcOutputSettingsDescription,
StopChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints :: Prelude.Maybe [ChannelEgressEndpoint],
StopChannelResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
StopChannelResponse -> Maybe EncoderSettings
encoderSettings :: Prelude.Maybe EncoderSettings,
StopChannelResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
StopChannelResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StopChannelResponse -> StopChannelResponse -> Bool
(StopChannelResponse -> StopChannelResponse -> Bool)
-> (StopChannelResponse -> StopChannelResponse -> Bool)
-> Eq StopChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StopChannelResponse -> StopChannelResponse -> Bool
$c/= :: StopChannelResponse -> StopChannelResponse -> Bool
== :: StopChannelResponse -> StopChannelResponse -> Bool
$c== :: StopChannelResponse -> StopChannelResponse -> Bool
Prelude.Eq, ReadPrec [StopChannelResponse]
ReadPrec StopChannelResponse
Int -> ReadS StopChannelResponse
ReadS [StopChannelResponse]
(Int -> ReadS StopChannelResponse)
-> ReadS [StopChannelResponse]
-> ReadPrec StopChannelResponse
-> ReadPrec [StopChannelResponse]
-> Read StopChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StopChannelResponse]
$creadListPrec :: ReadPrec [StopChannelResponse]
readPrec :: ReadPrec StopChannelResponse
$creadPrec :: ReadPrec StopChannelResponse
readList :: ReadS [StopChannelResponse]
$creadList :: ReadS [StopChannelResponse]
readsPrec :: Int -> ReadS StopChannelResponse
$creadsPrec :: Int -> ReadS StopChannelResponse
Prelude.Read, Int -> StopChannelResponse -> ShowS
[StopChannelResponse] -> ShowS
StopChannelResponse -> String
(Int -> StopChannelResponse -> ShowS)
-> (StopChannelResponse -> String)
-> ([StopChannelResponse] -> ShowS)
-> Show StopChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StopChannelResponse] -> ShowS
$cshowList :: [StopChannelResponse] -> ShowS
show :: StopChannelResponse -> String
$cshow :: StopChannelResponse -> String
showsPrec :: Int -> StopChannelResponse -> ShowS
$cshowsPrec :: Int -> StopChannelResponse -> ShowS
Prelude.Show, (forall x. StopChannelResponse -> Rep StopChannelResponse x)
-> (forall x. Rep StopChannelResponse x -> StopChannelResponse)
-> Generic StopChannelResponse
forall x. Rep StopChannelResponse x -> StopChannelResponse
forall x. StopChannelResponse -> Rep StopChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StopChannelResponse x -> StopChannelResponse
$cfrom :: forall x. StopChannelResponse -> Rep StopChannelResponse x
Prelude.Generic)
newStopChannelResponse ::
Prelude.Int ->
StopChannelResponse
newStopChannelResponse :: Int -> StopChannelResponse
newStopChannelResponse Int
pHttpStatus_ =
StopChannelResponse' :: Maybe ChannelState
-> Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> StopChannelResponse
StopChannelResponse'
{ $sel:state:StopChannelResponse' :: Maybe ChannelState
state = Maybe ChannelState
forall a. Maybe a
Prelude.Nothing,
$sel:logLevel:StopChannelResponse' :: Maybe LogLevel
logLevel = Maybe LogLevel
forall a. Maybe a
Prelude.Nothing,
$sel:arn:StopChannelResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelinesRunningCount:StopChannelResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineDetails:StopChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = Maybe [PipelineDetail]
forall a. Maybe a
Prelude.Nothing,
$sel:inputSpecification:StopChannelResponse' :: Maybe InputSpecification
inputSpecification = Maybe InputSpecification
forall a. Maybe a
Prelude.Nothing,
$sel:inputAttachments:StopChannelResponse' :: Maybe [InputAttachment]
inputAttachments = Maybe [InputAttachment]
forall a. Maybe a
Prelude.Nothing,
$sel:destinations:StopChannelResponse' :: Maybe [OutputDestination]
destinations = Maybe [OutputDestination]
forall a. Maybe a
Prelude.Nothing,
$sel:name:StopChannelResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cdiInputSpecification:StopChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = Maybe CdiInputSpecification
forall a. Maybe a
Prelude.Nothing,
$sel:id:StopChannelResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:channelClass:StopChannelResponse' :: Maybe ChannelClass
channelClass = Maybe ChannelClass
forall a. Maybe a
Prelude.Nothing,
$sel:vpc:StopChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = Maybe VpcOutputSettingsDescription
forall a. Maybe a
Prelude.Nothing,
$sel:egressEndpoints:StopChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = Maybe [ChannelEgressEndpoint]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:StopChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:encoderSettings:StopChannelResponse' :: Maybe EncoderSettings
encoderSettings = Maybe EncoderSettings
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:StopChannelResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StopChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
}
stopChannelResponse_state :: Lens.Lens' StopChannelResponse (Prelude.Maybe ChannelState)
stopChannelResponse_state :: (Maybe ChannelState -> f (Maybe ChannelState))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_state = (StopChannelResponse -> Maybe ChannelState)
-> (StopChannelResponse
-> Maybe ChannelState -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe ChannelState)
(Maybe ChannelState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe ChannelState
state :: Maybe ChannelState
$sel:state:StopChannelResponse' :: StopChannelResponse -> Maybe ChannelState
state} -> Maybe ChannelState
state) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe ChannelState
a -> StopChannelResponse
s {$sel:state:StopChannelResponse' :: Maybe ChannelState
state = Maybe ChannelState
a} :: StopChannelResponse)
stopChannelResponse_logLevel :: Lens.Lens' StopChannelResponse (Prelude.Maybe LogLevel)
stopChannelResponse_logLevel :: (Maybe LogLevel -> f (Maybe LogLevel))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_logLevel = (StopChannelResponse -> Maybe LogLevel)
-> (StopChannelResponse -> Maybe LogLevel -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe LogLevel)
(Maybe LogLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe LogLevel
logLevel :: Maybe LogLevel
$sel:logLevel:StopChannelResponse' :: StopChannelResponse -> Maybe LogLevel
logLevel} -> Maybe LogLevel
logLevel) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe LogLevel
a -> StopChannelResponse
s {$sel:logLevel:StopChannelResponse' :: Maybe LogLevel
logLevel = Maybe LogLevel
a} :: StopChannelResponse)
stopChannelResponse_arn :: Lens.Lens' StopChannelResponse (Prelude.Maybe Prelude.Text)
stopChannelResponse_arn :: (Maybe Text -> f (Maybe Text))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_arn = (StopChannelResponse -> Maybe Text)
-> (StopChannelResponse -> Maybe Text -> StopChannelResponse)
-> Lens
StopChannelResponse StopChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:StopChannelResponse' :: StopChannelResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe Text
a -> StopChannelResponse
s {$sel:arn:StopChannelResponse' :: Maybe Text
arn = Maybe Text
a} :: StopChannelResponse)
stopChannelResponse_pipelinesRunningCount :: Lens.Lens' StopChannelResponse (Prelude.Maybe Prelude.Int)
stopChannelResponse_pipelinesRunningCount :: (Maybe Int -> f (Maybe Int))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_pipelinesRunningCount = (StopChannelResponse -> Maybe Int)
-> (StopChannelResponse -> Maybe Int -> StopChannelResponse)
-> Lens
StopChannelResponse StopChannelResponse (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe Int
pipelinesRunningCount :: Maybe Int
$sel:pipelinesRunningCount:StopChannelResponse' :: StopChannelResponse -> Maybe Int
pipelinesRunningCount} -> Maybe Int
pipelinesRunningCount) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe Int
a -> StopChannelResponse
s {$sel:pipelinesRunningCount:StopChannelResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
a} :: StopChannelResponse)
stopChannelResponse_pipelineDetails :: Lens.Lens' StopChannelResponse (Prelude.Maybe [PipelineDetail])
stopChannelResponse_pipelineDetails :: (Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_pipelineDetails = (StopChannelResponse -> Maybe [PipelineDetail])
-> (StopChannelResponse
-> Maybe [PipelineDetail] -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe [PipelineDetail])
(Maybe [PipelineDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe [PipelineDetail]
pipelineDetails :: Maybe [PipelineDetail]
$sel:pipelineDetails:StopChannelResponse' :: StopChannelResponse -> Maybe [PipelineDetail]
pipelineDetails} -> Maybe [PipelineDetail]
pipelineDetails) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe [PipelineDetail]
a -> StopChannelResponse
s {$sel:pipelineDetails:StopChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = Maybe [PipelineDetail]
a} :: StopChannelResponse) ((Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> StopChannelResponse -> f StopChannelResponse)
-> ((Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> (Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> StopChannelResponse
-> f StopChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PipelineDetail] [PipelineDetail] [PipelineDetail] [PipelineDetail]
-> Iso
(Maybe [PipelineDetail])
(Maybe [PipelineDetail])
(Maybe [PipelineDetail])
(Maybe [PipelineDetail])
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
[PipelineDetail] [PipelineDetail] [PipelineDetail] [PipelineDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stopChannelResponse_inputSpecification :: Lens.Lens' StopChannelResponse (Prelude.Maybe InputSpecification)
stopChannelResponse_inputSpecification :: (Maybe InputSpecification -> f (Maybe InputSpecification))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_inputSpecification = (StopChannelResponse -> Maybe InputSpecification)
-> (StopChannelResponse
-> Maybe InputSpecification -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe InputSpecification)
(Maybe InputSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe InputSpecification
inputSpecification :: Maybe InputSpecification
$sel:inputSpecification:StopChannelResponse' :: StopChannelResponse -> Maybe InputSpecification
inputSpecification} -> Maybe InputSpecification
inputSpecification) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe InputSpecification
a -> StopChannelResponse
s {$sel:inputSpecification:StopChannelResponse' :: Maybe InputSpecification
inputSpecification = Maybe InputSpecification
a} :: StopChannelResponse)
stopChannelResponse_inputAttachments :: Lens.Lens' StopChannelResponse (Prelude.Maybe [InputAttachment])
stopChannelResponse_inputAttachments :: (Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_inputAttachments = (StopChannelResponse -> Maybe [InputAttachment])
-> (StopChannelResponse
-> Maybe [InputAttachment] -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe [InputAttachment])
(Maybe [InputAttachment])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe [InputAttachment]
inputAttachments :: Maybe [InputAttachment]
$sel:inputAttachments:StopChannelResponse' :: StopChannelResponse -> Maybe [InputAttachment]
inputAttachments} -> Maybe [InputAttachment]
inputAttachments) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe [InputAttachment]
a -> StopChannelResponse
s {$sel:inputAttachments:StopChannelResponse' :: Maybe [InputAttachment]
inputAttachments = Maybe [InputAttachment]
a} :: StopChannelResponse) ((Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> StopChannelResponse -> f StopChannelResponse)
-> ((Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> (Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> StopChannelResponse
-> f StopChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InputAttachment]
[InputAttachment]
[InputAttachment]
[InputAttachment]
-> Iso
(Maybe [InputAttachment])
(Maybe [InputAttachment])
(Maybe [InputAttachment])
(Maybe [InputAttachment])
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
[InputAttachment]
[InputAttachment]
[InputAttachment]
[InputAttachment]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stopChannelResponse_destinations :: Lens.Lens' StopChannelResponse (Prelude.Maybe [OutputDestination])
stopChannelResponse_destinations :: (Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_destinations = (StopChannelResponse -> Maybe [OutputDestination])
-> (StopChannelResponse
-> Maybe [OutputDestination] -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe [OutputDestination])
(Maybe [OutputDestination])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe [OutputDestination]
destinations :: Maybe [OutputDestination]
$sel:destinations:StopChannelResponse' :: StopChannelResponse -> Maybe [OutputDestination]
destinations} -> Maybe [OutputDestination]
destinations) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe [OutputDestination]
a -> StopChannelResponse
s {$sel:destinations:StopChannelResponse' :: Maybe [OutputDestination]
destinations = Maybe [OutputDestination]
a} :: StopChannelResponse) ((Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> StopChannelResponse -> f StopChannelResponse)
-> ((Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> (Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> StopChannelResponse
-> f StopChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OutputDestination]
[OutputDestination]
[OutputDestination]
[OutputDestination]
-> Iso
(Maybe [OutputDestination])
(Maybe [OutputDestination])
(Maybe [OutputDestination])
(Maybe [OutputDestination])
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
[OutputDestination]
[OutputDestination]
[OutputDestination]
[OutputDestination]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stopChannelResponse_name :: Lens.Lens' StopChannelResponse (Prelude.Maybe Prelude.Text)
stopChannelResponse_name :: (Maybe Text -> f (Maybe Text))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_name = (StopChannelResponse -> Maybe Text)
-> (StopChannelResponse -> Maybe Text -> StopChannelResponse)
-> Lens
StopChannelResponse StopChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe Text
name :: Maybe Text
$sel:name:StopChannelResponse' :: StopChannelResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe Text
a -> StopChannelResponse
s {$sel:name:StopChannelResponse' :: Maybe Text
name = Maybe Text
a} :: StopChannelResponse)
stopChannelResponse_cdiInputSpecification :: Lens.Lens' StopChannelResponse (Prelude.Maybe CdiInputSpecification)
stopChannelResponse_cdiInputSpecification :: (Maybe CdiInputSpecification -> f (Maybe CdiInputSpecification))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_cdiInputSpecification = (StopChannelResponse -> Maybe CdiInputSpecification)
-> (StopChannelResponse
-> Maybe CdiInputSpecification -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe CdiInputSpecification)
(Maybe CdiInputSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe CdiInputSpecification
cdiInputSpecification :: Maybe CdiInputSpecification
$sel:cdiInputSpecification:StopChannelResponse' :: StopChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification} -> Maybe CdiInputSpecification
cdiInputSpecification) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe CdiInputSpecification
a -> StopChannelResponse
s {$sel:cdiInputSpecification:StopChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = Maybe CdiInputSpecification
a} :: StopChannelResponse)
stopChannelResponse_id :: Lens.Lens' StopChannelResponse (Prelude.Maybe Prelude.Text)
stopChannelResponse_id :: (Maybe Text -> f (Maybe Text))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_id = (StopChannelResponse -> Maybe Text)
-> (StopChannelResponse -> Maybe Text -> StopChannelResponse)
-> Lens
StopChannelResponse StopChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe Text
id :: Maybe Text
$sel:id:StopChannelResponse' :: StopChannelResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe Text
a -> StopChannelResponse
s {$sel:id:StopChannelResponse' :: Maybe Text
id = Maybe Text
a} :: StopChannelResponse)
stopChannelResponse_channelClass :: Lens.Lens' StopChannelResponse (Prelude.Maybe ChannelClass)
stopChannelResponse_channelClass :: (Maybe ChannelClass -> f (Maybe ChannelClass))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_channelClass = (StopChannelResponse -> Maybe ChannelClass)
-> (StopChannelResponse
-> Maybe ChannelClass -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe ChannelClass)
(Maybe ChannelClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe ChannelClass
channelClass :: Maybe ChannelClass
$sel:channelClass:StopChannelResponse' :: StopChannelResponse -> Maybe ChannelClass
channelClass} -> Maybe ChannelClass
channelClass) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe ChannelClass
a -> StopChannelResponse
s {$sel:channelClass:StopChannelResponse' :: Maybe ChannelClass
channelClass = Maybe ChannelClass
a} :: StopChannelResponse)
stopChannelResponse_vpc :: Lens.Lens' StopChannelResponse (Prelude.Maybe VpcOutputSettingsDescription)
stopChannelResponse_vpc :: (Maybe VpcOutputSettingsDescription
-> f (Maybe VpcOutputSettingsDescription))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_vpc = (StopChannelResponse -> Maybe VpcOutputSettingsDescription)
-> (StopChannelResponse
-> Maybe VpcOutputSettingsDescription -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe VpcOutputSettingsDescription)
(Maybe VpcOutputSettingsDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe VpcOutputSettingsDescription
vpc :: Maybe VpcOutputSettingsDescription
$sel:vpc:StopChannelResponse' :: StopChannelResponse -> Maybe VpcOutputSettingsDescription
vpc} -> Maybe VpcOutputSettingsDescription
vpc) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe VpcOutputSettingsDescription
a -> StopChannelResponse
s {$sel:vpc:StopChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = Maybe VpcOutputSettingsDescription
a} :: StopChannelResponse)
stopChannelResponse_egressEndpoints :: Lens.Lens' StopChannelResponse (Prelude.Maybe [ChannelEgressEndpoint])
stopChannelResponse_egressEndpoints :: (Maybe [ChannelEgressEndpoint]
-> f (Maybe [ChannelEgressEndpoint]))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_egressEndpoints = (StopChannelResponse -> Maybe [ChannelEgressEndpoint])
-> (StopChannelResponse
-> Maybe [ChannelEgressEndpoint] -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe [ChannelEgressEndpoint])
(Maybe [ChannelEgressEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe [ChannelEgressEndpoint]
egressEndpoints :: Maybe [ChannelEgressEndpoint]
$sel:egressEndpoints:StopChannelResponse' :: StopChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints} -> Maybe [ChannelEgressEndpoint]
egressEndpoints) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe [ChannelEgressEndpoint]
a -> StopChannelResponse
s {$sel:egressEndpoints:StopChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = Maybe [ChannelEgressEndpoint]
a} :: StopChannelResponse) ((Maybe [ChannelEgressEndpoint]
-> f (Maybe [ChannelEgressEndpoint]))
-> StopChannelResponse -> f StopChannelResponse)
-> ((Maybe [ChannelEgressEndpoint]
-> f (Maybe [ChannelEgressEndpoint]))
-> Maybe [ChannelEgressEndpoint]
-> f (Maybe [ChannelEgressEndpoint]))
-> (Maybe [ChannelEgressEndpoint]
-> f (Maybe [ChannelEgressEndpoint]))
-> StopChannelResponse
-> f StopChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
-> Iso
(Maybe [ChannelEgressEndpoint])
(Maybe [ChannelEgressEndpoint])
(Maybe [ChannelEgressEndpoint])
(Maybe [ChannelEgressEndpoint])
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
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
[ChannelEgressEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stopChannelResponse_tags :: Lens.Lens' StopChannelResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
stopChannelResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_tags = (StopChannelResponse -> Maybe (HashMap Text Text))
-> (StopChannelResponse
-> Maybe (HashMap Text Text) -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:StopChannelResponse' :: StopChannelResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe (HashMap Text Text)
a -> StopChannelResponse
s {$sel:tags:StopChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: StopChannelResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StopChannelResponse -> f StopChannelResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StopChannelResponse
-> f StopChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
stopChannelResponse_encoderSettings :: Lens.Lens' StopChannelResponse (Prelude.Maybe EncoderSettings)
stopChannelResponse_encoderSettings :: (Maybe EncoderSettings -> f (Maybe EncoderSettings))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_encoderSettings = (StopChannelResponse -> Maybe EncoderSettings)
-> (StopChannelResponse
-> Maybe EncoderSettings -> StopChannelResponse)
-> Lens
StopChannelResponse
StopChannelResponse
(Maybe EncoderSettings)
(Maybe EncoderSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe EncoderSettings
encoderSettings :: Maybe EncoderSettings
$sel:encoderSettings:StopChannelResponse' :: StopChannelResponse -> Maybe EncoderSettings
encoderSettings} -> Maybe EncoderSettings
encoderSettings) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe EncoderSettings
a -> StopChannelResponse
s {$sel:encoderSettings:StopChannelResponse' :: Maybe EncoderSettings
encoderSettings = Maybe EncoderSettings
a} :: StopChannelResponse)
stopChannelResponse_roleArn :: Lens.Lens' StopChannelResponse (Prelude.Maybe Prelude.Text)
stopChannelResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_roleArn = (StopChannelResponse -> Maybe Text)
-> (StopChannelResponse -> Maybe Text -> StopChannelResponse)
-> Lens
StopChannelResponse StopChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:StopChannelResponse' :: StopChannelResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: StopChannelResponse
s@StopChannelResponse' {} Maybe Text
a -> StopChannelResponse
s {$sel:roleArn:StopChannelResponse' :: Maybe Text
roleArn = Maybe Text
a} :: StopChannelResponse)
stopChannelResponse_httpStatus :: Lens.Lens' StopChannelResponse Prelude.Int
stopChannelResponse_httpStatus :: (Int -> f Int) -> StopChannelResponse -> f StopChannelResponse
stopChannelResponse_httpStatus = (StopChannelResponse -> Int)
-> (StopChannelResponse -> Int -> StopChannelResponse)
-> Lens StopChannelResponse StopChannelResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StopChannelResponse' {Int
httpStatus :: Int
$sel:httpStatus:StopChannelResponse' :: StopChannelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StopChannelResponse
s@StopChannelResponse' {} Int
a -> StopChannelResponse
s {$sel:httpStatus:StopChannelResponse' :: Int
httpStatus = Int
a} :: StopChannelResponse)
instance Prelude.NFData StopChannelResponse