module Stratosphere.S3Outposts.Endpoint.NetworkInterfaceProperty (
        NetworkInterfaceProperty(..), mkNetworkInterfaceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkInterfaceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3outposts-endpoint-networkinterface.html>
    NetworkInterfaceProperty {NetworkInterfaceProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3outposts-endpoint-networkinterface.html#cfn-s3outposts-endpoint-networkinterface-networkinterfaceid>
                              NetworkInterfaceProperty -> Value Text
networkInterfaceId :: (Value Prelude.Text)}
  deriving stock (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
(NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> (NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool)
-> Eq NetworkInterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
== :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
$c/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
/= :: NetworkInterfaceProperty -> NetworkInterfaceProperty -> Bool
Prelude.Eq, Int -> NetworkInterfaceProperty -> ShowS
[NetworkInterfaceProperty] -> ShowS
NetworkInterfaceProperty -> String
(Int -> NetworkInterfaceProperty -> ShowS)
-> (NetworkInterfaceProperty -> String)
-> ([NetworkInterfaceProperty] -> ShowS)
-> Show NetworkInterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkInterfaceProperty -> ShowS
showsPrec :: Int -> NetworkInterfaceProperty -> ShowS
$cshow :: NetworkInterfaceProperty -> String
show :: NetworkInterfaceProperty -> String
$cshowList :: [NetworkInterfaceProperty] -> ShowS
showList :: [NetworkInterfaceProperty] -> ShowS
Prelude.Show)
mkNetworkInterfaceProperty ::
  Value Prelude.Text -> NetworkInterfaceProperty
mkNetworkInterfaceProperty :: Value Text -> NetworkInterfaceProperty
mkNetworkInterfaceProperty Value Text
networkInterfaceId
  = NetworkInterfaceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), networkInterfaceId :: Value Text
networkInterfaceId = Value Text
networkInterfaceId}
instance ToResourceProperties NetworkInterfaceProperty where
  toResourceProperties :: NetworkInterfaceProperty -> ResourceProperties
toResourceProperties NetworkInterfaceProperty {()
Value Text
haddock_workaround_ :: NetworkInterfaceProperty -> ()
networkInterfaceId :: NetworkInterfaceProperty -> Value Text
haddock_workaround_ :: ()
networkInterfaceId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3Outposts::Endpoint.NetworkInterface",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"NetworkInterfaceId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
networkInterfaceId]}
instance JSON.ToJSON NetworkInterfaceProperty where
  toJSON :: NetworkInterfaceProperty -> Value
toJSON NetworkInterfaceProperty {()
Value Text
haddock_workaround_ :: NetworkInterfaceProperty -> ()
networkInterfaceId :: NetworkInterfaceProperty -> Value Text
haddock_workaround_ :: ()
networkInterfaceId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"NetworkInterfaceId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
networkInterfaceId]
instance Property "NetworkInterfaceId" NetworkInterfaceProperty where
  type PropertyType "NetworkInterfaceId" NetworkInterfaceProperty = Value Prelude.Text
  set :: PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
-> NetworkInterfaceProperty -> NetworkInterfaceProperty
set PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
newValue NetworkInterfaceProperty {()
Value Text
haddock_workaround_ :: NetworkInterfaceProperty -> ()
networkInterfaceId :: NetworkInterfaceProperty -> Value Text
haddock_workaround_ :: ()
networkInterfaceId :: Value Text
..}
    = NetworkInterfaceProperty {networkInterfaceId :: Value Text
networkInterfaceId = PropertyType "NetworkInterfaceId" NetworkInterfaceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}