{-# 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.MediaPackage.RotateIngestEndpointCredentials
(
RotateIngestEndpointCredentials (..),
newRotateIngestEndpointCredentials,
rotateIngestEndpointCredentials_ingestEndpointId,
rotateIngestEndpointCredentials_id,
RotateIngestEndpointCredentialsResponse (..),
newRotateIngestEndpointCredentialsResponse,
rotateIngestEndpointCredentialsResponse_ingressAccessLogs,
rotateIngestEndpointCredentialsResponse_hlsIngest,
rotateIngestEndpointCredentialsResponse_arn,
rotateIngestEndpointCredentialsResponse_id,
rotateIngestEndpointCredentialsResponse_description,
rotateIngestEndpointCredentialsResponse_egressAccessLogs,
rotateIngestEndpointCredentialsResponse_tags,
rotateIngestEndpointCredentialsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaPackage.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data RotateIngestEndpointCredentials = RotateIngestEndpointCredentials'
{
RotateIngestEndpointCredentials -> Text
ingestEndpointId :: Prelude.Text,
RotateIngestEndpointCredentials -> Text
id :: Prelude.Text
}
deriving (RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool
(RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool)
-> (RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool)
-> Eq RotateIngestEndpointCredentials
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool
$c/= :: RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool
== :: RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool
$c== :: RotateIngestEndpointCredentials
-> RotateIngestEndpointCredentials -> Bool
Prelude.Eq, ReadPrec [RotateIngestEndpointCredentials]
ReadPrec RotateIngestEndpointCredentials
Int -> ReadS RotateIngestEndpointCredentials
ReadS [RotateIngestEndpointCredentials]
(Int -> ReadS RotateIngestEndpointCredentials)
-> ReadS [RotateIngestEndpointCredentials]
-> ReadPrec RotateIngestEndpointCredentials
-> ReadPrec [RotateIngestEndpointCredentials]
-> Read RotateIngestEndpointCredentials
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RotateIngestEndpointCredentials]
$creadListPrec :: ReadPrec [RotateIngestEndpointCredentials]
readPrec :: ReadPrec RotateIngestEndpointCredentials
$creadPrec :: ReadPrec RotateIngestEndpointCredentials
readList :: ReadS [RotateIngestEndpointCredentials]
$creadList :: ReadS [RotateIngestEndpointCredentials]
readsPrec :: Int -> ReadS RotateIngestEndpointCredentials
$creadsPrec :: Int -> ReadS RotateIngestEndpointCredentials
Prelude.Read, Int -> RotateIngestEndpointCredentials -> ShowS
[RotateIngestEndpointCredentials] -> ShowS
RotateIngestEndpointCredentials -> String
(Int -> RotateIngestEndpointCredentials -> ShowS)
-> (RotateIngestEndpointCredentials -> String)
-> ([RotateIngestEndpointCredentials] -> ShowS)
-> Show RotateIngestEndpointCredentials
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RotateIngestEndpointCredentials] -> ShowS
$cshowList :: [RotateIngestEndpointCredentials] -> ShowS
show :: RotateIngestEndpointCredentials -> String
$cshow :: RotateIngestEndpointCredentials -> String
showsPrec :: Int -> RotateIngestEndpointCredentials -> ShowS
$cshowsPrec :: Int -> RotateIngestEndpointCredentials -> ShowS
Prelude.Show, (forall x.
RotateIngestEndpointCredentials
-> Rep RotateIngestEndpointCredentials x)
-> (forall x.
Rep RotateIngestEndpointCredentials x
-> RotateIngestEndpointCredentials)
-> Generic RotateIngestEndpointCredentials
forall x.
Rep RotateIngestEndpointCredentials x
-> RotateIngestEndpointCredentials
forall x.
RotateIngestEndpointCredentials
-> Rep RotateIngestEndpointCredentials x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RotateIngestEndpointCredentials x
-> RotateIngestEndpointCredentials
$cfrom :: forall x.
RotateIngestEndpointCredentials
-> Rep RotateIngestEndpointCredentials x
Prelude.Generic)
newRotateIngestEndpointCredentials ::
Prelude.Text ->
Prelude.Text ->
RotateIngestEndpointCredentials
newRotateIngestEndpointCredentials :: Text -> Text -> RotateIngestEndpointCredentials
newRotateIngestEndpointCredentials
Text
pIngestEndpointId_
Text
pId_ =
RotateIngestEndpointCredentials' :: Text -> Text -> RotateIngestEndpointCredentials
RotateIngestEndpointCredentials'
{ $sel:ingestEndpointId:RotateIngestEndpointCredentials' :: Text
ingestEndpointId =
Text
pIngestEndpointId_,
$sel:id:RotateIngestEndpointCredentials' :: Text
id = Text
pId_
}
rotateIngestEndpointCredentials_ingestEndpointId :: Lens.Lens' RotateIngestEndpointCredentials Prelude.Text
rotateIngestEndpointCredentials_ingestEndpointId :: (Text -> f Text)
-> RotateIngestEndpointCredentials
-> f RotateIngestEndpointCredentials
rotateIngestEndpointCredentials_ingestEndpointId = (RotateIngestEndpointCredentials -> Text)
-> (RotateIngestEndpointCredentials
-> Text -> RotateIngestEndpointCredentials)
-> Lens
RotateIngestEndpointCredentials
RotateIngestEndpointCredentials
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentials' {Text
ingestEndpointId :: Text
$sel:ingestEndpointId:RotateIngestEndpointCredentials' :: RotateIngestEndpointCredentials -> Text
ingestEndpointId} -> Text
ingestEndpointId) (\s :: RotateIngestEndpointCredentials
s@RotateIngestEndpointCredentials' {} Text
a -> RotateIngestEndpointCredentials
s {$sel:ingestEndpointId:RotateIngestEndpointCredentials' :: Text
ingestEndpointId = Text
a} :: RotateIngestEndpointCredentials)
rotateIngestEndpointCredentials_id :: Lens.Lens' RotateIngestEndpointCredentials Prelude.Text
rotateIngestEndpointCredentials_id :: (Text -> f Text)
-> RotateIngestEndpointCredentials
-> f RotateIngestEndpointCredentials
rotateIngestEndpointCredentials_id = (RotateIngestEndpointCredentials -> Text)
-> (RotateIngestEndpointCredentials
-> Text -> RotateIngestEndpointCredentials)
-> Lens
RotateIngestEndpointCredentials
RotateIngestEndpointCredentials
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentials' {Text
id :: Text
$sel:id:RotateIngestEndpointCredentials' :: RotateIngestEndpointCredentials -> Text
id} -> Text
id) (\s :: RotateIngestEndpointCredentials
s@RotateIngestEndpointCredentials' {} Text
a -> RotateIngestEndpointCredentials
s {$sel:id:RotateIngestEndpointCredentials' :: Text
id = Text
a} :: RotateIngestEndpointCredentials)
instance
Core.AWSRequest
RotateIngestEndpointCredentials
where
type
AWSResponse RotateIngestEndpointCredentials =
RotateIngestEndpointCredentialsResponse
request :: RotateIngestEndpointCredentials
-> Request RotateIngestEndpointCredentials
request = Service
-> RotateIngestEndpointCredentials
-> Request RotateIngestEndpointCredentials
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RotateIngestEndpointCredentials
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse RotateIngestEndpointCredentials)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse RotateIngestEndpointCredentials))
-> Logger
-> Service
-> Proxy RotateIngestEndpointCredentials
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse RotateIngestEndpointCredentials)))
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 IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse'
(Maybe IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe IngressAccessLogs)
-> Either
String
(Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe IngressAccessLogs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ingressAccessLogs")
Either
String
(Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe HlsIngest)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe HlsIngest)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hlsIngest")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
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 Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
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 Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
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
"description")
Either
String
(Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe EgressAccessLogs)
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> RotateIngestEndpointCredentialsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EgressAccessLogs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressAccessLogs")
Either
String
(Maybe (HashMap Text Text)
-> Int -> RotateIngestEndpointCredentialsResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> RotateIngestEndpointCredentialsResponse)
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 (Int -> RotateIngestEndpointCredentialsResponse)
-> Either String Int
-> Either String RotateIngestEndpointCredentialsResponse
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
RotateIngestEndpointCredentials
instance
Prelude.NFData
RotateIngestEndpointCredentials
instance
Core.ToHeaders
RotateIngestEndpointCredentials
where
toHeaders :: RotateIngestEndpointCredentials -> ResponseHeaders
toHeaders =
ResponseHeaders
-> RotateIngestEndpointCredentials -> 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 RotateIngestEndpointCredentials where
toJSON :: RotateIngestEndpointCredentials -> Value
toJSON = Value -> RotateIngestEndpointCredentials -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath RotateIngestEndpointCredentials where
toPath :: RotateIngestEndpointCredentials -> ByteString
toPath RotateIngestEndpointCredentials' {Text
id :: Text
ingestEndpointId :: Text
$sel:id:RotateIngestEndpointCredentials' :: RotateIngestEndpointCredentials -> Text
$sel:ingestEndpointId:RotateIngestEndpointCredentials' :: RotateIngestEndpointCredentials -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/channels/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id,
ByteString
"/ingest_endpoints/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
ingestEndpointId,
ByteString
"/credentials"
]
instance Core.ToQuery RotateIngestEndpointCredentials where
toQuery :: RotateIngestEndpointCredentials -> QueryString
toQuery = QueryString -> RotateIngestEndpointCredentials -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RotateIngestEndpointCredentialsResponse = RotateIngestEndpointCredentialsResponse'
{ RotateIngestEndpointCredentialsResponse -> Maybe IngressAccessLogs
ingressAccessLogs :: Prelude.Maybe IngressAccessLogs,
RotateIngestEndpointCredentialsResponse -> Maybe HlsIngest
hlsIngest :: Prelude.Maybe HlsIngest,
RotateIngestEndpointCredentialsResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
RotateIngestEndpointCredentialsResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
RotateIngestEndpointCredentialsResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
RotateIngestEndpointCredentialsResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
RotateIngestEndpointCredentialsResponse
-> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
RotateIngestEndpointCredentialsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool
(RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool)
-> (RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool)
-> Eq RotateIngestEndpointCredentialsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool
$c/= :: RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool
== :: RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool
$c== :: RotateIngestEndpointCredentialsResponse
-> RotateIngestEndpointCredentialsResponse -> Bool
Prelude.Eq, ReadPrec [RotateIngestEndpointCredentialsResponse]
ReadPrec RotateIngestEndpointCredentialsResponse
Int -> ReadS RotateIngestEndpointCredentialsResponse
ReadS [RotateIngestEndpointCredentialsResponse]
(Int -> ReadS RotateIngestEndpointCredentialsResponse)
-> ReadS [RotateIngestEndpointCredentialsResponse]
-> ReadPrec RotateIngestEndpointCredentialsResponse
-> ReadPrec [RotateIngestEndpointCredentialsResponse]
-> Read RotateIngestEndpointCredentialsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RotateIngestEndpointCredentialsResponse]
$creadListPrec :: ReadPrec [RotateIngestEndpointCredentialsResponse]
readPrec :: ReadPrec RotateIngestEndpointCredentialsResponse
$creadPrec :: ReadPrec RotateIngestEndpointCredentialsResponse
readList :: ReadS [RotateIngestEndpointCredentialsResponse]
$creadList :: ReadS [RotateIngestEndpointCredentialsResponse]
readsPrec :: Int -> ReadS RotateIngestEndpointCredentialsResponse
$creadsPrec :: Int -> ReadS RotateIngestEndpointCredentialsResponse
Prelude.Read, Int -> RotateIngestEndpointCredentialsResponse -> ShowS
[RotateIngestEndpointCredentialsResponse] -> ShowS
RotateIngestEndpointCredentialsResponse -> String
(Int -> RotateIngestEndpointCredentialsResponse -> ShowS)
-> (RotateIngestEndpointCredentialsResponse -> String)
-> ([RotateIngestEndpointCredentialsResponse] -> ShowS)
-> Show RotateIngestEndpointCredentialsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RotateIngestEndpointCredentialsResponse] -> ShowS
$cshowList :: [RotateIngestEndpointCredentialsResponse] -> ShowS
show :: RotateIngestEndpointCredentialsResponse -> String
$cshow :: RotateIngestEndpointCredentialsResponse -> String
showsPrec :: Int -> RotateIngestEndpointCredentialsResponse -> ShowS
$cshowsPrec :: Int -> RotateIngestEndpointCredentialsResponse -> ShowS
Prelude.Show, (forall x.
RotateIngestEndpointCredentialsResponse
-> Rep RotateIngestEndpointCredentialsResponse x)
-> (forall x.
Rep RotateIngestEndpointCredentialsResponse x
-> RotateIngestEndpointCredentialsResponse)
-> Generic RotateIngestEndpointCredentialsResponse
forall x.
Rep RotateIngestEndpointCredentialsResponse x
-> RotateIngestEndpointCredentialsResponse
forall x.
RotateIngestEndpointCredentialsResponse
-> Rep RotateIngestEndpointCredentialsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RotateIngestEndpointCredentialsResponse x
-> RotateIngestEndpointCredentialsResponse
$cfrom :: forall x.
RotateIngestEndpointCredentialsResponse
-> Rep RotateIngestEndpointCredentialsResponse x
Prelude.Generic)
newRotateIngestEndpointCredentialsResponse ::
Prelude.Int ->
RotateIngestEndpointCredentialsResponse
newRotateIngestEndpointCredentialsResponse :: Int -> RotateIngestEndpointCredentialsResponse
newRotateIngestEndpointCredentialsResponse
Int
pHttpStatus_ =
RotateIngestEndpointCredentialsResponse' :: Maybe IngressAccessLogs
-> Maybe HlsIngest
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse'
{ $sel:ingressAccessLogs:RotateIngestEndpointCredentialsResponse' :: Maybe IngressAccessLogs
ingressAccessLogs =
Maybe IngressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:hlsIngest:RotateIngestEndpointCredentialsResponse' :: Maybe HlsIngest
hlsIngest = Maybe HlsIngest
forall a. Maybe a
Prelude.Nothing,
$sel:arn:RotateIngestEndpointCredentialsResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:RotateIngestEndpointCredentialsResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:RotateIngestEndpointCredentialsResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:RotateIngestEndpointCredentialsResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:tags:RotateIngestEndpointCredentialsResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RotateIngestEndpointCredentialsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
rotateIngestEndpointCredentialsResponse_ingressAccessLogs :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe IngressAccessLogs)
rotateIngestEndpointCredentialsResponse_ingressAccessLogs :: (Maybe IngressAccessLogs -> f (Maybe IngressAccessLogs))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_ingressAccessLogs = (RotateIngestEndpointCredentialsResponse
-> Maybe IngressAccessLogs)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe IngressAccessLogs
-> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe IngressAccessLogs)
(Maybe IngressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe IngressAccessLogs
ingressAccessLogs :: Maybe IngressAccessLogs
$sel:ingressAccessLogs:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe IngressAccessLogs
ingressAccessLogs} -> Maybe IngressAccessLogs
ingressAccessLogs) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe IngressAccessLogs
a -> RotateIngestEndpointCredentialsResponse
s {$sel:ingressAccessLogs:RotateIngestEndpointCredentialsResponse' :: Maybe IngressAccessLogs
ingressAccessLogs = Maybe IngressAccessLogs
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_hlsIngest :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe HlsIngest)
rotateIngestEndpointCredentialsResponse_hlsIngest :: (Maybe HlsIngest -> f (Maybe HlsIngest))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_hlsIngest = (RotateIngestEndpointCredentialsResponse -> Maybe HlsIngest)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe HlsIngest -> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe HlsIngest)
(Maybe HlsIngest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe HlsIngest
hlsIngest :: Maybe HlsIngest
$sel:hlsIngest:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe HlsIngest
hlsIngest} -> Maybe HlsIngest
hlsIngest) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe HlsIngest
a -> RotateIngestEndpointCredentialsResponse
s {$sel:hlsIngest:RotateIngestEndpointCredentialsResponse' :: Maybe HlsIngest
hlsIngest = Maybe HlsIngest
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_arn :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe Prelude.Text)
rotateIngestEndpointCredentialsResponse_arn :: (Maybe Text -> f (Maybe Text))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_arn = (RotateIngestEndpointCredentialsResponse -> Maybe Text)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe Text -> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe Text
a -> RotateIngestEndpointCredentialsResponse
s {$sel:arn:RotateIngestEndpointCredentialsResponse' :: Maybe Text
arn = Maybe Text
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_id :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe Prelude.Text)
rotateIngestEndpointCredentialsResponse_id :: (Maybe Text -> f (Maybe Text))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_id = (RotateIngestEndpointCredentialsResponse -> Maybe Text)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe Text -> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe Text
id :: Maybe Text
$sel:id:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe Text
a -> RotateIngestEndpointCredentialsResponse
s {$sel:id:RotateIngestEndpointCredentialsResponse' :: Maybe Text
id = Maybe Text
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_description :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe Prelude.Text)
rotateIngestEndpointCredentialsResponse_description :: (Maybe Text -> f (Maybe Text))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_description = (RotateIngestEndpointCredentialsResponse -> Maybe Text)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe Text -> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe Text
description :: Maybe Text
$sel:description:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe Text
a -> RotateIngestEndpointCredentialsResponse
s {$sel:description:RotateIngestEndpointCredentialsResponse' :: Maybe Text
description = Maybe Text
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_egressAccessLogs :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe EgressAccessLogs)
rotateIngestEndpointCredentialsResponse_egressAccessLogs :: (Maybe EgressAccessLogs -> f (Maybe EgressAccessLogs))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_egressAccessLogs = (RotateIngestEndpointCredentialsResponse -> Maybe EgressAccessLogs)
-> (RotateIngestEndpointCredentialsResponse
-> Maybe EgressAccessLogs
-> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(Maybe EgressAccessLogs)
(Maybe EgressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe EgressAccessLogs
a -> RotateIngestEndpointCredentialsResponse
s {$sel:egressAccessLogs:RotateIngestEndpointCredentialsResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: RotateIngestEndpointCredentialsResponse)
rotateIngestEndpointCredentialsResponse_tags :: Lens.Lens' RotateIngestEndpointCredentialsResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
rotateIngestEndpointCredentialsResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_tags = (RotateIngestEndpointCredentialsResponse
-> Maybe (HashMap Text Text))
-> (RotateIngestEndpointCredentialsResponse
-> Maybe (HashMap Text Text)
-> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
(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 (\RotateIngestEndpointCredentialsResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse
-> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Maybe (HashMap Text Text)
a -> RotateIngestEndpointCredentialsResponse
s {$sel:tags:RotateIngestEndpointCredentialsResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: RotateIngestEndpointCredentialsResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse)
-> ((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)))
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
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
rotateIngestEndpointCredentialsResponse_httpStatus :: Lens.Lens' RotateIngestEndpointCredentialsResponse Prelude.Int
rotateIngestEndpointCredentialsResponse_httpStatus :: (Int -> f Int)
-> RotateIngestEndpointCredentialsResponse
-> f RotateIngestEndpointCredentialsResponse
rotateIngestEndpointCredentialsResponse_httpStatus = (RotateIngestEndpointCredentialsResponse -> Int)
-> (RotateIngestEndpointCredentialsResponse
-> Int -> RotateIngestEndpointCredentialsResponse)
-> Lens
RotateIngestEndpointCredentialsResponse
RotateIngestEndpointCredentialsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RotateIngestEndpointCredentialsResponse' {Int
httpStatus :: Int
$sel:httpStatus:RotateIngestEndpointCredentialsResponse' :: RotateIngestEndpointCredentialsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RotateIngestEndpointCredentialsResponse
s@RotateIngestEndpointCredentialsResponse' {} Int
a -> RotateIngestEndpointCredentialsResponse
s {$sel:httpStatus:RotateIngestEndpointCredentialsResponse' :: Int
httpStatus = Int
a} :: RotateIngestEndpointCredentialsResponse)
instance
Prelude.NFData
RotateIngestEndpointCredentialsResponse