{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudFront.CreateStreamingDistributionWithTags
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- This API is deprecated. Amazon CloudFront is deprecating real-time
-- messaging protocol (RTMP) distributions on December 31, 2020. For more
-- information,
-- <http://forums.aws.amazon.com/ann.jspa?annID=7356 read the announcement>
-- on the Amazon CloudFront discussion forum.
module Amazonka.CloudFront.CreateStreamingDistributionWithTags
  ( -- * Creating a Request
    CreateStreamingDistributionWithTags (..),
    newCreateStreamingDistributionWithTags,

    -- * Request Lenses
    createStreamingDistributionWithTags_streamingDistributionConfigWithTags,

    -- * Destructuring the Response
    CreateStreamingDistributionWithTagsResponse (..),
    newCreateStreamingDistributionWithTagsResponse,

    -- * Response Lenses
    createStreamingDistributionWithTagsResponse_eTag,
    createStreamingDistributionWithTagsResponse_location,
    createStreamingDistributionWithTagsResponse_streamingDistribution,
    createStreamingDistributionWithTagsResponse_httpStatus,
  )
where

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

-- | The request to create a new streaming distribution with tags.
--
-- /See:/ 'newCreateStreamingDistributionWithTags' smart constructor.
data CreateStreamingDistributionWithTags = CreateStreamingDistributionWithTags'
  { -- | The streaming distribution\'s configuration information.
    CreateStreamingDistributionWithTags
-> StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags :: StreamingDistributionConfigWithTags
  }
  deriving (CreateStreamingDistributionWithTags
-> CreateStreamingDistributionWithTags -> Bool
(CreateStreamingDistributionWithTags
 -> CreateStreamingDistributionWithTags -> Bool)
-> (CreateStreamingDistributionWithTags
    -> CreateStreamingDistributionWithTags -> Bool)
-> Eq CreateStreamingDistributionWithTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingDistributionWithTags
-> CreateStreamingDistributionWithTags -> Bool
$c/= :: CreateStreamingDistributionWithTags
-> CreateStreamingDistributionWithTags -> Bool
== :: CreateStreamingDistributionWithTags
-> CreateStreamingDistributionWithTags -> Bool
$c== :: CreateStreamingDistributionWithTags
-> CreateStreamingDistributionWithTags -> Bool
Prelude.Eq, ReadPrec [CreateStreamingDistributionWithTags]
ReadPrec CreateStreamingDistributionWithTags
Int -> ReadS CreateStreamingDistributionWithTags
ReadS [CreateStreamingDistributionWithTags]
(Int -> ReadS CreateStreamingDistributionWithTags)
-> ReadS [CreateStreamingDistributionWithTags]
-> ReadPrec CreateStreamingDistributionWithTags
-> ReadPrec [CreateStreamingDistributionWithTags]
-> Read CreateStreamingDistributionWithTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingDistributionWithTags]
$creadListPrec :: ReadPrec [CreateStreamingDistributionWithTags]
readPrec :: ReadPrec CreateStreamingDistributionWithTags
$creadPrec :: ReadPrec CreateStreamingDistributionWithTags
readList :: ReadS [CreateStreamingDistributionWithTags]
$creadList :: ReadS [CreateStreamingDistributionWithTags]
readsPrec :: Int -> ReadS CreateStreamingDistributionWithTags
$creadsPrec :: Int -> ReadS CreateStreamingDistributionWithTags
Prelude.Read, Int -> CreateStreamingDistributionWithTags -> ShowS
[CreateStreamingDistributionWithTags] -> ShowS
CreateStreamingDistributionWithTags -> String
(Int -> CreateStreamingDistributionWithTags -> ShowS)
-> (CreateStreamingDistributionWithTags -> String)
-> ([CreateStreamingDistributionWithTags] -> ShowS)
-> Show CreateStreamingDistributionWithTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingDistributionWithTags] -> ShowS
$cshowList :: [CreateStreamingDistributionWithTags] -> ShowS
show :: CreateStreamingDistributionWithTags -> String
$cshow :: CreateStreamingDistributionWithTags -> String
showsPrec :: Int -> CreateStreamingDistributionWithTags -> ShowS
$cshowsPrec :: Int -> CreateStreamingDistributionWithTags -> ShowS
Prelude.Show, (forall x.
 CreateStreamingDistributionWithTags
 -> Rep CreateStreamingDistributionWithTags x)
