{-# 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.Output
-- 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.Output 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.MediaStreamOutputConfiguration
import Amazonka.MediaConnect.Types.Transport
import Amazonka.MediaConnect.Types.VpcInterfaceAttachment
import qualified Amazonka.Prelude as Prelude

-- | The settings for an output.
--
-- /See:/ 'newOutput' smart constructor.
data Output = Output'
  { -- | Percentage from 0-100 of the data transfer cost to be billed to the
    -- subscriber.
    Output -> Maybe Int
dataTransferSubscriberFeePercent :: Prelude.Maybe Prelude.Int,
    -- | A description of the output.
    Output -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The address where you want to send the output.
    Output -> Maybe Text
destination :: Prelude.Maybe Prelude.Text,
    -- | The type of key used for the encryption. If no keyType is provided, the
    -- service will use the default setting (static-key).
    Output -> Maybe Encryption
encryption :: Prelude.Maybe Encryption,
    -- | The ARN of the entitlement on the originator\'\'s flow. This value is
    -- relevant only on entitled flows.
    Output -> Maybe Text
entitlementArn :: Prelude.Maybe Prelude.Text,
    -- | The IP address that the receiver requires in order to establish a
    -- connection with the flow. For public networking, the ListenerAddress is
    -- represented by the elastic IP address of the flow. For private
    -- networking, the ListenerAddress is represented by the elastic network
    -- interface IP address of the VPC. This field applies only to outputs that
    -- use the Zixi pull or SRT listener protocol.
    Output -> Maybe Text
listenerAddress :: Prelude.Maybe Prelude.Text,
    -- | The input ARN of the AWS Elemental MediaLive channel. This parameter is
    -- relevant only for outputs that were added by creating a MediaLive input.
    Output -> Maybe Text
mediaLiveInputArn :: Prelude.Maybe Prelude.Text,
    -- | The configuration for each media stream that is associated with the
    -- output.
    Output -> Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations :: Prelude.Maybe [MediaStreamOutputConfiguration],
    -- | The port to use when content is distributed to this output.
    Output -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
    -- | Attributes related to the transport stream that are used in the output.
    Output -> Maybe Transport
transport :: Prelude.Maybe Transport,
    -- | The name of the VPC interface attachment to use for this output.
    Output -> Maybe VpcInterfaceAttachment
vpcInterfaceAttachment :: Prelude.Maybe VpcInterfaceAttachment,
    -- | The ARN of the output.
    Output -> Text
outputArn :: Prelude.Text,
    -- | The name of the output. This value must be unique within the current
    -- flow.
    Output -> Text
name :: Prelude.Text
  }
  deriving (Output -> Output -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Output -> Output -> Bool
$c/= :: Output -> Output -> Bool
== :: Output -> Output -> Bool
$c== :: Output -> Output -> Bool
Prelude.Eq, ReadPrec [Output]
ReadPrec Output
Int -> ReadS Output
ReadS [Output]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Output]
$creadListPrec :: ReadPrec [Output]
readPrec :: ReadPrec Output
$creadPrec :: ReadPrec Output
readList :: ReadS [Output]
$creadList :: ReadS [Output]
readsPrec :: Int -> ReadS Output
$creadsPrec :: Int -> ReadS Output
Prelude.Read, Int -> Output -> ShowS
[Output] -> ShowS
Output -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Output] -> ShowS
$cshowList :: [Output] -> ShowS
show :: Output -> String
$cshow :: Output -> String
showsPrec :: Int -> Output -> ShowS
$cshowsPrec :: Int -> Output -> ShowS
Prelude.Show, forall x. Rep Output x -> Output
forall x. Output -> Rep Output x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Output x -> Output
$cfrom :: forall x. Output -> Rep Output x
Prelude.Generic)

