module Stratosphere.Glue.Job.ConnectionsListProperty ( ConnectionsListProperty(..), mkConnectionsListProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data ConnectionsListProperty = -- | See: ConnectionsListProperty {haddock_workaround_ :: (), -- | See: connections :: (Prelude.Maybe (ValueList Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkConnectionsListProperty :: ConnectionsListProperty mkConnectionsListProperty = ConnectionsListProperty {haddock_workaround_ = (), connections = Prelude.Nothing} instance ToResourceProperties ConnectionsListProperty where toResourceProperties ConnectionsListProperty {..} = ResourceProperties {awsType = "AWS::Glue::Job.ConnectionsList", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Connections" Prelude.<$> connections])} instance JSON.ToJSON ConnectionsListProperty where toJSON ConnectionsListProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Connections" Prelude.<$> connections])) instance Property "Connections" ConnectionsListProperty where type PropertyType "Connections" ConnectionsListProperty = ValueList Prelude.Text set newValue ConnectionsListProperty {..} = ConnectionsListProperty {connections = Prelude.pure newValue, ..}