module Stratosphere.AppMesh.VirtualGateway.SubjectAlternativeNamesProperty (
        module Exports, SubjectAlternativeNamesProperty(..),
        mkSubjectAlternativeNamesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualGateway.SubjectAlternativeNameMatchersProperty as Exports
import Stratosphere.ResourceProperties
data SubjectAlternativeNamesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-subjectalternativenames.html>
    SubjectAlternativeNamesProperty {SubjectAlternativeNamesProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualgateway-subjectalternativenames.html#cfn-appmesh-virtualgateway-subjectalternativenames-match>
                                     SubjectAlternativeNamesProperty
-> SubjectAlternativeNameMatchersProperty
match :: SubjectAlternativeNameMatchersProperty}
  deriving stock (SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty -> Bool
(SubjectAlternativeNamesProperty
 -> SubjectAlternativeNamesProperty -> Bool)
-> (SubjectAlternativeNamesProperty
    -> SubjectAlternativeNamesProperty -> Bool)
-> Eq SubjectAlternativeNamesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty -> Bool
== :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty -> Bool
$c/= :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty -> Bool
/= :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty -> Bool
Prelude.Eq, Int -> SubjectAlternativeNamesProperty -> ShowS
[SubjectAlternativeNamesProperty] -> ShowS
SubjectAlternativeNamesProperty -> String
(Int -> SubjectAlternativeNamesProperty -> ShowS)
-> (SubjectAlternativeNamesProperty -> String)
-> ([SubjectAlternativeNamesProperty] -> ShowS)
-> Show SubjectAlternativeNamesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubjectAlternativeNamesProperty -> ShowS
showsPrec :: Int -> SubjectAlternativeNamesProperty -> ShowS
$cshow :: SubjectAlternativeNamesProperty -> String
show :: SubjectAlternativeNamesProperty -> String
$cshowList :: [SubjectAlternativeNamesProperty] -> ShowS
showList :: [SubjectAlternativeNamesProperty] -> ShowS
Prelude.Show)
mkSubjectAlternativeNamesProperty ::
  SubjectAlternativeNameMatchersProperty
  -> SubjectAlternativeNamesProperty
mkSubjectAlternativeNamesProperty :: SubjectAlternativeNameMatchersProperty
-> SubjectAlternativeNamesProperty
mkSubjectAlternativeNamesProperty SubjectAlternativeNameMatchersProperty
match
  = SubjectAlternativeNamesProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), match :: SubjectAlternativeNameMatchersProperty
match = SubjectAlternativeNameMatchersProperty
match}
instance ToResourceProperties SubjectAlternativeNamesProperty where
  toResourceProperties :: SubjectAlternativeNamesProperty -> ResourceProperties
toResourceProperties SubjectAlternativeNamesProperty {()
SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: SubjectAlternativeNamesProperty -> ()
match :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: ()
match :: SubjectAlternativeNameMatchersProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.SubjectAlternativeNames",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Match" Key -> SubjectAlternativeNameMatchersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SubjectAlternativeNameMatchersProperty
match]}
instance JSON.ToJSON SubjectAlternativeNamesProperty where
  toJSON :: SubjectAlternativeNamesProperty -> Value
toJSON SubjectAlternativeNamesProperty {()
SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: SubjectAlternativeNamesProperty -> ()
match :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: ()
match :: SubjectAlternativeNameMatchersProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Match" Key -> SubjectAlternativeNameMatchersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= SubjectAlternativeNameMatchersProperty
match]
instance Property "Match" SubjectAlternativeNamesProperty where
  type PropertyType "Match" SubjectAlternativeNamesProperty = SubjectAlternativeNameMatchersProperty
  set :: PropertyType "Match" SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty
-> SubjectAlternativeNamesProperty
set PropertyType "Match" SubjectAlternativeNamesProperty
newValue SubjectAlternativeNamesProperty {()
SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: SubjectAlternativeNamesProperty -> ()
match :: SubjectAlternativeNamesProperty
-> SubjectAlternativeNameMatchersProperty
haddock_workaround_ :: ()
match :: SubjectAlternativeNameMatchersProperty
..}
    = SubjectAlternativeNamesProperty {match :: SubjectAlternativeNameMatchersProperty
match = PropertyType "Match" SubjectAlternativeNamesProperty
SubjectAlternativeNameMatchersProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}