-- |
-- Create a value of 'Output' 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', 'output_dataTransferSubscriberFeePercent' - Percentage from 0-100 of the data transfer cost to be billed to the
-- subscriber.
--
-- 'description', 'output_description' - A description of the output.
--
-- 'destination', 'output_destination' - The address where you want to send the output.
--
-- 'encryption', 'output_encryption' - The type of key used for the encryption. If no keyType is provided, the
-- service will use the default setting (static-key).
--
-- 'entitlementArn', 'output_entitlementArn' - The ARN of the entitlement on the originator\'\'s flow. This value is
-- relevant only on entitled flows.
--
-- 'listenerAddress', 'output_listenerAddress' - The IP address that the receiver requires in order to establish a
-- connection with the flow. For public networking, the ListenerAddress is
-- represented by the elastic IP address of the flow. For private
-- networking, the ListenerAddress is represented by the elastic network
-- interface IP address of the VPC. This field applies only to outputs that
-- use the Zixi pull or SRT listener protocol.
--
-- 'mediaLiveInputArn', 'output_mediaLiveInputArn' - The input ARN of the AWS Elemental MediaLive channel. This parameter is
-- relevant only for outputs that were added by creating a MediaLive input.
--
-- 'mediaStreamOutputConfigurations', 'output_mediaStreamOutputConfigurations' - The configuration for each media stream that is associated with the
-- output.
--
-- 'port', 'output_port' - The port to use when content is distributed to this output.
--
-- 'transport', 'output_transport' - Attributes related to the transport stream that are used in the output.
--
-- 'vpcInterfaceAttachment', 'output_vpcInterfaceAttachment' - The name of the VPC interface attachment to use for this output.
--
-- 'outputArn', 'output_outputArn' - The ARN of the output.
--
-- 'name', 'output_name' - The name of the output. This value must be unique within the current
-- flow.
newOutput ::
  -- | 'outputArn'
  Prelude.Text ->
  -- | 'name'
  Prelude.Text ->
  Output
newOutput :: Text -> Text -> Output
newOutput Text
pOutputArn_ Text
pName_ =
  Output'
    { $sel:dataTransferSubscriberFeePercent:Output' :: Maybe Int
dataTransferSubscriberFeePercent =
        forall a. Maybe a
Prelude.Nothing,
      $sel:description:Output' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:destination:Output' :: Maybe Text
destination = forall a. Maybe a
Prelude.Nothing,
      $sel:encryption:Output' :: Maybe Encryption
encryption = forall a. Maybe a
Prelude.Nothing,
      $sel:entitlementArn:Output' :: Maybe Text
entitlementArn = forall a. Maybe a
Prelude.Nothing,
      $sel:listenerAddress:Output' :: Maybe Text
listenerAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:mediaLiveInputArn:Output' :: Maybe Text
mediaLiveInputArn = forall a. Maybe a
Prelude.Nothing,
      $sel:mediaStreamOutputConfigurations:Output' :: Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations = forall a. Maybe a
Prelude.Nothing,
      $sel:port:Output' :: Maybe Int
port = forall a. Maybe a
Prelude.Nothing,
      $sel:transport:Output' :: Maybe Transport
transport = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcInterfaceAttachment:Output' :: Maybe VpcInterfaceAttachment
vpcInterfaceAttachment = forall a. Maybe a
Prelude.Nothing,
      $sel:outputArn:Output' :: Text
outputArn = Text
pOutputArn_,
      $sel:name:Output' :: Text
name = Text
pName_
    }

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

-- | A description of the output.
output_description :: Lens.Lens' Output (Prelude.Maybe Prelude.Text)
output_description :: Lens' Output (Maybe Text)
output_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Text
description :: Maybe Text
$sel:description:Output' :: Output -> Maybe Text
description} -> Maybe Text
description) (\s :: Output
s@Output' {} Maybe Text
a -> Output
s {$sel:description:Output' :: Maybe Text
description = Maybe Text
a} :: Output)

-- | The address where you want to send the output.
output_destination :: Lens.Lens' Output (Prelude.Maybe Prelude.Text)
output_destination :: Lens' Output (Maybe Text)
output_destination = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Text
destination :: Maybe Text
$sel:destination:Output' :: Output -> Maybe Text
destination} -> Maybe Text
destination) (\s :: Output
s@Output' {} Maybe Text
a -> Output
s {$sel:destination:Output' :: Maybe Text
destination = Maybe Text
a} :: Output)

-- | The type of key used for the encryption. If no keyType is provided, the
-- service will use the default setting (static-key).
output_encryption :: Lens.Lens' Output (Prelude.Maybe Encryption)
output_encryption :: Lens' Output (Maybe Encryption)
output_encryption = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Encryption
encryption :: Maybe Encryption
$sel:encryption:Output' :: Output -> Maybe Encryption
encryption} -> Maybe Encryption
encryption) (\s :: Output
s@Output' {} Maybe Encryption
a -> Output
s {$sel:encryption:Output' :: Maybe Encryption
encryption = Maybe Encryption
a} :: Output)

-- | The ARN of the entitlement on the originator\'\'s flow. This value is
-- relevant only on entitled flows.
output_entitlementArn :: Lens.Lens' Output (Prelude.Maybe Prelude.Text)
output_entitlementArn :: Lens' Output (Maybe Text)
output_entitlementArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Text
entitlementArn :: Maybe Text
$sel:entitlementArn:Output' :: Output -> Maybe Text
entitlementArn} -> Maybe Text
entitlementArn) (\s :: Output
s@Output' {} Maybe Text
a -> Output
s {$sel:entitlementArn:Output' :: Maybe Text
entitlementArn = Maybe Text
a} :: Output)

