{-# 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.MediaPackageVOD.DescribeAsset
-- 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)
--
-- Returns a description of a MediaPackage VOD Asset resource.
module Amazonka.MediaPackageVOD.DescribeAsset
  ( -- * Creating a Request
    DescribeAsset (..),
    newDescribeAsset,

    -- * Request Lenses
    describeAsset_id,

    -- * Destructuring the Response
    DescribeAssetResponse (..),
    newDescribeAssetResponse,

    -- * Response Lenses
    describeAssetResponse_resourceId,
    describeAssetResponse_arn,
    describeAssetResponse_createdAt,
    describeAssetResponse_packagingGroupId,
    describeAssetResponse_sourceArn,
    describeAssetResponse_sourceRoleArn,
    describeAssetResponse_id,
    describeAssetResponse_egressEndpoints,
    describeAssetResponse_tags,
    describeAssetResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeAsset' smart constructor.
data DescribeAsset = DescribeAsset'
  { -- | The ID of an MediaPackage VOD Asset resource.
    DescribeAsset -> Text
id :: Prelude.Text
  }
  deriving (DescribeAsset -> DescribeAsset -> Bool
(DescribeAsset -> DescribeAsset -> Bool)
-> (DescribeAsset -> DescribeAsset -> Bool) -> Eq DescribeAsset
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAsset -> DescribeAsset -> Bool
$c/= :: DescribeAsset -> DescribeAsset -> Bool
== :: DescribeAsset -> DescribeAsset -> Bool
$c== :: DescribeAsset -> DescribeAsset -> Bool
Prelude.Eq, ReadPrec [DescribeAsset]
ReadPrec DescribeAsset
Int -> ReadS DescribeAsset
ReadS [DescribeAsset]
(Int -> ReadS DescribeAsset)
-> ReadS [DescribeAsset]
-> ReadPrec DescribeAsset
-> ReadPrec [DescribeAsset]
-> Read DescribeAsset
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAsset]
$creadListPrec :: ReadPrec [DescribeAsset]
readPrec :: ReadPrec DescribeAsset
$creadPrec :: ReadPrec DescribeAsset
readList :: ReadS [DescribeAsset]
$creadList :: ReadS [DescribeAsset]
readsPrec :: Int -> ReadS DescribeAsset
$creadsPrec :: Int -> ReadS DescribeAsset
Prelude.Read, Int -> DescribeAsset -> ShowS
[DescribeAsset] -> ShowS
DescribeAsset -> String
(Int -> DescribeAsset -> ShowS)
-> (DescribeAsset -> String)
-> ([DescribeAsset] -> ShowS)
-> Show DescribeAsset
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAsset] -> ShowS
$cshowList :: [DescribeAsset] -> ShowS
show :: DescribeAsset -> String
$cshow :: DescribeAsset -> String
showsPrec :: Int -> DescribeAsset -> ShowS
$cshowsPrec :: Int -> DescribeAsset -> ShowS
Prelude.Show, (forall x. DescribeAsset -> Rep DescribeAsset x)
-> (forall x. Rep DescribeAsset x -> DescribeAsset)
-> Generic DescribeAsset
forall x. Rep DescribeAsset x -> DescribeAsset
forall x. DescribeAsset -> Rep DescribeAsset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAsset x -> DescribeAsset
$cfrom :: forall x. DescribeAsset -> Rep DescribeAsset x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAsset' 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:
--
-- 'id', 'describeAsset_id' - The ID of an MediaPackage VOD Asset resource.
newDescribeAsset ::
  -- | 'id'
  Prelude.Text ->
  DescribeAsset
newDescribeAsset :: Text -> DescribeAsset
newDescribeAsset Text
pId_ = DescribeAsset' :: Text -> DescribeAsset
DescribeAsset' {$sel:id:DescribeAsset' :: Text
id = Text
pId_}

-- | The ID of an MediaPackage VOD Asset resource.
describeAsset_id :: Lens.Lens' DescribeAsset Prelude.Text
describeAsset_id :: (Text -> f Text) -> DescribeAsset -> f DescribeAsset
describeAsset_id = (DescribeAsset -> Text)
-> (DescribeAsset -> Text -> DescribeAsset)
-> Lens DescribeAsset DescribeAsset Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAsset' {Text
id :: Text
$sel:id:DescribeAsset' :: DescribeAsset -> Text
id} -> Text
id) (\s :: DescribeAsset
s@DescribeAsset' {} Text
a -> DescribeAsset
s {$sel:id:DescribeAsset' :: Text
id = Text
a} :: DescribeAsset)

