module Network.AWS.RDS.Types
(
RDS
, RESTError
, ns
, OptionGroup
, optionGroup
, ogAllowsVpcAndNonVpcInstanceMemberships
, ogEngineName
, ogMajorEngineVersion
, ogOptionGroupDescription
, ogOptionGroupName
, ogOptions
, ogVpcId
, DBParameterGroupStatus
, dbparameterGroupStatus
, dbpgsDBParameterGroupName
, dbpgsParameterApplyStatus
, Event
, event
, eDate
, eEventCategories
, eMessage
, eSourceIdentifier
, eSourceType
, DBSecurityGroup
, dbsecurityGroup
, dbsgDBSecurityGroupDescription
, dbsgDBSecurityGroupName
, dbsgEC2SecurityGroups
, dbsgIPRanges
, dbsgOwnerId
, dbsgVpcId
, Tag
, tag
, tagKey
, tagValue
, DBEngineVersion
, dbengineVersion
, dbevDBEngineDescription
, dbevDBEngineVersionDescription
, dbevDBParameterGroupFamily
, dbevDefaultCharacterSet
, dbevEngine
, dbevEngineVersion
, dbevSupportedCharacterSets
, DBSnapshot
, dbsnapshot
, dbsAllocatedStorage
, dbsAvailabilityZone
, dbsDBInstanceIdentifier
, dbsDBSnapshotIdentifier
, dbsEngine
, dbsEngineVersion
, dbsInstanceCreateTime
, dbsIops
, dbsLicenseModel
, dbsMasterUsername
, dbsOptionGroupName
, dbsPercentProgress
, dbsPort
, dbsSnapshotCreateTime
, dbsSnapshotType
, dbsSourceRegion
, dbsStatus
, dbsStorageType
, dbsTdeCredentialArn
, dbsVpcId
, DBSecurityGroupMembership
, dbsecurityGroupMembership
, dbsgmDBSecurityGroupName
, dbsgmStatus
, EC2SecurityGroup
, ec2SecurityGroup
, ecsgEC2SecurityGroupId
, ecsgEC2SecurityGroupName
, ecsgEC2SecurityGroupOwnerId
, ecsgStatus
, SourceType (..)
, DBParameterGroup
, dbparameterGroup
, dbpgDBParameterGroupFamily
, dbpgDBParameterGroupName
, dbpgDescription
, ReservedDBInstancesOffering
, reservedDBInstancesOffering
, rdbioCurrencyCode
, rdbioDBInstanceClass
, rdbioDuration
, rdbioFixedPrice
, rdbioMultiAZ
, rdbioOfferingType
, rdbioProductDescription
, rdbioRecurringCharges
, rdbioReservedDBInstancesOfferingId
, rdbioUsagePrice
, ApplyMethod (..)
, CharacterSet
, characterSet
, csCharacterSetDescription
, csCharacterSetName
, Subnet
, subnet
, sSubnetAvailabilityZone
, sSubnetIdentifier
, sSubnetStatus
, ReservedDBInstance
, reservedDBInstance
, rdbiCurrencyCode
, rdbiDBInstanceClass
, rdbiDBInstanceCount
, rdbiDuration
, rdbiFixedPrice
, rdbiMultiAZ
, rdbiOfferingType
, rdbiProductDescription
, rdbiRecurringCharges
, rdbiReservedDBInstanceId
, rdbiReservedDBInstancesOfferingId
, rdbiStartTime
, rdbiState
, rdbiUsagePrice
, EngineDefaults
, engineDefaults
, edDBParameterGroupFamily
, edMarker
, edParameters
, DBParameterGroupNameMessage
, dbparameterGroupNameMessage
, dbpgnmDBParameterGroupName
, OptionGroupOption
, optionGroupOption
, ogoDefaultPort
, ogoDescription
, ogoEngineName
, ogoMajorEngineVersion
, ogoMinimumRequiredMinorEngineVersion
, ogoName
, ogoOptionGroupOptionSettings
, ogoOptionsDependedOn
, ogoPermanent
, ogoPersistent
, ogoPortRequired
, DBInstance
, dbinstance
, dbiAllocatedStorage
, dbiAutoMinorVersionUpgrade
, dbiAvailabilityZone
, dbiBackupRetentionPeriod
, dbiCharacterSetName
, dbiDBInstanceClass
, dbiDBInstanceIdentifier
, dbiDBInstanceStatus
, dbiDBName
, dbiDBParameterGroups
, dbiDBSecurityGroups
, dbiDBSubnetGroup
, dbiEndpoint
, dbiEngine
, dbiEngineVersion
, dbiInstanceCreateTime
, dbiIops
, dbiLatestRestorableTime
, dbiLicenseModel
, dbiMasterUsername
, dbiMultiAZ
, dbiOptionGroupMemberships
, dbiPendingModifiedValues
, dbiPreferredBackupWindow
, dbiPreferredMaintenanceWindow
, dbiPubliclyAccessible
, dbiReadReplicaDBInstanceIdentifiers
, dbiReadReplicaSourceDBInstanceIdentifier
, dbiSecondaryAvailabilityZone
, dbiStatusInfos
, dbiStorageType
, dbiTdeCredentialArn
, dbiVpcSecurityGroups
, AvailabilityZone
, availabilityZone
, azName
, EventSubscription
, eventSubscription
, esCustSubscriptionId
, esCustomerAwsId
, esEnabled
, esEventCategoriesList
, esSnsTopicArn
, esSourceIdsList
, esSourceType
, esStatus
, esSubscriptionCreationTime
, DBSubnetGroup
, dbsubnetGroup
, dbsg1DBSubnetGroupDescription
, dbsg1DBSubnetGroupName
, dbsg1SubnetGroupStatus
, dbsg1Subnets
, dbsg1VpcId
, DBInstanceStatusInfo
, dbinstanceStatusInfo
, dbisiMessage
, dbisiNormal
, dbisiStatus
, dbisiStatusType
, OptionSetting
, optionSetting
, osAllowedValues
, osApplyType
, osDataType
, osDefaultValue
, osDescription
, osIsCollection
, osIsModifiable
, osName
, osValue
, DescribeDBLogFilesDetails
, describeDBLogFilesDetails
, ddblfdLastWritten
, ddblfdLogFileName
, ddblfdSize
, OrderableDBInstanceOption
, orderableDBInstanceOption
, odbioAvailabilityZones
, odbioDBInstanceClass
, odbioEngine
, odbioEngineVersion
, odbioLicenseModel
, odbioMultiAZCapable
, odbioReadReplicaCapable
, odbioStorageType
, odbioSupportsIops
, odbioVpc
, Filter
, filter'
, fName
, fValues
, RecurringCharge
, recurringCharge
, rcRecurringChargeAmount
, rcRecurringChargeFrequency
, Endpoint
, endpoint
, eAddress
, ePort
, OptionConfiguration
, optionConfiguration
, ocDBSecurityGroupMemberships
, ocOptionName
, ocOptionSettings
, ocPort
, ocVpcSecurityGroupMemberships
, Option
, option
, oDBSecurityGroupMemberships
, oOptionDescription
, oOptionName
, oOptionSettings
, oPermanent
, oPersistent
, oPort
, oVpcSecurityGroupMemberships
, IPRange
, iprange
, iprCIDRIP
, iprStatus
, OptionGroupMembership
, optionGroupMembership
, ogmOptionGroupName
, ogmStatus
, EventCategoriesMap
, eventCategoriesMap
, ecmEventCategories
, ecmSourceType
, PendingModifiedValues
, pendingModifiedValues
, pmvAllocatedStorage
, pmvBackupRetentionPeriod
, pmvDBInstanceClass
, pmvDBInstanceIdentifier
, pmvEngineVersion
, pmvIops
, pmvMasterUserPassword
, pmvMultiAZ
, pmvPort
, pmvStorageType
, VpcSecurityGroupMembership
, vpcSecurityGroupMembership
, vsgmStatus
, vsgmVpcSecurityGroupId
, Parameter
, parameter
, pAllowedValues
, pApplyMethod
, pApplyType
, pDataType
, pDescription
, pIsModifiable
, pMinimumEngineVersion
, pParameterName
, pParameterValue
, pSource
, OptionGroupOptionSetting
, optionGroupOptionSetting
, ogosAllowedValues
, ogosApplyType
, ogosDefaultValue
, ogosIsModifiable
, ogosSettingDescription
, ogosSettingName
) where
import Network.AWS.Prelude
import Network.AWS.Signing
import qualified GHC.Exts
data RDS
instance AWSService RDS where
type Sg RDS = V4
type Er RDS = RESTError
service = service'
where
service' :: Service RDS
service' = Service
{ _svcAbbrev = "RDS"
, _svcPrefix = "rds"
, _svcVersion = "2014-09-01"
, _svcTargetPrefix = Nothing
, _svcJSONVersion = Nothing
, _svcHandle = handle
, _svcRetry = retry
}
handle :: Status
-> Maybe (LazyByteString -> ServiceError RESTError)
handle = restError statusSuccess service'
retry :: Retry RDS
retry = Exponential
{ _retryBase = 0.05
, _retryGrowth = 2
, _retryAttempts = 5
, _retryCheck = check
}
check :: Status
-> RESTError
-> Bool
check (statusCode -> s) (awsErrorCode -> e)
| s == 400 && "Throttling" == e = True
| s == 500 = True
| s == 509 = True
| s == 503 = True
| otherwise = False
ns :: Text
ns = "http://rds.amazonaws.com/doc/2014-09-01/"
data OptionGroup = OptionGroup
{ _ogAllowsVpcAndNonVpcInstanceMemberships :: Maybe Bool
, _ogEngineName :: Maybe Text
, _ogMajorEngineVersion :: Maybe Text
, _ogOptionGroupDescription :: Maybe Text
, _ogOptionGroupName :: Maybe Text
, _ogOptions :: List "member" Option
, _ogVpcId :: Maybe Text
} deriving (Eq, Show)
optionGroup :: OptionGroup
optionGroup = OptionGroup
{ _ogOptionGroupName = Nothing
, _ogOptionGroupDescription = Nothing
, _ogEngineName = Nothing
, _ogMajorEngineVersion = Nothing
, _ogOptions = mempty
, _ogAllowsVpcAndNonVpcInstanceMemberships = Nothing
, _ogVpcId = Nothing
}
ogAllowsVpcAndNonVpcInstanceMemberships :: Lens' OptionGroup (Maybe Bool)
ogAllowsVpcAndNonVpcInstanceMemberships =
lens _ogAllowsVpcAndNonVpcInstanceMemberships
(\s a -> s { _ogAllowsVpcAndNonVpcInstanceMemberships = a })
ogEngineName :: Lens' OptionGroup (Maybe Text)
ogEngineName = lens _ogEngineName (\s a -> s { _ogEngineName = a })
ogMajorEngineVersion :: Lens' OptionGroup (Maybe Text)
ogMajorEngineVersion =
lens _ogMajorEngineVersion (\s a -> s { _ogMajorEngineVersion = a })
ogOptionGroupDescription :: Lens' OptionGroup (Maybe Text)
ogOptionGroupDescription =
lens _ogOptionGroupDescription
(\s a -> s { _ogOptionGroupDescription = a })
ogOptionGroupName :: Lens' OptionGroup (Maybe Text)
ogOptionGroupName =
lens _ogOptionGroupName (\s a -> s { _ogOptionGroupName = a })
ogOptions :: Lens' OptionGroup [Option]
ogOptions = lens _ogOptions (\s a -> s { _ogOptions = a }) . _List
ogVpcId :: Lens' OptionGroup (Maybe Text)
ogVpcId = lens _ogVpcId (\s a -> s { _ogVpcId = a })
instance FromXML OptionGroup where
parseXML x = OptionGroup
<$> x .@? "AllowsVpcAndNonVpcInstanceMemberships"
<*> x .@? "EngineName"
<*> x .@? "MajorEngineVersion"
<*> x .@? "OptionGroupDescription"
<*> x .@? "OptionGroupName"
<*> x .@? "Options" .!@ mempty
<*> x .@? "VpcId"
instance ToQuery OptionGroup where
toQuery OptionGroup{..} = mconcat
[ "AllowsVpcAndNonVpcInstanceMemberships" =? _ogAllowsVpcAndNonVpcInstanceMemberships
, "EngineName" =? _ogEngineName
, "MajorEngineVersion" =? _ogMajorEngineVersion
, "OptionGroupDescription" =? _ogOptionGroupDescription
, "OptionGroupName" =? _ogOptionGroupName
, "Options" =? _ogOptions
, "VpcId" =? _ogVpcId
]
data DBParameterGroupStatus = DBParameterGroupStatus
{ _dbpgsDBParameterGroupName :: Maybe Text
, _dbpgsParameterApplyStatus :: Maybe Text
} deriving (Eq, Ord, Show)
dbparameterGroupStatus :: DBParameterGroupStatus
dbparameterGroupStatus = DBParameterGroupStatus
{ _dbpgsDBParameterGroupName = Nothing
, _dbpgsParameterApplyStatus = Nothing
}
dbpgsDBParameterGroupName :: Lens' DBParameterGroupStatus (Maybe Text)
dbpgsDBParameterGroupName =
lens _dbpgsDBParameterGroupName
(\s a -> s { _dbpgsDBParameterGroupName = a })
dbpgsParameterApplyStatus :: Lens' DBParameterGroupStatus (Maybe Text)
dbpgsParameterApplyStatus =
lens _dbpgsParameterApplyStatus
(\s a -> s { _dbpgsParameterApplyStatus = a })
instance FromXML DBParameterGroupStatus where
parseXML x = DBParameterGroupStatus
<$> x .@? "DBParameterGroupName"
<*> x .@? "ParameterApplyStatus"
instance ToQuery DBParameterGroupStatus where
toQuery DBParameterGroupStatus{..} = mconcat
[ "DBParameterGroupName" =? _dbpgsDBParameterGroupName
, "ParameterApplyStatus" =? _dbpgsParameterApplyStatus
]
data Event = Event
{ _eDate :: Maybe ISO8601
, _eEventCategories :: List "member" Text
, _eMessage :: Maybe Text
, _eSourceIdentifier :: Maybe Text
, _eSourceType :: Maybe SourceType
} deriving (Eq, Show)
event :: Event
event = Event
{ _eSourceIdentifier = Nothing
, _eSourceType = Nothing
, _eMessage = Nothing
, _eEventCategories = mempty
, _eDate = Nothing
}
eDate :: Lens' Event (Maybe UTCTime)
eDate = lens _eDate (\s a -> s { _eDate = a }) . mapping _Time
eEventCategories :: Lens' Event [Text]
eEventCategories = lens _eEventCategories (\s a -> s { _eEventCategories = a }) . _List
eMessage :: Lens' Event (Maybe Text)
eMessage = lens _eMessage (\s a -> s { _eMessage = a })
eSourceIdentifier :: Lens' Event (Maybe Text)
eSourceIdentifier =
lens _eSourceIdentifier (\s a -> s { _eSourceIdentifier = a })
eSourceType :: Lens' Event (Maybe SourceType)
eSourceType = lens _eSourceType (\s a -> s { _eSourceType = a })
instance FromXML Event where
parseXML x = Event
<$> x .@? "Date"
<*> x .@? "EventCategories" .!@ mempty
<*> x .@? "Message"
<*> x .@? "SourceIdentifier"
<*> x .@? "SourceType"
instance ToQuery Event where
toQuery Event{..} = mconcat
[ "Date" =? _eDate
, "EventCategories" =? _eEventCategories
, "Message" =? _eMessage
, "SourceIdentifier" =? _eSourceIdentifier
, "SourceType" =? _eSourceType
]
data DBSecurityGroup = DBSecurityGroup
{ _dbsgDBSecurityGroupDescription :: Maybe Text
, _dbsgDBSecurityGroupName :: Maybe Text
, _dbsgEC2SecurityGroups :: List "member" EC2SecurityGroup
, _dbsgIPRanges :: List "member" IPRange
, _dbsgOwnerId :: Maybe Text
, _dbsgVpcId :: Maybe Text
} deriving (Eq, Show)
dbsecurityGroup :: DBSecurityGroup
dbsecurityGroup = DBSecurityGroup
{ _dbsgOwnerId = Nothing
, _dbsgDBSecurityGroupName = Nothing
, _dbsgDBSecurityGroupDescription = Nothing
, _dbsgVpcId = Nothing
, _dbsgEC2SecurityGroups = mempty
, _dbsgIPRanges = mempty
}
dbsgDBSecurityGroupDescription :: Lens' DBSecurityGroup (Maybe Text)
dbsgDBSecurityGroupDescription =
lens _dbsgDBSecurityGroupDescription
(\s a -> s { _dbsgDBSecurityGroupDescription = a })
dbsgDBSecurityGroupName :: Lens' DBSecurityGroup (Maybe Text)
dbsgDBSecurityGroupName =
lens _dbsgDBSecurityGroupName (\s a -> s { _dbsgDBSecurityGroupName = a })
dbsgEC2SecurityGroups :: Lens' DBSecurityGroup [EC2SecurityGroup]
dbsgEC2SecurityGroups =
lens _dbsgEC2SecurityGroups (\s a -> s { _dbsgEC2SecurityGroups = a })
. _List
dbsgIPRanges :: Lens' DBSecurityGroup [IPRange]
dbsgIPRanges = lens _dbsgIPRanges (\s a -> s { _dbsgIPRanges = a }) . _List
dbsgOwnerId :: Lens' DBSecurityGroup (Maybe Text)
dbsgOwnerId = lens _dbsgOwnerId (\s a -> s { _dbsgOwnerId = a })
dbsgVpcId :: Lens' DBSecurityGroup (Maybe Text)
dbsgVpcId = lens _dbsgVpcId (\s a -> s { _dbsgVpcId = a })
instance FromXML DBSecurityGroup where
parseXML x = DBSecurityGroup
<$> x .@? "DBSecurityGroupDescription"
<*> x .@? "DBSecurityGroupName"
<*> x .@? "EC2SecurityGroups" .!@ mempty
<*> x .@? "IPRanges" .!@ mempty
<*> x .@? "OwnerId"
<*> x .@? "VpcId"
instance ToQuery DBSecurityGroup where
toQuery DBSecurityGroup{..} = mconcat
[ "DBSecurityGroupDescription" =? _dbsgDBSecurityGroupDescription
, "DBSecurityGroupName" =? _dbsgDBSecurityGroupName
, "EC2SecurityGroups" =? _dbsgEC2SecurityGroups
, "IPRanges" =? _dbsgIPRanges
, "OwnerId" =? _dbsgOwnerId
, "VpcId" =? _dbsgVpcId
]
data Tag = Tag
{ _tagKey :: Maybe Text
, _tagValue :: Maybe Text
} deriving (Eq, Ord, Show)
tag :: Tag
tag = Tag
{ _tagKey = Nothing
, _tagValue = Nothing
}
tagKey :: Lens' Tag (Maybe Text)
tagKey = lens _tagKey (\s a -> s { _tagKey = a })
tagValue :: Lens' Tag (Maybe Text)
tagValue = lens _tagValue (\s a -> s { _tagValue = a })
instance FromXML Tag where
parseXML x = Tag
<$> x .@? "Key"
<*> x .@? "Value"
instance ToQuery Tag where
toQuery Tag{..} = mconcat
[ "Key" =? _tagKey
, "Value" =? _tagValue
]
data DBEngineVersion = DBEngineVersion
{ _dbevDBEngineDescription :: Maybe Text
, _dbevDBEngineVersionDescription :: Maybe Text
, _dbevDBParameterGroupFamily :: Maybe Text
, _dbevDefaultCharacterSet :: Maybe CharacterSet
, _dbevEngine :: Maybe Text
, _dbevEngineVersion :: Maybe Text
, _dbevSupportedCharacterSets :: List "member" CharacterSet
} deriving (Eq, Show)
dbengineVersion :: DBEngineVersion
dbengineVersion = DBEngineVersion
{ _dbevEngine = Nothing
, _dbevEngineVersion = Nothing
, _dbevDBParameterGroupFamily = Nothing
, _dbevDBEngineDescription = Nothing
, _dbevDBEngineVersionDescription = Nothing
, _dbevDefaultCharacterSet = Nothing
, _dbevSupportedCharacterSets = mempty
}
dbevDBEngineDescription :: Lens' DBEngineVersion (Maybe Text)
dbevDBEngineDescription =
lens _dbevDBEngineDescription (\s a -> s { _dbevDBEngineDescription = a })
dbevDBEngineVersionDescription :: Lens' DBEngineVersion (Maybe Text)
dbevDBEngineVersionDescription =
lens _dbevDBEngineVersionDescription
(\s a -> s { _dbevDBEngineVersionDescription = a })
dbevDBParameterGroupFamily :: Lens' DBEngineVersion (Maybe Text)
dbevDBParameterGroupFamily =
lens _dbevDBParameterGroupFamily
(\s a -> s { _dbevDBParameterGroupFamily = a })
dbevDefaultCharacterSet :: Lens' DBEngineVersion (Maybe CharacterSet)
dbevDefaultCharacterSet =
lens _dbevDefaultCharacterSet (\s a -> s { _dbevDefaultCharacterSet = a })
dbevEngine :: Lens' DBEngineVersion (Maybe Text)
dbevEngine = lens _dbevEngine (\s a -> s { _dbevEngine = a })
dbevEngineVersion :: Lens' DBEngineVersion (Maybe Text)
dbevEngineVersion =
lens _dbevEngineVersion (\s a -> s { _dbevEngineVersion = a })
dbevSupportedCharacterSets :: Lens' DBEngineVersion [CharacterSet]
dbevSupportedCharacterSets =
lens _dbevSupportedCharacterSets
(\s a -> s { _dbevSupportedCharacterSets = a })
. _List
instance FromXML DBEngineVersion where
parseXML x = DBEngineVersion
<$> x .@? "DBEngineDescription"
<*> x .@? "DBEngineVersionDescription"
<*> x .@? "DBParameterGroupFamily"
<*> x .@? "DefaultCharacterSet"
<*> x .@? "Engine"
<*> x .@? "EngineVersion"
<*> x .@? "SupportedCharacterSets" .!@ mempty
instance ToQuery DBEngineVersion where
toQuery DBEngineVersion{..} = mconcat
[ "DBEngineDescription" =? _dbevDBEngineDescription
, "DBEngineVersionDescription" =? _dbevDBEngineVersionDescription
, "DBParameterGroupFamily" =? _dbevDBParameterGroupFamily
, "DefaultCharacterSet" =? _dbevDefaultCharacterSet
, "Engine" =? _dbevEngine
, "EngineVersion" =? _dbevEngineVersion
, "SupportedCharacterSets" =? _dbevSupportedCharacterSets
]
data DBSnapshot = DBSnapshot
{ _dbsAllocatedStorage :: Maybe Int
, _dbsAvailabilityZone :: Maybe Text
, _dbsDBInstanceIdentifier :: Maybe Text
, _dbsDBSnapshotIdentifier :: Maybe Text
, _dbsEngine :: Maybe Text
, _dbsEngineVersion :: Maybe Text
, _dbsInstanceCreateTime :: Maybe ISO8601
, _dbsIops :: Maybe Int
, _dbsLicenseModel :: Maybe Text
, _dbsMasterUsername :: Maybe Text
, _dbsOptionGroupName :: Maybe Text
, _dbsPercentProgress :: Maybe Int
, _dbsPort :: Maybe Int
, _dbsSnapshotCreateTime :: Maybe ISO8601
, _dbsSnapshotType :: Maybe Text
, _dbsSourceRegion :: Maybe Text
, _dbsStatus :: Maybe Text
, _dbsStorageType :: Maybe Text
, _dbsTdeCredentialArn :: Maybe Text
, _dbsVpcId :: Maybe Text
} deriving (Eq, Ord, Show)
dbsnapshot :: DBSnapshot
dbsnapshot = DBSnapshot
{ _dbsDBSnapshotIdentifier = Nothing
, _dbsDBInstanceIdentifier = Nothing
, _dbsSnapshotCreateTime = Nothing
, _dbsEngine = Nothing
, _dbsAllocatedStorage = Nothing
, _dbsStatus = Nothing
, _dbsPort = Nothing
, _dbsAvailabilityZone = Nothing
, _dbsVpcId = Nothing
, _dbsInstanceCreateTime = Nothing
, _dbsMasterUsername = Nothing
, _dbsEngineVersion = Nothing
, _dbsLicenseModel = Nothing
, _dbsSnapshotType = Nothing
, _dbsIops = Nothing
, _dbsOptionGroupName = Nothing
, _dbsPercentProgress = Nothing
, _dbsSourceRegion = Nothing
, _dbsStorageType = Nothing
, _dbsTdeCredentialArn = Nothing
}
dbsAllocatedStorage :: Lens' DBSnapshot (Maybe Int)
dbsAllocatedStorage =
lens _dbsAllocatedStorage (\s a -> s { _dbsAllocatedStorage = a })
dbsAvailabilityZone :: Lens' DBSnapshot (Maybe Text)
dbsAvailabilityZone =
lens _dbsAvailabilityZone (\s a -> s { _dbsAvailabilityZone = a })
dbsDBInstanceIdentifier :: Lens' DBSnapshot (Maybe Text)
dbsDBInstanceIdentifier =
lens _dbsDBInstanceIdentifier (\s a -> s { _dbsDBInstanceIdentifier = a })
dbsDBSnapshotIdentifier :: Lens' DBSnapshot (Maybe Text)
dbsDBSnapshotIdentifier =
lens _dbsDBSnapshotIdentifier (\s a -> s { _dbsDBSnapshotIdentifier = a })
dbsEngine :: Lens' DBSnapshot (Maybe Text)
dbsEngine = lens _dbsEngine (\s a -> s { _dbsEngine = a })
dbsEngineVersion :: Lens' DBSnapshot (Maybe Text)
dbsEngineVersion = lens _dbsEngineVersion (\s a -> s { _dbsEngineVersion = a })
dbsInstanceCreateTime :: Lens' DBSnapshot (Maybe UTCTime)
dbsInstanceCreateTime =
lens _dbsInstanceCreateTime (\s a -> s { _dbsInstanceCreateTime = a })
. mapping _Time
dbsIops :: Lens' DBSnapshot (Maybe Int)
dbsIops = lens _dbsIops (\s a -> s { _dbsIops = a })
dbsLicenseModel :: Lens' DBSnapshot (Maybe Text)
dbsLicenseModel = lens _dbsLicenseModel (\s a -> s { _dbsLicenseModel = a })
dbsMasterUsername :: Lens' DBSnapshot (Maybe Text)
dbsMasterUsername =
lens _dbsMasterUsername (\s a -> s { _dbsMasterUsername = a })
dbsOptionGroupName :: Lens' DBSnapshot (Maybe Text)
dbsOptionGroupName =
lens _dbsOptionGroupName (\s a -> s { _dbsOptionGroupName = a })
dbsPercentProgress :: Lens' DBSnapshot (Maybe Int)
dbsPercentProgress =
lens _dbsPercentProgress (\s a -> s { _dbsPercentProgress = a })
dbsPort :: Lens' DBSnapshot (Maybe Int)
dbsPort = lens _dbsPort (\s a -> s { _dbsPort = a })
dbsSnapshotCreateTime :: Lens' DBSnapshot (Maybe UTCTime)
dbsSnapshotCreateTime =
lens _dbsSnapshotCreateTime (\s a -> s { _dbsSnapshotCreateTime = a })
. mapping _Time
dbsSnapshotType :: Lens' DBSnapshot (Maybe Text)
dbsSnapshotType = lens _dbsSnapshotType (\s a -> s { _dbsSnapshotType = a })
dbsSourceRegion :: Lens' DBSnapshot (Maybe Text)
dbsSourceRegion = lens _dbsSourceRegion (\s a -> s { _dbsSourceRegion = a })
dbsStatus :: Lens' DBSnapshot (Maybe Text)
dbsStatus = lens _dbsStatus (\s a -> s { _dbsStatus = a })
dbsStorageType :: Lens' DBSnapshot (Maybe Text)
dbsStorageType = lens _dbsStorageType (\s a -> s { _dbsStorageType = a })
dbsTdeCredentialArn :: Lens' DBSnapshot (Maybe Text)
dbsTdeCredentialArn =
lens _dbsTdeCredentialArn (\s a -> s { _dbsTdeCredentialArn = a })
dbsVpcId :: Lens' DBSnapshot (Maybe Text)
dbsVpcId = lens _dbsVpcId (\s a -> s { _dbsVpcId = a })
instance FromXML DBSnapshot where
parseXML x = DBSnapshot
<$> x .@? "AllocatedStorage"
<*> x .@? "AvailabilityZone"
<*> x .@? "DBInstanceIdentifier"
<*> x .@? "DBSnapshotIdentifier"
<*> x .@? "Engine"
<*> x .@? "EngineVersion"
<*> x .@? "InstanceCreateTime"
<*> x .@? "Iops"
<*> x .@? "LicenseModel"
<*> x .@? "MasterUsername"
<*> x .@? "OptionGroupName"
<*> x .@? "PercentProgress"
<*> x .@? "Port"
<*> x .@? "SnapshotCreateTime"
<*> x .@? "SnapshotType"
<*> x .@? "SourceRegion"
<*> x .@? "Status"
<*> x .@? "StorageType"
<*> x .@? "TdeCredentialArn"
<*> x .@? "VpcId"
instance ToQuery DBSnapshot where
toQuery DBSnapshot{..} = mconcat
[ "AllocatedStorage" =? _dbsAllocatedStorage
, "AvailabilityZone" =? _dbsAvailabilityZone
, "DBInstanceIdentifier" =? _dbsDBInstanceIdentifier
, "DBSnapshotIdentifier" =? _dbsDBSnapshotIdentifier
, "Engine" =? _dbsEngine
, "EngineVersion" =? _dbsEngineVersion
, "InstanceCreateTime" =? _dbsInstanceCreateTime
, "Iops" =? _dbsIops
, "LicenseModel" =? _dbsLicenseModel
, "MasterUsername" =? _dbsMasterUsername
, "OptionGroupName" =? _dbsOptionGroupName
, "PercentProgress" =? _dbsPercentProgress
, "Port" =? _dbsPort
, "SnapshotCreateTime" =? _dbsSnapshotCreateTime
, "SnapshotType" =? _dbsSnapshotType
, "SourceRegion" =? _dbsSourceRegion
, "Status" =? _dbsStatus
, "StorageType" =? _dbsStorageType
, "TdeCredentialArn" =? _dbsTdeCredentialArn
, "VpcId" =? _dbsVpcId
]
data DBSecurityGroupMembership = DBSecurityGroupMembership
{ _dbsgmDBSecurityGroupName :: Maybe Text
, _dbsgmStatus :: Maybe Text
} deriving (Eq, Ord, Show)
dbsecurityGroupMembership :: DBSecurityGroupMembership
dbsecurityGroupMembership = DBSecurityGroupMembership
{ _dbsgmDBSecurityGroupName = Nothing
, _dbsgmStatus = Nothing
}
dbsgmDBSecurityGroupName :: Lens' DBSecurityGroupMembership (Maybe Text)
dbsgmDBSecurityGroupName =
lens _dbsgmDBSecurityGroupName
(\s a -> s { _dbsgmDBSecurityGroupName = a })
dbsgmStatus :: Lens' DBSecurityGroupMembership (Maybe Text)
dbsgmStatus = lens _dbsgmStatus (\s a -> s { _dbsgmStatus = a })
instance FromXML DBSecurityGroupMembership where
parseXML x = DBSecurityGroupMembership
<$> x .@? "DBSecurityGroupName"
<*> x .@? "Status"
instance ToQuery DBSecurityGroupMembership where
toQuery DBSecurityGroupMembership{..} = mconcat
[ "DBSecurityGroupName" =? _dbsgmDBSecurityGroupName
, "Status" =? _dbsgmStatus
]
data EC2SecurityGroup = EC2SecurityGroup
{ _ecsgEC2SecurityGroupId :: Maybe Text
, _ecsgEC2SecurityGroupName :: Maybe Text
, _ecsgEC2SecurityGroupOwnerId :: Maybe Text
, _ecsgStatus :: Maybe Text
} deriving (Eq, Ord, Show)
ec2SecurityGroup :: EC2SecurityGroup
ec2SecurityGroup = EC2SecurityGroup
{ _ecsgStatus = Nothing
, _ecsgEC2SecurityGroupName = Nothing
, _ecsgEC2SecurityGroupId = Nothing
, _ecsgEC2SecurityGroupOwnerId = Nothing
}
ecsgEC2SecurityGroupId :: Lens' EC2SecurityGroup (Maybe Text)
ecsgEC2SecurityGroupId =
lens _ecsgEC2SecurityGroupId (\s a -> s { _ecsgEC2SecurityGroupId = a })
ecsgEC2SecurityGroupName :: Lens' EC2SecurityGroup (Maybe Text)
ecsgEC2SecurityGroupName =
lens _ecsgEC2SecurityGroupName
(\s a -> s { _ecsgEC2SecurityGroupName = a })
ecsgEC2SecurityGroupOwnerId :: Lens' EC2SecurityGroup (Maybe Text)
ecsgEC2SecurityGroupOwnerId =
lens _ecsgEC2SecurityGroupOwnerId
(\s a -> s { _ecsgEC2SecurityGroupOwnerId = a })
ecsgStatus :: Lens' EC2SecurityGroup (Maybe Text)
ecsgStatus = lens _ecsgStatus (\s a -> s { _ecsgStatus = a })
instance FromXML EC2SecurityGroup where
parseXML x = EC2SecurityGroup
<$> x .@? "EC2SecurityGroupId"
<*> x .@? "EC2SecurityGroupName"
<*> x .@? "EC2SecurityGroupOwnerId"
<*> x .@? "Status"
instance ToQuery EC2SecurityGroup where
toQuery EC2SecurityGroup{..} = mconcat
[ "EC2SecurityGroupId" =? _ecsgEC2SecurityGroupId
, "EC2SecurityGroupName" =? _ecsgEC2SecurityGroupName
, "EC2SecurityGroupOwnerId" =? _ecsgEC2SecurityGroupOwnerId
, "Status" =? _ecsgStatus
]
data SourceType
= DbInstance
| DbParameterGroup
| DbSecurityGroup
| DbSnapshot
deriving (Eq, Ord, Show, Generic, Enum)
instance Hashable SourceType
instance FromText SourceType where
parser = takeText >>= \case
"db-instance" -> pure DbInstance
"db-parameter-group" -> pure DbParameterGroup
"db-security-group" -> pure DbSecurityGroup
"db-snapshot" -> pure DbSnapshot
e -> fail $
"Failure parsing SourceType from " ++ show e
instance ToText SourceType where
toText = \case
DbInstance -> "db-instance"
DbParameterGroup -> "db-parameter-group"
DbSecurityGroup -> "db-security-group"
DbSnapshot -> "db-snapshot"
instance ToByteString SourceType
instance ToHeader SourceType
instance ToQuery SourceType
instance FromXML SourceType where
parseXML = parseXMLText "SourceType"
data DBParameterGroup = DBParameterGroup
{ _dbpgDBParameterGroupFamily :: Maybe Text
, _dbpgDBParameterGroupName :: Maybe Text
, _dbpgDescription :: Maybe Text
} deriving (Eq, Ord, Show)
dbparameterGroup :: DBParameterGroup
dbparameterGroup = DBParameterGroup
{ _dbpgDBParameterGroupName = Nothing
, _dbpgDBParameterGroupFamily = Nothing
, _dbpgDescription = Nothing
}
dbpgDBParameterGroupFamily :: Lens' DBParameterGroup (Maybe Text)
dbpgDBParameterGroupFamily =
lens _dbpgDBParameterGroupFamily
(\s a -> s { _dbpgDBParameterGroupFamily = a })
dbpgDBParameterGroupName :: Lens' DBParameterGroup (Maybe Text)
dbpgDBParameterGroupName =
lens _dbpgDBParameterGroupName
(\s a -> s { _dbpgDBParameterGroupName = a })
dbpgDescription :: Lens' DBParameterGroup (Maybe Text)
dbpgDescription = lens _dbpgDescription (\s a -> s { _dbpgDescription = a })
instance FromXML DBParameterGroup where
parseXML x = DBParameterGroup
<$> x .@? "DBParameterGroupFamily"
<*> x .@? "DBParameterGroupName"
<*> x .@? "Description"
instance ToQuery DBParameterGroup where
toQuery DBParameterGroup{..} = mconcat
[ "DBParameterGroupFamily" =? _dbpgDBParameterGroupFamily
, "DBParameterGroupName" =? _dbpgDBParameterGroupName
, "Description" =? _dbpgDescription
]
data ReservedDBInstancesOffering = ReservedDBInstancesOffering
{ _rdbioCurrencyCode :: Maybe Text
, _rdbioDBInstanceClass :: Maybe Text
, _rdbioDuration :: Maybe Int
, _rdbioFixedPrice :: Maybe Double
, _rdbioMultiAZ :: Maybe Bool
, _rdbioOfferingType :: Maybe Text
, _rdbioProductDescription :: Maybe Text
, _rdbioRecurringCharges :: List "member" RecurringCharge
, _rdbioReservedDBInstancesOfferingId :: Maybe Text
, _rdbioUsagePrice :: Maybe Double
} deriving (Eq, Show)
reservedDBInstancesOffering :: ReservedDBInstancesOffering
reservedDBInstancesOffering = ReservedDBInstancesOffering
{ _rdbioReservedDBInstancesOfferingId = Nothing
, _rdbioDBInstanceClass = Nothing
, _rdbioDuration = Nothing
, _rdbioFixedPrice = Nothing
, _rdbioUsagePrice = Nothing
, _rdbioCurrencyCode = Nothing
, _rdbioProductDescription = Nothing
, _rdbioOfferingType = Nothing
, _rdbioMultiAZ = Nothing
, _rdbioRecurringCharges = mempty
}
rdbioCurrencyCode :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdbioCurrencyCode =
lens _rdbioCurrencyCode (\s a -> s { _rdbioCurrencyCode = a })
rdbioDBInstanceClass :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdbioDBInstanceClass =
lens _rdbioDBInstanceClass (\s a -> s { _rdbioDBInstanceClass = a })
rdbioDuration :: Lens' ReservedDBInstancesOffering (Maybe Int)
rdbioDuration = lens _rdbioDuration (\s a -> s { _rdbioDuration = a })
rdbioFixedPrice :: Lens' ReservedDBInstancesOffering (Maybe Double)
rdbioFixedPrice = lens _rdbioFixedPrice (\s a -> s { _rdbioFixedPrice = a })
rdbioMultiAZ :: Lens' ReservedDBInstancesOffering (Maybe Bool)
rdbioMultiAZ = lens _rdbioMultiAZ (\s a -> s { _rdbioMultiAZ = a })
rdbioOfferingType :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdbioOfferingType =
lens _rdbioOfferingType (\s a -> s { _rdbioOfferingType = a })
rdbioProductDescription :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdbioProductDescription =
lens _rdbioProductDescription (\s a -> s { _rdbioProductDescription = a })
rdbioRecurringCharges :: Lens' ReservedDBInstancesOffering [RecurringCharge]
rdbioRecurringCharges =
lens _rdbioRecurringCharges (\s a -> s { _rdbioRecurringCharges = a })
. _List
rdbioReservedDBInstancesOfferingId :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdbioReservedDBInstancesOfferingId =
lens _rdbioReservedDBInstancesOfferingId
(\s a -> s { _rdbioReservedDBInstancesOfferingId = a })
rdbioUsagePrice :: Lens' ReservedDBInstancesOffering (Maybe Double)
rdbioUsagePrice = lens _rdbioUsagePrice (\s a -> s { _rdbioUsagePrice = a })
instance FromXML ReservedDBInstancesOffering where
parseXML x = ReservedDBInstancesOffering
<$> x .@? "CurrencyCode"
<*> x .@? "DBInstanceClass"
<*> x .@? "Duration"
<*> x .@? "FixedPrice"
<*> x .@? "MultiAZ"
<*> x .@? "OfferingType"
<*> x .@? "ProductDescription"
<*> x .@? "RecurringCharges" .!@ mempty
<*> x .@? "ReservedDBInstancesOfferingId"
<*> x .@? "UsagePrice"
instance ToQuery ReservedDBInstancesOffering where
toQuery ReservedDBInstancesOffering{..} = mconcat
[ "CurrencyCode" =? _rdbioCurrencyCode
, "DBInstanceClass" =? _rdbioDBInstanceClass
, "Duration" =? _rdbioDuration
, "FixedPrice" =? _rdbioFixedPrice
, "MultiAZ" =? _rdbioMultiAZ
, "OfferingType" =? _rdbioOfferingType
, "ProductDescription" =? _rdbioProductDescription
, "RecurringCharges" =? _rdbioRecurringCharges
, "ReservedDBInstancesOfferingId" =? _rdbioReservedDBInstancesOfferingId
, "UsagePrice" =? _rdbioUsagePrice
]
data ApplyMethod
= Immediate
| PendingReboot
deriving (Eq, Ord, Show, Generic, Enum)
instance Hashable ApplyMethod
instance FromText ApplyMethod where
parser = takeText >>= \case
"immediate" -> pure Immediate
"pending-reboot" -> pure PendingReboot
e -> fail $
"Failure parsing ApplyMethod from " ++ show e
instance ToText ApplyMethod where
toText = \case
Immediate -> "immediate"
PendingReboot -> "pending-reboot"
instance ToByteString ApplyMethod
instance ToHeader ApplyMethod
instance ToQuery ApplyMethod
instance FromXML ApplyMethod where
parseXML = parseXMLText "ApplyMethod"
data CharacterSet = CharacterSet
{ _csCharacterSetDescription :: Maybe Text
, _csCharacterSetName :: Maybe Text
} deriving (Eq, Ord, Show)
characterSet :: CharacterSet
characterSet = CharacterSet
{ _csCharacterSetName = Nothing
, _csCharacterSetDescription = Nothing
}
csCharacterSetDescription :: Lens' CharacterSet (Maybe Text)
csCharacterSetDescription =
lens _csCharacterSetDescription
(\s a -> s { _csCharacterSetDescription = a })
csCharacterSetName :: Lens' CharacterSet (Maybe Text)
csCharacterSetName =
lens _csCharacterSetName (\s a -> s { _csCharacterSetName = a })
instance FromXML CharacterSet where
parseXML x = CharacterSet
<$> x .@? "CharacterSetDescription"
<*> x .@? "CharacterSetName"
instance ToQuery CharacterSet where
toQuery CharacterSet{..} = mconcat
[ "CharacterSetDescription" =? _csCharacterSetDescription
, "CharacterSetName" =? _csCharacterSetName
]
data Subnet = Subnet
{ _sSubnetAvailabilityZone :: Maybe AvailabilityZone
, _sSubnetIdentifier :: Maybe Text
, _sSubnetStatus :: Maybe Text
} deriving (Eq, Show)
subnet :: Subnet
subnet = Subnet
{ _sSubnetIdentifier = Nothing
, _sSubnetAvailabilityZone = Nothing
, _sSubnetStatus = Nothing
}
sSubnetAvailabilityZone :: Lens' Subnet (Maybe AvailabilityZone)
sSubnetAvailabilityZone =
lens _sSubnetAvailabilityZone (\s a -> s { _sSubnetAvailabilityZone = a })
sSubnetIdentifier :: Lens' Subnet (Maybe Text)
sSubnetIdentifier =
lens _sSubnetIdentifier (\s a -> s { _sSubnetIdentifier = a })
sSubnetStatus :: Lens' Subnet (Maybe Text)
sSubnetStatus = lens _sSubnetStatus (\s a -> s { _sSubnetStatus = a })
instance FromXML Subnet where
parseXML x = Subnet
<$> x .@? "SubnetAvailabilityZone"
<*> x .@? "SubnetIdentifier"
<*> x .@? "SubnetStatus"
instance ToQuery Subnet where
toQuery Subnet{..} = mconcat
[ "SubnetAvailabilityZone" =? _sSubnetAvailabilityZone
, "SubnetIdentifier" =? _sSubnetIdentifier
, "SubnetStatus" =? _sSubnetStatus
]
data ReservedDBInstance = ReservedDBInstance
{ _rdbiCurrencyCode :: Maybe Text
, _rdbiDBInstanceClass :: Maybe Text
, _rdbiDBInstanceCount :: Maybe Int
, _rdbiDuration :: Maybe Int
, _rdbiFixedPrice :: Maybe Double
, _rdbiMultiAZ :: Maybe Bool
, _rdbiOfferingType :: Maybe Text
, _rdbiProductDescription :: Maybe Text
, _rdbiRecurringCharges :: List "member" RecurringCharge
, _rdbiReservedDBInstanceId :: Maybe Text
, _rdbiReservedDBInstancesOfferingId :: Maybe Text
, _rdbiStartTime :: Maybe ISO8601
, _rdbiState :: Maybe Text
, _rdbiUsagePrice :: Maybe Double
} deriving (Eq, Show)
reservedDBInstance :: ReservedDBInstance
reservedDBInstance = ReservedDBInstance
{ _rdbiReservedDBInstanceId = Nothing
, _rdbiReservedDBInstancesOfferingId = Nothing
, _rdbiDBInstanceClass = Nothing
, _rdbiStartTime = Nothing
, _rdbiDuration = Nothing
, _rdbiFixedPrice = Nothing
, _rdbiUsagePrice = Nothing
, _rdbiCurrencyCode = Nothing
, _rdbiDBInstanceCount = Nothing
, _rdbiProductDescription = Nothing
, _rdbiOfferingType = Nothing
, _rdbiMultiAZ = Nothing
, _rdbiState = Nothing
, _rdbiRecurringCharges = mempty
}
rdbiCurrencyCode :: Lens' ReservedDBInstance (Maybe Text)
rdbiCurrencyCode = lens _rdbiCurrencyCode (\s a -> s { _rdbiCurrencyCode = a })
rdbiDBInstanceClass :: Lens' ReservedDBInstance (Maybe Text)
rdbiDBInstanceClass =
lens _rdbiDBInstanceClass (\s a -> s { _rdbiDBInstanceClass = a })
rdbiDBInstanceCount :: Lens' ReservedDBInstance (Maybe Int)
rdbiDBInstanceCount =
lens _rdbiDBInstanceCount (\s a -> s { _rdbiDBInstanceCount = a })
rdbiDuration :: Lens' ReservedDBInstance (Maybe Int)
rdbiDuration = lens _rdbiDuration (\s a -> s { _rdbiDuration = a })
rdbiFixedPrice :: Lens' ReservedDBInstance (Maybe Double)
rdbiFixedPrice = lens _rdbiFixedPrice (\s a -> s { _rdbiFixedPrice = a })
rdbiMultiAZ :: Lens' ReservedDBInstance (Maybe Bool)
rdbiMultiAZ = lens _rdbiMultiAZ (\s a -> s { _rdbiMultiAZ = a })
rdbiOfferingType :: Lens' ReservedDBInstance (Maybe Text)
rdbiOfferingType = lens _rdbiOfferingType (\s a -> s { _rdbiOfferingType = a })
rdbiProductDescription :: Lens' ReservedDBInstance (Maybe Text)
rdbiProductDescription =
lens _rdbiProductDescription (\s a -> s { _rdbiProductDescription = a })
rdbiRecurringCharges :: Lens' ReservedDBInstance [RecurringCharge]
rdbiRecurringCharges =
lens _rdbiRecurringCharges (\s a -> s { _rdbiRecurringCharges = a })
. _List
rdbiReservedDBInstanceId :: Lens' ReservedDBInstance (Maybe Text)
rdbiReservedDBInstanceId =
lens _rdbiReservedDBInstanceId
(\s a -> s { _rdbiReservedDBInstanceId = a })
rdbiReservedDBInstancesOfferingId :: Lens' ReservedDBInstance (Maybe Text)
rdbiReservedDBInstancesOfferingId =
lens _rdbiReservedDBInstancesOfferingId
(\s a -> s { _rdbiReservedDBInstancesOfferingId = a })
rdbiStartTime :: Lens' ReservedDBInstance (Maybe UTCTime)
rdbiStartTime = lens _rdbiStartTime (\s a -> s { _rdbiStartTime = a }) . mapping _Time
rdbiState :: Lens' ReservedDBInstance (Maybe Text)
rdbiState = lens _rdbiState (\s a -> s { _rdbiState = a })
rdbiUsagePrice :: Lens' ReservedDBInstance (Maybe Double)
rdbiUsagePrice = lens _rdbiUsagePrice (\s a -> s { _rdbiUsagePrice = a })
instance FromXML ReservedDBInstance where
parseXML x = ReservedDBInstance
<$> x .@? "CurrencyCode"
<*> x .@? "DBInstanceClass"
<*> x .@? "DBInstanceCount"
<*> x .@? "Duration"
<*> x .@? "FixedPrice"
<*> x .@? "MultiAZ"
<*> x .@? "OfferingType"
<*> x .@? "ProductDescription"
<*> x .@? "RecurringCharges" .!@ mempty
<*> x .@? "ReservedDBInstanceId"
<*> x .@? "ReservedDBInstancesOfferingId"
<*> x .@? "StartTime"
<*> x .@? "State"
<*> x .@? "UsagePrice"
instance ToQuery ReservedDBInstance where
toQuery ReservedDBInstance{..} = mconcat
[ "CurrencyCode" =? _rdbiCurrencyCode
, "DBInstanceClass" =? _rdbiDBInstanceClass
, "DBInstanceCount" =? _rdbiDBInstanceCount
, "Duration" =? _rdbiDuration
, "FixedPrice" =? _rdbiFixedPrice
, "MultiAZ" =? _rdbiMultiAZ
, "OfferingType" =? _rdbiOfferingType
, "ProductDescription" =? _rdbiProductDescription
, "RecurringCharges" =? _rdbiRecurringCharges
, "ReservedDBInstanceId" =? _rdbiReservedDBInstanceId
, "ReservedDBInstancesOfferingId" =? _rdbiReservedDBInstancesOfferingId
, "StartTime" =? _rdbiStartTime
, "State" =? _rdbiState
, "UsagePrice" =? _rdbiUsagePrice
]
data EngineDefaults = EngineDefaults
{ _edDBParameterGroupFamily :: Maybe Text
, _edMarker :: Maybe Text
, _edParameters :: List "member" Parameter
} deriving (Eq, Show)
engineDefaults :: EngineDefaults
engineDefaults = EngineDefaults
{ _edDBParameterGroupFamily = Nothing
, _edMarker = Nothing
, _edParameters = mempty
}
edDBParameterGroupFamily :: Lens' EngineDefaults (Maybe Text)
edDBParameterGroupFamily =
lens _edDBParameterGroupFamily
(\s a -> s { _edDBParameterGroupFamily = a })
edMarker :: Lens' EngineDefaults (Maybe Text)
edMarker = lens _edMarker (\s a -> s { _edMarker = a })
edParameters :: Lens' EngineDefaults [Parameter]
edParameters = lens _edParameters (\s a -> s { _edParameters = a }) . _List
instance FromXML EngineDefaults where
parseXML x = EngineDefaults
<$> x .@? "DBParameterGroupFamily"
<*> x .@? "Marker"
<*> x .@? "Parameters" .!@ mempty
instance ToQuery EngineDefaults where
toQuery EngineDefaults{..} = mconcat
[ "DBParameterGroupFamily" =? _edDBParameterGroupFamily
, "Marker" =? _edMarker
, "Parameters" =? _edParameters
]
newtype DBParameterGroupNameMessage = DBParameterGroupNameMessage
{ _dbpgnmDBParameterGroupName :: Maybe Text
} deriving (Eq, Ord, Show, Monoid)
dbparameterGroupNameMessage :: DBParameterGroupNameMessage
dbparameterGroupNameMessage = DBParameterGroupNameMessage
{ _dbpgnmDBParameterGroupName = Nothing
}
dbpgnmDBParameterGroupName :: Lens' DBParameterGroupNameMessage (Maybe Text)
dbpgnmDBParameterGroupName =
lens _dbpgnmDBParameterGroupName
(\s a -> s { _dbpgnmDBParameterGroupName = a })
instance FromXML DBParameterGroupNameMessage where
parseXML x = DBParameterGroupNameMessage
<$> x .@? "DBParameterGroupName"
instance ToQuery DBParameterGroupNameMessage where
toQuery DBParameterGroupNameMessage{..} = mconcat
[ "DBParameterGroupName" =? _dbpgnmDBParameterGroupName
]
data OptionGroupOption = OptionGroupOption
{ _ogoDefaultPort :: Maybe Int
, _ogoDescription :: Maybe Text
, _ogoEngineName :: Maybe Text
, _ogoMajorEngineVersion :: Maybe Text
, _ogoMinimumRequiredMinorEngineVersion :: Maybe Text
, _ogoName :: Maybe Text
, _ogoOptionGroupOptionSettings :: List "member" OptionGroupOptionSetting
, _ogoOptionsDependedOn :: List "member" Text
, _ogoPermanent :: Maybe Bool
, _ogoPersistent :: Maybe Bool
, _ogoPortRequired :: Maybe Bool
} deriving (Eq, Show)
optionGroupOption :: OptionGroupOption
optionGroupOption = OptionGroupOption
{ _ogoName = Nothing
, _ogoDescription = Nothing
, _ogoEngineName = Nothing
, _ogoMajorEngineVersion = Nothing
, _ogoMinimumRequiredMinorEngineVersion = Nothing
, _ogoPortRequired = Nothing
, _ogoDefaultPort = Nothing
, _ogoOptionsDependedOn = mempty
, _ogoPersistent = Nothing
, _ogoPermanent = Nothing
, _ogoOptionGroupOptionSettings = mempty
}
ogoDefaultPort :: Lens' OptionGroupOption (Maybe Int)
ogoDefaultPort = lens _ogoDefaultPort (\s a -> s { _ogoDefaultPort = a })
ogoDescription :: Lens' OptionGroupOption (Maybe Text)
ogoDescription = lens _ogoDescription (\s a -> s { _ogoDescription = a })
ogoEngineName :: Lens' OptionGroupOption (Maybe Text)
ogoEngineName = lens _ogoEngineName (\s a -> s { _ogoEngineName = a })
ogoMajorEngineVersion :: Lens' OptionGroupOption (Maybe Text)
ogoMajorEngineVersion =
lens _ogoMajorEngineVersion (\s a -> s { _ogoMajorEngineVersion = a })
ogoMinimumRequiredMinorEngineVersion :: Lens' OptionGroupOption (Maybe Text)
ogoMinimumRequiredMinorEngineVersion =
lens _ogoMinimumRequiredMinorEngineVersion
(\s a -> s { _ogoMinimumRequiredMinorEngineVersion = a })
ogoName :: Lens' OptionGroupOption (Maybe Text)
ogoName = lens _ogoName (\s a -> s { _ogoName = a })
ogoOptionGroupOptionSettings :: Lens' OptionGroupOption [OptionGroupOptionSetting]
ogoOptionGroupOptionSettings =
lens _ogoOptionGroupOptionSettings
(\s a -> s { _ogoOptionGroupOptionSettings = a })
. _List
ogoOptionsDependedOn :: Lens' OptionGroupOption [Text]
ogoOptionsDependedOn =
lens _ogoOptionsDependedOn (\s a -> s { _ogoOptionsDependedOn = a })
. _List
ogoPermanent :: Lens' OptionGroupOption (Maybe Bool)
ogoPermanent = lens _ogoPermanent (\s a -> s { _ogoPermanent = a })
ogoPersistent :: Lens' OptionGroupOption (Maybe Bool)
ogoPersistent = lens _ogoPersistent (\s a -> s { _ogoPersistent = a })
ogoPortRequired :: Lens' OptionGroupOption (Maybe Bool)
ogoPortRequired = lens _ogoPortRequired (\s a -> s { _ogoPortRequired = a })
instance FromXML OptionGroupOption where
parseXML x = OptionGroupOption
<$> x .@? "DefaultPort"
<*> x .@? "Description"
<*> x .@? "EngineName"
<*> x .@? "MajorEngineVersion"
<*> x .@? "MinimumRequiredMinorEngineVersion"
<*> x .@? "Name"
<*> x .@? "OptionGroupOptionSettings" .!@ mempty
<*> x .@? "OptionsDependedOn" .!@ mempty
<*> x .@? "Permanent"
<*> x .@? "Persistent"
<*> x .@? "PortRequired"
instance ToQuery OptionGroupOption where
toQuery OptionGroupOption{..} = mconcat
[ "DefaultPort" =? _ogoDefaultPort
, "Description" =? _ogoDescription
, "EngineName" =? _ogoEngineName
, "MajorEngineVersion" =? _ogoMajorEngineVersion
, "MinimumRequiredMinorEngineVersion" =? _ogoMinimumRequiredMinorEngineVersion
, "Name" =? _ogoName
, "OptionGroupOptionSettings" =? _ogoOptionGroupOptionSettings
, "OptionsDependedOn" =? _ogoOptionsDependedOn
, "Permanent" =? _ogoPermanent
, "Persistent" =? _ogoPersistent
, "PortRequired" =? _ogoPortRequired
]
data DBInstance = DBInstance
{ _dbiAllocatedStorage :: Maybe Int
, _dbiAutoMinorVersionUpgrade :: Maybe Bool
, _dbiAvailabilityZone :: Maybe Text
, _dbiBackupRetentionPeriod :: Maybe Int
, _dbiCharacterSetName :: Maybe Text
, _dbiDBInstanceClass :: Maybe Text
, _dbiDBInstanceIdentifier :: Maybe Text
, _dbiDBInstanceStatus :: Maybe Text
, _dbiDBName :: Maybe Text
, _dbiDBParameterGroups :: List "member" DBParameterGroupStatus
, _dbiDBSecurityGroups :: List "member" DBSecurityGroupMembership
, _dbiDBSubnetGroup :: Maybe DBSubnetGroup
, _dbiEndpoint :: Maybe Endpoint
, _dbiEngine :: Maybe Text
, _dbiEngineVersion :: Maybe Text
, _dbiInstanceCreateTime :: Maybe ISO8601
, _dbiIops :: Maybe Int
, _dbiLatestRestorableTime :: Maybe ISO8601
, _dbiLicenseModel :: Maybe Text
, _dbiMasterUsername :: Maybe Text
, _dbiMultiAZ :: Maybe Bool
, _dbiOptionGroupMemberships :: List "member" OptionGroupMembership
, _dbiPendingModifiedValues :: Maybe PendingModifiedValues
, _dbiPreferredBackupWindow :: Maybe Text
, _dbiPreferredMaintenanceWindow :: Maybe Text
, _dbiPubliclyAccessible :: Maybe Bool
, _dbiReadReplicaDBInstanceIdentifiers :: List "member" Text
, _dbiReadReplicaSourceDBInstanceIdentifier :: Maybe Text
, _dbiSecondaryAvailabilityZone :: Maybe Text
, _dbiStatusInfos :: List "member" DBInstanceStatusInfo
, _dbiStorageType :: Maybe Text
, _dbiTdeCredentialArn :: Maybe Text
, _dbiVpcSecurityGroups :: List "member" VpcSecurityGroupMembership
} deriving (Eq, Show)
dbinstance :: DBInstance
dbinstance = DBInstance
{ _dbiDBInstanceIdentifier = Nothing
, _dbiDBInstanceClass = Nothing
, _dbiEngine = Nothing
, _dbiDBInstanceStatus = Nothing
, _dbiMasterUsername = Nothing
, _dbiDBName = Nothing
, _dbiEndpoint = Nothing
, _dbiAllocatedStorage = Nothing
, _dbiInstanceCreateTime = Nothing
, _dbiPreferredBackupWindow = Nothing
, _dbiBackupRetentionPeriod = Nothing
, _dbiDBSecurityGroups = mempty
, _dbiVpcSecurityGroups = mempty
, _dbiDBParameterGroups = mempty
, _dbiAvailabilityZone = Nothing
, _dbiDBSubnetGroup = Nothing
, _dbiPreferredMaintenanceWindow = Nothing
, _dbiPendingModifiedValues = Nothing
, _dbiLatestRestorableTime = Nothing
, _dbiMultiAZ = Nothing
, _dbiEngineVersion = Nothing
, _dbiAutoMinorVersionUpgrade = Nothing
, _dbiReadReplicaSourceDBInstanceIdentifier = Nothing
, _dbiReadReplicaDBInstanceIdentifiers = mempty
, _dbiLicenseModel = Nothing
, _dbiIops = Nothing
, _dbiOptionGroupMemberships = mempty
, _dbiCharacterSetName = Nothing
, _dbiSecondaryAvailabilityZone = Nothing
, _dbiPubliclyAccessible = Nothing
, _dbiStatusInfos = mempty
, _dbiStorageType = Nothing
, _dbiTdeCredentialArn = Nothing
}
dbiAllocatedStorage :: Lens' DBInstance (Maybe Int)
dbiAllocatedStorage =
lens _dbiAllocatedStorage (\s a -> s { _dbiAllocatedStorage = a })
dbiAutoMinorVersionUpgrade :: Lens' DBInstance (Maybe Bool)
dbiAutoMinorVersionUpgrade =
lens _dbiAutoMinorVersionUpgrade
(\s a -> s { _dbiAutoMinorVersionUpgrade = a })
dbiAvailabilityZone :: Lens' DBInstance (Maybe Text)
dbiAvailabilityZone =
lens _dbiAvailabilityZone (\s a -> s { _dbiAvailabilityZone = a })
dbiBackupRetentionPeriod :: Lens' DBInstance (Maybe Int)
dbiBackupRetentionPeriod =
lens _dbiBackupRetentionPeriod
(\s a -> s { _dbiBackupRetentionPeriod = a })
dbiCharacterSetName :: Lens' DBInstance (Maybe Text)
dbiCharacterSetName =
lens _dbiCharacterSetName (\s a -> s { _dbiCharacterSetName = a })
dbiDBInstanceClass :: Lens' DBInstance (Maybe Text)
dbiDBInstanceClass =
lens _dbiDBInstanceClass (\s a -> s { _dbiDBInstanceClass = a })
dbiDBInstanceIdentifier :: Lens' DBInstance (Maybe Text)
dbiDBInstanceIdentifier =
lens _dbiDBInstanceIdentifier (\s a -> s { _dbiDBInstanceIdentifier = a })
dbiDBInstanceStatus :: Lens' DBInstance (Maybe Text)
dbiDBInstanceStatus =
lens _dbiDBInstanceStatus (\s a -> s { _dbiDBInstanceStatus = a })
dbiDBName :: Lens' DBInstance (Maybe Text)
dbiDBName = lens _dbiDBName (\s a -> s { _dbiDBName = a })
dbiDBParameterGroups :: Lens' DBInstance [DBParameterGroupStatus]
dbiDBParameterGroups =
lens _dbiDBParameterGroups (\s a -> s { _dbiDBParameterGroups = a })
. _List
dbiDBSecurityGroups :: Lens' DBInstance [DBSecurityGroupMembership]
dbiDBSecurityGroups =
lens _dbiDBSecurityGroups (\s a -> s { _dbiDBSecurityGroups = a })
. _List
dbiDBSubnetGroup :: Lens' DBInstance (Maybe DBSubnetGroup)
dbiDBSubnetGroup = lens _dbiDBSubnetGroup (\s a -> s { _dbiDBSubnetGroup = a })
dbiEndpoint :: Lens' DBInstance (Maybe Endpoint)
dbiEndpoint = lens _dbiEndpoint (\s a -> s { _dbiEndpoint = a })
dbiEngine :: Lens' DBInstance (Maybe Text)
dbiEngine = lens _dbiEngine (\s a -> s { _dbiEngine = a })
dbiEngineVersion :: Lens' DBInstance (Maybe Text)
dbiEngineVersion = lens _dbiEngineVersion (\s a -> s { _dbiEngineVersion = a })
dbiInstanceCreateTime :: Lens' DBInstance (Maybe UTCTime)
dbiInstanceCreateTime =
lens _dbiInstanceCreateTime (\s a -> s { _dbiInstanceCreateTime = a })
. mapping _Time
dbiIops :: Lens' DBInstance (Maybe Int)
dbiIops = lens _dbiIops (\s a -> s { _dbiIops = a })
dbiLatestRestorableTime :: Lens' DBInstance (Maybe UTCTime)
dbiLatestRestorableTime =
lens _dbiLatestRestorableTime (\s a -> s { _dbiLatestRestorableTime = a })
. mapping _Time
dbiLicenseModel :: Lens' DBInstance (Maybe Text)
dbiLicenseModel = lens _dbiLicenseModel (\s a -> s { _dbiLicenseModel = a })
dbiMasterUsername :: Lens' DBInstance (Maybe Text)
dbiMasterUsername =
lens _dbiMasterUsername (\s a -> s { _dbiMasterUsername = a })
dbiMultiAZ :: Lens' DBInstance (Maybe Bool)
dbiMultiAZ = lens _dbiMultiAZ (\s a -> s { _dbiMultiAZ = a })
dbiOptionGroupMemberships :: Lens' DBInstance [OptionGroupMembership]
dbiOptionGroupMemberships =
lens _dbiOptionGroupMemberships
(\s a -> s { _dbiOptionGroupMemberships = a })
. _List
dbiPendingModifiedValues :: Lens' DBInstance (Maybe PendingModifiedValues)
dbiPendingModifiedValues =
lens _dbiPendingModifiedValues
(\s a -> s { _dbiPendingModifiedValues = a })
dbiPreferredBackupWindow :: Lens' DBInstance (Maybe Text)
dbiPreferredBackupWindow =
lens _dbiPreferredBackupWindow
(\s a -> s { _dbiPreferredBackupWindow = a })
dbiPreferredMaintenanceWindow :: Lens' DBInstance (Maybe Text)
dbiPreferredMaintenanceWindow =
lens _dbiPreferredMaintenanceWindow
(\s a -> s { _dbiPreferredMaintenanceWindow = a })
dbiPubliclyAccessible :: Lens' DBInstance (Maybe Bool)
dbiPubliclyAccessible =
lens _dbiPubliclyAccessible (\s a -> s { _dbiPubliclyAccessible = a })
dbiReadReplicaDBInstanceIdentifiers :: Lens' DBInstance [Text]
dbiReadReplicaDBInstanceIdentifiers =
lens _dbiReadReplicaDBInstanceIdentifiers
(\s a -> s { _dbiReadReplicaDBInstanceIdentifiers = a })
. _List
dbiReadReplicaSourceDBInstanceIdentifier :: Lens' DBInstance (Maybe Text)
dbiReadReplicaSourceDBInstanceIdentifier =
lens _dbiReadReplicaSourceDBInstanceIdentifier
(\s a -> s { _dbiReadReplicaSourceDBInstanceIdentifier = a })
dbiSecondaryAvailabilityZone :: Lens' DBInstance (Maybe Text)
dbiSecondaryAvailabilityZone =
lens _dbiSecondaryAvailabilityZone
(\s a -> s { _dbiSecondaryAvailabilityZone = a })
dbiStatusInfos :: Lens' DBInstance [DBInstanceStatusInfo]
dbiStatusInfos = lens _dbiStatusInfos (\s a -> s { _dbiStatusInfos = a }) . _List
dbiStorageType :: Lens' DBInstance (Maybe Text)
dbiStorageType = lens _dbiStorageType (\s a -> s { _dbiStorageType = a })
dbiTdeCredentialArn :: Lens' DBInstance (Maybe Text)
dbiTdeCredentialArn =
lens _dbiTdeCredentialArn (\s a -> s { _dbiTdeCredentialArn = a })
dbiVpcSecurityGroups :: Lens' DBInstance [VpcSecurityGroupMembership]
dbiVpcSecurityGroups =
lens _dbiVpcSecurityGroups (\s a -> s { _dbiVpcSecurityGroups = a })
. _List
instance FromXML DBInstance where
parseXML x = DBInstance
<$> x .@? "AllocatedStorage"
<*> x .@? "AutoMinorVersionUpgrade"
<*> x .@? "AvailabilityZone"
<*> x .@? "BackupRetentionPeriod"
<*> x .@? "CharacterSetName"
<*> x .@? "DBInstanceClass"
<*> x .@? "DBInstanceIdentifier"
<*> x .@? "DBInstanceStatus"
<*> x .@? "DBName"
<*> x .@? "DBParameterGroups" .!@ mempty
<*> x .@? "DBSecurityGroups" .!@ mempty
<*> x .@? "DBSubnetGroup"
<*> x .@? "Endpoint"
<*> x .@? "Engine"
<*> x .@? "EngineVersion"
<*> x .@? "InstanceCreateTime"
<*> x .@? "Iops"
<*> x .@? "LatestRestorableTime"
<*> x .@? "LicenseModel"
<*> x .@? "MasterUsername"
<*> x .@? "MultiAZ"
<*> x .@? "OptionGroupMemberships" .!@ mempty
<*> x .@? "PendingModifiedValues"
<*> x .@? "PreferredBackupWindow"
<*> x .@? "PreferredMaintenanceWindow"
<*> x .@? "PubliclyAccessible"
<*> x .@? "ReadReplicaDBInstanceIdentifiers" .!@ mempty
<*> x .@? "ReadReplicaSourceDBInstanceIdentifier"
<*> x .@? "SecondaryAvailabilityZone"
<*> x .@? "StatusInfos" .!@ mempty
<*> x .@? "StorageType"
<*> x .@? "TdeCredentialArn"
<*> x .@? "VpcSecurityGroups" .!@ mempty
instance ToQuery DBInstance where
toQuery DBInstance{..} = mconcat
[ "AllocatedStorage" =? _dbiAllocatedStorage
, "AutoMinorVersionUpgrade" =? _dbiAutoMinorVersionUpgrade
, "AvailabilityZone" =? _dbiAvailabilityZone
, "BackupRetentionPeriod" =? _dbiBackupRetentionPeriod
, "CharacterSetName" =? _dbiCharacterSetName
, "DBInstanceClass" =? _dbiDBInstanceClass
, "DBInstanceIdentifier" =? _dbiDBInstanceIdentifier
, "DBInstanceStatus" =? _dbiDBInstanceStatus
, "DBName" =? _dbiDBName
, "DBParameterGroups" =? _dbiDBParameterGroups
, "DBSecurityGroups" =? _dbiDBSecurityGroups
, "DBSubnetGroup" =? _dbiDBSubnetGroup
, "Endpoint" =? _dbiEndpoint
, "Engine" =? _dbiEngine
, "EngineVersion" =? _dbiEngineVersion
, "InstanceCreateTime" =? _dbiInstanceCreateTime
, "Iops" =? _dbiIops
, "LatestRestorableTime" =? _dbiLatestRestorableTime
, "LicenseModel" =? _dbiLicenseModel
, "MasterUsername" =? _dbiMasterUsername
, "MultiAZ" =? _dbiMultiAZ
, "OptionGroupMemberships" =? _dbiOptionGroupMemberships
, "PendingModifiedValues" =? _dbiPendingModifiedValues
, "PreferredBackupWindow" =? _dbiPreferredBackupWindow
, "PreferredMaintenanceWindow" =? _dbiPreferredMaintenanceWindow
, "PubliclyAccessible" =? _dbiPubliclyAccessible
, "ReadReplicaDBInstanceIdentifiers" =? _dbiReadReplicaDBInstanceIdentifiers
, "ReadReplicaSourceDBInstanceIdentifier" =? _dbiReadReplicaSourceDBInstanceIdentifier
, "SecondaryAvailabilityZone" =? _dbiSecondaryAvailabilityZone
, "StatusInfos" =? _dbiStatusInfos
, "StorageType" =? _dbiStorageType
, "TdeCredentialArn" =? _dbiTdeCredentialArn
, "VpcSecurityGroups" =? _dbiVpcSecurityGroups
]
newtype AvailabilityZone = AvailabilityZone
{ _azName :: Maybe Text
} deriving (Eq, Ord, Show, Monoid)
availabilityZone :: AvailabilityZone
availabilityZone = AvailabilityZone
{ _azName = Nothing
}
azName :: Lens' AvailabilityZone (Maybe Text)
azName = lens _azName (\s a -> s { _azName = a })
instance FromXML AvailabilityZone where
parseXML x = AvailabilityZone
<$> x .@? "Name"
instance ToQuery AvailabilityZone where
toQuery AvailabilityZone{..} = mconcat
[ "Name" =? _azName
]
data EventSubscription = EventSubscription
{ _esCustSubscriptionId :: Maybe Text
, _esCustomerAwsId :: Maybe Text
, _esEnabled :: Maybe Bool
, _esEventCategoriesList :: List "member" Text
, _esSnsTopicArn :: Maybe Text
, _esSourceIdsList :: List "member" Text
, _esSourceType :: Maybe Text
, _esStatus :: Maybe Text
, _esSubscriptionCreationTime :: Maybe Text
} deriving (Eq, Ord, Show)
eventSubscription :: EventSubscription
eventSubscription = EventSubscription
{ _esCustomerAwsId = Nothing
, _esCustSubscriptionId = Nothing
, _esSnsTopicArn = Nothing
, _esStatus = Nothing
, _esSubscriptionCreationTime = Nothing
, _esSourceType = Nothing
, _esSourceIdsList = mempty
, _esEventCategoriesList = mempty
, _esEnabled = Nothing
}
esCustSubscriptionId :: Lens' EventSubscription (Maybe Text)
esCustSubscriptionId =
lens _esCustSubscriptionId (\s a -> s { _esCustSubscriptionId = a })
esCustomerAwsId :: Lens' EventSubscription (Maybe Text)
esCustomerAwsId = lens _esCustomerAwsId (\s a -> s { _esCustomerAwsId = a })
esEnabled :: Lens' EventSubscription (Maybe Bool)
esEnabled = lens _esEnabled (\s a -> s { _esEnabled = a })
esEventCategoriesList :: Lens' EventSubscription [Text]
esEventCategoriesList =
lens _esEventCategoriesList (\s a -> s { _esEventCategoriesList = a })
. _List
esSnsTopicArn :: Lens' EventSubscription (Maybe Text)
esSnsTopicArn = lens _esSnsTopicArn (\s a -> s { _esSnsTopicArn = a })
esSourceIdsList :: Lens' EventSubscription [Text]
esSourceIdsList = lens _esSourceIdsList (\s a -> s { _esSourceIdsList = a }) . _List
esSourceType :: Lens' EventSubscription (Maybe Text)
esSourceType = lens _esSourceType (\s a -> s { _esSourceType = a })
esStatus :: Lens' EventSubscription (Maybe Text)
esStatus = lens _esStatus (\s a -> s { _esStatus = a })
esSubscriptionCreationTime :: Lens' EventSubscription (Maybe Text)
esSubscriptionCreationTime =
lens _esSubscriptionCreationTime
(\s a -> s { _esSubscriptionCreationTime = a })
instance FromXML EventSubscription where
parseXML x = EventSubscription
<$> x .@? "CustSubscriptionId"
<*> x .@? "CustomerAwsId"
<*> x .@? "Enabled"
<*> x .@? "EventCategoriesList" .!@ mempty
<*> x .@? "SnsTopicArn"
<*> x .@? "SourceIdsList" .!@ mempty
<*> x .@? "SourceType"
<*> x .@? "Status"
<*> x .@? "SubscriptionCreationTime"
instance ToQuery EventSubscription where
toQuery EventSubscription{..} = mconcat
[ "CustSubscriptionId" =? _esCustSubscriptionId
, "CustomerAwsId" =? _esCustomerAwsId
, "Enabled" =? _esEnabled
, "EventCategoriesList" =? _esEventCategoriesList
, "SnsTopicArn" =? _esSnsTopicArn
, "SourceIdsList" =? _esSourceIdsList
, "SourceType" =? _esSourceType
, "Status" =? _esStatus
, "SubscriptionCreationTime" =? _esSubscriptionCreationTime
]
data DBSubnetGroup = DBSubnetGroup
{ _dbsg1DBSubnetGroupDescription :: Maybe Text
, _dbsg1DBSubnetGroupName :: Maybe Text
, _dbsg1SubnetGroupStatus :: Maybe Text
, _dbsg1Subnets :: List "member" Subnet
, _dbsg1VpcId :: Maybe Text
} deriving (Eq, Show)
dbsubnetGroup :: DBSubnetGroup
dbsubnetGroup = DBSubnetGroup
{ _dbsg1DBSubnetGroupName = Nothing
, _dbsg1DBSubnetGroupDescription = Nothing
, _dbsg1VpcId = Nothing
, _dbsg1SubnetGroupStatus = Nothing
, _dbsg1Subnets = mempty
}
dbsg1DBSubnetGroupDescription :: Lens' DBSubnetGroup (Maybe Text)
dbsg1DBSubnetGroupDescription =
lens _dbsg1DBSubnetGroupDescription
(\s a -> s { _dbsg1DBSubnetGroupDescription = a })
dbsg1DBSubnetGroupName :: Lens' DBSubnetGroup (Maybe Text)
dbsg1DBSubnetGroupName =
lens _dbsg1DBSubnetGroupName (\s a -> s { _dbsg1DBSubnetGroupName = a })
dbsg1SubnetGroupStatus :: Lens' DBSubnetGroup (Maybe Text)
dbsg1SubnetGroupStatus =
lens _dbsg1SubnetGroupStatus (\s a -> s { _dbsg1SubnetGroupStatus = a })
dbsg1Subnets :: Lens' DBSubnetGroup [Subnet]
dbsg1Subnets = lens _dbsg1Subnets (\s a -> s { _dbsg1Subnets = a }) . _List
dbsg1VpcId :: Lens' DBSubnetGroup (Maybe Text)
dbsg1VpcId = lens _dbsg1VpcId (\s a -> s { _dbsg1VpcId = a })
instance FromXML DBSubnetGroup where
parseXML x = DBSubnetGroup
<$> x .@? "DBSubnetGroupDescription"
<*> x .@? "DBSubnetGroupName"
<*> x .@? "SubnetGroupStatus"
<*> x .@? "Subnets" .!@ mempty
<*> x .@? "VpcId"
instance ToQuery DBSubnetGroup where
toQuery DBSubnetGroup{..} = mconcat
[ "DBSubnetGroupDescription" =? _dbsg1DBSubnetGroupDescription
, "DBSubnetGroupName" =? _dbsg1DBSubnetGroupName
, "SubnetGroupStatus" =? _dbsg1SubnetGroupStatus
, "Subnets" =? _dbsg1Subnets
, "VpcId" =? _dbsg1VpcId
]
data DBInstanceStatusInfo = DBInstanceStatusInfo
{ _dbisiMessage :: Maybe Text
, _dbisiNormal :: Maybe Bool
, _dbisiStatus :: Maybe Text
, _dbisiStatusType :: Maybe Text
} deriving (Eq, Ord, Show)
dbinstanceStatusInfo :: DBInstanceStatusInfo
dbinstanceStatusInfo = DBInstanceStatusInfo
{ _dbisiStatusType = Nothing
, _dbisiNormal = Nothing
, _dbisiStatus = Nothing
, _dbisiMessage = Nothing
}
dbisiMessage :: Lens' DBInstanceStatusInfo (Maybe Text)
dbisiMessage = lens _dbisiMessage (\s a -> s { _dbisiMessage = a })
dbisiNormal :: Lens' DBInstanceStatusInfo (Maybe Bool)
dbisiNormal = lens _dbisiNormal (\s a -> s { _dbisiNormal = a })
dbisiStatus :: Lens' DBInstanceStatusInfo (Maybe Text)
dbisiStatus = lens _dbisiStatus (\s a -> s { _dbisiStatus = a })
dbisiStatusType :: Lens' DBInstanceStatusInfo (Maybe Text)
dbisiStatusType = lens _dbisiStatusType (\s a -> s { _dbisiStatusType = a })
instance FromXML DBInstanceStatusInfo where
parseXML x = DBInstanceStatusInfo
<$> x .@? "Message"
<*> x .@? "Normal"
<*> x .@? "Status"
<*> x .@? "StatusType"
instance ToQuery DBInstanceStatusInfo where
toQuery DBInstanceStatusInfo{..} = mconcat
[ "Message" =? _dbisiMessage
, "Normal" =? _dbisiNormal
, "Status" =? _dbisiStatus
, "StatusType" =? _dbisiStatusType
]
data OptionSetting = OptionSetting
{ _osAllowedValues :: Maybe Text
, _osApplyType :: Maybe Text
, _osDataType :: Maybe Text
, _osDefaultValue :: Maybe Text
, _osDescription :: Maybe Text
, _osIsCollection :: Maybe Bool
, _osIsModifiable :: Maybe Bool
, _osName :: Maybe Text
, _osValue :: Maybe Text
} deriving (Eq, Ord, Show)
optionSetting :: OptionSetting
optionSetting = OptionSetting
{ _osName = Nothing
, _osValue = Nothing
, _osDefaultValue = Nothing
, _osDescription = Nothing
, _osApplyType = Nothing
, _osDataType = Nothing
, _osAllowedValues = Nothing
, _osIsModifiable = Nothing
, _osIsCollection = Nothing
}
osAllowedValues :: Lens' OptionSetting (Maybe Text)
osAllowedValues = lens _osAllowedValues (\s a -> s { _osAllowedValues = a })
osApplyType :: Lens' OptionSetting (Maybe Text)
osApplyType = lens _osApplyType (\s a -> s { _osApplyType = a })
osDataType :: Lens' OptionSetting (Maybe Text)
osDataType = lens _osDataType (\s a -> s { _osDataType = a })
osDefaultValue :: Lens' OptionSetting (Maybe Text)
osDefaultValue = lens _osDefaultValue (\s a -> s { _osDefaultValue = a })
osDescription :: Lens' OptionSetting (Maybe Text)
osDescription = lens _osDescription (\s a -> s { _osDescription = a })
osIsCollection :: Lens' OptionSetting (Maybe Bool)
osIsCollection = lens _osIsCollection (\s a -> s { _osIsCollection = a })
osIsModifiable :: Lens' OptionSetting (Maybe Bool)
osIsModifiable = lens _osIsModifiable (\s a -> s { _osIsModifiable = a })
osName :: Lens' OptionSetting (Maybe Text)
osName = lens _osName (\s a -> s { _osName = a })
osValue :: Lens' OptionSetting (Maybe Text)
osValue = lens _osValue (\s a -> s { _osValue = a })
instance FromXML OptionSetting where
parseXML x = OptionSetting
<$> x .@? "AllowedValues"
<*> x .@? "ApplyType"
<*> x .@? "DataType"
<*> x .@? "DefaultValue"
<*> x .@? "Description"
<*> x .@? "IsCollection"
<*> x .@? "IsModifiable"
<*> x .@? "Name"
<*> x .@? "Value"
instance ToQuery OptionSetting where
toQuery OptionSetting{..} = mconcat
[ "AllowedValues" =? _osAllowedValues
, "ApplyType" =? _osApplyType
, "DataType" =? _osDataType
, "DefaultValue" =? _osDefaultValue
, "Description" =? _osDescription
, "IsCollection" =? _osIsCollection
, "IsModifiable" =? _osIsModifiable
, "Name" =? _osName
, "Value" =? _osValue
]
data DescribeDBLogFilesDetails = DescribeDBLogFilesDetails
{ _ddblfdLastWritten :: Maybe Integer
, _ddblfdLogFileName :: Maybe Text
, _ddblfdSize :: Maybe Integer
} deriving (Eq, Ord, Show)
describeDBLogFilesDetails :: DescribeDBLogFilesDetails
describeDBLogFilesDetails = DescribeDBLogFilesDetails
{ _ddblfdLogFileName = Nothing
, _ddblfdLastWritten = Nothing
, _ddblfdSize = Nothing
}
ddblfdLastWritten :: Lens' DescribeDBLogFilesDetails (Maybe Integer)
ddblfdLastWritten =
lens _ddblfdLastWritten (\s a -> s { _ddblfdLastWritten = a })
ddblfdLogFileName :: Lens' DescribeDBLogFilesDetails (Maybe Text)
ddblfdLogFileName =
lens _ddblfdLogFileName (\s a -> s { _ddblfdLogFileName = a })
ddblfdSize :: Lens' DescribeDBLogFilesDetails (Maybe Integer)
ddblfdSize = lens _ddblfdSize (\s a -> s { _ddblfdSize = a })
instance FromXML DescribeDBLogFilesDetails where
parseXML x = DescribeDBLogFilesDetails
<$> x .@? "LastWritten"
<*> x .@? "LogFileName"
<*> x .@? "Size"
instance ToQuery DescribeDBLogFilesDetails where
toQuery DescribeDBLogFilesDetails{..} = mconcat
[ "LastWritten" =? _ddblfdLastWritten
, "LogFileName" =? _ddblfdLogFileName
, "Size" =? _ddblfdSize
]
data OrderableDBInstanceOption = OrderableDBInstanceOption
{ _odbioAvailabilityZones :: List "member" AvailabilityZone
, _odbioDBInstanceClass :: Maybe Text
, _odbioEngine :: Maybe Text
, _odbioEngineVersion :: Maybe Text
, _odbioLicenseModel :: Maybe Text
, _odbioMultiAZCapable :: Maybe Bool
, _odbioReadReplicaCapable :: Maybe Bool
, _odbioStorageType :: Maybe Text
, _odbioSupportsIops :: Maybe Bool
, _odbioVpc :: Maybe Bool
} deriving (Eq, Show)
orderableDBInstanceOption :: OrderableDBInstanceOption
orderableDBInstanceOption = OrderableDBInstanceOption
{ _odbioEngine = Nothing
, _odbioEngineVersion = Nothing
, _odbioDBInstanceClass = Nothing
, _odbioLicenseModel = Nothing
, _odbioAvailabilityZones = mempty
, _odbioMultiAZCapable = Nothing
, _odbioReadReplicaCapable = Nothing
, _odbioVpc = Nothing
, _odbioStorageType = Nothing
, _odbioSupportsIops = Nothing
}
odbioAvailabilityZones :: Lens' OrderableDBInstanceOption [AvailabilityZone]
odbioAvailabilityZones =
lens _odbioAvailabilityZones (\s a -> s { _odbioAvailabilityZones = a })
. _List
odbioDBInstanceClass :: Lens' OrderableDBInstanceOption (Maybe Text)
odbioDBInstanceClass =
lens _odbioDBInstanceClass (\s a -> s { _odbioDBInstanceClass = a })
odbioEngine :: Lens' OrderableDBInstanceOption (Maybe Text)
odbioEngine = lens _odbioEngine (\s a -> s { _odbioEngine = a })
odbioEngineVersion :: Lens' OrderableDBInstanceOption (Maybe Text)
odbioEngineVersion =
lens _odbioEngineVersion (\s a -> s { _odbioEngineVersion = a })
odbioLicenseModel :: Lens' OrderableDBInstanceOption (Maybe Text)
odbioLicenseModel =
lens _odbioLicenseModel (\s a -> s { _odbioLicenseModel = a })
odbioMultiAZCapable :: Lens' OrderableDBInstanceOption (Maybe Bool)
odbioMultiAZCapable =
lens _odbioMultiAZCapable (\s a -> s { _odbioMultiAZCapable = a })
odbioReadReplicaCapable :: Lens' OrderableDBInstanceOption (Maybe Bool)
odbioReadReplicaCapable =
lens _odbioReadReplicaCapable (\s a -> s { _odbioReadReplicaCapable = a })
odbioStorageType :: Lens' OrderableDBInstanceOption (Maybe Text)
odbioStorageType = lens _odbioStorageType (\s a -> s { _odbioStorageType = a })
odbioSupportsIops :: Lens' OrderableDBInstanceOption (Maybe Bool)
odbioSupportsIops =
lens _odbioSupportsIops (\s a -> s { _odbioSupportsIops = a })
odbioVpc :: Lens' OrderableDBInstanceOption (Maybe Bool)
odbioVpc = lens _odbioVpc (\s a -> s { _odbioVpc = a })
instance FromXML OrderableDBInstanceOption where
parseXML x = OrderableDBInstanceOption
<$> x .@? "AvailabilityZones" .!@ mempty
<*> x .@? "DBInstanceClass"
<*> x .@? "Engine"
<*> x .@? "EngineVersion"
<*> x .@? "LicenseModel"
<*> x .@? "MultiAZCapable"
<*> x .@? "ReadReplicaCapable"
<*> x .@? "StorageType"
<*> x .@? "SupportsIops"
<*> x .@? "Vpc"
instance ToQuery OrderableDBInstanceOption where
toQuery OrderableDBInstanceOption{..} = mconcat
[ "AvailabilityZones" =? _odbioAvailabilityZones
, "DBInstanceClass" =? _odbioDBInstanceClass
, "Engine" =? _odbioEngine
, "EngineVersion" =? _odbioEngineVersion
, "LicenseModel" =? _odbioLicenseModel
, "MultiAZCapable" =? _odbioMultiAZCapable
, "ReadReplicaCapable" =? _odbioReadReplicaCapable
, "StorageType" =? _odbioStorageType
, "SupportsIops" =? _odbioSupportsIops
, "Vpc" =? _odbioVpc
]
data Filter = Filter
{ _fName :: Text
, _fValues :: List "member" Text
} deriving (Eq, Ord, Show)
filter' :: Text
-> Filter
filter' p1 = Filter
{ _fName = p1
, _fValues = mempty
}
fName :: Lens' Filter Text
fName = lens _fName (\s a -> s { _fName = a })
fValues :: Lens' Filter [Text]
fValues = lens _fValues (\s a -> s { _fValues = a }) . _List
instance FromXML Filter where
parseXML x = Filter
<$> x .@ "Name"
<*> x .@? "Values" .!@ mempty
instance ToQuery Filter where
toQuery Filter{..} = mconcat
[ "Name" =? _fName
, "Values" =? _fValues
]
data RecurringCharge = RecurringCharge
{ _rcRecurringChargeAmount :: Maybe Double
, _rcRecurringChargeFrequency :: Maybe Text
} deriving (Eq, Ord, Show)
recurringCharge :: RecurringCharge
recurringCharge = RecurringCharge
{ _rcRecurringChargeAmount = Nothing
, _rcRecurringChargeFrequency = Nothing
}
rcRecurringChargeAmount :: Lens' RecurringCharge (Maybe Double)
rcRecurringChargeAmount =
lens _rcRecurringChargeAmount (\s a -> s { _rcRecurringChargeAmount = a })
rcRecurringChargeFrequency :: Lens' RecurringCharge (Maybe Text)
rcRecurringChargeFrequency =
lens _rcRecurringChargeFrequency
(\s a -> s { _rcRecurringChargeFrequency = a })
instance FromXML RecurringCharge where
parseXML x = RecurringCharge
<$> x .@? "RecurringChargeAmount"
<*> x .@? "RecurringChargeFrequency"
instance ToQuery RecurringCharge where
toQuery RecurringCharge{..} = mconcat
[ "RecurringChargeAmount" =? _rcRecurringChargeAmount
, "RecurringChargeFrequency" =? _rcRecurringChargeFrequency
]
data Endpoint = Endpoint
{ _eAddress :: Maybe Text
, _ePort :: Maybe Int
} deriving (Eq, Ord, Show)
endpoint :: Endpoint
endpoint = Endpoint
{ _eAddress = Nothing
, _ePort = Nothing
}
eAddress :: Lens' Endpoint (Maybe Text)
eAddress = lens _eAddress (\s a -> s { _eAddress = a })
ePort :: Lens' Endpoint (Maybe Int)
ePort = lens _ePort (\s a -> s { _ePort = a })
instance FromXML Endpoint where
parseXML x = Endpoint
<$> x .@? "Address"
<*> x .@? "Port"
instance ToQuery Endpoint where
toQuery Endpoint{..} = mconcat
[ "Address" =? _eAddress
, "Port" =? _ePort
]
data OptionConfiguration = OptionConfiguration
{ _ocDBSecurityGroupMemberships :: List "member" Text
, _ocOptionName :: Text
, _ocOptionSettings :: List "member" OptionSetting
, _ocPort :: Maybe Int
, _ocVpcSecurityGroupMemberships :: List "member" Text
} deriving (Eq, Show)
optionConfiguration :: Text
-> OptionConfiguration
optionConfiguration p1 = OptionConfiguration
{ _ocOptionName = p1
, _ocPort = Nothing
, _ocDBSecurityGroupMemberships = mempty
, _ocVpcSecurityGroupMemberships = mempty
, _ocOptionSettings = mempty
}
ocDBSecurityGroupMemberships :: Lens' OptionConfiguration [Text]
ocDBSecurityGroupMemberships =
lens _ocDBSecurityGroupMemberships
(\s a -> s { _ocDBSecurityGroupMemberships = a })
. _List
ocOptionName :: Lens' OptionConfiguration Text
ocOptionName = lens _ocOptionName (\s a -> s { _ocOptionName = a })
ocOptionSettings :: Lens' OptionConfiguration [OptionSetting]
ocOptionSettings = lens _ocOptionSettings (\s a -> s { _ocOptionSettings = a }) . _List
ocPort :: Lens' OptionConfiguration (Maybe Int)
ocPort = lens _ocPort (\s a -> s { _ocPort = a })
ocVpcSecurityGroupMemberships :: Lens' OptionConfiguration [Text]
ocVpcSecurityGroupMemberships =
lens _ocVpcSecurityGroupMemberships
(\s a -> s { _ocVpcSecurityGroupMemberships = a })
. _List
instance FromXML OptionConfiguration where
parseXML x = OptionConfiguration
<$> x .@? "DBSecurityGroupMemberships" .!@ mempty
<*> x .@ "OptionName"
<*> x .@? "OptionSettings" .!@ mempty
<*> x .@? "Port"
<*> x .@? "VpcSecurityGroupMemberships" .!@ mempty
instance ToQuery OptionConfiguration where
toQuery OptionConfiguration{..} = mconcat
[ "DBSecurityGroupMemberships" =? _ocDBSecurityGroupMemberships
, "OptionName" =? _ocOptionName
, "OptionSettings" =? _ocOptionSettings
, "Port" =? _ocPort
, "VpcSecurityGroupMemberships" =? _ocVpcSecurityGroupMemberships
]
data Option = Option
{ _oDBSecurityGroupMemberships :: List "member" DBSecurityGroupMembership
, _oOptionDescription :: Maybe Text
, _oOptionName :: Maybe Text
, _oOptionSettings :: List "member" OptionSetting
, _oPermanent :: Maybe Bool
, _oPersistent :: Maybe Bool
, _oPort :: Maybe Int
, _oVpcSecurityGroupMemberships :: List "member" VpcSecurityGroupMembership
} deriving (Eq, Show)
option :: Option
option = Option
{ _oOptionName = Nothing
, _oOptionDescription = Nothing
, _oPersistent = Nothing
, _oPermanent = Nothing
, _oPort = Nothing
, _oOptionSettings = mempty
, _oDBSecurityGroupMemberships = mempty
, _oVpcSecurityGroupMemberships = mempty
}
oDBSecurityGroupMemberships :: Lens' Option [DBSecurityGroupMembership]
oDBSecurityGroupMemberships =
lens _oDBSecurityGroupMemberships
(\s a -> s { _oDBSecurityGroupMemberships = a })
. _List
oOptionDescription :: Lens' Option (Maybe Text)
oOptionDescription =
lens _oOptionDescription (\s a -> s { _oOptionDescription = a })
oOptionName :: Lens' Option (Maybe Text)
oOptionName = lens _oOptionName (\s a -> s { _oOptionName = a })
oOptionSettings :: Lens' Option [OptionSetting]
oOptionSettings = lens _oOptionSettings (\s a -> s { _oOptionSettings = a }) . _List
oPermanent :: Lens' Option (Maybe Bool)
oPermanent = lens _oPermanent (\s a -> s { _oPermanent = a })
oPersistent :: Lens' Option (Maybe Bool)
oPersistent = lens _oPersistent (\s a -> s { _oPersistent = a })
oPort :: Lens' Option (Maybe Int)
oPort = lens _oPort (\s a -> s { _oPort = a })
oVpcSecurityGroupMemberships :: Lens' Option [VpcSecurityGroupMembership]
oVpcSecurityGroupMemberships =
lens _oVpcSecurityGroupMemberships
(\s a -> s { _oVpcSecurityGroupMemberships = a })
. _List
instance FromXML Option where
parseXML x = Option
<$> x .@? "DBSecurityGroupMemberships" .!@ mempty
<*> x .@? "OptionDescription"
<*> x .@? "OptionName"
<*> x .@? "OptionSettings" .!@ mempty
<*> x .@? "Permanent"
<*> x .@? "Persistent"
<*> x .@? "Port"
<*> x .@? "VpcSecurityGroupMemberships" .!@ mempty
instance ToQuery Option where
toQuery Option{..} = mconcat
[ "DBSecurityGroupMemberships" =? _oDBSecurityGroupMemberships
, "OptionDescription" =? _oOptionDescription
, "OptionName" =? _oOptionName
, "OptionSettings" =? _oOptionSettings
, "Permanent" =? _oPermanent
, "Persistent" =? _oPersistent
, "Port" =? _oPort
, "VpcSecurityGroupMemberships" =? _oVpcSecurityGroupMemberships
]
data IPRange = IPRange
{ _iprCIDRIP :: Maybe Text
, _iprStatus :: Maybe Text
} deriving (Eq, Ord, Show)
iprange :: IPRange
iprange = IPRange
{ _iprStatus = Nothing
, _iprCIDRIP = Nothing
}
iprCIDRIP :: Lens' IPRange (Maybe Text)
iprCIDRIP = lens _iprCIDRIP (\s a -> s { _iprCIDRIP = a })
iprStatus :: Lens' IPRange (Maybe Text)
iprStatus = lens _iprStatus (\s a -> s { _iprStatus = a })
instance FromXML IPRange where
parseXML x = IPRange
<$> x .@? "CIDRIP"
<*> x .@? "Status"
instance ToQuery IPRange where
toQuery IPRange{..} = mconcat
[ "CIDRIP" =? _iprCIDRIP
, "Status" =? _iprStatus
]
data OptionGroupMembership = OptionGroupMembership
{ _ogmOptionGroupName :: Maybe Text
, _ogmStatus :: Maybe Text
} deriving (Eq, Ord, Show)
optionGroupMembership :: OptionGroupMembership
optionGroupMembership = OptionGroupMembership
{ _ogmOptionGroupName = Nothing
, _ogmStatus = Nothing
}
ogmOptionGroupName :: Lens' OptionGroupMembership (Maybe Text)
ogmOptionGroupName =
lens _ogmOptionGroupName (\s a -> s { _ogmOptionGroupName = a })
ogmStatus :: Lens' OptionGroupMembership (Maybe Text)
ogmStatus = lens _ogmStatus (\s a -> s { _ogmStatus = a })
instance FromXML OptionGroupMembership where
parseXML x = OptionGroupMembership
<$> x .@? "OptionGroupName"
<*> x .@? "Status"
instance ToQuery OptionGroupMembership where
toQuery OptionGroupMembership{..} = mconcat
[ "OptionGroupName" =? _ogmOptionGroupName
, "Status" =? _ogmStatus
]
data EventCategoriesMap = EventCategoriesMap
{ _ecmEventCategories :: List "member" Text
, _ecmSourceType :: Maybe Text
} deriving (Eq, Ord, Show)
eventCategoriesMap :: EventCategoriesMap
eventCategoriesMap = EventCategoriesMap
{ _ecmSourceType = Nothing
, _ecmEventCategories = mempty
}
ecmEventCategories :: Lens' EventCategoriesMap [Text]
ecmEventCategories =
lens _ecmEventCategories (\s a -> s { _ecmEventCategories = a })
. _List
ecmSourceType :: Lens' EventCategoriesMap (Maybe Text)
ecmSourceType = lens _ecmSourceType (\s a -> s { _ecmSourceType = a })
instance FromXML EventCategoriesMap where
parseXML x = EventCategoriesMap
<$> x .@? "EventCategories" .!@ mempty
<*> x .@? "SourceType"
instance ToQuery EventCategoriesMap where
toQuery EventCategoriesMap{..} = mconcat
[ "EventCategories" =? _ecmEventCategories
, "SourceType" =? _ecmSourceType
]
data PendingModifiedValues = PendingModifiedValues
{ _pmvAllocatedStorage :: Maybe Int
, _pmvBackupRetentionPeriod :: Maybe Int
, _pmvDBInstanceClass :: Maybe Text
, _pmvDBInstanceIdentifier :: Maybe Text
, _pmvEngineVersion :: Maybe Text
, _pmvIops :: Maybe Int
, _pmvMasterUserPassword :: Maybe Text
, _pmvMultiAZ :: Maybe Bool
, _pmvPort :: Maybe Int
, _pmvStorageType :: Maybe Text
} deriving (Eq, Ord, Show)
pendingModifiedValues :: PendingModifiedValues
pendingModifiedValues = PendingModifiedValues
{ _pmvDBInstanceClass = Nothing
, _pmvAllocatedStorage = Nothing
, _pmvMasterUserPassword = Nothing
, _pmvPort = Nothing
, _pmvBackupRetentionPeriod = Nothing
, _pmvMultiAZ = Nothing
, _pmvEngineVersion = Nothing
, _pmvIops = Nothing
, _pmvDBInstanceIdentifier = Nothing
, _pmvStorageType = Nothing
}
pmvAllocatedStorage :: Lens' PendingModifiedValues (Maybe Int)
pmvAllocatedStorage =
lens _pmvAllocatedStorage (\s a -> s { _pmvAllocatedStorage = a })
pmvBackupRetentionPeriod :: Lens' PendingModifiedValues (Maybe Int)
pmvBackupRetentionPeriod =
lens _pmvBackupRetentionPeriod
(\s a -> s { _pmvBackupRetentionPeriod = a })
pmvDBInstanceClass :: Lens' PendingModifiedValues (Maybe Text)
pmvDBInstanceClass =
lens _pmvDBInstanceClass (\s a -> s { _pmvDBInstanceClass = a })
pmvDBInstanceIdentifier :: Lens' PendingModifiedValues (Maybe Text)
pmvDBInstanceIdentifier =
lens _pmvDBInstanceIdentifier (\s a -> s { _pmvDBInstanceIdentifier = a })
pmvEngineVersion :: Lens' PendingModifiedValues (Maybe Text)
pmvEngineVersion = lens _pmvEngineVersion (\s a -> s { _pmvEngineVersion = a })
pmvIops :: Lens' PendingModifiedValues (Maybe Int)
pmvIops = lens _pmvIops (\s a -> s { _pmvIops = a })
pmvMasterUserPassword :: Lens' PendingModifiedValues (Maybe Text)
pmvMasterUserPassword =
lens _pmvMasterUserPassword (\s a -> s { _pmvMasterUserPassword = a })
pmvMultiAZ :: Lens' PendingModifiedValues (Maybe Bool)
pmvMultiAZ = lens _pmvMultiAZ (\s a -> s { _pmvMultiAZ = a })
pmvPort :: Lens' PendingModifiedValues (Maybe Int)
pmvPort = lens _pmvPort (\s a -> s { _pmvPort = a })
pmvStorageType :: Lens' PendingModifiedValues (Maybe Text)
pmvStorageType = lens _pmvStorageType (\s a -> s { _pmvStorageType = a })
instance FromXML PendingModifiedValues where
parseXML x = PendingModifiedValues
<$> x .@? "AllocatedStorage"
<*> x .@? "BackupRetentionPeriod"
<*> x .@? "DBInstanceClass"
<*> x .@? "DBInstanceIdentifier"
<*> x .@? "EngineVersion"
<*> x .@? "Iops"
<*> x .@? "MasterUserPassword"
<*> x .@? "MultiAZ"
<*> x .@? "Port"
<*> x .@? "StorageType"
instance ToQuery PendingModifiedValues where
toQuery PendingModifiedValues{..} = mconcat
[ "AllocatedStorage" =? _pmvAllocatedStorage
, "BackupRetentionPeriod" =? _pmvBackupRetentionPeriod
, "DBInstanceClass" =? _pmvDBInstanceClass
, "DBInstanceIdentifier" =? _pmvDBInstanceIdentifier
, "EngineVersion" =? _pmvEngineVersion
, "Iops" =? _pmvIops
, "MasterUserPassword" =? _pmvMasterUserPassword
, "MultiAZ" =? _pmvMultiAZ
, "Port" =? _pmvPort
, "StorageType" =? _pmvStorageType
]
data VpcSecurityGroupMembership = VpcSecurityGroupMembership
{ _vsgmStatus :: Maybe Text
, _vsgmVpcSecurityGroupId :: Maybe Text
} deriving (Eq, Ord, Show)
vpcSecurityGroupMembership :: VpcSecurityGroupMembership
vpcSecurityGroupMembership = VpcSecurityGroupMembership
{ _vsgmVpcSecurityGroupId = Nothing
, _vsgmStatus = Nothing
}
vsgmStatus :: Lens' VpcSecurityGroupMembership (Maybe Text)
vsgmStatus = lens _vsgmStatus (\s a -> s { _vsgmStatus = a })
vsgmVpcSecurityGroupId :: Lens' VpcSecurityGroupMembership (Maybe Text)
vsgmVpcSecurityGroupId =
lens _vsgmVpcSecurityGroupId (\s a -> s { _vsgmVpcSecurityGroupId = a })
instance FromXML VpcSecurityGroupMembership where
parseXML x = VpcSecurityGroupMembership
<$> x .@? "Status"
<*> x .@? "VpcSecurityGroupId"
instance ToQuery VpcSecurityGroupMembership where
toQuery VpcSecurityGroupMembership{..} = mconcat
[ "Status" =? _vsgmStatus
, "VpcSecurityGroupId" =? _vsgmVpcSecurityGroupId
]
data Parameter = Parameter
{ _pAllowedValues :: Maybe Text
, _pApplyMethod :: Maybe ApplyMethod
, _pApplyType :: Maybe Text
, _pDataType :: Maybe Text
, _pDescription :: Maybe Text
, _pIsModifiable :: Maybe Bool
, _pMinimumEngineVersion :: Maybe Text
, _pParameterName :: Maybe Text
, _pParameterValue :: Maybe Text
, _pSource :: Maybe Text
} deriving (Eq, Show)
parameter :: Parameter
parameter = Parameter
{ _pParameterName = Nothing
, _pParameterValue = Nothing
, _pDescription = Nothing
, _pSource = Nothing
, _pApplyType = Nothing
, _pDataType = Nothing
, _pAllowedValues = Nothing
, _pIsModifiable = Nothing
, _pMinimumEngineVersion = Nothing
, _pApplyMethod = Nothing
}
pAllowedValues :: Lens' Parameter (Maybe Text)
pAllowedValues = lens _pAllowedValues (\s a -> s { _pAllowedValues = a })
pApplyMethod :: Lens' Parameter (Maybe ApplyMethod)
pApplyMethod = lens _pApplyMethod (\s a -> s { _pApplyMethod = a })
pApplyType :: Lens' Parameter (Maybe Text)
pApplyType = lens _pApplyType (\s a -> s { _pApplyType = a })
pDataType :: Lens' Parameter (Maybe Text)
pDataType = lens _pDataType (\s a -> s { _pDataType = a })
pDescription :: Lens' Parameter (Maybe Text)
pDescription = lens _pDescription (\s a -> s { _pDescription = a })
pIsModifiable :: Lens' Parameter (Maybe Bool)
pIsModifiable = lens _pIsModifiable (\s a -> s { _pIsModifiable = a })
pMinimumEngineVersion :: Lens' Parameter (Maybe Text)
pMinimumEngineVersion =
lens _pMinimumEngineVersion (\s a -> s { _pMinimumEngineVersion = a })
pParameterName :: Lens' Parameter (Maybe Text)
pParameterName = lens _pParameterName (\s a -> s { _pParameterName = a })
pParameterValue :: Lens' Parameter (Maybe Text)
pParameterValue = lens _pParameterValue (\s a -> s { _pParameterValue = a })
pSource :: Lens' Parameter (Maybe Text)
pSource = lens _pSource (\s a -> s { _pSource = a })
instance FromXML Parameter where
parseXML x = Parameter
<$> x .@? "AllowedValues"
<*> x .@? "ApplyMethod"
<*> x .@? "ApplyType"
<*> x .@? "DataType"
<*> x .@? "Description"
<*> x .@? "IsModifiable"
<*> x .@? "MinimumEngineVersion"
<*> x .@? "ParameterName"
<*> x .@? "ParameterValue"
<*> x .@? "Source"
instance ToQuery Parameter where
toQuery Parameter{..} = mconcat
[ "AllowedValues" =? _pAllowedValues
, "ApplyMethod" =? _pApplyMethod
, "ApplyType" =? _pApplyType
, "DataType" =? _pDataType
, "Description" =? _pDescription
, "IsModifiable" =? _pIsModifiable
, "MinimumEngineVersion" =? _pMinimumEngineVersion
, "ParameterName" =? _pParameterName
, "ParameterValue" =? _pParameterValue
, "Source" =? _pSource
]
data OptionGroupOptionSetting = OptionGroupOptionSetting
{ _ogosAllowedValues :: Maybe Text
, _ogosApplyType :: Maybe Text
, _ogosDefaultValue :: Maybe Text
, _ogosIsModifiable :: Maybe Bool
, _ogosSettingDescription :: Maybe Text
, _ogosSettingName :: Maybe Text
} deriving (Eq, Ord, Show)
optionGroupOptionSetting :: OptionGroupOptionSetting
optionGroupOptionSetting = OptionGroupOptionSetting
{ _ogosSettingName = Nothing
, _ogosSettingDescription = Nothing
, _ogosDefaultValue = Nothing
, _ogosApplyType = Nothing
, _ogosAllowedValues = Nothing
, _ogosIsModifiable = Nothing
}
ogosAllowedValues :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosAllowedValues =
lens _ogosAllowedValues (\s a -> s { _ogosAllowedValues = a })
ogosApplyType :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosApplyType = lens _ogosApplyType (\s a -> s { _ogosApplyType = a })
ogosDefaultValue :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosDefaultValue = lens _ogosDefaultValue (\s a -> s { _ogosDefaultValue = a })
ogosIsModifiable :: Lens' OptionGroupOptionSetting (Maybe Bool)
ogosIsModifiable = lens _ogosIsModifiable (\s a -> s { _ogosIsModifiable = a })
ogosSettingDescription :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosSettingDescription =
lens _ogosSettingDescription (\s a -> s { _ogosSettingDescription = a })
ogosSettingName :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosSettingName = lens _ogosSettingName (\s a -> s { _ogosSettingName = a })
instance FromXML OptionGroupOptionSetting where
parseXML x = OptionGroupOptionSetting
<$> x .@? "AllowedValues"
<*> x .@? "ApplyType"
<*> x .@? "DefaultValue"
<*> x .@? "IsModifiable"
<*> x .@? "SettingDescription"
<*> x .@? "SettingName"
instance ToQuery OptionGroupOptionSetting where
toQuery OptionGroupOptionSetting{..} = mconcat
[ "AllowedValues" =? _ogosAllowedValues
, "ApplyType" =? _ogosApplyType
, "DefaultValue" =? _ogosDefaultValue
, "IsModifiable" =? _ogosIsModifiable
, "SettingDescription" =? _ogosSettingDescription
, "SettingName" =? _ogosSettingName
]