module Stratosphere.VerifiedPermissions.PolicyStore.SchemaDefinitionProperty ( SchemaDefinitionProperty(..), mkSchemaDefinitionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SchemaDefinitionProperty = -- | See: SchemaDefinitionProperty {haddock_workaround_ :: (), -- | See: cedarFormat :: (Prelude.Maybe (Value Prelude.Text)), -- | See: cedarJson :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkSchemaDefinitionProperty :: SchemaDefinitionProperty mkSchemaDefinitionProperty = SchemaDefinitionProperty {haddock_workaround_ = (), cedarFormat = Prelude.Nothing, cedarJson = Prelude.Nothing} instance ToResourceProperties SchemaDefinitionProperty where toResourceProperties SchemaDefinitionProperty {..} = ResourceProperties {awsType = "AWS::VerifiedPermissions::PolicyStore.SchemaDefinition", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "CedarFormat" Prelude.<$> cedarFormat, (JSON..=) "CedarJson" Prelude.<$> cedarJson])} instance JSON.ToJSON SchemaDefinitionProperty where toJSON SchemaDefinitionProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "CedarFormat" Prelude.<$> cedarFormat, (JSON..=) "CedarJson" Prelude.<$> cedarJson])) instance Property "CedarFormat" SchemaDefinitionProperty where type PropertyType "CedarFormat" SchemaDefinitionProperty = Value Prelude.Text set newValue SchemaDefinitionProperty {..} = SchemaDefinitionProperty {cedarFormat = Prelude.pure newValue, ..} instance Property "CedarJson" SchemaDefinitionProperty where type PropertyType "CedarJson" SchemaDefinitionProperty = Value Prelude.Text set newValue SchemaDefinitionProperty {..} = SchemaDefinitionProperty {cedarJson = Prelude.pure newValue, ..}