module Stratosphere.EC2.VerifiedAccessTrustProvider.DeviceOptionsProperty (
        DeviceOptionsProperty(..), mkDeviceOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DeviceOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-verifiedaccesstrustprovider-deviceoptions.html>
    DeviceOptionsProperty {DeviceOptionsProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-verifiedaccesstrustprovider-deviceoptions.html#cfn-ec2-verifiedaccesstrustprovider-deviceoptions-publicsigningkeyurl>
                           DeviceOptionsProperty -> Maybe (Value Text)
publicSigningKeyUrl :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-verifiedaccesstrustprovider-deviceoptions.html#cfn-ec2-verifiedaccesstrustprovider-deviceoptions-tenantid>
                           DeviceOptionsProperty -> Maybe (Value Text)
tenantId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DeviceOptionsProperty -> DeviceOptionsProperty -> Bool
(DeviceOptionsProperty -> DeviceOptionsProperty -> Bool)
-> (DeviceOptionsProperty -> DeviceOptionsProperty -> Bool)
-> Eq DeviceOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceOptionsProperty -> DeviceOptionsProperty -> Bool
== :: DeviceOptionsProperty -> DeviceOptionsProperty -> Bool
$c/= :: DeviceOptionsProperty -> DeviceOptionsProperty -> Bool
/= :: DeviceOptionsProperty -> DeviceOptionsProperty -> Bool
Prelude.Eq, Int -> DeviceOptionsProperty -> ShowS
[DeviceOptionsProperty] -> ShowS
DeviceOptionsProperty -> String
(Int -> DeviceOptionsProperty -> ShowS)
-> (DeviceOptionsProperty -> String)
-> ([DeviceOptionsProperty] -> ShowS)
-> Show DeviceOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeviceOptionsProperty -> ShowS
showsPrec :: Int -> DeviceOptionsProperty -> ShowS
$cshow :: DeviceOptionsProperty -> String
show :: DeviceOptionsProperty -> String
$cshowList :: [DeviceOptionsProperty] -> ShowS
showList :: [DeviceOptionsProperty] -> ShowS
Prelude.Show)
mkDeviceOptionsProperty :: DeviceOptionsProperty
mkDeviceOptionsProperty :: DeviceOptionsProperty
mkDeviceOptionsProperty
  = DeviceOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), publicSigningKeyUrl :: Maybe (Value Text)
publicSigningKeyUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tenantId :: Maybe (Value Text)
tenantId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DeviceOptionsProperty where
  toResourceProperties :: DeviceOptionsProperty -> ResourceProperties
toResourceProperties DeviceOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: DeviceOptionsProperty -> ()
publicSigningKeyUrl :: DeviceOptionsProperty -> Maybe (Value Text)
tenantId :: DeviceOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
tenantId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::VerifiedAccessTrustProvider.DeviceOptions",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"PublicSigningKeyUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
publicSigningKeyUrl,
                            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..=) Key
"TenantId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tenantId])}
instance JSON.ToJSON DeviceOptionsProperty where
  toJSON :: DeviceOptionsProperty -> Value
toJSON DeviceOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: DeviceOptionsProperty -> ()
publicSigningKeyUrl :: DeviceOptionsProperty -> Maybe (Value Text)
tenantId :: DeviceOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
tenantId :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"PublicSigningKeyUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
publicSigningKeyUrl,
               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..=) Key
"TenantId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tenantId]))
instance Property "PublicSigningKeyUrl" DeviceOptionsProperty where
  type PropertyType "PublicSigningKeyUrl" DeviceOptionsProperty = Value Prelude.Text
  set :: PropertyType "PublicSigningKeyUrl" DeviceOptionsProperty
-> DeviceOptionsProperty -> DeviceOptionsProperty
set PropertyType "PublicSigningKeyUrl" DeviceOptionsProperty
newValue DeviceOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: DeviceOptionsProperty -> ()
publicSigningKeyUrl :: DeviceOptionsProperty -> Maybe (Value Text)
tenantId :: DeviceOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
tenantId :: Maybe (Value Text)
..}
    = DeviceOptionsProperty
        {publicSigningKeyUrl :: Maybe (Value Text)
publicSigningKeyUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PublicSigningKeyUrl" DeviceOptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
tenantId :: Maybe (Value Text)
haddock_workaround_ :: ()
tenantId :: Maybe (Value Text)
..}
instance Property "TenantId" DeviceOptionsProperty where
  type PropertyType "TenantId" DeviceOptionsProperty = Value Prelude.Text
  set :: PropertyType "TenantId" DeviceOptionsProperty
-> DeviceOptionsProperty -> DeviceOptionsProperty
set PropertyType "TenantId" DeviceOptionsProperty
newValue DeviceOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: DeviceOptionsProperty -> ()
publicSigningKeyUrl :: DeviceOptionsProperty -> Maybe (Value Text)
tenantId :: DeviceOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
tenantId :: Maybe (Value Text)
..}
    = DeviceOptionsProperty {tenantId :: Maybe (Value Text)
tenantId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TenantId" DeviceOptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
publicSigningKeyUrl :: Maybe (Value Text)
..}