-- | The IP address that the receiver requires in order to establish a
-- connection with the flow. For public networking, the ListenerAddress is
-- represented by the elastic IP address of the flow. For private
-- networking, the ListenerAddress is represented by the elastic network
-- interface IP address of the VPC. This field applies only to outputs that
-- use the Zixi pull or SRT listener protocol.
output_listenerAddress :: Lens.Lens' Output (Prelude.Maybe Prelude.Text)
output_listenerAddress :: Lens' Output (Maybe Text)
output_listenerAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Text
listenerAddress :: Maybe Text
$sel:listenerAddress:Output' :: Output -> Maybe Text
listenerAddress} -> Maybe Text
listenerAddress) (\s :: Output
s@Output' {} Maybe Text
a -> Output
s {$sel:listenerAddress:Output' :: Maybe Text
listenerAddress = Maybe Text
a} :: Output)

-- | The input ARN of the AWS Elemental MediaLive channel. This parameter is
-- relevant only for outputs that were added by creating a MediaLive input.
output_mediaLiveInputArn :: Lens.Lens' Output (Prelude.Maybe Prelude.Text)
output_mediaLiveInputArn :: Lens' Output (Maybe Text)
output_mediaLiveInputArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Text
mediaLiveInputArn :: Maybe Text
$sel:mediaLiveInputArn:Output' :: Output -> Maybe Text
mediaLiveInputArn} -> Maybe Text
mediaLiveInputArn) (\s :: Output
s@Output' {} Maybe Text
a -> Output
s {$sel:mediaLiveInputArn:Output' :: Maybe Text
mediaLiveInputArn = Maybe Text
a} :: Output)

-- | The configuration for each media stream that is associated with the
-- output.
output_mediaStreamOutputConfigurations :: Lens.Lens' Output (Prelude.Maybe [MediaStreamOutputConfiguration])
output_mediaStreamOutputConfigurations :: Lens' Output (Maybe [MediaStreamOutputConfiguration])
output_mediaStreamOutputConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations :: Maybe [MediaStreamOutputConfiguration]
$sel:mediaStreamOutputConfigurations:Output' :: Output -> Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations} -> Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations) (\s :: Output
s@Output' {} Maybe [MediaStreamOutputConfiguration]
a -> Output
s {$sel:mediaStreamOutputConfigurations:Output' :: Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations = Maybe [MediaStreamOutputConfiguration]
a} :: Output) 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 to use when content is distributed to this output.
output_port :: Lens.Lens' Output (Prelude.Maybe Prelude.Int)
output_port :: Lens' Output (Maybe Int)
output_port = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe Int
port :: Maybe Int
$sel:port:Output' :: Output -> Maybe Int
port} -> Maybe Int
port) (\s :: Output
s@Output' {} Maybe Int
a -> Output
s {$sel:port:Output' :: Maybe Int
port = Maybe Int
a} :: Output)

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

-- | The name of the VPC interface attachment to use for this output.
output_vpcInterfaceAttachment :: Lens.Lens' Output (Prelude.Maybe VpcInterfaceAttachment)
output_vpcInterfaceAttachment :: Lens' Output (Maybe VpcInterfaceAttachment)
output_vpcInterfaceAttachment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Maybe VpcInterfaceAttachment
vpcInterfaceAttachment :: Maybe VpcInterfaceAttachment
$sel:vpcInterfaceAttachment:Output' :: Output -> Maybe VpcInterfaceAttachment
vpcInterfaceAttachment} -> Maybe VpcInterfaceAttachment
vpcInterfaceAttachment) (\s :: Output
s@Output' {} Maybe VpcInterfaceAttachment
a -> Output
s {$sel:vpcInterfaceAttachment:Output' :: Maybe VpcInterfaceAttachment
vpcInterfaceAttachment = Maybe VpcInterfaceAttachment
a} :: Output)

-- | The ARN of the output.
output_outputArn :: Lens.Lens' Output Prelude.Text
output_outputArn :: Lens' Output Text
output_outputArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Text
outputArn :: Text
$sel:outputArn:Output' :: Output -> Text
outputArn} -> Text
outputArn) (\s :: Output
s@Output' {} Text
a -> Output
s {$sel:outputArn:Output' :: Text
outputArn = Text
a} :: Output)

-- | The name of the output. This value must be unique within the current
-- flow.
output_name :: Lens.Lens' Output Prelude.Text
output_name :: Lens' Output Text
output_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Output' {Text
name :: Text
$sel:name:Output' :: Output -> Text
name} -> Text
name) (\s :: Output
s@Output' {} Text
a -> Output
s {$sel:name:Output' :: Text
name = Text
a} :: Output)