-> (forall x.
    Rep CreateStreamingDistributionWithTags x
    -> CreateStreamingDistributionWithTags)
-> Generic CreateStreamingDistributionWithTags
forall x.
Rep CreateStreamingDistributionWithTags x
-> CreateStreamingDistributionWithTags
forall x.
CreateStreamingDistributionWithTags
-> Rep CreateStreamingDistributionWithTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStreamingDistributionWithTags x
-> CreateStreamingDistributionWithTags
$cfrom :: forall x.
CreateStreamingDistributionWithTags
-> Rep CreateStreamingDistributionWithTags x
Prelude.Generic)

-- |
-- Create a value of 'CreateStreamingDistributionWithTags' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'streamingDistributionConfigWithTags', 'createStreamingDistributionWithTags_streamingDistributionConfigWithTags' - The streaming distribution\'s configuration information.
newCreateStreamingDistributionWithTags ::
  -- | 'streamingDistributionConfigWithTags'
  StreamingDistributionConfigWithTags ->
  CreateStreamingDistributionWithTags
newCreateStreamingDistributionWithTags :: StreamingDistributionConfigWithTags
-> CreateStreamingDistributionWithTags
newCreateStreamingDistributionWithTags
  StreamingDistributionConfigWithTags
pStreamingDistributionConfigWithTags_ =
    CreateStreamingDistributionWithTags' :: StreamingDistributionConfigWithTags
-> CreateStreamingDistributionWithTags
CreateStreamingDistributionWithTags'
      { $sel:streamingDistributionConfigWithTags:CreateStreamingDistributionWithTags' :: StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags =
          StreamingDistributionConfigWithTags
pStreamingDistributionConfigWithTags_
      }

-- | The streaming distribution\'s configuration information.
createStreamingDistributionWithTags_streamingDistributionConfigWithTags :: Lens.Lens' CreateStreamingDistributionWithTags StreamingDistributionConfigWithTags
createStreamingDistributionWithTags_streamingDistributionConfigWithTags :: (StreamingDistributionConfigWithTags
 -> f StreamingDistributionConfigWithTags)
-> CreateStreamingDistributionWithTags
-> f CreateStreamingDistributionWithTags
createStreamingDistributionWithTags_streamingDistributionConfigWithTags = (CreateStreamingDistributionWithTags
 -> StreamingDistributionConfigWithTags)
-> (CreateStreamingDistributionWithTags
    -> StreamingDistributionConfigWithTags
    -> CreateStreamingDistributionWithTags)
-> Lens
     CreateStreamingDistributionWithTags
     CreateStreamingDistributionWithTags
     StreamingDistributionConfigWithTags
     StreamingDistributionConfigWithTags
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingDistributionWithTags' {StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags :: StreamingDistributionConfigWithTags
$sel:streamingDistributionConfigWithTags:CreateStreamingDistributionWithTags' :: CreateStreamingDistributionWithTags
-> StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags} -> StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags) (\s :: CreateStreamingDistributionWithTags
s@CreateStreamingDistributionWithTags' {} StreamingDistributionConfigWithTags
a -> CreateStreamingDistributionWithTags
s {$sel:streamingDistributionConfigWithTags:CreateStreamingDistributionWithTags' :: StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags = StreamingDistributionConfigWithTags
a} :: CreateStreamingDistributionWithTags)

instance
  Core.AWSRequest
    CreateStreamingDistributionWithTags
  where
  type
    AWSResponse CreateStreamingDistributionWithTags =
      CreateStreamingDistributionWithTagsResponse
  request :: CreateStreamingDistributionWithTags