instance Core.AWSRequest DescribeAsset where
  type
    AWSResponse DescribeAsset =
      DescribeAssetResponse
  request :: DescribeAsset -> Request DescribeAsset
request = Service -> DescribeAsset -> Request DescribeAsset
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAsset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeAsset)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeAsset))
-> Logger
-> Service
-> Proxy DescribeAsset
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeAsset)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [EgressEndpoint]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeAssetResponse
DescribeAssetResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe [EgressEndpoint]
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
forall (f :: * -> *) a b. Functor 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
"resourceId")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
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 Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
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
"createdAt")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
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
"packagingGroupId")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
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
"sourceArn")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeAssetResponse)
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
"sourceRoleArn")
            Either
  String
  (Maybe Text
   -> Maybe [EgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeAssetResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [EgressEndpoint]
      -> Maybe (HashMap Text Text) -> Int -> DescribeAssetResponse)
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 [EgressEndpoint]
   -> Maybe (HashMap Text Text) -> Int -> DescribeAssetResponse)
-> Either String (Maybe [EgressEndpoint])
-> Either
     String (Maybe (HashMap Text Text) -> Int -> DescribeAssetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [EgressEndpoint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressEndpoints"
                            Either String (Maybe (Maybe [EgressEndpoint]))
-> Maybe [EgressEndpoint] -> Either String (Maybe [EgressEndpoint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EgressEndpoint]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe (HashMap Text Text) -> Int -> DescribeAssetResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeAssetResponse)
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 -> DescribeAssetResponse)
-> Either String Int -> Either String DescribeAssetResponse
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 DescribeAsset

instance Prelude.NFData DescribeAsset

instance Core.ToHeaders DescribeAsset where
  toHeaders :: DescribeAsset -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeAsset -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeAsset where
  toPath :: DescribeAsset -> ByteString
toPath DescribeAsset' {Text
id :: Text
$sel:id:DescribeAsset' :: DescribeAsset -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/assets/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]

instance Core.ToQuery DescribeAsset where
  toQuery :: DescribeAsset -> QueryString
toQuery = QueryString -> DescribeAsset -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeAssetResponse' smart constructor.
data DescribeAssetResponse = DescribeAssetResponse'
  { -- | The resource ID to include in SPEKE key requests.
    DescribeAssetResponse -> Maybe Text
resourceId :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the Asset.
    DescribeAssetResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The time the Asset was initially submitted for Ingest.
    DescribeAssetResponse -> Maybe Text
createdAt :: Prelude.Maybe Prelude.Text,
    -- | The ID of the PackagingGroup for the Asset.
    DescribeAssetResponse -> Maybe Text
packagingGroupId :: Prelude.Maybe Prelude.Text,
    -- | ARN of the source object in S3.
    DescribeAssetResponse -> Maybe Text
sourceArn :: Prelude.Maybe Prelude.Text,
    -- | The IAM role_arn used to access the source S3 bucket.
    DescribeAssetResponse -> Maybe Text
sourceRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the Asset.
    DescribeAssetResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The list of egress endpoints available for the Asset.
    DescribeAssetResponse -> Maybe [EgressEndpoint]
egressEndpoints :: Prelude.Maybe [EgressEndpoint],
    DescribeAssetResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeAssetResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAssetResponse -> DescribeAssetResponse -> Bool
(DescribeAssetResponse -> DescribeAssetResponse -> Bool)
-> (DescribeAssetResponse -> DescribeAssetResponse -> Bool)
-> Eq DescribeAssetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssetResponse -> DescribeAssetResponse -> Bool
$c/= :: DescribeAssetResponse -> DescribeAssetResponse -> Bool
== :: DescribeAssetResponse -> DescribeAssetResponse -> Bool
$c== :: DescribeAssetResponse -> DescribeAssetResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAssetResponse]
ReadPrec DescribeAssetResponse
Int -> ReadS DescribeAssetResponse
ReadS [DescribeAssetResponse]
(Int -> ReadS DescribeAssetResponse)
-> ReadS [DescribeAssetResponse]
-> ReadPrec DescribeAssetResponse
-> ReadPrec [DescribeAssetResponse]
-> Read DescribeAssetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssetResponse]
$creadListPrec :: ReadPrec [DescribeAssetResponse]
readPrec :: ReadPrec DescribeAssetResponse
$creadPrec :: ReadPrec DescribeAssetResponse
readList :: ReadS [DescribeAssetResponse]
$creadList :: ReadS [DescribeAssetResponse]
readsPrec :: Int -> ReadS DescribeAssetResponse
$creadsPrec :: Int -> ReadS DescribeAssetResponse
Prelude.Read, Int -> DescribeAssetResponse -> ShowS
[DescribeAssetResponse] -> ShowS
DescribeAssetResponse -> String
(Int -> DescribeAssetResponse -> ShowS)
-> (DescribeAssetResponse -> String)
-> ([DescribeAssetResponse] -> ShowS)
-> Show DescribeAssetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssetResponse] -> ShowS
$cshowList :: [DescribeAssetResponse] -> ShowS
show :: DescribeAssetResponse -> String
$cshow :: DescribeAssetResponse -> String
showsPrec :: Int -> DescribeAssetResponse -> ShowS
$cshowsPrec :: Int -> DescribeAssetResponse -> ShowS
Prelude.Show, (forall x. DescribeAssetResponse -> Rep DescribeAssetResponse x)
-> (forall x. Rep DescribeAssetResponse x -> DescribeAssetResponse)
-> Generic DescribeAssetResponse
forall x. Rep DescribeAssetResponse x -> DescribeAssetResponse
forall x. DescribeAssetResponse -> Rep DescribeAssetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAssetResponse x -> DescribeAssetResponse
$cfrom :: forall x. DescribeAssetResponse -> Rep DescribeAssetResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAssetResponse' 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:
--
-- 'resourceId', 'describeAssetResponse_resourceId' - The resource ID to include in SPEKE key requests.
--
-- 'arn', 'describeAssetResponse_arn' - The ARN of the Asset.
--
-- 'createdAt', 'describeAssetResponse_createdAt' - The time the Asset was initially submitted for Ingest.
--
-- 'packagingGroupId', 'describeAssetResponse_packagingGroupId' - The ID of the PackagingGroup for the Asset.
--
-- 'sourceArn', 'describeAssetResponse_sourceArn' - ARN of the source object in S3.
--
-- 'sourceRoleArn', 'describeAssetResponse_sourceRoleArn' - The IAM role_arn used to access the source S3 bucket.
--
-- 'id', 'describeAssetResponse_id' - The unique identifier for the Asset.
--
-- 'egressEndpoints', 'describeAssetResponse_egressEndpoints' - The list of egress endpoints available for the Asset.
--
-- 'tags', 'describeAssetResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'describeAssetResponse_httpStatus' - The response's http status code.
newDescribeAssetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAssetResponse
newDescribeAssetResponse :: Int -> DescribeAssetResponse
newDescribeAssetResponse Int
pHttpStatus_ =
  DescribeAssetResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [EgressEndpoint]