instance Data.FromJSON Output where
  parseJSON :: Value -> Parser Output
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Output"
      ( \Object
x ->
          Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Encryption
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [MediaStreamOutputConfiguration]
-> Maybe Int
-> Maybe Transport
-> Maybe VpcInterfaceAttachment
-> Text
-> Text
-> Output
Output'
            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
"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
"destination")
            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
"encryption")
            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
"listenerAddress")
            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
"mediaLiveInputArn")
            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
"mediaStreamOutputConfigurations"
                            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
"port")
            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
"vpcInterfaceAttachment")
            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
"outputArn")
            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 Output where
  hashWithSalt :: Int -> Output -> Int
hashWithSalt Int
_salt Output' {Maybe Int
Maybe [MediaStreamOutputConfiguration]
Maybe Text
Maybe Encryption
Maybe Transport
Maybe VpcInterfaceAttachment
Text
name :: Text
outputArn :: Text
vpcInterfaceAttachment :: Maybe VpcInterfaceAttachment
transport :: Maybe Transport
port :: Maybe Int
mediaStreamOutputConfigurations :: Maybe [MediaStreamOutputConfiguration]
mediaLiveInputArn :: Maybe Text
listenerAddress :: Maybe Text
entitlementArn :: Maybe Text
encryption :: Maybe Encryption
destination :: Maybe Text
description :: Maybe Text
dataTransferSubscriberFeePercent :: Maybe Int
$sel:name:Output' :: Output -> Text
$sel:outputArn:Output' :: Output -> Text
$sel:vpcInterfaceAttachment:Output' :: Output -> Maybe VpcInterfaceAttachment
$sel:transport:Output' :: Output -> Maybe Transport
$sel:port:Output' :: Output -> Maybe Int
$sel:mediaStreamOutputConfigurations:Output' :: Output -> Maybe [MediaStreamOutputConfiguration]
$sel:mediaLiveInputArn:Output' :: Output -> Maybe Text
$sel:listenerAddress:Output' :: Output -> Maybe Text
$sel:entitlementArn:Output' :: Output -> Maybe Text
$sel:encryption:Output' :: Output -> Maybe Encryption
$sel:destination:Output' :: Output -> Maybe Text
$sel:description:Output' :: Output -> Maybe Text
$sel:dataTransferSubscriberFeePercent:Output' :: Output -> 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 Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destination
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Encryption
encryption
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
entitlementArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
listenerAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
mediaLiveInputArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
port
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Transport
transport
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpcInterfaceAttachment
vpcInterfaceAttachment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
outputArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name

instance Prelude.NFData Output where
  rnf :: Output -> ()
rnf Output' {Maybe Int
Maybe [MediaStreamOutputConfiguration]
Maybe Text
Maybe Encryption
Maybe Transport
Maybe VpcInterfaceAttachment
Text
name :: Text
outputArn :: Text
vpcInterfaceAttachment :: Maybe VpcInterfaceAttachment
transport :: Maybe Transport
port :: Maybe Int
mediaStreamOutputConfigurations :: Maybe [MediaStreamOutputConfiguration]
mediaLiveInputArn :: Maybe Text
listenerAddress :: Maybe Text
entitlementArn :: Maybe Text
encryption :: Maybe Encryption
destination :: Maybe Text
description :: Maybe Text
dataTransferSubscriberFeePercent :: Maybe Int
$sel:name:Output' :: Output -> Text
$sel:outputArn:Output' :: Output -> Text
$sel:vpcInterfaceAttachment:Output' :: Output -> Maybe VpcInterfaceAttachment
$sel:transport:Output' :: Output -> Maybe Transport
$sel:port:Output' :: Output -> Maybe Int
$sel:mediaStreamOutputConfigurations:Output' :: Output -> Maybe [MediaStreamOutputConfiguration]
$sel:mediaLiveInputArn:Output' :: Output -> Maybe Text
$sel:listenerAddress:Output' :: Output -> Maybe Text
$sel:entitlementArn:Output' :: Output -> Maybe Text
$sel:encryption:Output' :: Output -> Maybe Encryption
$sel:destination:Output' :: Output -> Maybe Text
$sel:description:Output' :: Output -> Maybe Text
$sel:dataTransferSubscriberFeePercent:Output' :: Output -> 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 Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destination
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Encryption
encryption
      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
listenerAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
mediaLiveInputArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [MediaStreamOutputConfiguration]
mediaStreamOutputConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
port
      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 VpcInterfaceAttachment
vpcInterfaceAttachment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
outputArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name