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

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

-- |
-- Module      : Amazonka.MediaConnect.Types.Source
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConnect.Types.Source where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaConnect.Types.Encryption
import Amazonka.MediaConnect.Types.MediaStreamSourceConfiguration
import Amazonka.MediaConnect.Types.Transport
import qualified Amazonka.Prelude as Prelude

-- | The settings for the source of the flow.
--
-- /See:/ 'newSource' smart constructor.
data Source = Source'
  { -- | Percentage from 0-100 of the data transfer cost to be billed to the
    -- subscriber.
    Source -> Maybe Int
dataTransferSubscriberFeePercent :: Prelude.Maybe Prelude.Int,
    -- | The type of encryption that is used on the content ingested from this
    -- source.
    Source -> Maybe Encryption
decryption :: Prelude.Maybe Encryption,
    -- | A description for the source. This value is not used or seen outside of
    -- the current AWS Elemental MediaConnect account.
    Source -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the entitlement that allows you to subscribe to content that
    -- comes from another AWS account. The entitlement is set by the content
    -- originator and the ARN is generated as part of the originator\'s flow.
    Source -> Maybe Text
entitlementArn :: Prelude.Maybe Prelude.Text,
    -- | The IP address that the flow will be listening on for incoming content.
    Source -> Maybe Text
ingestIp :: Prelude.Maybe Prelude.Text,
    -- | The port that the flow will be listening on for incoming content.
    Source -> Maybe Int
ingestPort :: Prelude.Maybe Prelude.Int,
    -- | The media streams that are associated with the source, and the
    -- parameters for those associations.
    Source -> Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations :: Prelude.Maybe [MediaStreamSourceConfiguration],
    -- | The port that the flow uses to send outbound requests to initiate
    -- connection with the sender.
    Source -> Maybe Int
senderControlPort :: Prelude.Maybe Prelude.Int,
    -- | The IP address that the flow communicates with to initiate connection
    -- with the sender.
    Source -> Maybe Text
senderIpAddress :: Prelude.Maybe Prelude.Text,
    -- | Attributes related to the transport stream that are used in the source.
    Source -> Maybe Transport
transport :: Prelude.Maybe Transport,
    -- | The name of the VPC interface that is used for this source.
    Source -> Maybe Text
vpcInterfaceName :: Prelude.Maybe Prelude.Text,
    -- | The range of IP addresses that should be allowed to contribute content
    -- to your source. These IP addresses should be in the form of a Classless
    -- Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
    Source -> Maybe Text
whitelistCidr :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the source.
    Source -> Text
sourceArn :: Prelude.Text,
    -- | The name of the source.
    Source -> Text
name :: Prelude.Text
  }
  deriving (Source -> Source -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Source -> Source -> Bool
$c/= :: Source -> Source -> Bool
== :: Source -> Source -> Bool
$c== :: Source -> Source -> Bool
Prelude.Eq, ReadPrec [Source]
ReadPrec Source
Int -> ReadS Source
ReadS [Source]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Source]
$creadListPrec :: ReadPrec [Source]
readPrec :: ReadPrec Source
$creadPrec :: ReadPrec Source
readList :: ReadS [Source]
$creadList :: ReadS [Source]
readsPrec :: Int -> ReadS Source
$creadsPrec :: Int -> ReadS Source
Prelude.Read, Int -> Source -> ShowS
[Source] -> ShowS
Source -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Source] -> ShowS
$cshowList :: [Source] -> ShowS
show :: Source -> String
$cshow :: Source -> String
showsPrec :: Int -> Source -> ShowS
$cshowsPrec :: Int -> Source -> ShowS
Prelude.Show, forall x. Rep Source x -> Source
forall x. Source -> Rep Source x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Source x -> Source
$cfrom :: forall x. Source -> Rep Source x
Prelude.Generic)