-> Maybe (HashMap Text Text)
-> Int
-> DescribeAssetResponse
DescribeAssetResponse'
    { $sel:resourceId:DescribeAssetResponse' :: Maybe Text
resourceId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeAssetResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:DescribeAssetResponse' :: Maybe Text
createdAt = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:packagingGroupId:DescribeAssetResponse' :: Maybe Text
packagingGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceArn:DescribeAssetResponse' :: Maybe Text
sourceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceRoleArn:DescribeAssetResponse' :: Maybe Text
sourceRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:DescribeAssetResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:egressEndpoints:DescribeAssetResponse' :: Maybe [EgressEndpoint]
egressEndpoints = Maybe [EgressEndpoint]
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeAssetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeAssetResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The resource ID to include in SPEKE key requests.
describeAssetResponse_resourceId :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_resourceId :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_resourceId = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
resourceId :: Maybe Text
$sel:resourceId:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
resourceId} -> Maybe Text
resourceId) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:resourceId:DescribeAssetResponse' :: Maybe Text
resourceId = Maybe Text
a} :: DescribeAssetResponse)

-- | The ARN of the Asset.
describeAssetResponse_arn :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_arn = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:arn:DescribeAssetResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeAssetResponse)

-- | The time the Asset was initially submitted for Ingest.
describeAssetResponse_createdAt :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_createdAt :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_createdAt = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
createdAt :: Maybe Text
$sel:createdAt:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
createdAt} -> Maybe Text
createdAt) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:createdAt:DescribeAssetResponse' :: Maybe Text
createdAt = Maybe Text
a} :: DescribeAssetResponse)

