module Stratosphere.MWAA.Environment.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: NetworkConfigurationProperty {haddock_workaround_ :: (), -- | See: securityGroupIds :: (Prelude.Maybe (ValueList Prelude.Text)), -- | See: subnetIds :: (Prelude.Maybe (ValueList Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkNetworkConfigurationProperty :: NetworkConfigurationProperty mkNetworkConfigurationProperty = NetworkConfigurationProperty {haddock_workaround_ = (), securityGroupIds = Prelude.Nothing, subnetIds = Prelude.Nothing} instance ToResourceProperties NetworkConfigurationProperty where toResourceProperties NetworkConfigurationProperty {..} = ResourceProperties {awsType = "AWS::MWAA::Environment.NetworkConfiguration", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "SecurityGroupIds" Prelude.<$> securityGroupIds, (JSON..=) "SubnetIds" Prelude.<$> subnetIds])} instance JSON.ToJSON NetworkConfigurationProperty where toJSON NetworkConfigurationProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "SecurityGroupIds" Prelude.<$> securityGroupIds, (JSON..=) "SubnetIds" Prelude.<$> subnetIds])) instance Property "SecurityGroupIds" NetworkConfigurationProperty where type PropertyType "SecurityGroupIds" NetworkConfigurationProperty = ValueList Prelude.Text set newValue NetworkConfigurationProperty {..} = NetworkConfigurationProperty {securityGroupIds = Prelude.pure newValue, ..} instance Property "SubnetIds" NetworkConfigurationProperty where type PropertyType "SubnetIds" NetworkConfigurationProperty = ValueList Prelude.Text set newValue NetworkConfigurationProperty {..} = NetworkConfigurationProperty {subnetIds = Prelude.pure newValue, ..}