-- |
-- Create a value of 'Source' 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:
--
-- 'dataTransferSubscriberFeePercent', 'source_dataTransferSubscriberFeePercent' - Percentage from 0-100 of the data transfer cost to be billed to the
-- subscriber.
--
-- 'decryption', 'source_decryption' - The type of encryption that is used on the content ingested from this
-- source.
--
-- 'description', 'source_description' - A description for the source. This value is not used or seen outside of
-- the current AWS Elemental MediaConnect account.
--
-- 'entitlementArn', 'source_entitlementArn' - The ARN of the entitlement that allows you to subscribe to content that
-- comes from another AWS account. The entitlement is set by the content
-- originator and the ARN is generated as part of the originator\'s flow.
--
-- 'ingestIp', 'source_ingestIp' - The IP address that the flow will be listening on for incoming content.
--
-- 'ingestPort', 'source_ingestPort' - The port that the flow will be listening on for incoming content.
--
-- 'mediaStreamSourceConfigurations', 'source_mediaStreamSourceConfigurations' - The media streams that are associated with the source, and the
-- parameters for those associations.
--
-- 'senderControlPort', 'source_senderControlPort' - The port that the flow uses to send outbound requests to initiate
-- connection with the sender.
--
-- 'senderIpAddress', 'source_senderIpAddress' - The IP address that the flow communicates with to initiate connection
-- with the sender.
--
-- 'transport', 'source_transport' - Attributes related to the transport stream that are used in the source.
--
-- 'vpcInterfaceName', 'source_vpcInterfaceName' - The name of the VPC interface that is used for this source.
--
-- 'whitelistCidr', 'source_whitelistCidr' - The range of IP addresses that should be allowed to contribute content
-- to your source. These IP addresses should be in the form of a Classless
-- Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
--
-- 'sourceArn', 'source_sourceArn' - The ARN of the source.
--
-- 'name', 'source_name' - The name of the source.
newSource ::
  -- | 'sourceArn'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  Source
newSource :: Text -> Text -> Source
newSource Text
pSourceArn_ Text
pName_ =
  Source'
    { $sel:dataTransferSubscriberFeePercent:Source' :: Maybe Int
dataTransferSubscriberFeePercent =
        forall a. Maybe a
Prelude.Nothing,
      $sel:decryption:Source' :: Maybe Encryption
decryption = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Source' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:entitlementArn:Source' :: Maybe Text
entitlementArn = forall a. Maybe a
Prelude.Nothing,
      $sel:ingestIp:Source' :: Maybe Text
ingestIp = forall a. Maybe a
Prelude.Nothing,
      $sel:ingestPort:Source' :: Maybe Int
ingestPort = forall a. Maybe a
Prelude.Nothing,
      $sel:mediaStreamSourceConfigurations:Source' :: Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations = forall a. Maybe a
Prelude.Nothing,
      $sel:senderControlPort:Source' :: Maybe Int
senderControlPort = forall a. Maybe a
Prelude.Nothing,
      $sel:senderIpAddress:Source' :: Maybe Text
senderIpAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:transport:Source' :: Maybe Transport
transport = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcInterfaceName:Source' :: Maybe Text
vpcInterfaceName = forall a. Maybe a
Prelude.Nothing,
      $sel:whitelistCidr:Source' :: Maybe Text
whitelistCidr = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceArn:Source' :: Text
sourceArn = Text
pSourceArn_,
      $sel:name:Source' :: Text
name = Text
pName_
    }

-- | Percentage from 0-100 of the data transfer cost to be billed to the
-- subscriber.
source_dataTransferSubscriberFeePercent :: Lens.Lens' Source (Prelude.Maybe Prelude.Int)
source_dataTransferSubscriberFeePercent :: Lens' Source (Maybe Int)
source_dataTransferSubscriberFeePercent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Int
dataTransferSubscriberFeePercent :: Maybe Int
$sel:dataTransferSubscriberFeePercent:Source' :: Source -> Maybe Int
dataTransferSubscriberFeePercent} -> Maybe Int
dataTransferSubscriberFeePercent) (\s :: Source
s@Source' {} Maybe Int
a -> Source
s {$sel:dataTransferSubscriberFeePercent:Source' :: Maybe Int
dataTransferSubscriberFeePercent = Maybe Int
a} :: Source)

