stratosphere-batch-1.0.0: gen/Stratosphere/Batch/JobDefinition/NetworkConfigurationProperty.hs
module Stratosphere.Batch.JobDefinition.NetworkConfigurationProperty (
NetworkConfigurationProperty(..), mkNetworkConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkConfigurationProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-networkconfiguration.html>
NetworkConfigurationProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-batch-jobdefinition-networkconfiguration.html#cfn-batch-jobdefinition-networkconfiguration-assignpublicip>
assignPublicIp :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkNetworkConfigurationProperty :: NetworkConfigurationProperty
mkNetworkConfigurationProperty
= NetworkConfigurationProperty
{haddock_workaround_ = (), assignPublicIp = Prelude.Nothing}
instance ToResourceProperties NetworkConfigurationProperty where
toResourceProperties NetworkConfigurationProperty {..}
= ResourceProperties
{awsType = "AWS::Batch::JobDefinition.NetworkConfiguration",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AssignPublicIp" Prelude.<$> assignPublicIp])}
instance JSON.ToJSON NetworkConfigurationProperty where
toJSON NetworkConfigurationProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "AssignPublicIp" Prelude.<$> assignPublicIp]))
instance Property "AssignPublicIp" NetworkConfigurationProperty where
type PropertyType "AssignPublicIp" NetworkConfigurationProperty = Value Prelude.Text
set newValue NetworkConfigurationProperty {..}
= NetworkConfigurationProperty
{assignPublicIp = Prelude.pure newValue, ..}