module Stratosphere.WorkSpacesWeb.TrustStore ( TrustStore(..), mkTrustStore ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data TrustStore = -- | See: TrustStore {haddock_workaround_ :: (), -- | See: certificateList :: (ValueList Prelude.Text), -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkTrustStore :: ValueList Prelude.Text -> TrustStore mkTrustStore certificateList = TrustStore {haddock_workaround_ = (), certificateList = certificateList, tags = Prelude.Nothing} instance ToResourceProperties TrustStore where toResourceProperties TrustStore {..} = ResourceProperties {awsType = "AWS::WorkSpacesWeb::TrustStore", supportsTags = Prelude.True, properties = Prelude.fromList ((Prelude.<>) ["CertificateList" JSON..= certificateList] (Prelude.catMaybes [(JSON..=) "Tags" Prelude.<$> tags]))} instance JSON.ToJSON TrustStore where toJSON TrustStore {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["CertificateList" JSON..= certificateList] (Prelude.catMaybes [(JSON..=) "Tags" Prelude.<$> tags]))) instance Property "CertificateList" TrustStore where type PropertyType "CertificateList" TrustStore = ValueList Prelude.Text set newValue TrustStore {..} = TrustStore {certificateList = newValue, ..} instance Property "Tags" TrustStore where type PropertyType "Tags" TrustStore = [Tag] set newValue TrustStore {..} = TrustStore {tags = Prelude.pure newValue, ..}