-- | The type of encryption that is used on the content ingested from this
-- source.
source_decryption :: Lens.Lens' Source (Prelude.Maybe Encryption)
source_decryption :: Lens' Source (Maybe Encryption)
source_decryption = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Encryption
decryption :: Maybe Encryption
$sel:decryption:Source' :: Source -> Maybe Encryption
decryption} -> Maybe Encryption
decryption) (\s :: Source
s@Source' {} Maybe Encryption
a -> Source
s {$sel:decryption:Source' :: Maybe Encryption
decryption = Maybe Encryption
a} :: Source)

-- | A description for the source. This value is not used or seen outside of
-- the current AWS Elemental MediaConnect account.
source_description :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_description :: Lens' Source (Maybe Text)
source_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
description :: Maybe Text
$sel:description:Source' :: Source -> Maybe Text
description} -> Maybe Text
description) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:description:Source' :: Maybe Text
description = Maybe Text
a} :: Source)

-- | The ARN of the entitlement that allows you to subscribe to content that
-- comes from another AWS account. The entitlement is set by the content
-- originator and the ARN is generated as part of the originator\'s flow.
source_entitlementArn :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_entitlementArn :: Lens' Source (Maybe Text)
source_entitlementArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
entitlementArn :: Maybe Text
$sel:entitlementArn:Source' :: Source -> Maybe Text
entitlementArn} -> Maybe Text
entitlementArn) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:entitlementArn:Source' :: Maybe Text
entitlementArn = Maybe Text
a} :: Source)

-- | The IP address that the flow will be listening on for incoming content.
source_ingestIp :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_ingestIp :: Lens' Source (Maybe Text)
source_ingestIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
ingestIp :: Maybe Text
$sel:ingestIp:Source' :: Source -> Maybe Text
ingestIp} -> Maybe Text
ingestIp) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:ingestIp:Source' :: Maybe Text
ingestIp = Maybe Text
a} :: Source)

-- | The port that the flow will be listening on for incoming content.
source_ingestPort :: Lens.Lens' Source (Prelude.Maybe Prelude.Int)
source_ingestPort :: Lens' Source (Maybe Int)
source_ingestPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Int
ingestPort :: Maybe Int
$sel:ingestPort:Source' :: Source -> Maybe Int
ingestPort} -> Maybe Int
ingestPort) (\s :: Source
s@Source' {} Maybe Int
a -> Source
s {$sel:ingestPort:Source' :: Maybe Int
ingestPort = Maybe Int
a} :: Source)

-- | The media streams that are associated with the source, and the
-- parameters for those associations.
source_mediaStreamSourceConfigurations :: Lens.Lens' Source (Prelude.Maybe [MediaStreamSourceConfiguration])
source_mediaStreamSourceConfigurations :: Lens' Source (Maybe [MediaStreamSourceConfiguration])
source_mediaStreamSourceConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations :: Maybe [MediaStreamSourceConfiguration]
$sel:mediaStreamSourceConfigurations:Source' :: Source -> Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations} -> Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations) (\s :: Source
s@Source' {} Maybe [MediaStreamSourceConfiguration]
a -> Source
s {$sel:mediaStreamSourceConfigurations:Source' :: Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations = Maybe [MediaStreamSourceConfiguration]
a} :: Source) 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

-- | The port that the flow uses to send outbound requests to initiate
-- connection with the sender.
source_senderControlPort :: Lens.Lens' Source (Prelude.Maybe Prelude.Int)
source_senderControlPort :: Lens' Source (Maybe Int)
source_senderControlPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Int
senderControlPort :: Maybe Int
$sel:senderControlPort:Source' :: Source -> Maybe Int
senderControlPort} -> Maybe Int
senderControlPort) (\s :: Source
s@Source' {} Maybe Int
a -> Source
s {$sel:senderControlPort:Source' :: Maybe Int
senderControlPort = Maybe Int
a} :: Source)

