module Stratosphere.Grafana.Workspace.VpcConfigurationProperty ( VpcConfigurationProperty(..), mkVpcConfigurationProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data VpcConfigurationProperty = -- | See: VpcConfigurationProperty {haddock_workaround_ :: (), -- | See: securityGroupIds :: (ValueList Prelude.Text), -- | See: subnetIds :: (ValueList Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkVpcConfigurationProperty :: ValueList Prelude.Text -> ValueList Prelude.Text -> VpcConfigurationProperty mkVpcConfigurationProperty securityGroupIds subnetIds = VpcConfigurationProperty {haddock_workaround_ = (), securityGroupIds = securityGroupIds, subnetIds = subnetIds} instance ToResourceProperties VpcConfigurationProperty where toResourceProperties VpcConfigurationProperty {..} = ResourceProperties {awsType = "AWS::Grafana::Workspace.VpcConfiguration", supportsTags = Prelude.False, properties = ["SecurityGroupIds" JSON..= securityGroupIds, "SubnetIds" JSON..= subnetIds]} instance JSON.ToJSON VpcConfigurationProperty where toJSON VpcConfigurationProperty {..} = JSON.object ["SecurityGroupIds" JSON..= securityGroupIds, "SubnetIds" JSON..= subnetIds] instance Property "SecurityGroupIds" VpcConfigurationProperty where type PropertyType "SecurityGroupIds" VpcConfigurationProperty = ValueList Prelude.Text set newValue VpcConfigurationProperty {..} = VpcConfigurationProperty {securityGroupIds = newValue, ..} instance Property "SubnetIds" VpcConfigurationProperty where type PropertyType "SubnetIds" VpcConfigurationProperty = ValueList Prelude.Text set newValue VpcConfigurationProperty {..} = VpcConfigurationProperty {subnetIds = newValue, ..}