{-# 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.DeleteChannel
(
DeleteChannel (..),
newDeleteChannel,
deleteChannel_channelId,
DeleteChannelResponse (..),
newDeleteChannelResponse,
deleteChannelResponse_arn,
deleteChannelResponse_cdiInputSpecification,
deleteChannelResponse_channelClass,
deleteChannelResponse_destinations,
deleteChannelResponse_egressEndpoints,
deleteChannelResponse_encoderSettings,
deleteChannelResponse_id,
deleteChannelResponse_inputAttachments,
deleteChannelResponse_inputSpecification,
deleteChannelResponse_logLevel,
deleteChannelResponse_maintenance,
deleteChannelResponse_name,
deleteChannelResponse_pipelineDetails,
deleteChannelResponse_pipelinesRunningCount,
deleteChannelResponse_roleArn,
deleteChannelResponse_state,
deleteChannelResponse_tags,
deleteChannelResponse_vpc,
deleteChannelResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteChannel = DeleteChannel'
{
DeleteChannel -> Text
channelId :: Prelude.Text
}
deriving (DeleteChannel -> DeleteChannel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteChannel -> DeleteChannel -> Bool
$c/= :: DeleteChannel -> DeleteChannel -> Bool
== :: DeleteChannel -> DeleteChannel -> Bool
$c== :: DeleteChannel -> DeleteChannel -> Bool
Prelude.Eq, ReadPrec [DeleteChannel]
ReadPrec DeleteChannel
Int -> ReadS DeleteChannel
ReadS [DeleteChannel]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteChannel]
$creadListPrec :: ReadPrec [DeleteChannel]
readPrec :: ReadPrec DeleteChannel
$creadPrec :: ReadPrec DeleteChannel
readList :: ReadS [DeleteChannel]
$creadList :: ReadS [DeleteChannel]
readsPrec :: Int -> ReadS DeleteChannel
$creadsPrec :: Int -> ReadS DeleteChannel
Prelude.Read, Int -> DeleteChannel -> ShowS
[DeleteChannel] -> ShowS
DeleteChannel -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteChannel] -> ShowS
$cshowList :: [DeleteChannel] -> ShowS
show :: DeleteChannel -> String
$cshow :: DeleteChannel -> String
showsPrec :: Int -> DeleteChannel -> ShowS
$cshowsPrec :: Int -> DeleteChannel -> ShowS
Prelude.Show, forall x. Rep DeleteChannel x -> DeleteChannel
forall x. DeleteChannel -> Rep DeleteChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteChannel x -> DeleteChannel
$cfrom :: forall x. DeleteChannel -> Rep DeleteChannel x
Prelude.Generic)
newDeleteChannel ::
Prelude.Text ->
DeleteChannel
newDeleteChannel :: Text -> DeleteChannel
newDeleteChannel Text
pChannelId_ =
DeleteChannel' {$sel:channelId:DeleteChannel' :: Text
channelId = Text
pChannelId_}
deleteChannel_channelId :: Lens.Lens' DeleteChannel Prelude.Text
deleteChannel_channelId :: Lens' DeleteChannel Text
deleteChannel_channelId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannel' {Text
channelId :: Text
$sel:channelId:DeleteChannel' :: DeleteChannel -> Text
channelId} -> Text
channelId) (\s :: DeleteChannel
s@DeleteChannel' {} Text
a -> DeleteChannel
s {$sel:channelId:DeleteChannel' :: Text
channelId = Text
a} :: DeleteChannel)
instance Core.AWSRequest DeleteChannel where
type
AWSResponse DeleteChannel =
DeleteChannelResponse
request :: (Service -> Service) -> DeleteChannel -> Request DeleteChannel
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.delete (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DeleteChannel)))
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 Text
-> Maybe CdiInputSpecification
-> Maybe ChannelClass
-> Maybe [OutputDestination]
-> Maybe [ChannelEgressEndpoint]
-> Maybe EncoderSettings
-> Maybe Text
-> Maybe [InputAttachment]
-> Maybe InputSpecification
-> Maybe LogLevel
-> Maybe MaintenanceStatus
-> Maybe Text
-> Maybe [PipelineDetail]
-> Maybe Int
-> Maybe Text
-> Maybe ChannelState
-> Maybe (HashMap Text Text)
-> Maybe VpcOutputSettingsDescription
-> Int
-> DeleteChannelResponse
DeleteChannelResponse'
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
"arn")
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
"cdiInputSpecification")
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
"channelClass")
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
"destinations" 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
"egressEndpoints"
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
"encoderSettings")
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
"id")
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
"inputAttachments"
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
"inputSpecification")
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
"logLevel")
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
"maintenance")
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
"name")
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
"pipelineDetails"
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
"pipelinesRunningCount")
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
"roleArn")
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
"state")
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
"tags" 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
"vpc")
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 DeleteChannel where
hashWithSalt :: Int -> DeleteChannel -> Int
hashWithSalt Int
_salt DeleteChannel' {Text
channelId :: Text
$sel:channelId:DeleteChannel' :: DeleteChannel -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
channelId
instance Prelude.NFData DeleteChannel where
rnf :: DeleteChannel -> ()
rnf DeleteChannel' {Text
channelId :: Text
$sel:channelId:DeleteChannel' :: DeleteChannel -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
channelId
instance Data.ToHeaders DeleteChannel where
toHeaders :: DeleteChannel -> 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 DeleteChannel where
toPath :: DeleteChannel -> ByteString
toPath DeleteChannel' {Text
channelId :: Text
$sel:channelId:DeleteChannel' :: DeleteChannel -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/prod/channels/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
channelId]
instance Data.ToQuery DeleteChannel where
toQuery :: DeleteChannel -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteChannelResponse = DeleteChannelResponse'
{
DeleteChannelResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DeleteChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification :: Prelude.Maybe CdiInputSpecification,
DeleteChannelResponse -> Maybe ChannelClass
channelClass :: Prelude.Maybe ChannelClass,
DeleteChannelResponse -> Maybe [OutputDestination]
destinations :: Prelude.Maybe [OutputDestination],
DeleteChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints :: Prelude.Maybe [ChannelEgressEndpoint],
DeleteChannelResponse -> Maybe EncoderSettings
encoderSettings :: Prelude.Maybe EncoderSettings,
DeleteChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
DeleteChannelResponse -> Maybe [InputAttachment]
inputAttachments :: Prelude.Maybe [InputAttachment],
DeleteChannelResponse -> Maybe InputSpecification
inputSpecification :: Prelude.Maybe InputSpecification,
DeleteChannelResponse -> Maybe LogLevel
logLevel :: Prelude.Maybe LogLevel,
DeleteChannelResponse -> Maybe MaintenanceStatus
maintenance :: Prelude.Maybe MaintenanceStatus,
DeleteChannelResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DeleteChannelResponse -> Maybe [PipelineDetail]
pipelineDetails :: Prelude.Maybe [PipelineDetail],
DeleteChannelResponse -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
DeleteChannelResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DeleteChannelResponse -> Maybe ChannelState
state :: Prelude.Maybe ChannelState,
DeleteChannelResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DeleteChannelResponse -> Maybe VpcOutputSettingsDescription
vpc :: Prelude.Maybe VpcOutputSettingsDescription,
DeleteChannelResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteChannelResponse -> DeleteChannelResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteChannelResponse -> DeleteChannelResponse -> Bool
$c/= :: DeleteChannelResponse -> DeleteChannelResponse -> Bool
== :: DeleteChannelResponse -> DeleteChannelResponse -> Bool
$c== :: DeleteChannelResponse -> DeleteChannelResponse -> Bool
Prelude.Eq, ReadPrec [DeleteChannelResponse]
ReadPrec DeleteChannelResponse
Int -> ReadS DeleteChannelResponse
ReadS [DeleteChannelResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteChannelResponse]
$creadListPrec :: ReadPrec [DeleteChannelResponse]
readPrec :: ReadPrec DeleteChannelResponse
$creadPrec :: ReadPrec DeleteChannelResponse
readList :: ReadS [DeleteChannelResponse]
$creadList :: ReadS [DeleteChannelResponse]
readsPrec :: Int -> ReadS DeleteChannelResponse
$creadsPrec :: Int -> ReadS DeleteChannelResponse
Prelude.Read, Int -> DeleteChannelResponse -> ShowS
[DeleteChannelResponse] -> ShowS
DeleteChannelResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteChannelResponse] -> ShowS
$cshowList :: [DeleteChannelResponse] -> ShowS
show :: DeleteChannelResponse -> String
$cshow :: DeleteChannelResponse -> String
showsPrec :: Int -> DeleteChannelResponse -> ShowS
$cshowsPrec :: Int -> DeleteChannelResponse -> ShowS
Prelude.Show, forall x. Rep DeleteChannelResponse x -> DeleteChannelResponse
forall x. DeleteChannelResponse -> Rep DeleteChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteChannelResponse x -> DeleteChannelResponse
$cfrom :: forall x. DeleteChannelResponse -> Rep DeleteChannelResponse x
Prelude.Generic)
newDeleteChannelResponse ::
Prelude.Int ->
DeleteChannelResponse
newDeleteChannelResponse :: Int -> DeleteChannelResponse
newDeleteChannelResponse Int
pHttpStatus_ =
DeleteChannelResponse'
{ $sel:arn:DeleteChannelResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:cdiInputSpecification:DeleteChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = forall a. Maybe a
Prelude.Nothing,
$sel:channelClass:DeleteChannelResponse' :: Maybe ChannelClass
channelClass = forall a. Maybe a
Prelude.Nothing,
$sel:destinations:DeleteChannelResponse' :: Maybe [OutputDestination]
destinations = forall a. Maybe a
Prelude.Nothing,
$sel:egressEndpoints:DeleteChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = forall a. Maybe a
Prelude.Nothing,
$sel:encoderSettings:DeleteChannelResponse' :: Maybe EncoderSettings
encoderSettings = forall a. Maybe a
Prelude.Nothing,
$sel:id:DeleteChannelResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:inputAttachments:DeleteChannelResponse' :: Maybe [InputAttachment]
inputAttachments = forall a. Maybe a
Prelude.Nothing,
$sel:inputSpecification:DeleteChannelResponse' :: Maybe InputSpecification
inputSpecification = forall a. Maybe a
Prelude.Nothing,
$sel:logLevel:DeleteChannelResponse' :: Maybe LogLevel
logLevel = forall a. Maybe a
Prelude.Nothing,
$sel:maintenance:DeleteChannelResponse' :: Maybe MaintenanceStatus
maintenance = forall a. Maybe a
Prelude.Nothing,
$sel:name:DeleteChannelResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:pipelineDetails:DeleteChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = forall a. Maybe a
Prelude.Nothing,
$sel:pipelinesRunningCount:DeleteChannelResponse' :: Maybe Int
pipelinesRunningCount = forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DeleteChannelResponse' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
$sel:state:DeleteChannelResponse' :: Maybe ChannelState
state = forall a. Maybe a
Prelude.Nothing,
$sel:tags:DeleteChannelResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:vpc:DeleteChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DeleteChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
}
deleteChannelResponse_arn :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe Prelude.Text)
deleteChannelResponse_arn :: Lens' DeleteChannelResponse (Maybe Text)
deleteChannelResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe Text
a -> DeleteChannelResponse
s {$sel:arn:DeleteChannelResponse' :: Maybe Text
arn = Maybe Text
a} :: DeleteChannelResponse)
deleteChannelResponse_cdiInputSpecification :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe CdiInputSpecification)
deleteChannelResponse_cdiInputSpecification :: Lens' DeleteChannelResponse (Maybe CdiInputSpecification)
deleteChannelResponse_cdiInputSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe CdiInputSpecification
cdiInputSpecification :: Maybe CdiInputSpecification
$sel:cdiInputSpecification:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification} -> Maybe CdiInputSpecification
cdiInputSpecification) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe CdiInputSpecification
a -> DeleteChannelResponse
s {$sel:cdiInputSpecification:DeleteChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = Maybe CdiInputSpecification
a} :: DeleteChannelResponse)
deleteChannelResponse_channelClass :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe ChannelClass)
deleteChannelResponse_channelClass :: Lens' DeleteChannelResponse (Maybe ChannelClass)
deleteChannelResponse_channelClass = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe ChannelClass
channelClass :: Maybe ChannelClass
$sel:channelClass:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe ChannelClass
channelClass} -> Maybe ChannelClass
channelClass) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe ChannelClass
a -> DeleteChannelResponse
s {$sel:channelClass:DeleteChannelResponse' :: Maybe ChannelClass
channelClass = Maybe ChannelClass
a} :: DeleteChannelResponse)
deleteChannelResponse_destinations :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe [OutputDestination])
deleteChannelResponse_destinations :: Lens' DeleteChannelResponse (Maybe [OutputDestination])
deleteChannelResponse_destinations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe [OutputDestination]
destinations :: Maybe [OutputDestination]
$sel:destinations:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [OutputDestination]
destinations} -> Maybe [OutputDestination]
destinations) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe [OutputDestination]
a -> DeleteChannelResponse
s {$sel:destinations:DeleteChannelResponse' :: Maybe [OutputDestination]
destinations = Maybe [OutputDestination]
a} :: DeleteChannelResponse) 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
deleteChannelResponse_egressEndpoints :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe [ChannelEgressEndpoint])
deleteChannelResponse_egressEndpoints :: Lens' DeleteChannelResponse (Maybe [ChannelEgressEndpoint])
deleteChannelResponse_egressEndpoints = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe [ChannelEgressEndpoint]
egressEndpoints :: Maybe [ChannelEgressEndpoint]
$sel:egressEndpoints:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints} -> Maybe [ChannelEgressEndpoint]
egressEndpoints) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe [ChannelEgressEndpoint]
a -> DeleteChannelResponse
s {$sel:egressEndpoints:DeleteChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = Maybe [ChannelEgressEndpoint]
a} :: DeleteChannelResponse) 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
deleteChannelResponse_encoderSettings :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe EncoderSettings)
deleteChannelResponse_encoderSettings :: Lens' DeleteChannelResponse (Maybe EncoderSettings)
deleteChannelResponse_encoderSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe EncoderSettings
encoderSettings :: Maybe EncoderSettings
$sel:encoderSettings:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe EncoderSettings
encoderSettings} -> Maybe EncoderSettings
encoderSettings) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe EncoderSettings
a -> DeleteChannelResponse
s {$sel:encoderSettings:DeleteChannelResponse' :: Maybe EncoderSettings
encoderSettings = Maybe EncoderSettings
a} :: DeleteChannelResponse)
deleteChannelResponse_id :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe Prelude.Text)
deleteChannelResponse_id :: Lens' DeleteChannelResponse (Maybe Text)
deleteChannelResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe Text
id :: Maybe Text
$sel:id:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe Text
a -> DeleteChannelResponse
s {$sel:id:DeleteChannelResponse' :: Maybe Text
id = Maybe Text
a} :: DeleteChannelResponse)
deleteChannelResponse_inputAttachments :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe [InputAttachment])
deleteChannelResponse_inputAttachments :: Lens' DeleteChannelResponse (Maybe [InputAttachment])
deleteChannelResponse_inputAttachments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe [InputAttachment]
inputAttachments :: Maybe [InputAttachment]
$sel:inputAttachments:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [InputAttachment]
inputAttachments} -> Maybe [InputAttachment]
inputAttachments) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe [InputAttachment]
a -> DeleteChannelResponse
s {$sel:inputAttachments:DeleteChannelResponse' :: Maybe [InputAttachment]
inputAttachments = Maybe [InputAttachment]
a} :: DeleteChannelResponse) 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
deleteChannelResponse_inputSpecification :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe InputSpecification)
deleteChannelResponse_inputSpecification :: Lens' DeleteChannelResponse (Maybe InputSpecification)
deleteChannelResponse_inputSpecification = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe InputSpecification
inputSpecification :: Maybe InputSpecification
$sel:inputSpecification:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe InputSpecification
inputSpecification} -> Maybe InputSpecification
inputSpecification) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe InputSpecification
a -> DeleteChannelResponse
s {$sel:inputSpecification:DeleteChannelResponse' :: Maybe InputSpecification
inputSpecification = Maybe InputSpecification
a} :: DeleteChannelResponse)
deleteChannelResponse_logLevel :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe LogLevel)
deleteChannelResponse_logLevel :: Lens' DeleteChannelResponse (Maybe LogLevel)
deleteChannelResponse_logLevel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe LogLevel
logLevel :: Maybe LogLevel
$sel:logLevel:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe LogLevel
logLevel} -> Maybe LogLevel
logLevel) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe LogLevel
a -> DeleteChannelResponse
s {$sel:logLevel:DeleteChannelResponse' :: Maybe LogLevel
logLevel = Maybe LogLevel
a} :: DeleteChannelResponse)
deleteChannelResponse_maintenance :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe MaintenanceStatus)
deleteChannelResponse_maintenance :: Lens' DeleteChannelResponse (Maybe MaintenanceStatus)
deleteChannelResponse_maintenance = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe MaintenanceStatus
maintenance :: Maybe MaintenanceStatus
$sel:maintenance:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe MaintenanceStatus
maintenance} -> Maybe MaintenanceStatus
maintenance) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe MaintenanceStatus
a -> DeleteChannelResponse
s {$sel:maintenance:DeleteChannelResponse' :: Maybe MaintenanceStatus
maintenance = Maybe MaintenanceStatus
a} :: DeleteChannelResponse)
deleteChannelResponse_name :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe Prelude.Text)
deleteChannelResponse_name :: Lens' DeleteChannelResponse (Maybe Text)
deleteChannelResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe Text
name :: Maybe Text
$sel:name:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe Text
a -> DeleteChannelResponse
s {$sel:name:DeleteChannelResponse' :: Maybe Text
name = Maybe Text
a} :: DeleteChannelResponse)
deleteChannelResponse_pipelineDetails :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe [PipelineDetail])
deleteChannelResponse_pipelineDetails :: Lens' DeleteChannelResponse (Maybe [PipelineDetail])
deleteChannelResponse_pipelineDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe [PipelineDetail]
pipelineDetails :: Maybe [PipelineDetail]
$sel:pipelineDetails:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [PipelineDetail]
pipelineDetails} -> Maybe [PipelineDetail]
pipelineDetails) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe [PipelineDetail]
a -> DeleteChannelResponse
s {$sel:pipelineDetails:DeleteChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = Maybe [PipelineDetail]
a} :: DeleteChannelResponse) 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
deleteChannelResponse_pipelinesRunningCount :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe Prelude.Int)
deleteChannelResponse_pipelinesRunningCount :: Lens' DeleteChannelResponse (Maybe Int)
deleteChannelResponse_pipelinesRunningCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe Int
pipelinesRunningCount :: Maybe Int
$sel:pipelinesRunningCount:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Int
pipelinesRunningCount} -> Maybe Int
pipelinesRunningCount) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe Int
a -> DeleteChannelResponse
s {$sel:pipelinesRunningCount:DeleteChannelResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
a} :: DeleteChannelResponse)
deleteChannelResponse_roleArn :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe Prelude.Text)
deleteChannelResponse_roleArn :: Lens' DeleteChannelResponse (Maybe Text)
deleteChannelResponse_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe Text
a -> DeleteChannelResponse
s {$sel:roleArn:DeleteChannelResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DeleteChannelResponse)
deleteChannelResponse_state :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe ChannelState)
deleteChannelResponse_state :: Lens' DeleteChannelResponse (Maybe ChannelState)
deleteChannelResponse_state = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe ChannelState
state :: Maybe ChannelState
$sel:state:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe ChannelState
state} -> Maybe ChannelState
state) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe ChannelState
a -> DeleteChannelResponse
s {$sel:state:DeleteChannelResponse' :: Maybe ChannelState
state = Maybe ChannelState
a} :: DeleteChannelResponse)
deleteChannelResponse_tags :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
deleteChannelResponse_tags :: Lens' DeleteChannelResponse (Maybe (HashMap Text Text))
deleteChannelResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe (HashMap Text Text)
a -> DeleteChannelResponse
s {$sel:tags:DeleteChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DeleteChannelResponse) 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
deleteChannelResponse_vpc :: Lens.Lens' DeleteChannelResponse (Prelude.Maybe VpcOutputSettingsDescription)
deleteChannelResponse_vpc :: Lens' DeleteChannelResponse (Maybe VpcOutputSettingsDescription)
deleteChannelResponse_vpc = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Maybe VpcOutputSettingsDescription
vpc :: Maybe VpcOutputSettingsDescription
$sel:vpc:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe VpcOutputSettingsDescription
vpc} -> Maybe VpcOutputSettingsDescription
vpc) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Maybe VpcOutputSettingsDescription
a -> DeleteChannelResponse
s {$sel:vpc:DeleteChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = Maybe VpcOutputSettingsDescription
a} :: DeleteChannelResponse)
deleteChannelResponse_httpStatus :: Lens.Lens' DeleteChannelResponse Prelude.Int
deleteChannelResponse_httpStatus :: Lens' DeleteChannelResponse Int
deleteChannelResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteChannelResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteChannelResponse' :: DeleteChannelResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteChannelResponse
s@DeleteChannelResponse' {} Int
a -> DeleteChannelResponse
s {$sel:httpStatus:DeleteChannelResponse' :: Int
httpStatus = Int
a} :: DeleteChannelResponse)
instance Prelude.NFData DeleteChannelResponse where
rnf :: DeleteChannelResponse -> ()
rnf DeleteChannelResponse' {Int
Maybe Int
Maybe [ChannelEgressEndpoint]
Maybe [OutputDestination]
Maybe [PipelineDetail]
Maybe [InputAttachment]
Maybe Text
Maybe (HashMap Text Text)
Maybe CdiInputSpecification
Maybe ChannelClass
Maybe ChannelState
Maybe InputSpecification
Maybe LogLevel
Maybe MaintenanceStatus
Maybe VpcOutputSettingsDescription
Maybe EncoderSettings
httpStatus :: Int
vpc :: Maybe VpcOutputSettingsDescription
tags :: Maybe (HashMap Text Text)
state :: Maybe ChannelState
roleArn :: Maybe Text
pipelinesRunningCount :: Maybe Int
pipelineDetails :: Maybe [PipelineDetail]
name :: Maybe Text
maintenance :: Maybe MaintenanceStatus
logLevel :: Maybe LogLevel
inputSpecification :: Maybe InputSpecification
inputAttachments :: Maybe [InputAttachment]
id :: Maybe Text
encoderSettings :: Maybe EncoderSettings
egressEndpoints :: Maybe [ChannelEgressEndpoint]
destinations :: Maybe [OutputDestination]
channelClass :: Maybe ChannelClass
cdiInputSpecification :: Maybe CdiInputSpecification
arn :: Maybe Text
$sel:httpStatus:DeleteChannelResponse' :: DeleteChannelResponse -> Int
$sel:vpc:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe VpcOutputSettingsDescription
$sel:tags:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe (HashMap Text Text)
$sel:state:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe ChannelState
$sel:roleArn:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
$sel:pipelinesRunningCount:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Int
$sel:pipelineDetails:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [PipelineDetail]
$sel:name:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
$sel:maintenance:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe MaintenanceStatus
$sel:logLevel:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe LogLevel
$sel:inputSpecification:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe InputSpecification
$sel:inputAttachments:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [InputAttachment]
$sel:id:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
$sel:encoderSettings:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe EncoderSettings
$sel:egressEndpoints:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [ChannelEgressEndpoint]
$sel:destinations:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe [OutputDestination]
$sel:channelClass:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe ChannelClass
$sel:cdiInputSpecification:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe CdiInputSpecification
$sel:arn:DeleteChannelResponse' :: DeleteChannelResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CdiInputSpecification
cdiInputSpecification
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelClass
channelClass
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [OutputDestination]
destinations
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ChannelEgressEndpoint]
egressEndpoints
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EncoderSettings
encoderSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [InputAttachment]
inputAttachments
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputSpecification
inputSpecification
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LogLevel
logLevel
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MaintenanceStatus
maintenance
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PipelineDetail]
pipelineDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
pipelinesRunningCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ChannelState
state
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcOutputSettingsDescription
vpc
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus