stratosphere-datasync-1.0.0: gen/Stratosphere/DataSync/Task/DestinationProperty.hs
module Stratosphere.DataSync.Task.DestinationProperty (
module Exports, DestinationProperty(..), mkDestinationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataSync.Task.TaskReportConfigDestinationS3Property as Exports
import Stratosphere.ResourceProperties
data DestinationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-destination.html>
DestinationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-datasync-task-destination.html#cfn-datasync-task-destination-s3>
s3 :: (Prelude.Maybe TaskReportConfigDestinationS3Property)}
deriving stock (Prelude.Eq, Prelude.Show)
mkDestinationProperty :: DestinationProperty
mkDestinationProperty
= DestinationProperty
{haddock_workaround_ = (), s3 = Prelude.Nothing}
instance ToResourceProperties DestinationProperty where
toResourceProperties DestinationProperty {..}
= ResourceProperties
{awsType = "AWS::DataSync::Task.Destination",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "S3" Prelude.<$> s3])}
instance JSON.ToJSON DestinationProperty where
toJSON DestinationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "S3" Prelude.<$> s3]))
instance Property "S3" DestinationProperty where
type PropertyType "S3" DestinationProperty = TaskReportConfigDestinationS3Property
set newValue DestinationProperty {..}
= DestinationProperty {s3 = Prelude.pure newValue, ..}