-> Request CreateStreamingDistributionWithTags
request = Service
-> CreateStreamingDistributionWithTags
-> Request CreateStreamingDistributionWithTags
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.postXML Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateStreamingDistributionWithTags
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse CreateStreamingDistributionWithTags)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either String (AWSResponse CreateStreamingDistributionWithTags))
-> Logger
-> Service
-> Proxy CreateStreamingDistributionWithTags
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse CreateStreamingDistributionWithTags)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe Text
-> Maybe StreamingDistribution
-> Int
-> CreateStreamingDistributionWithTagsResponse
CreateStreamingDistributionWithTagsResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe StreamingDistribution
 -> Int
 -> CreateStreamingDistributionWithTagsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe StreamingDistribution
      -> Int
      -> CreateStreamingDistributionWithTagsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"ETag")
              Either
  String
  (Maybe Text
   -> Maybe StreamingDistribution
   -> Int
   -> CreateStreamingDistributionWithTagsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe StreamingDistribution
      -> Int -> CreateStreamingDistributionWithTagsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"Location")
              Either
  String
  (Maybe StreamingDistribution
   -> Int -> CreateStreamingDistributionWithTagsResponse)
-> Either String (Maybe StreamingDistribution)
-> Either
     String (Int -> CreateStreamingDistributionWithTagsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node] -> Either String (Maybe StreamingDistribution)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
              Either String (Int -> CreateStreamingDistributionWithTagsResponse)
-> Either String Int
-> Either String CreateStreamingDistributionWithTagsResponse
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
    CreateStreamingDistributionWithTags

instance
  Prelude.NFData
    CreateStreamingDistributionWithTags

instance
  Core.ToElement
    CreateStreamingDistributionWithTags
  where
  toElement :: CreateStreamingDistributionWithTags -> Element
toElement CreateStreamingDistributionWithTags' {StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags :: StreamingDistributionConfigWithTags
$sel:streamingDistributionConfigWithTags:CreateStreamingDistributionWithTags' :: CreateStreamingDistributionWithTags
-> StreamingDistributionConfigWithTags
..} =
    Name -> StreamingDistributionConfigWithTags -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
      Name
"{http://cloudfront.amazonaws.com/doc/2020-05-31/}StreamingDistributionConfigWithTags"
      StreamingDistributionConfigWithTags
streamingDistributionConfigWithTags

instance
  Core.ToHeaders
    CreateStreamingDistributionWithTags
  where
  toHeaders :: CreateStreamingDistributionWithTags -> ResponseHeaders
toHeaders = ResponseHeaders
-> CreateStreamingDistributionWithTags -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToPath
    CreateStreamingDistributionWithTags
  where
  toPath :: CreateStreamingDistributionWithTags -> ByteString
toPath =
    ByteString -> CreateStreamingDistributionWithTags -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2020-05-31/streaming-distribution"

instance
  Core.ToQuery
    CreateStreamingDistributionWithTags
  where
  toQuery :: CreateStreamingDistributionWithTags -> QueryString
toQuery =
    QueryString -> CreateStreamingDistributionWithTags -> QueryString
forall a b. a -> b -> a
Prelude.const ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"WithTags"])

