module Stratosphere.MediaConnect.Flow.VpcInterfaceAttachmentProperty ( VpcInterfaceAttachmentProperty(..), mkVpcInterfaceAttachmentProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data VpcInterfaceAttachmentProperty = -- | See: VpcInterfaceAttachmentProperty {haddock_workaround_ :: (), -- | See: vpcInterfaceName :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkVpcInterfaceAttachmentProperty :: VpcInterfaceAttachmentProperty mkVpcInterfaceAttachmentProperty = VpcInterfaceAttachmentProperty {haddock_workaround_ = (), vpcInterfaceName = Prelude.Nothing} instance ToResourceProperties VpcInterfaceAttachmentProperty where toResourceProperties VpcInterfaceAttachmentProperty {..} = ResourceProperties {awsType = "AWS::MediaConnect::Flow.VpcInterfaceAttachment", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "VpcInterfaceName" Prelude.<$> vpcInterfaceName])} instance JSON.ToJSON VpcInterfaceAttachmentProperty where toJSON VpcInterfaceAttachmentProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "VpcInterfaceName" Prelude.<$> vpcInterfaceName])) instance Property "VpcInterfaceName" VpcInterfaceAttachmentProperty where type PropertyType "VpcInterfaceName" VpcInterfaceAttachmentProperty = Value Prelude.Text set newValue VpcInterfaceAttachmentProperty {..} = VpcInterfaceAttachmentProperty {vpcInterfaceName = Prelude.pure newValue, ..}