packages feed

stratosphere-ec2-1.0.0: gen/Stratosphere/EC2/Instance/LicenseSpecificationProperty.hs

module Stratosphere.EC2.Instance.LicenseSpecificationProperty (
        LicenseSpecificationProperty(..), mkLicenseSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LicenseSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-licensespecification.html>
    LicenseSpecificationProperty {haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance-licensespecification.html#cfn-ec2-instance-licensespecification-licenseconfigurationarn>
                                  licenseConfigurationArn :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkLicenseSpecificationProperty ::
  Value Prelude.Text -> LicenseSpecificationProperty
mkLicenseSpecificationProperty licenseConfigurationArn
  = LicenseSpecificationProperty
      {haddock_workaround_ = (),
       licenseConfigurationArn = licenseConfigurationArn}
instance ToResourceProperties LicenseSpecificationProperty where
  toResourceProperties LicenseSpecificationProperty {..}
    = ResourceProperties
        {awsType = "AWS::EC2::Instance.LicenseSpecification",
         supportsTags = Prelude.False,
         properties = ["LicenseConfigurationArn"
                         JSON..= licenseConfigurationArn]}
instance JSON.ToJSON LicenseSpecificationProperty where
  toJSON LicenseSpecificationProperty {..}
    = JSON.object
        ["LicenseConfigurationArn" JSON..= licenseConfigurationArn]
instance Property "LicenseConfigurationArn" LicenseSpecificationProperty where
  type PropertyType "LicenseConfigurationArn" LicenseSpecificationProperty = Value Prelude.Text
  set newValue LicenseSpecificationProperty {..}
    = LicenseSpecificationProperty
        {licenseConfigurationArn = newValue, ..}