-- | The IP address that the flow communicates with to initiate connection
-- with the sender.
source_senderIpAddress :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_senderIpAddress :: Lens' Source (Maybe Text)
source_senderIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
senderIpAddress :: Maybe Text
$sel:senderIpAddress:Source' :: Source -> Maybe Text
senderIpAddress} -> Maybe Text
senderIpAddress) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:senderIpAddress:Source' :: Maybe Text
senderIpAddress = Maybe Text
a} :: Source)

-- | Attributes related to the transport stream that are used in the source.
source_transport :: Lens.Lens' Source (Prelude.Maybe Transport)
source_transport :: Lens' Source (Maybe Transport)
source_transport = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Transport
transport :: Maybe Transport
$sel:transport:Source' :: Source -> Maybe Transport
transport} -> Maybe Transport
transport) (\s :: Source
s@Source' {} Maybe Transport
a -> Source
s {$sel:transport:Source' :: Maybe Transport
transport = Maybe Transport
a} :: Source)

-- | The name of the VPC interface that is used for this source.
source_vpcInterfaceName :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_vpcInterfaceName :: Lens' Source (Maybe Text)
source_vpcInterfaceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
vpcInterfaceName :: Maybe Text
$sel:vpcInterfaceName:Source' :: Source -> Maybe Text
vpcInterfaceName} -> Maybe Text
vpcInterfaceName) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:vpcInterfaceName:Source' :: Maybe Text
vpcInterfaceName = Maybe Text
a} :: Source)

-- | The range of IP addresses that should be allowed to contribute content
-- to your source. These IP addresses should be in the form of a Classless
-- Inter-Domain Routing (CIDR) block; for example, 10.0.0.0\/16.
source_whitelistCidr :: Lens.Lens' Source (Prelude.Maybe Prelude.Text)
source_whitelistCidr :: Lens' Source (Maybe Text)
source_whitelistCidr = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Maybe Text
whitelistCidr :: Maybe Text
$sel:whitelistCidr:Source' :: Source -> Maybe Text
whitelistCidr} -> Maybe Text
whitelistCidr) (\s :: Source
s@Source' {} Maybe Text
a -> Source
s {$sel:whitelistCidr:Source' :: Maybe Text
whitelistCidr = Maybe Text
a} :: Source)

-- | The ARN of the source.
source_sourceArn :: Lens.Lens' Source Prelude.Text
source_sourceArn :: Lens' Source Text
source_sourceArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Text
sourceArn :: Text
$sel:sourceArn:Source' :: Source -> Text
sourceArn} -> Text
sourceArn) (\s :: Source
s@Source' {} Text
a -> Source
s {$sel:sourceArn:Source' :: Text
sourceArn = Text
a} :: Source)

-- | The name of the source.
source_name :: Lens.Lens' Source Prelude.Text
source_name :: Lens' Source Text
source_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Source' {Text
name :: Text
$sel:name:Source' :: Source -> Text
name} -> Text
name) (\s :: Source
s@Source' {} Text
a -> Source
s {$sel:name:Source' :: Text
name = Text
a} :: Source)

instance Data.FromJSON Source where
  parseJSON :: Value -> Parser Source
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Source"
      ( \Object
x ->
          Maybe Int
-> Maybe Encryption
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe [MediaStreamSourceConfiguration]
-> Maybe Int
-> Maybe Text
-> Maybe Transport
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Source
Source'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dataTransferSubscriberFeePercent")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"decryption")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"entitlementArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ingestIp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ingestPort")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"mediaStreamSourceConfigurations"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= 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 -> Parser (Maybe a)
Data..:? Key
"senderControlPort")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"senderIpAddress")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"transport")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"vpcInterfaceName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"whitelistCidr")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"sourceArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"name")
      )

instance Prelude.Hashable Source where
  hashWithSalt :: Int -> Source -> Int
