module Stratosphere.DataSync.LocationFSxWindows ( LocationFSxWindows(..), mkLocationFSxWindows ) 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 LocationFSxWindows = -- | See: LocationFSxWindows {haddock_workaround_ :: (), -- | See: domain :: (Prelude.Maybe (Value Prelude.Text)), -- | See: fsxFilesystemArn :: (Prelude.Maybe (Value Prelude.Text)), -- | See: password :: (Prelude.Maybe (Value Prelude.Text)), -- | See: securityGroupArns :: (ValueList Prelude.Text), -- | See: subdirectory :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tags :: (Prelude.Maybe [Tag]), -- | See: user :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkLocationFSxWindows :: ValueList Prelude.Text -> Value Prelude.Text -> LocationFSxWindows mkLocationFSxWindows securityGroupArns user = LocationFSxWindows {haddock_workaround_ = (), securityGroupArns = securityGroupArns, user = user, domain = Prelude.Nothing, fsxFilesystemArn = Prelude.Nothing, password = Prelude.Nothing, subdirectory = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties LocationFSxWindows where toResourceProperties LocationFSxWindows {..} = ResourceProperties {awsType = "AWS::DataSync::LocationFSxWindows", supportsTags = Prelude.True, properties = Prelude.fromList ((Prelude.<>) ["SecurityGroupArns" JSON..= securityGroupArns, "User" JSON..= user] (Prelude.catMaybes [(JSON..=) "Domain" Prelude.<$> domain, (JSON..=) "FsxFilesystemArn" Prelude.<$> fsxFilesystemArn, (JSON..=) "Password" Prelude.<$> password, (JSON..=) "Subdirectory" Prelude.<$> subdirectory, (JSON..=) "Tags" Prelude.<$> tags]))} instance JSON.ToJSON LocationFSxWindows where toJSON LocationFSxWindows {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["SecurityGroupArns" JSON..= securityGroupArns, "User" JSON..= user] (Prelude.catMaybes [(JSON..=) "Domain" Prelude.<$> domain, (JSON..=) "FsxFilesystemArn" Prelude.<$> fsxFilesystemArn, (JSON..=) "Password" Prelude.<$> password, (JSON..=) "Subdirectory" Prelude.<$> subdirectory, (JSON..=) "Tags" Prelude.<$> tags]))) instance Property "Domain" LocationFSxWindows where type PropertyType "Domain" LocationFSxWindows = Value Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {domain = Prelude.pure newValue, ..} instance Property "FsxFilesystemArn" LocationFSxWindows where type PropertyType "FsxFilesystemArn" LocationFSxWindows = Value Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {fsxFilesystemArn = Prelude.pure newValue, ..} instance Property "Password" LocationFSxWindows where type PropertyType "Password" LocationFSxWindows = Value Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {password = Prelude.pure newValue, ..} instance Property "SecurityGroupArns" LocationFSxWindows where type PropertyType "SecurityGroupArns" LocationFSxWindows = ValueList Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {securityGroupArns = newValue, ..} instance Property "Subdirectory" LocationFSxWindows where type PropertyType "Subdirectory" LocationFSxWindows = Value Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {subdirectory = Prelude.pure newValue, ..} instance Property "Tags" LocationFSxWindows where type PropertyType "Tags" LocationFSxWindows = [Tag] set newValue LocationFSxWindows {..} = LocationFSxWindows {tags = Prelude.pure newValue, ..} instance Property "User" LocationFSxWindows where type PropertyType "User" LocationFSxWindows = Value Prelude.Text set newValue LocationFSxWindows {..} = LocationFSxWindows {user = newValue, ..}