-- | The returned result of the corresponding request.
--
-- /See:/ 'newCreateStreamingDistributionWithTagsResponse' smart constructor.
data CreateStreamingDistributionWithTagsResponse = CreateStreamingDistributionWithTagsResponse'
  { -- | The current version of the distribution created.
    CreateStreamingDistributionWithTagsResponse -> Maybe Text
eTag :: Prelude.Maybe Prelude.Text,
    -- | The fully qualified URI of the new streaming distribution resource just
    -- created.
    CreateStreamingDistributionWithTagsResponse -> Maybe Text
location :: Prelude.Maybe Prelude.Text,
    -- | The streaming distribution\'s information.
    CreateStreamingDistributionWithTagsResponse
-> Maybe StreamingDistribution
streamingDistribution :: Prelude.Maybe StreamingDistribution,
    -- | The response's http status code.
    CreateStreamingDistributionWithTagsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateStreamingDistributionWithTagsResponse
-> CreateStreamingDistributionWithTagsResponse -> Bool
(CreateStreamingDistributionWithTagsResponse
 -> CreateStreamingDistributionWithTagsResponse -> Bool)
-> (CreateStreamingDistributionWithTagsResponse
    -> CreateStreamingDistributionWithTagsResponse -> Bool)
-> Eq CreateStreamingDistributionWithTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateStreamingDistributionWithTagsResponse
-> CreateStreamingDistributionWithTagsResponse -> Bool
$c/= :: CreateStreamingDistributionWithTagsResponse
-> CreateStreamingDistributionWithTagsResponse -> Bool
== :: CreateStreamingDistributionWithTagsResponse
-> CreateStreamingDistributionWithTagsResponse -> Bool
$c== :: CreateStreamingDistributionWithTagsResponse
-> CreateStreamingDistributionWithTagsResponse -> Bool
Prelude.Eq, ReadPrec [CreateStreamingDistributionWithTagsResponse]
ReadPrec CreateStreamingDistributionWithTagsResponse
Int -> ReadS CreateStreamingDistributionWithTagsResponse
ReadS [CreateStreamingDistributionWithTagsResponse]
(Int -> ReadS CreateStreamingDistributionWithTagsResponse)
-> ReadS [CreateStreamingDistributionWithTagsResponse]
-> ReadPrec CreateStreamingDistributionWithTagsResponse
-> ReadPrec [CreateStreamingDistributionWithTagsResponse]
-> Read CreateStreamingDistributionWithTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateStreamingDistributionWithTagsResponse]
$creadListPrec :: ReadPrec [CreateStreamingDistributionWithTagsResponse]
readPrec :: ReadPrec CreateStreamingDistributionWithTagsResponse
$creadPrec :: ReadPrec CreateStreamingDistributionWithTagsResponse
readList :: ReadS [CreateStreamingDistributionWithTagsResponse]
$creadList :: ReadS [CreateStreamingDistributionWithTagsResponse]
readsPrec :: Int -> ReadS CreateStreamingDistributionWithTagsResponse
$creadsPrec :: Int -> ReadS CreateStreamingDistributionWithTagsResponse
Prelude.Read, Int -> CreateStreamingDistributionWithTagsResponse -> ShowS
[CreateStreamingDistributionWithTagsResponse] -> ShowS
CreateStreamingDistributionWithTagsResponse -> String
(Int -> CreateStreamingDistributionWithTagsResponse -> ShowS)
-> (CreateStreamingDistributionWithTagsResponse -> String)
-> ([CreateStreamingDistributionWithTagsResponse] -> ShowS)
-> Show CreateStreamingDistributionWithTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateStreamingDistributionWithTagsResponse] -> ShowS
$cshowList :: [CreateStreamingDistributionWithTagsResponse] -> ShowS
show :: CreateStreamingDistributionWithTagsResponse -> String
$cshow :: CreateStreamingDistributionWithTagsResponse -> String
showsPrec :: Int -> CreateStreamingDistributionWithTagsResponse -> ShowS
$cshowsPrec :: Int -> CreateStreamingDistributionWithTagsResponse -> ShowS
Prelude.Show, (forall x.
 CreateStreamingDistributionWithTagsResponse
 -> Rep CreateStreamingDistributionWithTagsResponse x)
-> (forall x.
    Rep CreateStreamingDistributionWithTagsResponse x
    -> CreateStreamingDistributionWithTagsResponse)