hashWithSalt Int
_salt Source' {Maybe Int
Maybe [MediaStreamSourceConfiguration]
Maybe Text
Maybe Encryption
Maybe Transport
Text
name :: Text
sourceArn :: Text
whitelistCidr :: Maybe Text
vpcInterfaceName :: Maybe Text
transport :: Maybe Transport
senderIpAddress :: Maybe Text
senderControlPort :: Maybe Int
mediaStreamSourceConfigurations :: Maybe [MediaStreamSourceConfiguration]
ingestPort :: Maybe Int
ingestIp :: Maybe Text
entitlementArn :: Maybe Text
description :: Maybe Text
decryption :: Maybe Encryption
dataTransferSubscriberFeePercent :: Maybe Int
$sel:name:Source' :: Source -> Text
$sel:sourceArn:Source' :: Source -> Text
$sel:whitelistCidr:Source' :: Source -> Maybe Text
$sel:vpcInterfaceName:Source' :: Source -> Maybe Text
$sel:transport:Source' :: Source -> Maybe Transport
$sel:senderIpAddress:Source' :: Source -> Maybe Text
$sel:senderControlPort:Source' :: Source -> Maybe Int
$sel:mediaStreamSourceConfigurations:Source' :: Source -> Maybe [MediaStreamSourceConfiguration]
$sel:ingestPort:Source' :: Source -> Maybe Int
$sel:ingestIp:Source' :: Source -> Maybe Text
$sel:entitlementArn:Source' :: Source -> Maybe Text
$sel:description:Source' :: Source -> Maybe Text
$sel:decryption:Source' :: Source -> Maybe Encryption
$sel:dataTransferSubscriberFeePercent:Source' :: Source -> Maybe Int
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
dataTransferSubscriberFeePercent
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Encryption
decryption
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
entitlementArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
ingestIp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
ingestPort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
senderControlPort
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
senderIpAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Transport
transport
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcInterfaceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
whitelistCidr
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
sourceArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name

instance Prelude.NFData Source where
  rnf :: Source -> ()
rnf Source' {Maybe Int
Maybe [MediaStreamSourceConfiguration]
Maybe Text
Maybe Encryption
Maybe Transport
Text
name :: Text
sourceArn :: Text
whitelistCidr :: Maybe Text
vpcInterfaceName :: Maybe Text
transport :: Maybe Transport
senderIpAddress :: Maybe Text
senderControlPort :: Maybe Int
mediaStreamSourceConfigurations :: Maybe [MediaStreamSourceConfiguration]
ingestPort :: Maybe Int
ingestIp :: Maybe Text
entitlementArn :: Maybe Text
description :: Maybe Text
decryption :: Maybe Encryption
dataTransferSubscriberFeePercent :: Maybe Int
$sel:name:Source' :: Source -> Text
$sel:sourceArn:Source' :: Source -> Text
$sel:whitelistCidr:Source' :: Source -> Maybe Text
$sel:vpcInterfaceName:Source' :: Source -> Maybe Text
$sel:transport:Source' :: Source -> Maybe Transport
$sel:senderIpAddress:Source' :: Source -> Maybe Text
$sel:senderControlPort:Source' :: Source -> Maybe Int
$sel:mediaStreamSourceConfigurations:Source' :: Source -> Maybe [MediaStreamSourceConfiguration]
$sel:ingestPort:Source' :: Source -> Maybe Int
$sel:ingestIp:Source' :: Source -> Maybe Text
$sel:entitlementArn:Source' :: Source -> Maybe Text
$sel:description:Source' :: Source -> Maybe Text
$sel:decryption:Source' :: Source -> Maybe Encryption
$sel:dataTransferSubscriberFeePercent:Source' :: Source -> Maybe Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
dataTransferSubscriberFeePercent
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Encryption
decryption
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
entitlementArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ingestIp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
ingestPort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [MediaStreamSourceConfiguration]
mediaStreamSourceConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
senderControlPort
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
senderIpAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Transport
transport
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcInterfaceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
whitelistCidr
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
sourceArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name