module Stratosphere.S3ObjectLambda.AccessPoint.AliasProperty ( AliasProperty(..), mkAliasProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data AliasProperty = -- | See: AliasProperty {haddock_workaround_ :: (), -- | See: status :: (Prelude.Maybe (Value Prelude.Text)), -- | See: value :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkAliasProperty :: Value Prelude.Text -> AliasProperty mkAliasProperty value = AliasProperty {haddock_workaround_ = (), value = value, status = Prelude.Nothing} instance ToResourceProperties AliasProperty where toResourceProperties AliasProperty {..} = ResourceProperties {awsType = "AWS::S3ObjectLambda::AccessPoint.Alias", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Value" JSON..= value] (Prelude.catMaybes [(JSON..=) "Status" Prelude.<$> status]))} instance JSON.ToJSON AliasProperty where toJSON AliasProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Value" JSON..= value] (Prelude.catMaybes [(JSON..=) "Status" Prelude.<$> status]))) instance Property "Status" AliasProperty where type PropertyType "Status" AliasProperty = Value Prelude.Text set newValue AliasProperty {..} = AliasProperty {status = Prelude.pure newValue, ..} instance Property "Value" AliasProperty where type PropertyType "Value" AliasProperty = Value Prelude.Text set newValue AliasProperty {..} = AliasProperty {value = newValue, ..}