-> Generic CreateStreamingDistributionWithTagsResponse
forall x.
Rep CreateStreamingDistributionWithTagsResponse x
-> CreateStreamingDistributionWithTagsResponse
forall x.
CreateStreamingDistributionWithTagsResponse
-> Rep CreateStreamingDistributionWithTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateStreamingDistributionWithTagsResponse x
-> CreateStreamingDistributionWithTagsResponse
$cfrom :: forall x.
CreateStreamingDistributionWithTagsResponse
-> Rep CreateStreamingDistributionWithTagsResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateStreamingDistributionWithTagsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'eTag', 'createStreamingDistributionWithTagsResponse_eTag' - The current version of the distribution created.
--
-- 'location', 'createStreamingDistributionWithTagsResponse_location' - The fully qualified URI of the new streaming distribution resource just
-- created.
--
-- 'streamingDistribution', 'createStreamingDistributionWithTagsResponse_streamingDistribution' - The streaming distribution\'s information.
--
-- 'httpStatus', 'createStreamingDistributionWithTagsResponse_httpStatus' - The response's http status code.
newCreateStreamingDistributionWithTagsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateStreamingDistributionWithTagsResponse
newCreateStreamingDistributionWithTagsResponse :: Int -> CreateStreamingDistributionWithTagsResponse
newCreateStreamingDistributionWithTagsResponse
  Int
pHttpStatus_ =
    CreateStreamingDistributionWithTagsResponse' :: Maybe Text
-> Maybe Text
-> Maybe StreamingDistribution
-> Int
-> CreateStreamingDistributionWithTagsResponse
CreateStreamingDistributionWithTagsResponse'
      { $sel:eTag:CreateStreamingDistributionWithTagsResponse' :: Maybe Text
eTag =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:location:CreateStreamingDistributionWithTagsResponse' :: Maybe Text
location = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:streamingDistribution:CreateStreamingDistributionWithTagsResponse' :: Maybe StreamingDistribution
streamingDistribution =
          Maybe StreamingDistribution
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:CreateStreamingDistributionWithTagsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The current version of the distribution created.
createStreamingDistributionWithTagsResponse_eTag :: Lens.Lens' CreateStreamingDistributionWithTagsResponse (Prelude.Maybe Prelude.Text)
createStreamingDistributionWithTagsResponse_eTag :: (Maybe Text -> f (Maybe Text))
-> CreateStreamingDistributionWithTagsResponse
-> f CreateStreamingDistributionWithTagsResponse
createStreamingDistributionWithTagsResponse_eTag = (CreateStreamingDistributionWithTagsResponse -> Maybe Text)
-> (CreateStreamingDistributionWithTagsResponse
    -> Maybe Text -> CreateStreamingDistributionWithTagsResponse)
-> Lens
     CreateStreamingDistributionWithTagsResponse
     CreateStreamingDistributionWithTagsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingDistributionWithTagsResponse' {Maybe Text
eTag :: Maybe Text
$sel:eTag:CreateStreamingDistributionWithTagsResponse' :: CreateStreamingDistributionWithTagsResponse -> Maybe Text
eTag} -> Maybe Text
eTag) (\s :: CreateStreamingDistributionWithTagsResponse
s@CreateStreamingDistributionWithTagsResponse' {} Maybe Text
a -> CreateStreamingDistributionWithTagsResponse
s {$sel:eTag:CreateStreamingDistributionWithTagsResponse' :: Maybe Text
eTag = Maybe Text
a} :: CreateStreamingDistributionWithTagsResponse)

-- | The fully qualified URI of the new streaming distribution resource just
-- created.
createStreamingDistributionWithTagsResponse_location :: Lens.Lens' CreateStreamingDistributionWithTagsResponse (Prelude.Maybe Prelude.Text)
createStreamingDistributionWithTagsResponse_location :: (Maybe Text -> f (Maybe Text))
-> CreateStreamingDistributionWithTagsResponse
-> f CreateStreamingDistributionWithTagsResponse
createStreamingDistributionWithTagsResponse_location = (CreateStreamingDistributionWithTagsResponse -> Maybe Text)
-> (CreateStreamingDistributionWithTagsResponse
    -> Maybe Text -> CreateStreamingDistributionWithTagsResponse)
