{-# 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.VpcInterfaceAttachment -- 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.VpcInterfaceAttachment where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude -- | The settings for attaching a VPC interface to an output. -- -- /See:/ 'newVpcInterfaceAttachment' smart constructor. data VpcInterfaceAttachment = VpcInterfaceAttachment' { -- | The name of the VPC interface to use for this output. vpcInterfaceName :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'VpcInterfaceAttachment' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'vpcInterfaceName', 'vpcInterfaceAttachment_vpcInterfaceName' - The name of the VPC interface to use for this output. newVpcInterfaceAttachment :: VpcInterfaceAttachment newVpcInterfaceAttachment = VpcInterfaceAttachment' { vpcInterfaceName = Prelude.Nothing } -- | The name of the VPC interface to use for this output. vpcInterfaceAttachment_vpcInterfaceName :: Lens.Lens' VpcInterfaceAttachment (Prelude.Maybe Prelude.Text) vpcInterfaceAttachment_vpcInterfaceName = Lens.lens (\VpcInterfaceAttachment' {vpcInterfaceName} -> vpcInterfaceName) (\s@VpcInterfaceAttachment' {} a -> s {vpcInterfaceName = a} :: VpcInterfaceAttachment) instance Data.FromJSON VpcInterfaceAttachment where parseJSON = Data.withObject "VpcInterfaceAttachment" ( \x -> VpcInterfaceAttachment' Prelude.<$> (x Data..:? "vpcInterfaceName") ) instance Prelude.Hashable VpcInterfaceAttachment where hashWithSalt _salt VpcInterfaceAttachment' {..} = _salt `Prelude.hashWithSalt` vpcInterfaceName instance Prelude.NFData VpcInterfaceAttachment where rnf VpcInterfaceAttachment' {..} = Prelude.rnf vpcInterfaceName instance Data.ToJSON VpcInterfaceAttachment where toJSON VpcInterfaceAttachment' {..} = Data.object ( Prelude.catMaybes [ ("vpcInterfaceName" Data..=) Prelude.<$> vpcInterfaceName ] )