-- | The ID of the PackagingGroup for the Asset.
describeAssetResponse_packagingGroupId :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_packagingGroupId :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_packagingGroupId = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
packagingGroupId :: Maybe Text
$sel:packagingGroupId:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
packagingGroupId} -> Maybe Text
packagingGroupId) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:packagingGroupId:DescribeAssetResponse' :: Maybe Text
packagingGroupId = Maybe Text
a} :: DescribeAssetResponse)

-- | ARN of the source object in S3.
describeAssetResponse_sourceArn :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_sourceArn :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_sourceArn = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
sourceArn :: Maybe Text
$sel:sourceArn:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
sourceArn} -> Maybe Text
sourceArn) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:sourceArn:DescribeAssetResponse' :: Maybe Text
sourceArn = Maybe Text
a} :: DescribeAssetResponse)

-- | The IAM role_arn used to access the source S3 bucket.
describeAssetResponse_sourceRoleArn :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_sourceRoleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_sourceRoleArn = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
sourceRoleArn :: Maybe Text
$sel:sourceRoleArn:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
sourceRoleArn} -> Maybe Text
sourceRoleArn) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:sourceRoleArn:DescribeAssetResponse' :: Maybe Text
sourceRoleArn = Maybe Text
a} :: DescribeAssetResponse)

-- | The unique identifier for the Asset.
describeAssetResponse_id :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe Prelude.Text)
describeAssetResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_id = (DescribeAssetResponse -> Maybe Text)
-> (DescribeAssetResponse -> Maybe Text -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe Text
a -> DescribeAssetResponse
s {$sel:id:DescribeAssetResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeAssetResponse)

-- | The list of egress endpoints available for the Asset.
describeAssetResponse_egressEndpoints :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe [EgressEndpoint])
describeAssetResponse_egressEndpoints :: (Maybe [EgressEndpoint] -> f (Maybe [EgressEndpoint]))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_egressEndpoints = (DescribeAssetResponse -> Maybe [EgressEndpoint])
-> (DescribeAssetResponse
    -> Maybe [EgressEndpoint] -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (Maybe [EgressEndpoint])
     (Maybe [EgressEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssetResponse' {Maybe [EgressEndpoint]
egressEndpoints :: Maybe [EgressEndpoint]
$sel:egressEndpoints:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe [EgressEndpoint]
egressEndpoints} -> Maybe [EgressEndpoint]
egressEndpoints) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe [EgressEndpoint]
a -> DescribeAssetResponse
s {$sel:egressEndpoints:DescribeAssetResponse' :: Maybe [EgressEndpoint]
egressEndpoints = Maybe [EgressEndpoint]
a} :: DescribeAssetResponse) ((Maybe [EgressEndpoint] -> f (Maybe [EgressEndpoint]))
 -> DescribeAssetResponse -> f DescribeAssetResponse)
-> ((Maybe [EgressEndpoint] -> f (Maybe [EgressEndpoint]))
    -> Maybe [EgressEndpoint] -> f (Maybe [EgressEndpoint]))
-> (Maybe [EgressEndpoint] -> f (Maybe [EgressEndpoint]))
-> DescribeAssetResponse
-> f DescribeAssetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EgressEndpoint] [EgressEndpoint] [EgressEndpoint] [EgressEndpoint]
-> Iso
     (Maybe [EgressEndpoint])
     (Maybe [EgressEndpoint])
     (Maybe [EgressEndpoint])
     (Maybe [EgressEndpoint])
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
  [EgressEndpoint] [EgressEndpoint] [EgressEndpoint] [EgressEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
describeAssetResponse_tags :: Lens.Lens' DescribeAssetResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeAssetResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeAssetResponse -> f DescribeAssetResponse
describeAssetResponse_tags = (DescribeAssetResponse -> Maybe (HashMap Text Text))
-> (DescribeAssetResponse
    -> Maybe (HashMap Text Text) -> DescribeAssetResponse)
-> Lens
     DescribeAssetResponse
     DescribeAssetResponse
     (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 (\DescribeAssetResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeAssetResponse' :: DescribeAssetResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeAssetResponse
s@DescribeAssetResponse' {} Maybe (HashMap Text Text)
a -> DescribeAssetResponse
s {$sel:tags:DescribeAssetResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeAssetResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeAssetResponse -> f DescribeAssetResponse)
-> ((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)))
-> DescribeAssetResponse
-> f DescribeAssetResponse
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

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

instance Prelude.NFData DescribeAssetResponse