-> Lens
     CreateStreamingDistributionWithTagsResponse
     CreateStreamingDistributionWithTagsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingDistributionWithTagsResponse' {Maybe Text
location :: Maybe Text
$sel:location:CreateStreamingDistributionWithTagsResponse' :: CreateStreamingDistributionWithTagsResponse -> Maybe Text
location} -> Maybe Text
location) (\s :: CreateStreamingDistributionWithTagsResponse
s@CreateStreamingDistributionWithTagsResponse' {} Maybe Text
a -> CreateStreamingDistributionWithTagsResponse
s {$sel:location:CreateStreamingDistributionWithTagsResponse' :: Maybe Text
location = Maybe Text
a} :: CreateStreamingDistributionWithTagsResponse)

-- | The streaming distribution\'s information.
createStreamingDistributionWithTagsResponse_streamingDistribution :: Lens.Lens' CreateStreamingDistributionWithTagsResponse (Prelude.Maybe StreamingDistribution)
createStreamingDistributionWithTagsResponse_streamingDistribution :: (Maybe StreamingDistribution -> f (Maybe StreamingDistribution))
-> CreateStreamingDistributionWithTagsResponse
-> f CreateStreamingDistributionWithTagsResponse
createStreamingDistributionWithTagsResponse_streamingDistribution = (CreateStreamingDistributionWithTagsResponse
 -> Maybe StreamingDistribution)
-> (CreateStreamingDistributionWithTagsResponse
    -> Maybe StreamingDistribution
    -> CreateStreamingDistributionWithTagsResponse)
-> Lens
     CreateStreamingDistributionWithTagsResponse
     CreateStreamingDistributionWithTagsResponse
     (Maybe StreamingDistribution)
     (Maybe StreamingDistribution)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingDistributionWithTagsResponse' {Maybe StreamingDistribution
streamingDistribution :: Maybe StreamingDistribution
$sel:streamingDistribution:CreateStreamingDistributionWithTagsResponse' :: CreateStreamingDistributionWithTagsResponse
-> Maybe StreamingDistribution
streamingDistribution} -> Maybe StreamingDistribution
streamingDistribution) (\s :: CreateStreamingDistributionWithTagsResponse
s@CreateStreamingDistributionWithTagsResponse' {} Maybe StreamingDistribution
a -> CreateStreamingDistributionWithTagsResponse
s {$sel:streamingDistribution:CreateStreamingDistributionWithTagsResponse' :: Maybe StreamingDistribution
streamingDistribution = Maybe StreamingDistribution
a} :: CreateStreamingDistributionWithTagsResponse)

-- | The response's http status code.
createStreamingDistributionWithTagsResponse_httpStatus :: Lens.Lens' CreateStreamingDistributionWithTagsResponse Prelude.Int
createStreamingDistributionWithTagsResponse_httpStatus :: (Int -> f Int)
-> CreateStreamingDistributionWithTagsResponse
-> f CreateStreamingDistributionWithTagsResponse
createStreamingDistributionWithTagsResponse_httpStatus = (CreateStreamingDistributionWithTagsResponse -> Int)
-> (CreateStreamingDistributionWithTagsResponse
    -> Int -> CreateStreamingDistributionWithTagsResponse)
-> Lens
     CreateStreamingDistributionWithTagsResponse
     CreateStreamingDistributionWithTagsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateStreamingDistributionWithTagsResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateStreamingDistributionWithTagsResponse' :: CreateStreamingDistributionWithTagsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateStreamingDistributionWithTagsResponse
s@CreateStreamingDistributionWithTagsResponse' {} Int
a -> CreateStreamingDistributionWithTagsResponse
s {$sel:httpStatus:CreateStreamingDistributionWithTagsResponse' :: Int
httpStatus = Int
a} :: CreateStreamingDistributionWithTagsResponse)

instance
  Prelude.NFData
    CreateStreamingDistributionWithTagsResponse