module Network.AWS.RDS.Types.Product where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.RDS.Types.Sum
data AccountQuota = AccountQuota'
{ _aqMax :: !(Maybe Integer)
, _aqUsed :: !(Maybe Integer)
, _aqAccountQuotaName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
accountQuota
:: AccountQuota
accountQuota =
AccountQuota'
{_aqMax = Nothing, _aqUsed = Nothing, _aqAccountQuotaName = Nothing}
aqMax :: Lens' AccountQuota (Maybe Integer)
aqMax = lens _aqMax (\ s a -> s{_aqMax = a});
aqUsed :: Lens' AccountQuota (Maybe Integer)
aqUsed = lens _aqUsed (\ s a -> s{_aqUsed = a});
aqAccountQuotaName :: Lens' AccountQuota (Maybe Text)
aqAccountQuotaName = lens _aqAccountQuotaName (\ s a -> s{_aqAccountQuotaName = a});
instance FromXML AccountQuota where
parseXML x
= AccountQuota' <$>
(x .@? "Max") <*> (x .@? "Used") <*>
(x .@? "AccountQuotaName")
instance Hashable AccountQuota where
instance NFData AccountQuota where
newtype AvailabilityZone = AvailabilityZone'
{ _azName :: Maybe Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
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 Hashable AvailabilityZone where
instance NFData AvailabilityZone where
data Certificate = Certificate'
{ _cCertificateType :: !(Maybe Text)
, _cCertificateARN :: !(Maybe Text)
, _cValidTill :: !(Maybe ISO8601)
, _cCertificateIdentifier :: !(Maybe Text)
, _cThumbprint :: !(Maybe Text)
, _cValidFrom :: !(Maybe ISO8601)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
certificate
:: Certificate
certificate =
Certificate'
{ _cCertificateType = Nothing
, _cCertificateARN = Nothing
, _cValidTill = Nothing
, _cCertificateIdentifier = Nothing
, _cThumbprint = Nothing
, _cValidFrom = Nothing
}
cCertificateType :: Lens' Certificate (Maybe Text)
cCertificateType = lens _cCertificateType (\ s a -> s{_cCertificateType = a});
cCertificateARN :: Lens' Certificate (Maybe Text)
cCertificateARN = lens _cCertificateARN (\ s a -> s{_cCertificateARN = a});
cValidTill :: Lens' Certificate (Maybe UTCTime)
cValidTill = lens _cValidTill (\ s a -> s{_cValidTill = a}) . mapping _Time;
cCertificateIdentifier :: Lens' Certificate (Maybe Text)
cCertificateIdentifier = lens _cCertificateIdentifier (\ s a -> s{_cCertificateIdentifier = a});
cThumbprint :: Lens' Certificate (Maybe Text)
cThumbprint = lens _cThumbprint (\ s a -> s{_cThumbprint = a});
cValidFrom :: Lens' Certificate (Maybe UTCTime)
cValidFrom = lens _cValidFrom (\ s a -> s{_cValidFrom = a}) . mapping _Time;
instance FromXML Certificate where
parseXML x
= Certificate' <$>
(x .@? "CertificateType") <*>
(x .@? "CertificateArn")
<*> (x .@? "ValidTill")
<*> (x .@? "CertificateIdentifier")
<*> (x .@? "Thumbprint")
<*> (x .@? "ValidFrom")
instance Hashable Certificate where
instance NFData Certificate where
data CharacterSet = CharacterSet'
{ _csCharacterSetName :: !(Maybe Text)
, _csCharacterSetDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
characterSet
:: CharacterSet
characterSet =
CharacterSet'
{_csCharacterSetName = Nothing, _csCharacterSetDescription = Nothing}
csCharacterSetName :: Lens' CharacterSet (Maybe Text)
csCharacterSetName = lens _csCharacterSetName (\ s a -> s{_csCharacterSetName = a});
csCharacterSetDescription :: Lens' CharacterSet (Maybe Text)
csCharacterSetDescription = lens _csCharacterSetDescription (\ s a -> s{_csCharacterSetDescription = a});
instance FromXML CharacterSet where
parseXML x
= CharacterSet' <$>
(x .@? "CharacterSetName") <*>
(x .@? "CharacterSetDescription")
instance Hashable CharacterSet where
instance NFData CharacterSet where
data DBCluster = DBCluster'
{ _dcEngineVersion :: !(Maybe Text)
, _dcStatus :: !(Maybe Text)
, _dcStorageEncrypted :: !(Maybe Bool)
, _dcDBClusterIdentifier :: !(Maybe Text)
, _dcDBClusterMembers :: !(Maybe [DBClusterMember])
, _dcReadReplicaIdentifiers :: !(Maybe [Text])
, _dcReplicationSourceIdentifier :: !(Maybe Text)
, _dcHostedZoneId :: !(Maybe Text)
, _dcDBClusterParameterGroup :: !(Maybe Text)
, _dcMasterUsername :: !(Maybe Text)
, _dcIAMDatabaseAuthenticationEnabled :: !(Maybe Bool)
, _dcDBClusterResourceId :: !(Maybe Text)
, _dcEarliestRestorableTime :: !(Maybe ISO8601)
, _dcEngine :: !(Maybe Text)
, _dcDBClusterARN :: !(Maybe Text)
, _dcCloneGroupId :: !(Maybe Text)
, _dcLatestRestorableTime :: !(Maybe ISO8601)
, _dcPreferredMaintenanceWindow :: !(Maybe Text)
, _dcAvailabilityZones :: !(Maybe [Text])
, _dcCharacterSetName :: !(Maybe Text)
, _dcKMSKeyId :: !(Maybe Text)
, _dcPreferredBackupWindow :: !(Maybe Text)
, _dcAssociatedRoles :: !(Maybe [DBClusterRole])
, _dcVPCSecurityGroups :: !(Maybe [VPCSecurityGroupMembership])
, _dcBackupRetentionPeriod :: !(Maybe Int)
, _dcDBSubnetGroup :: !(Maybe Text)
, _dcDatabaseName :: !(Maybe Text)
, _dcMultiAZ :: !(Maybe Bool)
, _dcAllocatedStorage :: !(Maybe Int)
, _dcClusterCreateTime :: !(Maybe ISO8601)
, _dcEndpoint :: !(Maybe Text)
, _dcPercentProgress :: !(Maybe Text)
, _dcReaderEndpoint :: !(Maybe Text)
, _dcPort :: !(Maybe Int)
, _dcDBClusterOptionGroupMemberships :: !(Maybe [DBClusterOptionGroupStatus])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbCluster
:: DBCluster
dbCluster =
DBCluster'
{ _dcEngineVersion = Nothing
, _dcStatus = Nothing
, _dcStorageEncrypted = Nothing
, _dcDBClusterIdentifier = Nothing
, _dcDBClusterMembers = Nothing
, _dcReadReplicaIdentifiers = Nothing
, _dcReplicationSourceIdentifier = Nothing
, _dcHostedZoneId = Nothing
, _dcDBClusterParameterGroup = Nothing
, _dcMasterUsername = Nothing
, _dcIAMDatabaseAuthenticationEnabled = Nothing
, _dcDBClusterResourceId = Nothing
, _dcEarliestRestorableTime = Nothing
, _dcEngine = Nothing
, _dcDBClusterARN = Nothing
, _dcCloneGroupId = Nothing
, _dcLatestRestorableTime = Nothing
, _dcPreferredMaintenanceWindow = Nothing
, _dcAvailabilityZones = Nothing
, _dcCharacterSetName = Nothing
, _dcKMSKeyId = Nothing
, _dcPreferredBackupWindow = Nothing
, _dcAssociatedRoles = Nothing
, _dcVPCSecurityGroups = Nothing
, _dcBackupRetentionPeriod = Nothing
, _dcDBSubnetGroup = Nothing
, _dcDatabaseName = Nothing
, _dcMultiAZ = Nothing
, _dcAllocatedStorage = Nothing
, _dcClusterCreateTime = Nothing
, _dcEndpoint = Nothing
, _dcPercentProgress = Nothing
, _dcReaderEndpoint = Nothing
, _dcPort = Nothing
, _dcDBClusterOptionGroupMemberships = Nothing
}
dcEngineVersion :: Lens' DBCluster (Maybe Text)
dcEngineVersion = lens _dcEngineVersion (\ s a -> s{_dcEngineVersion = a});
dcStatus :: Lens' DBCluster (Maybe Text)
dcStatus = lens _dcStatus (\ s a -> s{_dcStatus = a});
dcStorageEncrypted :: Lens' DBCluster (Maybe Bool)
dcStorageEncrypted = lens _dcStorageEncrypted (\ s a -> s{_dcStorageEncrypted = a});
dcDBClusterIdentifier :: Lens' DBCluster (Maybe Text)
dcDBClusterIdentifier = lens _dcDBClusterIdentifier (\ s a -> s{_dcDBClusterIdentifier = a});
dcDBClusterMembers :: Lens' DBCluster [DBClusterMember]
dcDBClusterMembers = lens _dcDBClusterMembers (\ s a -> s{_dcDBClusterMembers = a}) . _Default . _Coerce;
dcReadReplicaIdentifiers :: Lens' DBCluster [Text]
dcReadReplicaIdentifiers = lens _dcReadReplicaIdentifiers (\ s a -> s{_dcReadReplicaIdentifiers = a}) . _Default . _Coerce;
dcReplicationSourceIdentifier :: Lens' DBCluster (Maybe Text)
dcReplicationSourceIdentifier = lens _dcReplicationSourceIdentifier (\ s a -> s{_dcReplicationSourceIdentifier = a});
dcHostedZoneId :: Lens' DBCluster (Maybe Text)
dcHostedZoneId = lens _dcHostedZoneId (\ s a -> s{_dcHostedZoneId = a});
dcDBClusterParameterGroup :: Lens' DBCluster (Maybe Text)
dcDBClusterParameterGroup = lens _dcDBClusterParameterGroup (\ s a -> s{_dcDBClusterParameterGroup = a});
dcMasterUsername :: Lens' DBCluster (Maybe Text)
dcMasterUsername = lens _dcMasterUsername (\ s a -> s{_dcMasterUsername = a});
dcIAMDatabaseAuthenticationEnabled :: Lens' DBCluster (Maybe Bool)
dcIAMDatabaseAuthenticationEnabled = lens _dcIAMDatabaseAuthenticationEnabled (\ s a -> s{_dcIAMDatabaseAuthenticationEnabled = a});
dcDBClusterResourceId :: Lens' DBCluster (Maybe Text)
dcDBClusterResourceId = lens _dcDBClusterResourceId (\ s a -> s{_dcDBClusterResourceId = a});
dcEarliestRestorableTime :: Lens' DBCluster (Maybe UTCTime)
dcEarliestRestorableTime = lens _dcEarliestRestorableTime (\ s a -> s{_dcEarliestRestorableTime = a}) . mapping _Time;
dcEngine :: Lens' DBCluster (Maybe Text)
dcEngine = lens _dcEngine (\ s a -> s{_dcEngine = a});
dcDBClusterARN :: Lens' DBCluster (Maybe Text)
dcDBClusterARN = lens _dcDBClusterARN (\ s a -> s{_dcDBClusterARN = a});
dcCloneGroupId :: Lens' DBCluster (Maybe Text)
dcCloneGroupId = lens _dcCloneGroupId (\ s a -> s{_dcCloneGroupId = a});
dcLatestRestorableTime :: Lens' DBCluster (Maybe UTCTime)
dcLatestRestorableTime = lens _dcLatestRestorableTime (\ s a -> s{_dcLatestRestorableTime = a}) . mapping _Time;
dcPreferredMaintenanceWindow :: Lens' DBCluster (Maybe Text)
dcPreferredMaintenanceWindow = lens _dcPreferredMaintenanceWindow (\ s a -> s{_dcPreferredMaintenanceWindow = a});
dcAvailabilityZones :: Lens' DBCluster [Text]
dcAvailabilityZones = lens _dcAvailabilityZones (\ s a -> s{_dcAvailabilityZones = a}) . _Default . _Coerce;
dcCharacterSetName :: Lens' DBCluster (Maybe Text)
dcCharacterSetName = lens _dcCharacterSetName (\ s a -> s{_dcCharacterSetName = a});
dcKMSKeyId :: Lens' DBCluster (Maybe Text)
dcKMSKeyId = lens _dcKMSKeyId (\ s a -> s{_dcKMSKeyId = a});
dcPreferredBackupWindow :: Lens' DBCluster (Maybe Text)
dcPreferredBackupWindow = lens _dcPreferredBackupWindow (\ s a -> s{_dcPreferredBackupWindow = a});
dcAssociatedRoles :: Lens' DBCluster [DBClusterRole]
dcAssociatedRoles = lens _dcAssociatedRoles (\ s a -> s{_dcAssociatedRoles = a}) . _Default . _Coerce;
dcVPCSecurityGroups :: Lens' DBCluster [VPCSecurityGroupMembership]
dcVPCSecurityGroups = lens _dcVPCSecurityGroups (\ s a -> s{_dcVPCSecurityGroups = a}) . _Default . _Coerce;
dcBackupRetentionPeriod :: Lens' DBCluster (Maybe Int)
dcBackupRetentionPeriod = lens _dcBackupRetentionPeriod (\ s a -> s{_dcBackupRetentionPeriod = a});
dcDBSubnetGroup :: Lens' DBCluster (Maybe Text)
dcDBSubnetGroup = lens _dcDBSubnetGroup (\ s a -> s{_dcDBSubnetGroup = a});
dcDatabaseName :: Lens' DBCluster (Maybe Text)
dcDatabaseName = lens _dcDatabaseName (\ s a -> s{_dcDatabaseName = a});
dcMultiAZ :: Lens' DBCluster (Maybe Bool)
dcMultiAZ = lens _dcMultiAZ (\ s a -> s{_dcMultiAZ = a});
dcAllocatedStorage :: Lens' DBCluster (Maybe Int)
dcAllocatedStorage = lens _dcAllocatedStorage (\ s a -> s{_dcAllocatedStorage = a});
dcClusterCreateTime :: Lens' DBCluster (Maybe UTCTime)
dcClusterCreateTime = lens _dcClusterCreateTime (\ s a -> s{_dcClusterCreateTime = a}) . mapping _Time;
dcEndpoint :: Lens' DBCluster (Maybe Text)
dcEndpoint = lens _dcEndpoint (\ s a -> s{_dcEndpoint = a});
dcPercentProgress :: Lens' DBCluster (Maybe Text)
dcPercentProgress = lens _dcPercentProgress (\ s a -> s{_dcPercentProgress = a});
dcReaderEndpoint :: Lens' DBCluster (Maybe Text)
dcReaderEndpoint = lens _dcReaderEndpoint (\ s a -> s{_dcReaderEndpoint = a});
dcPort :: Lens' DBCluster (Maybe Int)
dcPort = lens _dcPort (\ s a -> s{_dcPort = a});
dcDBClusterOptionGroupMemberships :: Lens' DBCluster [DBClusterOptionGroupStatus]
dcDBClusterOptionGroupMemberships = lens _dcDBClusterOptionGroupMemberships (\ s a -> s{_dcDBClusterOptionGroupMemberships = a}) . _Default . _Coerce;
instance FromXML DBCluster where
parseXML x
= DBCluster' <$>
(x .@? "EngineVersion") <*> (x .@? "Status") <*>
(x .@? "StorageEncrypted")
<*> (x .@? "DBClusterIdentifier")
<*>
(x .@? "DBClusterMembers" .!@ mempty >>=
may (parseXMLList "DBClusterMember"))
<*>
(x .@? "ReadReplicaIdentifiers" .!@ mempty >>=
may (parseXMLList "ReadReplicaIdentifier"))
<*> (x .@? "ReplicationSourceIdentifier")
<*> (x .@? "HostedZoneId")
<*> (x .@? "DBClusterParameterGroup")
<*> (x .@? "MasterUsername")
<*> (x .@? "IAMDatabaseAuthenticationEnabled")
<*> (x .@? "DbClusterResourceId")
<*> (x .@? "EarliestRestorableTime")
<*> (x .@? "Engine")
<*> (x .@? "DBClusterArn")
<*> (x .@? "CloneGroupId")
<*> (x .@? "LatestRestorableTime")
<*> (x .@? "PreferredMaintenanceWindow")
<*>
(x .@? "AvailabilityZones" .!@ mempty >>=
may (parseXMLList "AvailabilityZone"))
<*> (x .@? "CharacterSetName")
<*> (x .@? "KmsKeyId")
<*> (x .@? "PreferredBackupWindow")
<*>
(x .@? "AssociatedRoles" .!@ mempty >>=
may (parseXMLList "DBClusterRole"))
<*>
(x .@? "VpcSecurityGroups" .!@ mempty >>=
may (parseXMLList "VpcSecurityGroupMembership"))
<*> (x .@? "BackupRetentionPeriod")
<*> (x .@? "DBSubnetGroup")
<*> (x .@? "DatabaseName")
<*> (x .@? "MultiAZ")
<*> (x .@? "AllocatedStorage")
<*> (x .@? "ClusterCreateTime")
<*> (x .@? "Endpoint")
<*> (x .@? "PercentProgress")
<*> (x .@? "ReaderEndpoint")
<*> (x .@? "Port")
<*>
(x .@? "DBClusterOptionGroupMemberships" .!@ mempty
>>= may (parseXMLList "DBClusterOptionGroup"))
instance Hashable DBCluster where
instance NFData DBCluster where
data DBClusterMember = DBClusterMember'
{ _dcmPromotionTier :: !(Maybe Int)
, _dcmDBInstanceIdentifier :: !(Maybe Text)
, _dcmIsClusterWriter :: !(Maybe Bool)
, _dcmDBClusterParameterGroupStatus :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterMember
:: DBClusterMember
dbClusterMember =
DBClusterMember'
{ _dcmPromotionTier = Nothing
, _dcmDBInstanceIdentifier = Nothing
, _dcmIsClusterWriter = Nothing
, _dcmDBClusterParameterGroupStatus = Nothing
}
dcmPromotionTier :: Lens' DBClusterMember (Maybe Int)
dcmPromotionTier = lens _dcmPromotionTier (\ s a -> s{_dcmPromotionTier = a});
dcmDBInstanceIdentifier :: Lens' DBClusterMember (Maybe Text)
dcmDBInstanceIdentifier = lens _dcmDBInstanceIdentifier (\ s a -> s{_dcmDBInstanceIdentifier = a});
dcmIsClusterWriter :: Lens' DBClusterMember (Maybe Bool)
dcmIsClusterWriter = lens _dcmIsClusterWriter (\ s a -> s{_dcmIsClusterWriter = a});
dcmDBClusterParameterGroupStatus :: Lens' DBClusterMember (Maybe Text)
dcmDBClusterParameterGroupStatus = lens _dcmDBClusterParameterGroupStatus (\ s a -> s{_dcmDBClusterParameterGroupStatus = a});
instance FromXML DBClusterMember where
parseXML x
= DBClusterMember' <$>
(x .@? "PromotionTier") <*>
(x .@? "DBInstanceIdentifier")
<*> (x .@? "IsClusterWriter")
<*> (x .@? "DBClusterParameterGroupStatus")
instance Hashable DBClusterMember where
instance NFData DBClusterMember where
data DBClusterOptionGroupStatus = DBClusterOptionGroupStatus'
{ _dcogsStatus :: !(Maybe Text)
, _dcogsDBClusterOptionGroupName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterOptionGroupStatus
:: DBClusterOptionGroupStatus
dbClusterOptionGroupStatus =
DBClusterOptionGroupStatus'
{_dcogsStatus = Nothing, _dcogsDBClusterOptionGroupName = Nothing}
dcogsStatus :: Lens' DBClusterOptionGroupStatus (Maybe Text)
dcogsStatus = lens _dcogsStatus (\ s a -> s{_dcogsStatus = a});
dcogsDBClusterOptionGroupName :: Lens' DBClusterOptionGroupStatus (Maybe Text)
dcogsDBClusterOptionGroupName = lens _dcogsDBClusterOptionGroupName (\ s a -> s{_dcogsDBClusterOptionGroupName = a});
instance FromXML DBClusterOptionGroupStatus where
parseXML x
= DBClusterOptionGroupStatus' <$>
(x .@? "Status") <*>
(x .@? "DBClusterOptionGroupName")
instance Hashable DBClusterOptionGroupStatus where
instance NFData DBClusterOptionGroupStatus where
data DBClusterParameterGroup = DBClusterParameterGroup'
{ _dcpgDBClusterParameterGroupARN :: !(Maybe Text)
, _dcpgDBParameterGroupFamily :: !(Maybe Text)
, _dcpgDBClusterParameterGroupName :: !(Maybe Text)
, _dcpgDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterParameterGroup
:: DBClusterParameterGroup
dbClusterParameterGroup =
DBClusterParameterGroup'
{ _dcpgDBClusterParameterGroupARN = Nothing
, _dcpgDBParameterGroupFamily = Nothing
, _dcpgDBClusterParameterGroupName = Nothing
, _dcpgDescription = Nothing
}
dcpgDBClusterParameterGroupARN :: Lens' DBClusterParameterGroup (Maybe Text)
dcpgDBClusterParameterGroupARN = lens _dcpgDBClusterParameterGroupARN (\ s a -> s{_dcpgDBClusterParameterGroupARN = a});
dcpgDBParameterGroupFamily :: Lens' DBClusterParameterGroup (Maybe Text)
dcpgDBParameterGroupFamily = lens _dcpgDBParameterGroupFamily (\ s a -> s{_dcpgDBParameterGroupFamily = a});
dcpgDBClusterParameterGroupName :: Lens' DBClusterParameterGroup (Maybe Text)
dcpgDBClusterParameterGroupName = lens _dcpgDBClusterParameterGroupName (\ s a -> s{_dcpgDBClusterParameterGroupName = a});
dcpgDescription :: Lens' DBClusterParameterGroup (Maybe Text)
dcpgDescription = lens _dcpgDescription (\ s a -> s{_dcpgDescription = a});
instance FromXML DBClusterParameterGroup where
parseXML x
= DBClusterParameterGroup' <$>
(x .@? "DBClusterParameterGroupArn") <*>
(x .@? "DBParameterGroupFamily")
<*> (x .@? "DBClusterParameterGroupName")
<*> (x .@? "Description")
instance Hashable DBClusterParameterGroup where
instance NFData DBClusterParameterGroup where
newtype DBClusterParameterGroupNameMessage = DBClusterParameterGroupNameMessage'
{ _dcpgnmDBClusterParameterGroupName :: Maybe Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterParameterGroupNameMessage
:: DBClusterParameterGroupNameMessage
dbClusterParameterGroupNameMessage =
DBClusterParameterGroupNameMessage'
{_dcpgnmDBClusterParameterGroupName = Nothing}
dcpgnmDBClusterParameterGroupName :: Lens' DBClusterParameterGroupNameMessage (Maybe Text)
dcpgnmDBClusterParameterGroupName = lens _dcpgnmDBClusterParameterGroupName (\ s a -> s{_dcpgnmDBClusterParameterGroupName = a});
instance FromXML DBClusterParameterGroupNameMessage
where
parseXML x
= DBClusterParameterGroupNameMessage' <$>
(x .@? "DBClusterParameterGroupName")
instance Hashable DBClusterParameterGroupNameMessage
where
instance NFData DBClusterParameterGroupNameMessage
where
data DBClusterRole = DBClusterRole'
{ _dcrStatus :: !(Maybe Text)
, _dcrRoleARN :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterRole
:: DBClusterRole
dbClusterRole = DBClusterRole' {_dcrStatus = Nothing, _dcrRoleARN = Nothing}
dcrStatus :: Lens' DBClusterRole (Maybe Text)
dcrStatus = lens _dcrStatus (\ s a -> s{_dcrStatus = a});
dcrRoleARN :: Lens' DBClusterRole (Maybe Text)
dcrRoleARN = lens _dcrRoleARN (\ s a -> s{_dcrRoleARN = a});
instance FromXML DBClusterRole where
parseXML x
= DBClusterRole' <$>
(x .@? "Status") <*> (x .@? "RoleArn")
instance Hashable DBClusterRole where
instance NFData DBClusterRole where
data DBClusterSnapshot = DBClusterSnapshot'
{ _dcsEngineVersion :: !(Maybe Text)
, _dcsStatus :: !(Maybe Text)
, _dcsStorageEncrypted :: !(Maybe Bool)
, _dcsDBClusterIdentifier :: !(Maybe Text)
, _dcsMasterUsername :: !(Maybe Text)
, _dcsIAMDatabaseAuthenticationEnabled :: !(Maybe Bool)
, _dcsDBClusterSnapshotARN :: !(Maybe Text)
, _dcsVPCId :: !(Maybe Text)
, _dcsDBClusterSnapshotIdentifier :: !(Maybe Text)
, _dcsEngine :: !(Maybe Text)
, _dcsLicenseModel :: !(Maybe Text)
, _dcsAvailabilityZones :: !(Maybe [Text])
, _dcsSnapshotType :: !(Maybe Text)
, _dcsKMSKeyId :: !(Maybe Text)
, _dcsSnapshotCreateTime :: !(Maybe ISO8601)
, _dcsAllocatedStorage :: !(Maybe Int)
, _dcsSourceDBClusterSnapshotARN :: !(Maybe Text)
, _dcsClusterCreateTime :: !(Maybe ISO8601)
, _dcsPercentProgress :: !(Maybe Int)
, _dcsPort :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterSnapshot
:: DBClusterSnapshot
dbClusterSnapshot =
DBClusterSnapshot'
{ _dcsEngineVersion = Nothing
, _dcsStatus = Nothing
, _dcsStorageEncrypted = Nothing
, _dcsDBClusterIdentifier = Nothing
, _dcsMasterUsername = Nothing
, _dcsIAMDatabaseAuthenticationEnabled = Nothing
, _dcsDBClusterSnapshotARN = Nothing
, _dcsVPCId = Nothing
, _dcsDBClusterSnapshotIdentifier = Nothing
, _dcsEngine = Nothing
, _dcsLicenseModel = Nothing
, _dcsAvailabilityZones = Nothing
, _dcsSnapshotType = Nothing
, _dcsKMSKeyId = Nothing
, _dcsSnapshotCreateTime = Nothing
, _dcsAllocatedStorage = Nothing
, _dcsSourceDBClusterSnapshotARN = Nothing
, _dcsClusterCreateTime = Nothing
, _dcsPercentProgress = Nothing
, _dcsPort = Nothing
}
dcsEngineVersion :: Lens' DBClusterSnapshot (Maybe Text)
dcsEngineVersion = lens _dcsEngineVersion (\ s a -> s{_dcsEngineVersion = a});
dcsStatus :: Lens' DBClusterSnapshot (Maybe Text)
dcsStatus = lens _dcsStatus (\ s a -> s{_dcsStatus = a});
dcsStorageEncrypted :: Lens' DBClusterSnapshot (Maybe Bool)
dcsStorageEncrypted = lens _dcsStorageEncrypted (\ s a -> s{_dcsStorageEncrypted = a});
dcsDBClusterIdentifier :: Lens' DBClusterSnapshot (Maybe Text)
dcsDBClusterIdentifier = lens _dcsDBClusterIdentifier (\ s a -> s{_dcsDBClusterIdentifier = a});
dcsMasterUsername :: Lens' DBClusterSnapshot (Maybe Text)
dcsMasterUsername = lens _dcsMasterUsername (\ s a -> s{_dcsMasterUsername = a});
dcsIAMDatabaseAuthenticationEnabled :: Lens' DBClusterSnapshot (Maybe Bool)
dcsIAMDatabaseAuthenticationEnabled = lens _dcsIAMDatabaseAuthenticationEnabled (\ s a -> s{_dcsIAMDatabaseAuthenticationEnabled = a});
dcsDBClusterSnapshotARN :: Lens' DBClusterSnapshot (Maybe Text)
dcsDBClusterSnapshotARN = lens _dcsDBClusterSnapshotARN (\ s a -> s{_dcsDBClusterSnapshotARN = a});
dcsVPCId :: Lens' DBClusterSnapshot (Maybe Text)
dcsVPCId = lens _dcsVPCId (\ s a -> s{_dcsVPCId = a});
dcsDBClusterSnapshotIdentifier :: Lens' DBClusterSnapshot (Maybe Text)
dcsDBClusterSnapshotIdentifier = lens _dcsDBClusterSnapshotIdentifier (\ s a -> s{_dcsDBClusterSnapshotIdentifier = a});
dcsEngine :: Lens' DBClusterSnapshot (Maybe Text)
dcsEngine = lens _dcsEngine (\ s a -> s{_dcsEngine = a});
dcsLicenseModel :: Lens' DBClusterSnapshot (Maybe Text)
dcsLicenseModel = lens _dcsLicenseModel (\ s a -> s{_dcsLicenseModel = a});
dcsAvailabilityZones :: Lens' DBClusterSnapshot [Text]
dcsAvailabilityZones = lens _dcsAvailabilityZones (\ s a -> s{_dcsAvailabilityZones = a}) . _Default . _Coerce;
dcsSnapshotType :: Lens' DBClusterSnapshot (Maybe Text)
dcsSnapshotType = lens _dcsSnapshotType (\ s a -> s{_dcsSnapshotType = a});
dcsKMSKeyId :: Lens' DBClusterSnapshot (Maybe Text)
dcsKMSKeyId = lens _dcsKMSKeyId (\ s a -> s{_dcsKMSKeyId = a});
dcsSnapshotCreateTime :: Lens' DBClusterSnapshot (Maybe UTCTime)
dcsSnapshotCreateTime = lens _dcsSnapshotCreateTime (\ s a -> s{_dcsSnapshotCreateTime = a}) . mapping _Time;
dcsAllocatedStorage :: Lens' DBClusterSnapshot (Maybe Int)
dcsAllocatedStorage = lens _dcsAllocatedStorage (\ s a -> s{_dcsAllocatedStorage = a});
dcsSourceDBClusterSnapshotARN :: Lens' DBClusterSnapshot (Maybe Text)
dcsSourceDBClusterSnapshotARN = lens _dcsSourceDBClusterSnapshotARN (\ s a -> s{_dcsSourceDBClusterSnapshotARN = a});
dcsClusterCreateTime :: Lens' DBClusterSnapshot (Maybe UTCTime)
dcsClusterCreateTime = lens _dcsClusterCreateTime (\ s a -> s{_dcsClusterCreateTime = a}) . mapping _Time;
dcsPercentProgress :: Lens' DBClusterSnapshot (Maybe Int)
dcsPercentProgress = lens _dcsPercentProgress (\ s a -> s{_dcsPercentProgress = a});
dcsPort :: Lens' DBClusterSnapshot (Maybe Int)
dcsPort = lens _dcsPort (\ s a -> s{_dcsPort = a});
instance FromXML DBClusterSnapshot where
parseXML x
= DBClusterSnapshot' <$>
(x .@? "EngineVersion") <*> (x .@? "Status") <*>
(x .@? "StorageEncrypted")
<*> (x .@? "DBClusterIdentifier")
<*> (x .@? "MasterUsername")
<*> (x .@? "IAMDatabaseAuthenticationEnabled")
<*> (x .@? "DBClusterSnapshotArn")
<*> (x .@? "VpcId")
<*> (x .@? "DBClusterSnapshotIdentifier")
<*> (x .@? "Engine")
<*> (x .@? "LicenseModel")
<*>
(x .@? "AvailabilityZones" .!@ mempty >>=
may (parseXMLList "AvailabilityZone"))
<*> (x .@? "SnapshotType")
<*> (x .@? "KmsKeyId")
<*> (x .@? "SnapshotCreateTime")
<*> (x .@? "AllocatedStorage")
<*> (x .@? "SourceDBClusterSnapshotArn")
<*> (x .@? "ClusterCreateTime")
<*> (x .@? "PercentProgress")
<*> (x .@? "Port")
instance Hashable DBClusterSnapshot where
instance NFData DBClusterSnapshot where
data DBClusterSnapshotAttribute = DBClusterSnapshotAttribute'
{ _dcsaAttributeValues :: !(Maybe [Text])
, _dcsaAttributeName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterSnapshotAttribute
:: DBClusterSnapshotAttribute
dbClusterSnapshotAttribute =
DBClusterSnapshotAttribute'
{_dcsaAttributeValues = Nothing, _dcsaAttributeName = Nothing}
dcsaAttributeValues :: Lens' DBClusterSnapshotAttribute [Text]
dcsaAttributeValues = lens _dcsaAttributeValues (\ s a -> s{_dcsaAttributeValues = a}) . _Default . _Coerce;
dcsaAttributeName :: Lens' DBClusterSnapshotAttribute (Maybe Text)
dcsaAttributeName = lens _dcsaAttributeName (\ s a -> s{_dcsaAttributeName = a});
instance FromXML DBClusterSnapshotAttribute where
parseXML x
= DBClusterSnapshotAttribute' <$>
(x .@? "AttributeValues" .!@ mempty >>=
may (parseXMLList "AttributeValue"))
<*> (x .@? "AttributeName")
instance Hashable DBClusterSnapshotAttribute where
instance NFData DBClusterSnapshotAttribute where
data DBClusterSnapshotAttributesResult = DBClusterSnapshotAttributesResult'
{ _dcsarDBClusterSnapshotIdentifier :: !(Maybe Text)
, _dcsarDBClusterSnapshotAttributes :: !(Maybe [DBClusterSnapshotAttribute])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbClusterSnapshotAttributesResult
:: DBClusterSnapshotAttributesResult
dbClusterSnapshotAttributesResult =
DBClusterSnapshotAttributesResult'
{ _dcsarDBClusterSnapshotIdentifier = Nothing
, _dcsarDBClusterSnapshotAttributes = Nothing
}
dcsarDBClusterSnapshotIdentifier :: Lens' DBClusterSnapshotAttributesResult (Maybe Text)
dcsarDBClusterSnapshotIdentifier = lens _dcsarDBClusterSnapshotIdentifier (\ s a -> s{_dcsarDBClusterSnapshotIdentifier = a});
dcsarDBClusterSnapshotAttributes :: Lens' DBClusterSnapshotAttributesResult [DBClusterSnapshotAttribute]
dcsarDBClusterSnapshotAttributes = lens _dcsarDBClusterSnapshotAttributes (\ s a -> s{_dcsarDBClusterSnapshotAttributes = a}) . _Default . _Coerce;
instance FromXML DBClusterSnapshotAttributesResult
where
parseXML x
= DBClusterSnapshotAttributesResult' <$>
(x .@? "DBClusterSnapshotIdentifier") <*>
(x .@? "DBClusterSnapshotAttributes" .!@ mempty >>=
may (parseXMLList "DBClusterSnapshotAttribute"))
instance Hashable DBClusterSnapshotAttributesResult
where
instance NFData DBClusterSnapshotAttributesResult
where
data DBEngineVersion = DBEngineVersion'
{ _devEngineVersion :: !(Maybe Text)
, _devDBEngineVersionDescription :: !(Maybe Text)
, _devDefaultCharacterSet :: !(Maybe CharacterSet)
, _devEngine :: !(Maybe Text)
, _devDBParameterGroupFamily :: !(Maybe Text)
, _devSupportedCharacterSets :: !(Maybe [CharacterSet])
, _devDBEngineDescription :: !(Maybe Text)
, _devValidUpgradeTarget :: !(Maybe [UpgradeTarget])
, _devSupportedTimezones :: !(Maybe [Timezone])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbEngineVersion
:: DBEngineVersion
dbEngineVersion =
DBEngineVersion'
{ _devEngineVersion = Nothing
, _devDBEngineVersionDescription = Nothing
, _devDefaultCharacterSet = Nothing
, _devEngine = Nothing
, _devDBParameterGroupFamily = Nothing
, _devSupportedCharacterSets = Nothing
, _devDBEngineDescription = Nothing
, _devValidUpgradeTarget = Nothing
, _devSupportedTimezones = Nothing
}
devEngineVersion :: Lens' DBEngineVersion (Maybe Text)
devEngineVersion = lens _devEngineVersion (\ s a -> s{_devEngineVersion = a});
devDBEngineVersionDescription :: Lens' DBEngineVersion (Maybe Text)
devDBEngineVersionDescription = lens _devDBEngineVersionDescription (\ s a -> s{_devDBEngineVersionDescription = a});
devDefaultCharacterSet :: Lens' DBEngineVersion (Maybe CharacterSet)
devDefaultCharacterSet = lens _devDefaultCharacterSet (\ s a -> s{_devDefaultCharacterSet = a});
devEngine :: Lens' DBEngineVersion (Maybe Text)
devEngine = lens _devEngine (\ s a -> s{_devEngine = a});
devDBParameterGroupFamily :: Lens' DBEngineVersion (Maybe Text)
devDBParameterGroupFamily = lens _devDBParameterGroupFamily (\ s a -> s{_devDBParameterGroupFamily = a});
devSupportedCharacterSets :: Lens' DBEngineVersion [CharacterSet]
devSupportedCharacterSets = lens _devSupportedCharacterSets (\ s a -> s{_devSupportedCharacterSets = a}) . _Default . _Coerce;
devDBEngineDescription :: Lens' DBEngineVersion (Maybe Text)
devDBEngineDescription = lens _devDBEngineDescription (\ s a -> s{_devDBEngineDescription = a});
devValidUpgradeTarget :: Lens' DBEngineVersion [UpgradeTarget]
devValidUpgradeTarget = lens _devValidUpgradeTarget (\ s a -> s{_devValidUpgradeTarget = a}) . _Default . _Coerce;
devSupportedTimezones :: Lens' DBEngineVersion [Timezone]
devSupportedTimezones = lens _devSupportedTimezones (\ s a -> s{_devSupportedTimezones = a}) . _Default . _Coerce;
instance FromXML DBEngineVersion where
parseXML x
= DBEngineVersion' <$>
(x .@? "EngineVersion") <*>
(x .@? "DBEngineVersionDescription")
<*> (x .@? "DefaultCharacterSet")
<*> (x .@? "Engine")
<*> (x .@? "DBParameterGroupFamily")
<*>
(x .@? "SupportedCharacterSets" .!@ mempty >>=
may (parseXMLList "CharacterSet"))
<*> (x .@? "DBEngineDescription")
<*>
(x .@? "ValidUpgradeTarget" .!@ mempty >>=
may (parseXMLList "UpgradeTarget"))
<*>
(x .@? "SupportedTimezones" .!@ mempty >>=
may (parseXMLList "Timezone"))
instance Hashable DBEngineVersion where
instance NFData DBEngineVersion where
data DBInstance = DBInstance'
{ _diEngineVersion :: !(Maybe Text)
, _diDBSecurityGroups :: !(Maybe [DBSecurityGroupMembership])
, _diStorageEncrypted :: !(Maybe Bool)
, _diDBClusterIdentifier :: !(Maybe Text)
, _diPubliclyAccessible :: !(Maybe Bool)
, _diAutoMinorVersionUpgrade :: !(Maybe Bool)
, _diDBInstanceARN :: !(Maybe Text)
, _diMasterUsername :: !(Maybe Text)
, _diReadReplicaDBInstanceIdentifiers :: !(Maybe [Text])
, _diIAMDatabaseAuthenticationEnabled :: !(Maybe Bool)
, _diMonitoringRoleARN :: !(Maybe Text)
, _diIOPS :: !(Maybe Int)
, _diInstanceCreateTime :: !(Maybe ISO8601)
, _diReadReplicaSourceDBInstanceIdentifier :: !(Maybe Text)
, _diMonitoringInterval :: !(Maybe Int)
, _diEngine :: !(Maybe Text)
, _diLatestRestorableTime :: !(Maybe ISO8601)
, _diDBInstanceClass :: !(Maybe Text)
, _diPromotionTier :: !(Maybe Int)
, _diLicenseModel :: !(Maybe Text)
, _diPreferredMaintenanceWindow :: !(Maybe Text)
, _diCACertificateIdentifier :: !(Maybe Text)
, _diDBInstanceIdentifier :: !(Maybe Text)
, _diCharacterSetName :: !(Maybe Text)
, _diKMSKeyId :: !(Maybe Text)
, _diPreferredBackupWindow :: !(Maybe Text)
, _diAvailabilityZone :: !(Maybe Text)
, _diVPCSecurityGroups :: !(Maybe [VPCSecurityGroupMembership])
, _diBackupRetentionPeriod :: !(Maybe Int)
, _diPerformanceInsightsKMSKeyId :: !(Maybe Text)
, _diDBSubnetGroup :: !(Maybe DBSubnetGroup)
, _diMultiAZ :: !(Maybe Bool)
, _diOptionGroupMemberships :: !(Maybe [OptionGroupMembership])
, _diEnhancedMonitoringResourceARN :: !(Maybe Text)
, _diSecondaryAvailabilityZone :: !(Maybe Text)
, _diPerformanceInsightsEnabled :: !(Maybe Bool)
, _diAllocatedStorage :: !(Maybe Int)
, _diDBiResourceId :: !(Maybe Text)
, _diDBParameterGroups :: !(Maybe [DBParameterGroupStatus])
, _diCopyTagsToSnapshot :: !(Maybe Bool)
, _diTimezone :: !(Maybe Text)
, _diTDECredentialARN :: !(Maybe Text)
, _diEndpoint :: !(Maybe Endpoint)
, _diDBInstanceStatus :: !(Maybe Text)
, _diDBInstancePort :: !(Maybe Int)
, _diPendingModifiedValues :: !(Maybe PendingModifiedValues)
, _diReadReplicaDBClusterIdentifiers :: !(Maybe [Text])
, _diStorageType :: !(Maybe Text)
, _diStatusInfos :: !(Maybe [DBInstanceStatusInfo])
, _diDomainMemberships :: !(Maybe [DomainMembership])
, _diDBName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbInstance
:: DBInstance
dbInstance =
DBInstance'
{ _diEngineVersion = Nothing
, _diDBSecurityGroups = Nothing
, _diStorageEncrypted = Nothing
, _diDBClusterIdentifier = Nothing
, _diPubliclyAccessible = Nothing
, _diAutoMinorVersionUpgrade = Nothing
, _diDBInstanceARN = Nothing
, _diMasterUsername = Nothing
, _diReadReplicaDBInstanceIdentifiers = Nothing
, _diIAMDatabaseAuthenticationEnabled = Nothing
, _diMonitoringRoleARN = Nothing
, _diIOPS = Nothing
, _diInstanceCreateTime = Nothing
, _diReadReplicaSourceDBInstanceIdentifier = Nothing
, _diMonitoringInterval = Nothing
, _diEngine = Nothing
, _diLatestRestorableTime = Nothing
, _diDBInstanceClass = Nothing
, _diPromotionTier = Nothing
, _diLicenseModel = Nothing
, _diPreferredMaintenanceWindow = Nothing
, _diCACertificateIdentifier = Nothing
, _diDBInstanceIdentifier = Nothing
, _diCharacterSetName = Nothing
, _diKMSKeyId = Nothing
, _diPreferredBackupWindow = Nothing
, _diAvailabilityZone = Nothing
, _diVPCSecurityGroups = Nothing
, _diBackupRetentionPeriod = Nothing
, _diPerformanceInsightsKMSKeyId = Nothing
, _diDBSubnetGroup = Nothing
, _diMultiAZ = Nothing
, _diOptionGroupMemberships = Nothing
, _diEnhancedMonitoringResourceARN = Nothing
, _diSecondaryAvailabilityZone = Nothing
, _diPerformanceInsightsEnabled = Nothing
, _diAllocatedStorage = Nothing
, _diDBiResourceId = Nothing
, _diDBParameterGroups = Nothing
, _diCopyTagsToSnapshot = Nothing
, _diTimezone = Nothing
, _diTDECredentialARN = Nothing
, _diEndpoint = Nothing
, _diDBInstanceStatus = Nothing
, _diDBInstancePort = Nothing
, _diPendingModifiedValues = Nothing
, _diReadReplicaDBClusterIdentifiers = Nothing
, _diStorageType = Nothing
, _diStatusInfos = Nothing
, _diDomainMemberships = Nothing
, _diDBName = Nothing
}
diEngineVersion :: Lens' DBInstance (Maybe Text)
diEngineVersion = lens _diEngineVersion (\ s a -> s{_diEngineVersion = a});
diDBSecurityGroups :: Lens' DBInstance [DBSecurityGroupMembership]
diDBSecurityGroups = lens _diDBSecurityGroups (\ s a -> s{_diDBSecurityGroups = a}) . _Default . _Coerce;
diStorageEncrypted :: Lens' DBInstance (Maybe Bool)
diStorageEncrypted = lens _diStorageEncrypted (\ s a -> s{_diStorageEncrypted = a});
diDBClusterIdentifier :: Lens' DBInstance (Maybe Text)
diDBClusterIdentifier = lens _diDBClusterIdentifier (\ s a -> s{_diDBClusterIdentifier = a});
diPubliclyAccessible :: Lens' DBInstance (Maybe Bool)
diPubliclyAccessible = lens _diPubliclyAccessible (\ s a -> s{_diPubliclyAccessible = a});
diAutoMinorVersionUpgrade :: Lens' DBInstance (Maybe Bool)
diAutoMinorVersionUpgrade = lens _diAutoMinorVersionUpgrade (\ s a -> s{_diAutoMinorVersionUpgrade = a});
diDBInstanceARN :: Lens' DBInstance (Maybe Text)
diDBInstanceARN = lens _diDBInstanceARN (\ s a -> s{_diDBInstanceARN = a});
diMasterUsername :: Lens' DBInstance (Maybe Text)
diMasterUsername = lens _diMasterUsername (\ s a -> s{_diMasterUsername = a});
diReadReplicaDBInstanceIdentifiers :: Lens' DBInstance [Text]
diReadReplicaDBInstanceIdentifiers = lens _diReadReplicaDBInstanceIdentifiers (\ s a -> s{_diReadReplicaDBInstanceIdentifiers = a}) . _Default . _Coerce;
diIAMDatabaseAuthenticationEnabled :: Lens' DBInstance (Maybe Bool)
diIAMDatabaseAuthenticationEnabled = lens _diIAMDatabaseAuthenticationEnabled (\ s a -> s{_diIAMDatabaseAuthenticationEnabled = a});
diMonitoringRoleARN :: Lens' DBInstance (Maybe Text)
diMonitoringRoleARN = lens _diMonitoringRoleARN (\ s a -> s{_diMonitoringRoleARN = a});
diIOPS :: Lens' DBInstance (Maybe Int)
diIOPS = lens _diIOPS (\ s a -> s{_diIOPS = a});
diInstanceCreateTime :: Lens' DBInstance (Maybe UTCTime)
diInstanceCreateTime = lens _diInstanceCreateTime (\ s a -> s{_diInstanceCreateTime = a}) . mapping _Time;
diReadReplicaSourceDBInstanceIdentifier :: Lens' DBInstance (Maybe Text)
diReadReplicaSourceDBInstanceIdentifier = lens _diReadReplicaSourceDBInstanceIdentifier (\ s a -> s{_diReadReplicaSourceDBInstanceIdentifier = a});
diMonitoringInterval :: Lens' DBInstance (Maybe Int)
diMonitoringInterval = lens _diMonitoringInterval (\ s a -> s{_diMonitoringInterval = a});
diEngine :: Lens' DBInstance (Maybe Text)
diEngine = lens _diEngine (\ s a -> s{_diEngine = a});
diLatestRestorableTime :: Lens' DBInstance (Maybe UTCTime)
diLatestRestorableTime = lens _diLatestRestorableTime (\ s a -> s{_diLatestRestorableTime = a}) . mapping _Time;
diDBInstanceClass :: Lens' DBInstance (Maybe Text)
diDBInstanceClass = lens _diDBInstanceClass (\ s a -> s{_diDBInstanceClass = a});
diPromotionTier :: Lens' DBInstance (Maybe Int)
diPromotionTier = lens _diPromotionTier (\ s a -> s{_diPromotionTier = a});
diLicenseModel :: Lens' DBInstance (Maybe Text)
diLicenseModel = lens _diLicenseModel (\ s a -> s{_diLicenseModel = a});
diPreferredMaintenanceWindow :: Lens' DBInstance (Maybe Text)
diPreferredMaintenanceWindow = lens _diPreferredMaintenanceWindow (\ s a -> s{_diPreferredMaintenanceWindow = a});
diCACertificateIdentifier :: Lens' DBInstance (Maybe Text)
diCACertificateIdentifier = lens _diCACertificateIdentifier (\ s a -> s{_diCACertificateIdentifier = a});
diDBInstanceIdentifier :: Lens' DBInstance (Maybe Text)
diDBInstanceIdentifier = lens _diDBInstanceIdentifier (\ s a -> s{_diDBInstanceIdentifier = a});
diCharacterSetName :: Lens' DBInstance (Maybe Text)
diCharacterSetName = lens _diCharacterSetName (\ s a -> s{_diCharacterSetName = a});
diKMSKeyId :: Lens' DBInstance (Maybe Text)
diKMSKeyId = lens _diKMSKeyId (\ s a -> s{_diKMSKeyId = a});
diPreferredBackupWindow :: Lens' DBInstance (Maybe Text)
diPreferredBackupWindow = lens _diPreferredBackupWindow (\ s a -> s{_diPreferredBackupWindow = a});
diAvailabilityZone :: Lens' DBInstance (Maybe Text)
diAvailabilityZone = lens _diAvailabilityZone (\ s a -> s{_diAvailabilityZone = a});
diVPCSecurityGroups :: Lens' DBInstance [VPCSecurityGroupMembership]
diVPCSecurityGroups = lens _diVPCSecurityGroups (\ s a -> s{_diVPCSecurityGroups = a}) . _Default . _Coerce;
diBackupRetentionPeriod :: Lens' DBInstance (Maybe Int)
diBackupRetentionPeriod = lens _diBackupRetentionPeriod (\ s a -> s{_diBackupRetentionPeriod = a});
diPerformanceInsightsKMSKeyId :: Lens' DBInstance (Maybe Text)
diPerformanceInsightsKMSKeyId = lens _diPerformanceInsightsKMSKeyId (\ s a -> s{_diPerformanceInsightsKMSKeyId = a});
diDBSubnetGroup :: Lens' DBInstance (Maybe DBSubnetGroup)
diDBSubnetGroup = lens _diDBSubnetGroup (\ s a -> s{_diDBSubnetGroup = a});
diMultiAZ :: Lens' DBInstance (Maybe Bool)
diMultiAZ = lens _diMultiAZ (\ s a -> s{_diMultiAZ = a});
diOptionGroupMemberships :: Lens' DBInstance [OptionGroupMembership]
diOptionGroupMemberships = lens _diOptionGroupMemberships (\ s a -> s{_diOptionGroupMemberships = a}) . _Default . _Coerce;
diEnhancedMonitoringResourceARN :: Lens' DBInstance (Maybe Text)
diEnhancedMonitoringResourceARN = lens _diEnhancedMonitoringResourceARN (\ s a -> s{_diEnhancedMonitoringResourceARN = a});
diSecondaryAvailabilityZone :: Lens' DBInstance (Maybe Text)
diSecondaryAvailabilityZone = lens _diSecondaryAvailabilityZone (\ s a -> s{_diSecondaryAvailabilityZone = a});
diPerformanceInsightsEnabled :: Lens' DBInstance (Maybe Bool)
diPerformanceInsightsEnabled = lens _diPerformanceInsightsEnabled (\ s a -> s{_diPerformanceInsightsEnabled = a});
diAllocatedStorage :: Lens' DBInstance (Maybe Int)
diAllocatedStorage = lens _diAllocatedStorage (\ s a -> s{_diAllocatedStorage = a});
diDBiResourceId :: Lens' DBInstance (Maybe Text)
diDBiResourceId = lens _diDBiResourceId (\ s a -> s{_diDBiResourceId = a});
diDBParameterGroups :: Lens' DBInstance [DBParameterGroupStatus]
diDBParameterGroups = lens _diDBParameterGroups (\ s a -> s{_diDBParameterGroups = a}) . _Default . _Coerce;
diCopyTagsToSnapshot :: Lens' DBInstance (Maybe Bool)
diCopyTagsToSnapshot = lens _diCopyTagsToSnapshot (\ s a -> s{_diCopyTagsToSnapshot = a});
diTimezone :: Lens' DBInstance (Maybe Text)
diTimezone = lens _diTimezone (\ s a -> s{_diTimezone = a});
diTDECredentialARN :: Lens' DBInstance (Maybe Text)
diTDECredentialARN = lens _diTDECredentialARN (\ s a -> s{_diTDECredentialARN = a});
diEndpoint :: Lens' DBInstance (Maybe Endpoint)
diEndpoint = lens _diEndpoint (\ s a -> s{_diEndpoint = a});
diDBInstanceStatus :: Lens' DBInstance (Maybe Text)
diDBInstanceStatus = lens _diDBInstanceStatus (\ s a -> s{_diDBInstanceStatus = a});
diDBInstancePort :: Lens' DBInstance (Maybe Int)
diDBInstancePort = lens _diDBInstancePort (\ s a -> s{_diDBInstancePort = a});
diPendingModifiedValues :: Lens' DBInstance (Maybe PendingModifiedValues)
diPendingModifiedValues = lens _diPendingModifiedValues (\ s a -> s{_diPendingModifiedValues = a});
diReadReplicaDBClusterIdentifiers :: Lens' DBInstance [Text]
diReadReplicaDBClusterIdentifiers = lens _diReadReplicaDBClusterIdentifiers (\ s a -> s{_diReadReplicaDBClusterIdentifiers = a}) . _Default . _Coerce;
diStorageType :: Lens' DBInstance (Maybe Text)
diStorageType = lens _diStorageType (\ s a -> s{_diStorageType = a});
diStatusInfos :: Lens' DBInstance [DBInstanceStatusInfo]
diStatusInfos = lens _diStatusInfos (\ s a -> s{_diStatusInfos = a}) . _Default . _Coerce;
diDomainMemberships :: Lens' DBInstance [DomainMembership]
diDomainMemberships = lens _diDomainMemberships (\ s a -> s{_diDomainMemberships = a}) . _Default . _Coerce;
diDBName :: Lens' DBInstance (Maybe Text)
diDBName = lens _diDBName (\ s a -> s{_diDBName = a});
instance FromXML DBInstance where
parseXML x
= DBInstance' <$>
(x .@? "EngineVersion") <*>
(x .@? "DBSecurityGroups" .!@ mempty >>=
may (parseXMLList "DBSecurityGroup"))
<*> (x .@? "StorageEncrypted")
<*> (x .@? "DBClusterIdentifier")
<*> (x .@? "PubliclyAccessible")
<*> (x .@? "AutoMinorVersionUpgrade")
<*> (x .@? "DBInstanceArn")
<*> (x .@? "MasterUsername")
<*>
(x .@? "ReadReplicaDBInstanceIdentifiers" .!@ mempty
>>=
may (parseXMLList "ReadReplicaDBInstanceIdentifier"))
<*> (x .@? "IAMDatabaseAuthenticationEnabled")
<*> (x .@? "MonitoringRoleArn")
<*> (x .@? "Iops")
<*> (x .@? "InstanceCreateTime")
<*> (x .@? "ReadReplicaSourceDBInstanceIdentifier")
<*> (x .@? "MonitoringInterval")
<*> (x .@? "Engine")
<*> (x .@? "LatestRestorableTime")
<*> (x .@? "DBInstanceClass")
<*> (x .@? "PromotionTier")
<*> (x .@? "LicenseModel")
<*> (x .@? "PreferredMaintenanceWindow")
<*> (x .@? "CACertificateIdentifier")
<*> (x .@? "DBInstanceIdentifier")
<*> (x .@? "CharacterSetName")
<*> (x .@? "KmsKeyId")
<*> (x .@? "PreferredBackupWindow")
<*> (x .@? "AvailabilityZone")
<*>
(x .@? "VpcSecurityGroups" .!@ mempty >>=
may (parseXMLList "VpcSecurityGroupMembership"))
<*> (x .@? "BackupRetentionPeriod")
<*> (x .@? "PerformanceInsightsKMSKeyId")
<*> (x .@? "DBSubnetGroup")
<*> (x .@? "MultiAZ")
<*>
(x .@? "OptionGroupMemberships" .!@ mempty >>=
may (parseXMLList "OptionGroupMembership"))
<*> (x .@? "EnhancedMonitoringResourceArn")
<*> (x .@? "SecondaryAvailabilityZone")
<*> (x .@? "PerformanceInsightsEnabled")
<*> (x .@? "AllocatedStorage")
<*> (x .@? "DbiResourceId")
<*>
(x .@? "DBParameterGroups" .!@ mempty >>=
may (parseXMLList "DBParameterGroup"))
<*> (x .@? "CopyTagsToSnapshot")
<*> (x .@? "Timezone")
<*> (x .@? "TdeCredentialArn")
<*> (x .@? "Endpoint")
<*> (x .@? "DBInstanceStatus")
<*> (x .@? "DbInstancePort")
<*> (x .@? "PendingModifiedValues")
<*>
(x .@? "ReadReplicaDBClusterIdentifiers" .!@ mempty
>>=
may (parseXMLList "ReadReplicaDBClusterIdentifier"))
<*> (x .@? "StorageType")
<*>
(x .@? "StatusInfos" .!@ mempty >>=
may (parseXMLList "DBInstanceStatusInfo"))
<*>
(x .@? "DomainMemberships" .!@ mempty >>=
may (parseXMLList "DomainMembership"))
<*> (x .@? "DBName")
instance Hashable DBInstance where
instance NFData DBInstance where
data DBInstanceStatusInfo = DBInstanceStatusInfo'
{ _disiStatus :: !(Maybe Text)
, _disiNormal :: !(Maybe Bool)
, _disiStatusType :: !(Maybe Text)
, _disiMessage :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbInstanceStatusInfo
:: DBInstanceStatusInfo
dbInstanceStatusInfo =
DBInstanceStatusInfo'
{ _disiStatus = Nothing
, _disiNormal = Nothing
, _disiStatusType = Nothing
, _disiMessage = Nothing
}
disiStatus :: Lens' DBInstanceStatusInfo (Maybe Text)
disiStatus = lens _disiStatus (\ s a -> s{_disiStatus = a});
disiNormal :: Lens' DBInstanceStatusInfo (Maybe Bool)
disiNormal = lens _disiNormal (\ s a -> s{_disiNormal = a});
disiStatusType :: Lens' DBInstanceStatusInfo (Maybe Text)
disiStatusType = lens _disiStatusType (\ s a -> s{_disiStatusType = a});
disiMessage :: Lens' DBInstanceStatusInfo (Maybe Text)
disiMessage = lens _disiMessage (\ s a -> s{_disiMessage = a});
instance FromXML DBInstanceStatusInfo where
parseXML x
= DBInstanceStatusInfo' <$>
(x .@? "Status") <*> (x .@? "Normal") <*>
(x .@? "StatusType")
<*> (x .@? "Message")
instance Hashable DBInstanceStatusInfo where
instance NFData DBInstanceStatusInfo where
data DBParameterGroup = DBParameterGroup'
{ _dpgDBParameterGroupARN :: !(Maybe Text)
, _dpgDBParameterGroupFamily :: !(Maybe Text)
, _dpgDBParameterGroupName :: !(Maybe Text)
, _dpgDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbParameterGroup
:: DBParameterGroup
dbParameterGroup =
DBParameterGroup'
{ _dpgDBParameterGroupARN = Nothing
, _dpgDBParameterGroupFamily = Nothing
, _dpgDBParameterGroupName = Nothing
, _dpgDescription = Nothing
}
dpgDBParameterGroupARN :: Lens' DBParameterGroup (Maybe Text)
dpgDBParameterGroupARN = lens _dpgDBParameterGroupARN (\ s a -> s{_dpgDBParameterGroupARN = a});
dpgDBParameterGroupFamily :: Lens' DBParameterGroup (Maybe Text)
dpgDBParameterGroupFamily = lens _dpgDBParameterGroupFamily (\ s a -> s{_dpgDBParameterGroupFamily = a});
dpgDBParameterGroupName :: Lens' DBParameterGroup (Maybe Text)
dpgDBParameterGroupName = lens _dpgDBParameterGroupName (\ s a -> s{_dpgDBParameterGroupName = a});
dpgDescription :: Lens' DBParameterGroup (Maybe Text)
dpgDescription = lens _dpgDescription (\ s a -> s{_dpgDescription = a});
instance FromXML DBParameterGroup where
parseXML x
= DBParameterGroup' <$>
(x .@? "DBParameterGroupArn") <*>
(x .@? "DBParameterGroupFamily")
<*> (x .@? "DBParameterGroupName")
<*> (x .@? "Description")
instance Hashable DBParameterGroup where
instance NFData DBParameterGroup where
newtype DBParameterGroupNameMessage = DBParameterGroupNameMessage'
{ _dpgnmDBParameterGroupName :: Maybe Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbParameterGroupNameMessage
:: DBParameterGroupNameMessage
dbParameterGroupNameMessage =
DBParameterGroupNameMessage' {_dpgnmDBParameterGroupName = Nothing}
dpgnmDBParameterGroupName :: Lens' DBParameterGroupNameMessage (Maybe Text)
dpgnmDBParameterGroupName = lens _dpgnmDBParameterGroupName (\ s a -> s{_dpgnmDBParameterGroupName = a});
instance FromXML DBParameterGroupNameMessage where
parseXML x
= DBParameterGroupNameMessage' <$>
(x .@? "DBParameterGroupName")
instance Hashable DBParameterGroupNameMessage where
instance NFData DBParameterGroupNameMessage where
data DBParameterGroupStatus = DBParameterGroupStatus'
{ _dpgsDBParameterGroupName :: !(Maybe Text)
, _dpgsParameterApplyStatus :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbParameterGroupStatus
:: DBParameterGroupStatus
dbParameterGroupStatus =
DBParameterGroupStatus'
{_dpgsDBParameterGroupName = Nothing, _dpgsParameterApplyStatus = Nothing}
dpgsDBParameterGroupName :: Lens' DBParameterGroupStatus (Maybe Text)
dpgsDBParameterGroupName = lens _dpgsDBParameterGroupName (\ s a -> s{_dpgsDBParameterGroupName = a});
dpgsParameterApplyStatus :: Lens' DBParameterGroupStatus (Maybe Text)
dpgsParameterApplyStatus = lens _dpgsParameterApplyStatus (\ s a -> s{_dpgsParameterApplyStatus = a});
instance FromXML DBParameterGroupStatus where
parseXML x
= DBParameterGroupStatus' <$>
(x .@? "DBParameterGroupName") <*>
(x .@? "ParameterApplyStatus")
instance Hashable DBParameterGroupStatus where
instance NFData DBParameterGroupStatus where
data DBSecurityGroup = DBSecurityGroup'
{ _dbsgVPCId :: !(Maybe Text)
, _dbsgOwnerId :: !(Maybe Text)
, _dbsgDBSecurityGroupARN :: !(Maybe Text)
, _dbsgIPRanges :: !(Maybe [IPRange])
, _dbsgDBSecurityGroupName :: !(Maybe Text)
, _dbsgEC2SecurityGroups :: !(Maybe [EC2SecurityGroup])
, _dbsgDBSecurityGroupDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSecurityGroup
:: DBSecurityGroup
dbSecurityGroup =
DBSecurityGroup'
{ _dbsgVPCId = Nothing
, _dbsgOwnerId = Nothing
, _dbsgDBSecurityGroupARN = Nothing
, _dbsgIPRanges = Nothing
, _dbsgDBSecurityGroupName = Nothing
, _dbsgEC2SecurityGroups = Nothing
, _dbsgDBSecurityGroupDescription = Nothing
}
dbsgVPCId :: Lens' DBSecurityGroup (Maybe Text)
dbsgVPCId = lens _dbsgVPCId (\ s a -> s{_dbsgVPCId = a});
dbsgOwnerId :: Lens' DBSecurityGroup (Maybe Text)
dbsgOwnerId = lens _dbsgOwnerId (\ s a -> s{_dbsgOwnerId = a});
dbsgDBSecurityGroupARN :: Lens' DBSecurityGroup (Maybe Text)
dbsgDBSecurityGroupARN = lens _dbsgDBSecurityGroupARN (\ s a -> s{_dbsgDBSecurityGroupARN = a});
dbsgIPRanges :: Lens' DBSecurityGroup [IPRange]
dbsgIPRanges = lens _dbsgIPRanges (\ s a -> s{_dbsgIPRanges = a}) . _Default . _Coerce;
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}) . _Default . _Coerce;
dbsgDBSecurityGroupDescription :: Lens' DBSecurityGroup (Maybe Text)
dbsgDBSecurityGroupDescription = lens _dbsgDBSecurityGroupDescription (\ s a -> s{_dbsgDBSecurityGroupDescription = a});
instance FromXML DBSecurityGroup where
parseXML x
= DBSecurityGroup' <$>
(x .@? "VpcId") <*> (x .@? "OwnerId") <*>
(x .@? "DBSecurityGroupArn")
<*>
(x .@? "IPRanges" .!@ mempty >>=
may (parseXMLList "IPRange"))
<*> (x .@? "DBSecurityGroupName")
<*>
(x .@? "EC2SecurityGroups" .!@ mempty >>=
may (parseXMLList "EC2SecurityGroup"))
<*> (x .@? "DBSecurityGroupDescription")
instance Hashable DBSecurityGroup where
instance NFData DBSecurityGroup where
data DBSecurityGroupMembership = DBSecurityGroupMembership'
{ _dsgmStatus :: !(Maybe Text)
, _dsgmDBSecurityGroupName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSecurityGroupMembership
:: DBSecurityGroupMembership
dbSecurityGroupMembership =
DBSecurityGroupMembership'
{_dsgmStatus = Nothing, _dsgmDBSecurityGroupName = Nothing}
dsgmStatus :: Lens' DBSecurityGroupMembership (Maybe Text)
dsgmStatus = lens _dsgmStatus (\ s a -> s{_dsgmStatus = a});
dsgmDBSecurityGroupName :: Lens' DBSecurityGroupMembership (Maybe Text)
dsgmDBSecurityGroupName = lens _dsgmDBSecurityGroupName (\ s a -> s{_dsgmDBSecurityGroupName = a});
instance FromXML DBSecurityGroupMembership where
parseXML x
= DBSecurityGroupMembership' <$>
(x .@? "Status") <*> (x .@? "DBSecurityGroupName")
instance Hashable DBSecurityGroupMembership where
instance NFData DBSecurityGroupMembership where
data DBSnapshot = DBSnapshot'
{ _dsEngineVersion :: !(Maybe Text)
, _dsStatus :: !(Maybe Text)
, _dsDBSnapshotARN :: !(Maybe Text)
, _dsMasterUsername :: !(Maybe Text)
, _dsSourceRegion :: !(Maybe Text)
, _dsIAMDatabaseAuthenticationEnabled :: !(Maybe Bool)
, _dsIOPS :: !(Maybe Int)
, _dsVPCId :: !(Maybe Text)
, _dsInstanceCreateTime :: !(Maybe ISO8601)
, _dsEngine :: !(Maybe Text)
, _dsEncrypted :: !(Maybe Bool)
, _dsDBSnapshotIdentifier :: !(Maybe Text)
, _dsLicenseModel :: !(Maybe Text)
, _dsSourceDBSnapshotIdentifier :: !(Maybe Text)
, _dsSnapshotType :: !(Maybe Text)
, _dsDBInstanceIdentifier :: !(Maybe Text)
, _dsKMSKeyId :: !(Maybe Text)
, _dsAvailabilityZone :: !(Maybe Text)
, _dsSnapshotCreateTime :: !(Maybe ISO8601)
, _dsAllocatedStorage :: !(Maybe Int)
, _dsOptionGroupName :: !(Maybe Text)
, _dsTimezone :: !(Maybe Text)
, _dsTDECredentialARN :: !(Maybe Text)
, _dsPercentProgress :: !(Maybe Int)
, _dsPort :: !(Maybe Int)
, _dsStorageType :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSnapshot
:: DBSnapshot
dbSnapshot =
DBSnapshot'
{ _dsEngineVersion = Nothing
, _dsStatus = Nothing
, _dsDBSnapshotARN = Nothing
, _dsMasterUsername = Nothing
, _dsSourceRegion = Nothing
, _dsIAMDatabaseAuthenticationEnabled = Nothing
, _dsIOPS = Nothing
, _dsVPCId = Nothing
, _dsInstanceCreateTime = Nothing
, _dsEngine = Nothing
, _dsEncrypted = Nothing
, _dsDBSnapshotIdentifier = Nothing
, _dsLicenseModel = Nothing
, _dsSourceDBSnapshotIdentifier = Nothing
, _dsSnapshotType = Nothing
, _dsDBInstanceIdentifier = Nothing
, _dsKMSKeyId = Nothing
, _dsAvailabilityZone = Nothing
, _dsSnapshotCreateTime = Nothing
, _dsAllocatedStorage = Nothing
, _dsOptionGroupName = Nothing
, _dsTimezone = Nothing
, _dsTDECredentialARN = Nothing
, _dsPercentProgress = Nothing
, _dsPort = Nothing
, _dsStorageType = Nothing
}
dsEngineVersion :: Lens' DBSnapshot (Maybe Text)
dsEngineVersion = lens _dsEngineVersion (\ s a -> s{_dsEngineVersion = a});
dsStatus :: Lens' DBSnapshot (Maybe Text)
dsStatus = lens _dsStatus (\ s a -> s{_dsStatus = a});
dsDBSnapshotARN :: Lens' DBSnapshot (Maybe Text)
dsDBSnapshotARN = lens _dsDBSnapshotARN (\ s a -> s{_dsDBSnapshotARN = a});
dsMasterUsername :: Lens' DBSnapshot (Maybe Text)
dsMasterUsername = lens _dsMasterUsername (\ s a -> s{_dsMasterUsername = a});
dsSourceRegion :: Lens' DBSnapshot (Maybe Text)
dsSourceRegion = lens _dsSourceRegion (\ s a -> s{_dsSourceRegion = a});
dsIAMDatabaseAuthenticationEnabled :: Lens' DBSnapshot (Maybe Bool)
dsIAMDatabaseAuthenticationEnabled = lens _dsIAMDatabaseAuthenticationEnabled (\ s a -> s{_dsIAMDatabaseAuthenticationEnabled = a});
dsIOPS :: Lens' DBSnapshot (Maybe Int)
dsIOPS = lens _dsIOPS (\ s a -> s{_dsIOPS = a});
dsVPCId :: Lens' DBSnapshot (Maybe Text)
dsVPCId = lens _dsVPCId (\ s a -> s{_dsVPCId = a});
dsInstanceCreateTime :: Lens' DBSnapshot (Maybe UTCTime)
dsInstanceCreateTime = lens _dsInstanceCreateTime (\ s a -> s{_dsInstanceCreateTime = a}) . mapping _Time;
dsEngine :: Lens' DBSnapshot (Maybe Text)
dsEngine = lens _dsEngine (\ s a -> s{_dsEngine = a});
dsEncrypted :: Lens' DBSnapshot (Maybe Bool)
dsEncrypted = lens _dsEncrypted (\ s a -> s{_dsEncrypted = a});
dsDBSnapshotIdentifier :: Lens' DBSnapshot (Maybe Text)
dsDBSnapshotIdentifier = lens _dsDBSnapshotIdentifier (\ s a -> s{_dsDBSnapshotIdentifier = a});
dsLicenseModel :: Lens' DBSnapshot (Maybe Text)
dsLicenseModel = lens _dsLicenseModel (\ s a -> s{_dsLicenseModel = a});
dsSourceDBSnapshotIdentifier :: Lens' DBSnapshot (Maybe Text)
dsSourceDBSnapshotIdentifier = lens _dsSourceDBSnapshotIdentifier (\ s a -> s{_dsSourceDBSnapshotIdentifier = a});
dsSnapshotType :: Lens' DBSnapshot (Maybe Text)
dsSnapshotType = lens _dsSnapshotType (\ s a -> s{_dsSnapshotType = a});
dsDBInstanceIdentifier :: Lens' DBSnapshot (Maybe Text)
dsDBInstanceIdentifier = lens _dsDBInstanceIdentifier (\ s a -> s{_dsDBInstanceIdentifier = a});
dsKMSKeyId :: Lens' DBSnapshot (Maybe Text)
dsKMSKeyId = lens _dsKMSKeyId (\ s a -> s{_dsKMSKeyId = a});
dsAvailabilityZone :: Lens' DBSnapshot (Maybe Text)
dsAvailabilityZone = lens _dsAvailabilityZone (\ s a -> s{_dsAvailabilityZone = a});
dsSnapshotCreateTime :: Lens' DBSnapshot (Maybe UTCTime)
dsSnapshotCreateTime = lens _dsSnapshotCreateTime (\ s a -> s{_dsSnapshotCreateTime = a}) . mapping _Time;
dsAllocatedStorage :: Lens' DBSnapshot (Maybe Int)
dsAllocatedStorage = lens _dsAllocatedStorage (\ s a -> s{_dsAllocatedStorage = a});
dsOptionGroupName :: Lens' DBSnapshot (Maybe Text)
dsOptionGroupName = lens _dsOptionGroupName (\ s a -> s{_dsOptionGroupName = a});
dsTimezone :: Lens' DBSnapshot (Maybe Text)
dsTimezone = lens _dsTimezone (\ s a -> s{_dsTimezone = a});
dsTDECredentialARN :: Lens' DBSnapshot (Maybe Text)
dsTDECredentialARN = lens _dsTDECredentialARN (\ s a -> s{_dsTDECredentialARN = a});
dsPercentProgress :: Lens' DBSnapshot (Maybe Int)
dsPercentProgress = lens _dsPercentProgress (\ s a -> s{_dsPercentProgress = a});
dsPort :: Lens' DBSnapshot (Maybe Int)
dsPort = lens _dsPort (\ s a -> s{_dsPort = a});
dsStorageType :: Lens' DBSnapshot (Maybe Text)
dsStorageType = lens _dsStorageType (\ s a -> s{_dsStorageType = a});
instance FromXML DBSnapshot where
parseXML x
= DBSnapshot' <$>
(x .@? "EngineVersion") <*> (x .@? "Status") <*>
(x .@? "DBSnapshotArn")
<*> (x .@? "MasterUsername")
<*> (x .@? "SourceRegion")
<*> (x .@? "IAMDatabaseAuthenticationEnabled")
<*> (x .@? "Iops")
<*> (x .@? "VpcId")
<*> (x .@? "InstanceCreateTime")
<*> (x .@? "Engine")
<*> (x .@? "Encrypted")
<*> (x .@? "DBSnapshotIdentifier")
<*> (x .@? "LicenseModel")
<*> (x .@? "SourceDBSnapshotIdentifier")
<*> (x .@? "SnapshotType")
<*> (x .@? "DBInstanceIdentifier")
<*> (x .@? "KmsKeyId")
<*> (x .@? "AvailabilityZone")
<*> (x .@? "SnapshotCreateTime")
<*> (x .@? "AllocatedStorage")
<*> (x .@? "OptionGroupName")
<*> (x .@? "Timezone")
<*> (x .@? "TdeCredentialArn")
<*> (x .@? "PercentProgress")
<*> (x .@? "Port")
<*> (x .@? "StorageType")
instance Hashable DBSnapshot where
instance NFData DBSnapshot where
data DBSnapshotAttribute = DBSnapshotAttribute'
{ _dsaAttributeValues :: !(Maybe [Text])
, _dsaAttributeName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSnapshotAttribute
:: DBSnapshotAttribute
dbSnapshotAttribute =
DBSnapshotAttribute'
{_dsaAttributeValues = Nothing, _dsaAttributeName = Nothing}
dsaAttributeValues :: Lens' DBSnapshotAttribute [Text]
dsaAttributeValues = lens _dsaAttributeValues (\ s a -> s{_dsaAttributeValues = a}) . _Default . _Coerce;
dsaAttributeName :: Lens' DBSnapshotAttribute (Maybe Text)
dsaAttributeName = lens _dsaAttributeName (\ s a -> s{_dsaAttributeName = a});
instance FromXML DBSnapshotAttribute where
parseXML x
= DBSnapshotAttribute' <$>
(x .@? "AttributeValues" .!@ mempty >>=
may (parseXMLList "AttributeValue"))
<*> (x .@? "AttributeName")
instance Hashable DBSnapshotAttribute where
instance NFData DBSnapshotAttribute where
data DBSnapshotAttributesResult = DBSnapshotAttributesResult'
{ _dsarDBSnapshotIdentifier :: !(Maybe Text)
, _dsarDBSnapshotAttributes :: !(Maybe [DBSnapshotAttribute])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSnapshotAttributesResult
:: DBSnapshotAttributesResult
dbSnapshotAttributesResult =
DBSnapshotAttributesResult'
{_dsarDBSnapshotIdentifier = Nothing, _dsarDBSnapshotAttributes = Nothing}
dsarDBSnapshotIdentifier :: Lens' DBSnapshotAttributesResult (Maybe Text)
dsarDBSnapshotIdentifier = lens _dsarDBSnapshotIdentifier (\ s a -> s{_dsarDBSnapshotIdentifier = a});
dsarDBSnapshotAttributes :: Lens' DBSnapshotAttributesResult [DBSnapshotAttribute]
dsarDBSnapshotAttributes = lens _dsarDBSnapshotAttributes (\ s a -> s{_dsarDBSnapshotAttributes = a}) . _Default . _Coerce;
instance FromXML DBSnapshotAttributesResult where
parseXML x
= DBSnapshotAttributesResult' <$>
(x .@? "DBSnapshotIdentifier") <*>
(x .@? "DBSnapshotAttributes" .!@ mempty >>=
may (parseXMLList "DBSnapshotAttribute"))
instance Hashable DBSnapshotAttributesResult where
instance NFData DBSnapshotAttributesResult where
data DBSubnetGroup = DBSubnetGroup'
{ _dsgDBSubnetGroupName :: !(Maybe Text)
, _dsgVPCId :: !(Maybe Text)
, _dsgSubnets :: !(Maybe [Subnet])
, _dsgDBSubnetGroupDescription :: !(Maybe Text)
, _dsgDBSubnetGroupARN :: !(Maybe Text)
, _dsgSubnetGroupStatus :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
dbSubnetGroup
:: DBSubnetGroup
dbSubnetGroup =
DBSubnetGroup'
{ _dsgDBSubnetGroupName = Nothing
, _dsgVPCId = Nothing
, _dsgSubnets = Nothing
, _dsgDBSubnetGroupDescription = Nothing
, _dsgDBSubnetGroupARN = Nothing
, _dsgSubnetGroupStatus = Nothing
}
dsgDBSubnetGroupName :: Lens' DBSubnetGroup (Maybe Text)
dsgDBSubnetGroupName = lens _dsgDBSubnetGroupName (\ s a -> s{_dsgDBSubnetGroupName = a});
dsgVPCId :: Lens' DBSubnetGroup (Maybe Text)
dsgVPCId = lens _dsgVPCId (\ s a -> s{_dsgVPCId = a});
dsgSubnets :: Lens' DBSubnetGroup [Subnet]
dsgSubnets = lens _dsgSubnets (\ s a -> s{_dsgSubnets = a}) . _Default . _Coerce;
dsgDBSubnetGroupDescription :: Lens' DBSubnetGroup (Maybe Text)
dsgDBSubnetGroupDescription = lens _dsgDBSubnetGroupDescription (\ s a -> s{_dsgDBSubnetGroupDescription = a});
dsgDBSubnetGroupARN :: Lens' DBSubnetGroup (Maybe Text)
dsgDBSubnetGroupARN = lens _dsgDBSubnetGroupARN (\ s a -> s{_dsgDBSubnetGroupARN = a});
dsgSubnetGroupStatus :: Lens' DBSubnetGroup (Maybe Text)
dsgSubnetGroupStatus = lens _dsgSubnetGroupStatus (\ s a -> s{_dsgSubnetGroupStatus = a});
instance FromXML DBSubnetGroup where
parseXML x
= DBSubnetGroup' <$>
(x .@? "DBSubnetGroupName") <*> (x .@? "VpcId") <*>
(x .@? "Subnets" .!@ mempty >>=
may (parseXMLList "Subnet"))
<*> (x .@? "DBSubnetGroupDescription")
<*> (x .@? "DBSubnetGroupArn")
<*> (x .@? "SubnetGroupStatus")
instance Hashable DBSubnetGroup where
instance NFData DBSubnetGroup where
data DescribeDBLogFilesDetails = DescribeDBLogFilesDetails'
{ _ddlfdLastWritten :: !(Maybe Integer)
, _ddlfdSize :: !(Maybe Integer)
, _ddlfdLogFileName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
describeDBLogFilesDetails
:: DescribeDBLogFilesDetails
describeDBLogFilesDetails =
DescribeDBLogFilesDetails'
{ _ddlfdLastWritten = Nothing
, _ddlfdSize = Nothing
, _ddlfdLogFileName = Nothing
}
ddlfdLastWritten :: Lens' DescribeDBLogFilesDetails (Maybe Integer)
ddlfdLastWritten = lens _ddlfdLastWritten (\ s a -> s{_ddlfdLastWritten = a});
ddlfdSize :: Lens' DescribeDBLogFilesDetails (Maybe Integer)
ddlfdSize = lens _ddlfdSize (\ s a -> s{_ddlfdSize = a});
ddlfdLogFileName :: Lens' DescribeDBLogFilesDetails (Maybe Text)
ddlfdLogFileName = lens _ddlfdLogFileName (\ s a -> s{_ddlfdLogFileName = a});
instance FromXML DescribeDBLogFilesDetails where
parseXML x
= DescribeDBLogFilesDetails' <$>
(x .@? "LastWritten") <*> (x .@? "Size") <*>
(x .@? "LogFileName")
instance Hashable DescribeDBLogFilesDetails where
instance NFData DescribeDBLogFilesDetails where
data DomainMembership = DomainMembership'
{ _dmStatus :: !(Maybe Text)
, _dmFQDN :: !(Maybe Text)
, _dmDomain :: !(Maybe Text)
, _dmIAMRoleName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
domainMembership
:: DomainMembership
domainMembership =
DomainMembership'
{ _dmStatus = Nothing
, _dmFQDN = Nothing
, _dmDomain = Nothing
, _dmIAMRoleName = Nothing
}
dmStatus :: Lens' DomainMembership (Maybe Text)
dmStatus = lens _dmStatus (\ s a -> s{_dmStatus = a});
dmFQDN :: Lens' DomainMembership (Maybe Text)
dmFQDN = lens _dmFQDN (\ s a -> s{_dmFQDN = a});
dmDomain :: Lens' DomainMembership (Maybe Text)
dmDomain = lens _dmDomain (\ s a -> s{_dmDomain = a});
dmIAMRoleName :: Lens' DomainMembership (Maybe Text)
dmIAMRoleName = lens _dmIAMRoleName (\ s a -> s{_dmIAMRoleName = a});
instance FromXML DomainMembership where
parseXML x
= DomainMembership' <$>
(x .@? "Status") <*> (x .@? "FQDN") <*>
(x .@? "Domain")
<*> (x .@? "IAMRoleName")
instance Hashable DomainMembership where
instance NFData DomainMembership where
data DoubleRange = DoubleRange'
{ _drTo :: !(Maybe Double)
, _drFrom :: !(Maybe Double)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
doubleRange
:: DoubleRange
doubleRange = DoubleRange' {_drTo = Nothing, _drFrom = Nothing}
drTo :: Lens' DoubleRange (Maybe Double)
drTo = lens _drTo (\ s a -> s{_drTo = a});
drFrom :: Lens' DoubleRange (Maybe Double)
drFrom = lens _drFrom (\ s a -> s{_drFrom = a});
instance FromXML DoubleRange where
parseXML x
= DoubleRange' <$> (x .@? "To") <*> (x .@? "From")
instance Hashable DoubleRange where
instance NFData DoubleRange where
data EC2SecurityGroup = EC2SecurityGroup'
{ _esgStatus :: !(Maybe Text)
, _esgEC2SecurityGroupOwnerId :: !(Maybe Text)
, _esgEC2SecurityGroupName :: !(Maybe Text)
, _esgEC2SecurityGroupId :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
ec2SecurityGroup
:: EC2SecurityGroup
ec2SecurityGroup =
EC2SecurityGroup'
{ _esgStatus = Nothing
, _esgEC2SecurityGroupOwnerId = Nothing
, _esgEC2SecurityGroupName = Nothing
, _esgEC2SecurityGroupId = Nothing
}
esgStatus :: Lens' EC2SecurityGroup (Maybe Text)
esgStatus = lens _esgStatus (\ s a -> s{_esgStatus = a});
esgEC2SecurityGroupOwnerId :: Lens' EC2SecurityGroup (Maybe Text)
esgEC2SecurityGroupOwnerId = lens _esgEC2SecurityGroupOwnerId (\ s a -> s{_esgEC2SecurityGroupOwnerId = a});
esgEC2SecurityGroupName :: Lens' EC2SecurityGroup (Maybe Text)
esgEC2SecurityGroupName = lens _esgEC2SecurityGroupName (\ s a -> s{_esgEC2SecurityGroupName = a});
esgEC2SecurityGroupId :: Lens' EC2SecurityGroup (Maybe Text)
esgEC2SecurityGroupId = lens _esgEC2SecurityGroupId (\ s a -> s{_esgEC2SecurityGroupId = a});
instance FromXML EC2SecurityGroup where
parseXML x
= EC2SecurityGroup' <$>
(x .@? "Status") <*>
(x .@? "EC2SecurityGroupOwnerId")
<*> (x .@? "EC2SecurityGroupName")
<*> (x .@? "EC2SecurityGroupId")
instance Hashable EC2SecurityGroup where
instance NFData EC2SecurityGroup where
data Endpoint = Endpoint'
{ _eHostedZoneId :: !(Maybe Text)
, _eAddress :: !(Maybe Text)
, _ePort :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
endpoint
:: Endpoint
endpoint =
Endpoint' {_eHostedZoneId = Nothing, _eAddress = Nothing, _ePort = Nothing}
eHostedZoneId :: Lens' Endpoint (Maybe Text)
eHostedZoneId = lens _eHostedZoneId (\ s a -> s{_eHostedZoneId = a});
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 .@? "HostedZoneId") <*> (x .@? "Address") <*>
(x .@? "Port")
instance Hashable Endpoint where
instance NFData Endpoint where
data EngineDefaults = EngineDefaults'
{ _edDBParameterGroupFamily :: !(Maybe Text)
, _edMarker :: !(Maybe Text)
, _edParameters :: !(Maybe [Parameter])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
engineDefaults
:: EngineDefaults
engineDefaults =
EngineDefaults'
{ _edDBParameterGroupFamily = Nothing
, _edMarker = Nothing
, _edParameters = Nothing
}
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}) . _Default . _Coerce;
instance FromXML EngineDefaults where
parseXML x
= EngineDefaults' <$>
(x .@? "DBParameterGroupFamily") <*> (x .@? "Marker")
<*>
(x .@? "Parameters" .!@ mempty >>=
may (parseXMLList "Parameter"))
instance Hashable EngineDefaults where
instance NFData EngineDefaults where
data Event = Event'
{ _eSourceType :: !(Maybe SourceType)
, _eSourceARN :: !(Maybe Text)
, _eSourceIdentifier :: !(Maybe Text)
, _eDate :: !(Maybe ISO8601)
, _eEventCategories :: !(Maybe [Text])
, _eMessage :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
event
:: Event
event =
Event'
{ _eSourceType = Nothing
, _eSourceARN = Nothing
, _eSourceIdentifier = Nothing
, _eDate = Nothing
, _eEventCategories = Nothing
, _eMessage = Nothing
}
eSourceType :: Lens' Event (Maybe SourceType)
eSourceType = lens _eSourceType (\ s a -> s{_eSourceType = a});
eSourceARN :: Lens' Event (Maybe Text)
eSourceARN = lens _eSourceARN (\ s a -> s{_eSourceARN = a});
eSourceIdentifier :: Lens' Event (Maybe Text)
eSourceIdentifier = lens _eSourceIdentifier (\ s a -> s{_eSourceIdentifier = a});
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}) . _Default . _Coerce;
eMessage :: Lens' Event (Maybe Text)
eMessage = lens _eMessage (\ s a -> s{_eMessage = a});
instance FromXML Event where
parseXML x
= Event' <$>
(x .@? "SourceType") <*> (x .@? "SourceArn") <*>
(x .@? "SourceIdentifier")
<*> (x .@? "Date")
<*>
(x .@? "EventCategories" .!@ mempty >>=
may (parseXMLList "EventCategory"))
<*> (x .@? "Message")
instance Hashable Event where
instance NFData Event where
data EventCategoriesMap = EventCategoriesMap'
{ _ecmSourceType :: !(Maybe Text)
, _ecmEventCategories :: !(Maybe [Text])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
eventCategoriesMap
:: EventCategoriesMap
eventCategoriesMap =
EventCategoriesMap' {_ecmSourceType = Nothing, _ecmEventCategories = Nothing}
ecmSourceType :: Lens' EventCategoriesMap (Maybe Text)
ecmSourceType = lens _ecmSourceType (\ s a -> s{_ecmSourceType = a});
ecmEventCategories :: Lens' EventCategoriesMap [Text]
ecmEventCategories = lens _ecmEventCategories (\ s a -> s{_ecmEventCategories = a}) . _Default . _Coerce;
instance FromXML EventCategoriesMap where
parseXML x
= EventCategoriesMap' <$>
(x .@? "SourceType") <*>
(x .@? "EventCategories" .!@ mempty >>=
may (parseXMLList "EventCategory"))
instance Hashable EventCategoriesMap where
instance NFData EventCategoriesMap where
data EventSubscription = EventSubscription'
{ _esStatus :: !(Maybe Text)
, _esCustomerAWSId :: !(Maybe Text)
, _esCustSubscriptionId :: !(Maybe Text)
, _esSNSTopicARN :: !(Maybe Text)
, _esEventSubscriptionARN :: !(Maybe Text)
, _esEnabled :: !(Maybe Bool)
, _esSourceType :: !(Maybe Text)
, _esSubscriptionCreationTime :: !(Maybe Text)
, _esEventCategoriesList :: !(Maybe [Text])
, _esSourceIdsList :: !(Maybe [Text])
} deriving (Eq, Read, Show, Data, Typeable, Generic)
eventSubscription
:: EventSubscription
eventSubscription =
EventSubscription'
{ _esStatus = Nothing
, _esCustomerAWSId = Nothing
, _esCustSubscriptionId = Nothing
, _esSNSTopicARN = Nothing
, _esEventSubscriptionARN = Nothing
, _esEnabled = Nothing
, _esSourceType = Nothing
, _esSubscriptionCreationTime = Nothing
, _esEventCategoriesList = Nothing
, _esSourceIdsList = Nothing
}
esStatus :: Lens' EventSubscription (Maybe Text)
esStatus = lens _esStatus (\ s a -> s{_esStatus = a});
esCustomerAWSId :: Lens' EventSubscription (Maybe Text)
esCustomerAWSId = lens _esCustomerAWSId (\ s a -> s{_esCustomerAWSId = a});
esCustSubscriptionId :: Lens' EventSubscription (Maybe Text)
esCustSubscriptionId = lens _esCustSubscriptionId (\ s a -> s{_esCustSubscriptionId = a});
esSNSTopicARN :: Lens' EventSubscription (Maybe Text)
esSNSTopicARN = lens _esSNSTopicARN (\ s a -> s{_esSNSTopicARN = a});
esEventSubscriptionARN :: Lens' EventSubscription (Maybe Text)
esEventSubscriptionARN = lens _esEventSubscriptionARN (\ s a -> s{_esEventSubscriptionARN = a});
esEnabled :: Lens' EventSubscription (Maybe Bool)
esEnabled = lens _esEnabled (\ s a -> s{_esEnabled = a});
esSourceType :: Lens' EventSubscription (Maybe Text)
esSourceType = lens _esSourceType (\ s a -> s{_esSourceType = a});
esSubscriptionCreationTime :: Lens' EventSubscription (Maybe Text)
esSubscriptionCreationTime = lens _esSubscriptionCreationTime (\ s a -> s{_esSubscriptionCreationTime = a});
esEventCategoriesList :: Lens' EventSubscription [Text]
esEventCategoriesList = lens _esEventCategoriesList (\ s a -> s{_esEventCategoriesList = a}) . _Default . _Coerce;
esSourceIdsList :: Lens' EventSubscription [Text]
esSourceIdsList = lens _esSourceIdsList (\ s a -> s{_esSourceIdsList = a}) . _Default . _Coerce;
instance FromXML EventSubscription where
parseXML x
= EventSubscription' <$>
(x .@? "Status") <*> (x .@? "CustomerAwsId") <*>
(x .@? "CustSubscriptionId")
<*> (x .@? "SnsTopicArn")
<*> (x .@? "EventSubscriptionArn")
<*> (x .@? "Enabled")
<*> (x .@? "SourceType")
<*> (x .@? "SubscriptionCreationTime")
<*>
(x .@? "EventCategoriesList" .!@ mempty >>=
may (parseXMLList "EventCategory"))
<*>
(x .@? "SourceIdsList" .!@ mempty >>=
may (parseXMLList "SourceId"))
instance Hashable EventSubscription where
instance NFData EventSubscription where
data Filter = Filter'
{ _fName :: !Text
, _fValues :: ![Text]
} deriving (Eq, Read, Show, Data, Typeable, Generic)
filter'
:: Text
-> Filter
filter' pName_ = Filter' {_fName = pName_, _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}) . _Coerce;
instance Hashable Filter where
instance NFData Filter where
instance ToQuery Filter where
toQuery Filter'{..}
= mconcat
["Name" =: _fName,
"Values" =: toQueryList "Value" _fValues]
data IPRange = IPRange'
{ _irStatus :: !(Maybe Text)
, _irCIdRIP :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
ipRange
:: IPRange
ipRange = IPRange' {_irStatus = Nothing, _irCIdRIP = Nothing}
irStatus :: Lens' IPRange (Maybe Text)
irStatus = lens _irStatus (\ s a -> s{_irStatus = a});
irCIdRIP :: Lens' IPRange (Maybe Text)
irCIdRIP = lens _irCIdRIP (\ s a -> s{_irCIdRIP = a});
instance FromXML IPRange where
parseXML x
= IPRange' <$> (x .@? "Status") <*> (x .@? "CIDRIP")
instance Hashable IPRange where
instance NFData IPRange where
data Option = Option'
{ _oOptionName :: !(Maybe Text)
, _oPermanent :: !(Maybe Bool)
, _oPersistent :: !(Maybe Bool)
, _oOptionDescription :: !(Maybe Text)
, _oOptionSettings :: !(Maybe [OptionSetting])
, _oVPCSecurityGroupMemberships :: !(Maybe [VPCSecurityGroupMembership])
, _oDBSecurityGroupMemberships :: !(Maybe [DBSecurityGroupMembership])
, _oOptionVersion :: !(Maybe Text)
, _oPort :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
option
:: Option
option =
Option'
{ _oOptionName = Nothing
, _oPermanent = Nothing
, _oPersistent = Nothing
, _oOptionDescription = Nothing
, _oOptionSettings = Nothing
, _oVPCSecurityGroupMemberships = Nothing
, _oDBSecurityGroupMemberships = Nothing
, _oOptionVersion = Nothing
, _oPort = Nothing
}
oOptionName :: Lens' Option (Maybe Text)
oOptionName = lens _oOptionName (\ s a -> s{_oOptionName = a});
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});
oOptionDescription :: Lens' Option (Maybe Text)
oOptionDescription = lens _oOptionDescription (\ s a -> s{_oOptionDescription = a});
oOptionSettings :: Lens' Option [OptionSetting]
oOptionSettings = lens _oOptionSettings (\ s a -> s{_oOptionSettings = a}) . _Default . _Coerce;
oVPCSecurityGroupMemberships :: Lens' Option [VPCSecurityGroupMembership]
oVPCSecurityGroupMemberships = lens _oVPCSecurityGroupMemberships (\ s a -> s{_oVPCSecurityGroupMemberships = a}) . _Default . _Coerce;
oDBSecurityGroupMemberships :: Lens' Option [DBSecurityGroupMembership]
oDBSecurityGroupMemberships = lens _oDBSecurityGroupMemberships (\ s a -> s{_oDBSecurityGroupMemberships = a}) . _Default . _Coerce;
oOptionVersion :: Lens' Option (Maybe Text)
oOptionVersion = lens _oOptionVersion (\ s a -> s{_oOptionVersion = a});
oPort :: Lens' Option (Maybe Int)
oPort = lens _oPort (\ s a -> s{_oPort = a});
instance FromXML Option where
parseXML x
= Option' <$>
(x .@? "OptionName") <*> (x .@? "Permanent") <*>
(x .@? "Persistent")
<*> (x .@? "OptionDescription")
<*>
(x .@? "OptionSettings" .!@ mempty >>=
may (parseXMLList "OptionSetting"))
<*>
(x .@? "VpcSecurityGroupMemberships" .!@ mempty >>=
may (parseXMLList "VpcSecurityGroupMembership"))
<*>
(x .@? "DBSecurityGroupMemberships" .!@ mempty >>=
may (parseXMLList "DBSecurityGroup"))
<*> (x .@? "OptionVersion")
<*> (x .@? "Port")
instance Hashable Option where
instance NFData Option where
data OptionConfiguration = OptionConfiguration'
{ _ocOptionSettings :: !(Maybe [OptionSetting])
, _ocVPCSecurityGroupMemberships :: !(Maybe [Text])
, _ocDBSecurityGroupMemberships :: !(Maybe [Text])
, _ocOptionVersion :: !(Maybe Text)
, _ocPort :: !(Maybe Int)
, _ocOptionName :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionConfiguration
:: Text
-> OptionConfiguration
optionConfiguration pOptionName_ =
OptionConfiguration'
{ _ocOptionSettings = Nothing
, _ocVPCSecurityGroupMemberships = Nothing
, _ocDBSecurityGroupMemberships = Nothing
, _ocOptionVersion = Nothing
, _ocPort = Nothing
, _ocOptionName = pOptionName_
}
ocOptionSettings :: Lens' OptionConfiguration [OptionSetting]
ocOptionSettings = lens _ocOptionSettings (\ s a -> s{_ocOptionSettings = a}) . _Default . _Coerce;
ocVPCSecurityGroupMemberships :: Lens' OptionConfiguration [Text]
ocVPCSecurityGroupMemberships = lens _ocVPCSecurityGroupMemberships (\ s a -> s{_ocVPCSecurityGroupMemberships = a}) . _Default . _Coerce;
ocDBSecurityGroupMemberships :: Lens' OptionConfiguration [Text]
ocDBSecurityGroupMemberships = lens _ocDBSecurityGroupMemberships (\ s a -> s{_ocDBSecurityGroupMemberships = a}) . _Default . _Coerce;
ocOptionVersion :: Lens' OptionConfiguration (Maybe Text)
ocOptionVersion = lens _ocOptionVersion (\ s a -> s{_ocOptionVersion = a});
ocPort :: Lens' OptionConfiguration (Maybe Int)
ocPort = lens _ocPort (\ s a -> s{_ocPort = a});
ocOptionName :: Lens' OptionConfiguration Text
ocOptionName = lens _ocOptionName (\ s a -> s{_ocOptionName = a});
instance Hashable OptionConfiguration where
instance NFData OptionConfiguration where
instance ToQuery OptionConfiguration where
toQuery OptionConfiguration'{..}
= mconcat
["OptionSettings" =:
toQuery
(toQueryList "OptionSetting" <$> _ocOptionSettings),
"VpcSecurityGroupMemberships" =:
toQuery
(toQueryList "VpcSecurityGroupId" <$>
_ocVPCSecurityGroupMemberships),
"DBSecurityGroupMemberships" =:
toQuery
(toQueryList "DBSecurityGroupName" <$>
_ocDBSecurityGroupMemberships),
"OptionVersion" =: _ocOptionVersion,
"Port" =: _ocPort, "OptionName" =: _ocOptionName]
data OptionGroup = OptionGroup'
{ _ogOptionGroupDescription :: !(Maybe Text)
, _ogVPCId :: !(Maybe Text)
, _ogAllowsVPCAndNonVPCInstanceMemberships :: !(Maybe Bool)
, _ogEngineName :: !(Maybe Text)
, _ogOptionGroupARN :: !(Maybe Text)
, _ogMajorEngineVersion :: !(Maybe Text)
, _ogOptions :: !(Maybe [Option])
, _ogOptionGroupName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionGroup
:: OptionGroup
optionGroup =
OptionGroup'
{ _ogOptionGroupDescription = Nothing
, _ogVPCId = Nothing
, _ogAllowsVPCAndNonVPCInstanceMemberships = Nothing
, _ogEngineName = Nothing
, _ogOptionGroupARN = Nothing
, _ogMajorEngineVersion = Nothing
, _ogOptions = Nothing
, _ogOptionGroupName = Nothing
}
ogOptionGroupDescription :: Lens' OptionGroup (Maybe Text)
ogOptionGroupDescription = lens _ogOptionGroupDescription (\ s a -> s{_ogOptionGroupDescription = a});
ogVPCId :: Lens' OptionGroup (Maybe Text)
ogVPCId = lens _ogVPCId (\ s a -> s{_ogVPCId = a});
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});
ogOptionGroupARN :: Lens' OptionGroup (Maybe Text)
ogOptionGroupARN = lens _ogOptionGroupARN (\ s a -> s{_ogOptionGroupARN = a});
ogMajorEngineVersion :: Lens' OptionGroup (Maybe Text)
ogMajorEngineVersion = lens _ogMajorEngineVersion (\ s a -> s{_ogMajorEngineVersion = a});
ogOptions :: Lens' OptionGroup [Option]
ogOptions = lens _ogOptions (\ s a -> s{_ogOptions = a}) . _Default . _Coerce;
ogOptionGroupName :: Lens' OptionGroup (Maybe Text)
ogOptionGroupName = lens _ogOptionGroupName (\ s a -> s{_ogOptionGroupName = a});
instance FromXML OptionGroup where
parseXML x
= OptionGroup' <$>
(x .@? "OptionGroupDescription") <*> (x .@? "VpcId")
<*> (x .@? "AllowsVpcAndNonVpcInstanceMemberships")
<*> (x .@? "EngineName")
<*> (x .@? "OptionGroupArn")
<*> (x .@? "MajorEngineVersion")
<*>
(x .@? "Options" .!@ mempty >>=
may (parseXMLList "Option"))
<*> (x .@? "OptionGroupName")
instance Hashable OptionGroup where
instance NFData OptionGroup where
data OptionGroupMembership = OptionGroupMembership'
{ _ogmStatus :: !(Maybe Text)
, _ogmOptionGroupName :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionGroupMembership
:: OptionGroupMembership
optionGroupMembership =
OptionGroupMembership' {_ogmStatus = Nothing, _ogmOptionGroupName = Nothing}
ogmStatus :: Lens' OptionGroupMembership (Maybe Text)
ogmStatus = lens _ogmStatus (\ s a -> s{_ogmStatus = a});
ogmOptionGroupName :: Lens' OptionGroupMembership (Maybe Text)
ogmOptionGroupName = lens _ogmOptionGroupName (\ s a -> s{_ogmOptionGroupName = a});
instance FromXML OptionGroupMembership where
parseXML x
= OptionGroupMembership' <$>
(x .@? "Status") <*> (x .@? "OptionGroupName")
instance Hashable OptionGroupMembership where
instance NFData OptionGroupMembership where
data OptionGroupOption = OptionGroupOption'
{ _ogoMinimumRequiredMinorEngineVersion :: !(Maybe Text)
, _ogoOptionsConflictsWith :: !(Maybe [Text])
, _ogoPermanent :: !(Maybe Bool)
, _ogoPersistent :: !(Maybe Bool)
, _ogoOptionGroupOptionVersions :: !(Maybe [OptionVersion])
, _ogoEngineName :: !(Maybe Text)
, _ogoMajorEngineVersion :: !(Maybe Text)
, _ogoName :: !(Maybe Text)
, _ogoSupportsOptionVersionDowngrade :: !(Maybe Bool)
, _ogoDefaultPort :: !(Maybe Int)
, _ogoOptionGroupOptionSettings :: !(Maybe [OptionGroupOptionSetting])
, _ogoRequiresAutoMinorEngineVersionUpgrade :: !(Maybe Bool)
, _ogoPortRequired :: !(Maybe Bool)
, _ogoDescription :: !(Maybe Text)
, _ogoOptionsDependedOn :: !(Maybe [Text])
, _ogoVPCOnly :: !(Maybe Bool)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionGroupOption
:: OptionGroupOption
optionGroupOption =
OptionGroupOption'
{ _ogoMinimumRequiredMinorEngineVersion = Nothing
, _ogoOptionsConflictsWith = Nothing
, _ogoPermanent = Nothing
, _ogoPersistent = Nothing
, _ogoOptionGroupOptionVersions = Nothing
, _ogoEngineName = Nothing
, _ogoMajorEngineVersion = Nothing
, _ogoName = Nothing
, _ogoSupportsOptionVersionDowngrade = Nothing
, _ogoDefaultPort = Nothing
, _ogoOptionGroupOptionSettings = Nothing
, _ogoRequiresAutoMinorEngineVersionUpgrade = Nothing
, _ogoPortRequired = Nothing
, _ogoDescription = Nothing
, _ogoOptionsDependedOn = Nothing
, _ogoVPCOnly = Nothing
}
ogoMinimumRequiredMinorEngineVersion :: Lens' OptionGroupOption (Maybe Text)
ogoMinimumRequiredMinorEngineVersion = lens _ogoMinimumRequiredMinorEngineVersion (\ s a -> s{_ogoMinimumRequiredMinorEngineVersion = a});
ogoOptionsConflictsWith :: Lens' OptionGroupOption [Text]
ogoOptionsConflictsWith = lens _ogoOptionsConflictsWith (\ s a -> s{_ogoOptionsConflictsWith = a}) . _Default . _Coerce;
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});
ogoOptionGroupOptionVersions :: Lens' OptionGroupOption [OptionVersion]
ogoOptionGroupOptionVersions = lens _ogoOptionGroupOptionVersions (\ s a -> s{_ogoOptionGroupOptionVersions = a}) . _Default . _Coerce;
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});
ogoName :: Lens' OptionGroupOption (Maybe Text)
ogoName = lens _ogoName (\ s a -> s{_ogoName = a});
ogoSupportsOptionVersionDowngrade :: Lens' OptionGroupOption (Maybe Bool)
ogoSupportsOptionVersionDowngrade = lens _ogoSupportsOptionVersionDowngrade (\ s a -> s{_ogoSupportsOptionVersionDowngrade = a});
ogoDefaultPort :: Lens' OptionGroupOption (Maybe Int)
ogoDefaultPort = lens _ogoDefaultPort (\ s a -> s{_ogoDefaultPort = a});
ogoOptionGroupOptionSettings :: Lens' OptionGroupOption [OptionGroupOptionSetting]
ogoOptionGroupOptionSettings = lens _ogoOptionGroupOptionSettings (\ s a -> s{_ogoOptionGroupOptionSettings = a}) . _Default . _Coerce;
ogoRequiresAutoMinorEngineVersionUpgrade :: Lens' OptionGroupOption (Maybe Bool)
ogoRequiresAutoMinorEngineVersionUpgrade = lens _ogoRequiresAutoMinorEngineVersionUpgrade (\ s a -> s{_ogoRequiresAutoMinorEngineVersionUpgrade = a});
ogoPortRequired :: Lens' OptionGroupOption (Maybe Bool)
ogoPortRequired = lens _ogoPortRequired (\ s a -> s{_ogoPortRequired = a});
ogoDescription :: Lens' OptionGroupOption (Maybe Text)
ogoDescription = lens _ogoDescription (\ s a -> s{_ogoDescription = a});
ogoOptionsDependedOn :: Lens' OptionGroupOption [Text]
ogoOptionsDependedOn = lens _ogoOptionsDependedOn (\ s a -> s{_ogoOptionsDependedOn = a}) . _Default . _Coerce;
ogoVPCOnly :: Lens' OptionGroupOption (Maybe Bool)
ogoVPCOnly = lens _ogoVPCOnly (\ s a -> s{_ogoVPCOnly = a});
instance FromXML OptionGroupOption where
parseXML x
= OptionGroupOption' <$>
(x .@? "MinimumRequiredMinorEngineVersion") <*>
(x .@? "OptionsConflictsWith" .!@ mempty >>=
may (parseXMLList "OptionConflictName"))
<*> (x .@? "Permanent")
<*> (x .@? "Persistent")
<*>
(x .@? "OptionGroupOptionVersions" .!@ mempty >>=
may (parseXMLList "OptionVersion"))
<*> (x .@? "EngineName")
<*> (x .@? "MajorEngineVersion")
<*> (x .@? "Name")
<*> (x .@? "SupportsOptionVersionDowngrade")
<*> (x .@? "DefaultPort")
<*>
(x .@? "OptionGroupOptionSettings" .!@ mempty >>=
may (parseXMLList "OptionGroupOptionSetting"))
<*> (x .@? "RequiresAutoMinorEngineVersionUpgrade")
<*> (x .@? "PortRequired")
<*> (x .@? "Description")
<*>
(x .@? "OptionsDependedOn" .!@ mempty >>=
may (parseXMLList "OptionName"))
<*> (x .@? "VpcOnly")
instance Hashable OptionGroupOption where
instance NFData OptionGroupOption where
data OptionGroupOptionSetting = OptionGroupOptionSetting'
{ _ogosApplyType :: !(Maybe Text)
, _ogosSettingName :: !(Maybe Text)
, _ogosDefaultValue :: !(Maybe Text)
, _ogosIsModifiable :: !(Maybe Bool)
, _ogosSettingDescription :: !(Maybe Text)
, _ogosAllowedValues :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionGroupOptionSetting
:: OptionGroupOptionSetting
optionGroupOptionSetting =
OptionGroupOptionSetting'
{ _ogosApplyType = Nothing
, _ogosSettingName = Nothing
, _ogosDefaultValue = Nothing
, _ogosIsModifiable = Nothing
, _ogosSettingDescription = Nothing
, _ogosAllowedValues = Nothing
}
ogosApplyType :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosApplyType = lens _ogosApplyType (\ s a -> s{_ogosApplyType = a});
ogosSettingName :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosSettingName = lens _ogosSettingName (\ s a -> s{_ogosSettingName = 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});
ogosAllowedValues :: Lens' OptionGroupOptionSetting (Maybe Text)
ogosAllowedValues = lens _ogosAllowedValues (\ s a -> s{_ogosAllowedValues = a});
instance FromXML OptionGroupOptionSetting where
parseXML x
= OptionGroupOptionSetting' <$>
(x .@? "ApplyType") <*> (x .@? "SettingName") <*>
(x .@? "DefaultValue")
<*> (x .@? "IsModifiable")
<*> (x .@? "SettingDescription")
<*> (x .@? "AllowedValues")
instance Hashable OptionGroupOptionSetting where
instance NFData OptionGroupOptionSetting where
data OptionSetting = OptionSetting'
{ _osIsCollection :: !(Maybe Bool)
, _osApplyType :: !(Maybe Text)
, _osValue :: !(Maybe Text)
, _osName :: !(Maybe Text)
, _osDefaultValue :: !(Maybe Text)
, _osIsModifiable :: !(Maybe Bool)
, _osDataType :: !(Maybe Text)
, _osAllowedValues :: !(Maybe Text)
, _osDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionSetting
:: OptionSetting
optionSetting =
OptionSetting'
{ _osIsCollection = Nothing
, _osApplyType = Nothing
, _osValue = Nothing
, _osName = Nothing
, _osDefaultValue = Nothing
, _osIsModifiable = Nothing
, _osDataType = Nothing
, _osAllowedValues = Nothing
, _osDescription = Nothing
}
osIsCollection :: Lens' OptionSetting (Maybe Bool)
osIsCollection = lens _osIsCollection (\ s a -> s{_osIsCollection = a});
osApplyType :: Lens' OptionSetting (Maybe Text)
osApplyType = lens _osApplyType (\ s a -> s{_osApplyType = a});
osValue :: Lens' OptionSetting (Maybe Text)
osValue = lens _osValue (\ s a -> s{_osValue = a});
osName :: Lens' OptionSetting (Maybe Text)
osName = lens _osName (\ s a -> s{_osName = a});
osDefaultValue :: Lens' OptionSetting (Maybe Text)
osDefaultValue = lens _osDefaultValue (\ s a -> s{_osDefaultValue = a});
osIsModifiable :: Lens' OptionSetting (Maybe Bool)
osIsModifiable = lens _osIsModifiable (\ s a -> s{_osIsModifiable = a});
osDataType :: Lens' OptionSetting (Maybe Text)
osDataType = lens _osDataType (\ s a -> s{_osDataType = a});
osAllowedValues :: Lens' OptionSetting (Maybe Text)
osAllowedValues = lens _osAllowedValues (\ s a -> s{_osAllowedValues = a});
osDescription :: Lens' OptionSetting (Maybe Text)
osDescription = lens _osDescription (\ s a -> s{_osDescription = a});
instance FromXML OptionSetting where
parseXML x
= OptionSetting' <$>
(x .@? "IsCollection") <*> (x .@? "ApplyType") <*>
(x .@? "Value")
<*> (x .@? "Name")
<*> (x .@? "DefaultValue")
<*> (x .@? "IsModifiable")
<*> (x .@? "DataType")
<*> (x .@? "AllowedValues")
<*> (x .@? "Description")
instance Hashable OptionSetting where
instance NFData OptionSetting where
instance ToQuery OptionSetting where
toQuery OptionSetting'{..}
= mconcat
["IsCollection" =: _osIsCollection,
"ApplyType" =: _osApplyType, "Value" =: _osValue,
"Name" =: _osName, "DefaultValue" =: _osDefaultValue,
"IsModifiable" =: _osIsModifiable,
"DataType" =: _osDataType,
"AllowedValues" =: _osAllowedValues,
"Description" =: _osDescription]
data OptionVersion = OptionVersion'
{ _ovVersion :: !(Maybe Text)
, _ovIsDefault :: !(Maybe Bool)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
optionVersion
:: OptionVersion
optionVersion = OptionVersion' {_ovVersion = Nothing, _ovIsDefault = Nothing}
ovVersion :: Lens' OptionVersion (Maybe Text)
ovVersion = lens _ovVersion (\ s a -> s{_ovVersion = a});
ovIsDefault :: Lens' OptionVersion (Maybe Bool)
ovIsDefault = lens _ovIsDefault (\ s a -> s{_ovIsDefault = a});
instance FromXML OptionVersion where
parseXML x
= OptionVersion' <$>
(x .@? "Version") <*> (x .@? "IsDefault")
instance Hashable OptionVersion where
instance NFData OptionVersion where
data OrderableDBInstanceOption = OrderableDBInstanceOption'
{ _odioEngineVersion :: !(Maybe Text)
, _odioMinIOPSPerGib :: !(Maybe Double)
, _odioSupportsIAMDatabaseAuthentication :: !(Maybe Bool)
, _odioMinIOPSPerDBInstance :: !(Maybe Int)
, _odioMultiAZCapable :: !(Maybe Bool)
, _odioMaxStorageSize :: !(Maybe Int)
, _odioEngine :: !(Maybe Text)
, _odioMinStorageSize :: !(Maybe Int)
, _odioSupportsIOPS :: !(Maybe Bool)
, _odioSupportsPerformanceInsights :: !(Maybe Bool)
, _odioDBInstanceClass :: !(Maybe Text)
, _odioLicenseModel :: !(Maybe Text)
, _odioAvailabilityZones :: !(Maybe [AvailabilityZone])
, _odioSupportsStorageEncryption :: !(Maybe Bool)
, _odioReadReplicaCapable :: !(Maybe Bool)
, _odioMaxIOPSPerGib :: !(Maybe Double)
, _odioVPC :: !(Maybe Bool)
, _odioSupportsEnhancedMonitoring :: !(Maybe Bool)
, _odioMaxIOPSPerDBInstance :: !(Maybe Int)
, _odioStorageType :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
orderableDBInstanceOption
:: OrderableDBInstanceOption
orderableDBInstanceOption =
OrderableDBInstanceOption'
{ _odioEngineVersion = Nothing
, _odioMinIOPSPerGib = Nothing
, _odioSupportsIAMDatabaseAuthentication = Nothing
, _odioMinIOPSPerDBInstance = Nothing
, _odioMultiAZCapable = Nothing
, _odioMaxStorageSize = Nothing
, _odioEngine = Nothing
, _odioMinStorageSize = Nothing
, _odioSupportsIOPS = Nothing
, _odioSupportsPerformanceInsights = Nothing
, _odioDBInstanceClass = Nothing
, _odioLicenseModel = Nothing
, _odioAvailabilityZones = Nothing
, _odioSupportsStorageEncryption = Nothing
, _odioReadReplicaCapable = Nothing
, _odioMaxIOPSPerGib = Nothing
, _odioVPC = Nothing
, _odioSupportsEnhancedMonitoring = Nothing
, _odioMaxIOPSPerDBInstance = Nothing
, _odioStorageType = Nothing
}
odioEngineVersion :: Lens' OrderableDBInstanceOption (Maybe Text)
odioEngineVersion = lens _odioEngineVersion (\ s a -> s{_odioEngineVersion = a});
odioMinIOPSPerGib :: Lens' OrderableDBInstanceOption (Maybe Double)
odioMinIOPSPerGib = lens _odioMinIOPSPerGib (\ s a -> s{_odioMinIOPSPerGib = a});
odioSupportsIAMDatabaseAuthentication :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioSupportsIAMDatabaseAuthentication = lens _odioSupportsIAMDatabaseAuthentication (\ s a -> s{_odioSupportsIAMDatabaseAuthentication = a});
odioMinIOPSPerDBInstance :: Lens' OrderableDBInstanceOption (Maybe Int)
odioMinIOPSPerDBInstance = lens _odioMinIOPSPerDBInstance (\ s a -> s{_odioMinIOPSPerDBInstance = a});
odioMultiAZCapable :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioMultiAZCapable = lens _odioMultiAZCapable (\ s a -> s{_odioMultiAZCapable = a});
odioMaxStorageSize :: Lens' OrderableDBInstanceOption (Maybe Int)
odioMaxStorageSize = lens _odioMaxStorageSize (\ s a -> s{_odioMaxStorageSize = a});
odioEngine :: Lens' OrderableDBInstanceOption (Maybe Text)
odioEngine = lens _odioEngine (\ s a -> s{_odioEngine = a});
odioMinStorageSize :: Lens' OrderableDBInstanceOption (Maybe Int)
odioMinStorageSize = lens _odioMinStorageSize (\ s a -> s{_odioMinStorageSize = a});
odioSupportsIOPS :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioSupportsIOPS = lens _odioSupportsIOPS (\ s a -> s{_odioSupportsIOPS = a});
odioSupportsPerformanceInsights :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioSupportsPerformanceInsights = lens _odioSupportsPerformanceInsights (\ s a -> s{_odioSupportsPerformanceInsights = a});
odioDBInstanceClass :: Lens' OrderableDBInstanceOption (Maybe Text)
odioDBInstanceClass = lens _odioDBInstanceClass (\ s a -> s{_odioDBInstanceClass = a});
odioLicenseModel :: Lens' OrderableDBInstanceOption (Maybe Text)
odioLicenseModel = lens _odioLicenseModel (\ s a -> s{_odioLicenseModel = a});
odioAvailabilityZones :: Lens' OrderableDBInstanceOption [AvailabilityZone]
odioAvailabilityZones = lens _odioAvailabilityZones (\ s a -> s{_odioAvailabilityZones = a}) . _Default . _Coerce;
odioSupportsStorageEncryption :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioSupportsStorageEncryption = lens _odioSupportsStorageEncryption (\ s a -> s{_odioSupportsStorageEncryption = a});
odioReadReplicaCapable :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioReadReplicaCapable = lens _odioReadReplicaCapable (\ s a -> s{_odioReadReplicaCapable = a});
odioMaxIOPSPerGib :: Lens' OrderableDBInstanceOption (Maybe Double)
odioMaxIOPSPerGib = lens _odioMaxIOPSPerGib (\ s a -> s{_odioMaxIOPSPerGib = a});
odioVPC :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioVPC = lens _odioVPC (\ s a -> s{_odioVPC = a});
odioSupportsEnhancedMonitoring :: Lens' OrderableDBInstanceOption (Maybe Bool)
odioSupportsEnhancedMonitoring = lens _odioSupportsEnhancedMonitoring (\ s a -> s{_odioSupportsEnhancedMonitoring = a});
odioMaxIOPSPerDBInstance :: Lens' OrderableDBInstanceOption (Maybe Int)
odioMaxIOPSPerDBInstance = lens _odioMaxIOPSPerDBInstance (\ s a -> s{_odioMaxIOPSPerDBInstance = a});
odioStorageType :: Lens' OrderableDBInstanceOption (Maybe Text)
odioStorageType = lens _odioStorageType (\ s a -> s{_odioStorageType = a});
instance FromXML OrderableDBInstanceOption where
parseXML x
= OrderableDBInstanceOption' <$>
(x .@? "EngineVersion") <*> (x .@? "MinIopsPerGib")
<*> (x .@? "SupportsIAMDatabaseAuthentication")
<*> (x .@? "MinIopsPerDbInstance")
<*> (x .@? "MultiAZCapable")
<*> (x .@? "MaxStorageSize")
<*> (x .@? "Engine")
<*> (x .@? "MinStorageSize")
<*> (x .@? "SupportsIops")
<*> (x .@? "SupportsPerformanceInsights")
<*> (x .@? "DBInstanceClass")
<*> (x .@? "LicenseModel")
<*>
(x .@? "AvailabilityZones" .!@ mempty >>=
may (parseXMLList "AvailabilityZone"))
<*> (x .@? "SupportsStorageEncryption")
<*> (x .@? "ReadReplicaCapable")
<*> (x .@? "MaxIopsPerGib")
<*> (x .@? "Vpc")
<*> (x .@? "SupportsEnhancedMonitoring")
<*> (x .@? "MaxIopsPerDbInstance")
<*> (x .@? "StorageType")
instance Hashable OrderableDBInstanceOption where
instance NFData OrderableDBInstanceOption where
data Parameter = Parameter'
{ _pApplyType :: !(Maybe Text)
, _pParameterValue :: !(Maybe Text)
, _pApplyMethod :: !(Maybe ApplyMethod)
, _pMinimumEngineVersion :: !(Maybe Text)
, _pSource :: !(Maybe Text)
, _pIsModifiable :: !(Maybe Bool)
, _pDataType :: !(Maybe Text)
, _pAllowedValues :: !(Maybe Text)
, _pParameterName :: !(Maybe Text)
, _pDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
parameter
:: Parameter
parameter =
Parameter'
{ _pApplyType = Nothing
, _pParameterValue = Nothing
, _pApplyMethod = Nothing
, _pMinimumEngineVersion = Nothing
, _pSource = Nothing
, _pIsModifiable = Nothing
, _pDataType = Nothing
, _pAllowedValues = Nothing
, _pParameterName = Nothing
, _pDescription = Nothing
}
pApplyType :: Lens' Parameter (Maybe Text)
pApplyType = lens _pApplyType (\ s a -> s{_pApplyType = a});
pParameterValue :: Lens' Parameter (Maybe Text)
pParameterValue = lens _pParameterValue (\ s a -> s{_pParameterValue = a});
pApplyMethod :: Lens' Parameter (Maybe ApplyMethod)
pApplyMethod = lens _pApplyMethod (\ s a -> s{_pApplyMethod = a});
pMinimumEngineVersion :: Lens' Parameter (Maybe Text)
pMinimumEngineVersion = lens _pMinimumEngineVersion (\ s a -> s{_pMinimumEngineVersion = a});
pSource :: Lens' Parameter (Maybe Text)
pSource = lens _pSource (\ s a -> s{_pSource = a});
pIsModifiable :: Lens' Parameter (Maybe Bool)
pIsModifiable = lens _pIsModifiable (\ s a -> s{_pIsModifiable = a});
pDataType :: Lens' Parameter (Maybe Text)
pDataType = lens _pDataType (\ s a -> s{_pDataType = a});
pAllowedValues :: Lens' Parameter (Maybe Text)
pAllowedValues = lens _pAllowedValues (\ s a -> s{_pAllowedValues = a});
pParameterName :: Lens' Parameter (Maybe Text)
pParameterName = lens _pParameterName (\ s a -> s{_pParameterName = a});
pDescription :: Lens' Parameter (Maybe Text)
pDescription = lens _pDescription (\ s a -> s{_pDescription = a});
instance FromXML Parameter where
parseXML x
= Parameter' <$>
(x .@? "ApplyType") <*> (x .@? "ParameterValue") <*>
(x .@? "ApplyMethod")
<*> (x .@? "MinimumEngineVersion")
<*> (x .@? "Source")
<*> (x .@? "IsModifiable")
<*> (x .@? "DataType")
<*> (x .@? "AllowedValues")
<*> (x .@? "ParameterName")
<*> (x .@? "Description")
instance Hashable Parameter where
instance NFData Parameter where
instance ToQuery Parameter where
toQuery Parameter'{..}
= mconcat
["ApplyType" =: _pApplyType,
"ParameterValue" =: _pParameterValue,
"ApplyMethod" =: _pApplyMethod,
"MinimumEngineVersion" =: _pMinimumEngineVersion,
"Source" =: _pSource,
"IsModifiable" =: _pIsModifiable,
"DataType" =: _pDataType,
"AllowedValues" =: _pAllowedValues,
"ParameterName" =: _pParameterName,
"Description" =: _pDescription]
data PendingMaintenanceAction = PendingMaintenanceAction'
{ _pmaAutoAppliedAfterDate :: !(Maybe ISO8601)
, _pmaAction :: !(Maybe Text)
, _pmaOptInStatus :: !(Maybe Text)
, _pmaDescription :: !(Maybe Text)
, _pmaForcedApplyDate :: !(Maybe ISO8601)
, _pmaCurrentApplyDate :: !(Maybe ISO8601)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
pendingMaintenanceAction
:: PendingMaintenanceAction
pendingMaintenanceAction =
PendingMaintenanceAction'
{ _pmaAutoAppliedAfterDate = Nothing
, _pmaAction = Nothing
, _pmaOptInStatus = Nothing
, _pmaDescription = Nothing
, _pmaForcedApplyDate = Nothing
, _pmaCurrentApplyDate = Nothing
}
pmaAutoAppliedAfterDate :: Lens' PendingMaintenanceAction (Maybe UTCTime)
pmaAutoAppliedAfterDate = lens _pmaAutoAppliedAfterDate (\ s a -> s{_pmaAutoAppliedAfterDate = a}) . mapping _Time;
pmaAction :: Lens' PendingMaintenanceAction (Maybe Text)
pmaAction = lens _pmaAction (\ s a -> s{_pmaAction = a});
pmaOptInStatus :: Lens' PendingMaintenanceAction (Maybe Text)
pmaOptInStatus = lens _pmaOptInStatus (\ s a -> s{_pmaOptInStatus = a});
pmaDescription :: Lens' PendingMaintenanceAction (Maybe Text)
pmaDescription = lens _pmaDescription (\ s a -> s{_pmaDescription = a});
pmaForcedApplyDate :: Lens' PendingMaintenanceAction (Maybe UTCTime)
pmaForcedApplyDate = lens _pmaForcedApplyDate (\ s a -> s{_pmaForcedApplyDate = a}) . mapping _Time;
pmaCurrentApplyDate :: Lens' PendingMaintenanceAction (Maybe UTCTime)
pmaCurrentApplyDate = lens _pmaCurrentApplyDate (\ s a -> s{_pmaCurrentApplyDate = a}) . mapping _Time;
instance FromXML PendingMaintenanceAction where
parseXML x
= PendingMaintenanceAction' <$>
(x .@? "AutoAppliedAfterDate") <*> (x .@? "Action")
<*> (x .@? "OptInStatus")
<*> (x .@? "Description")
<*> (x .@? "ForcedApplyDate")
<*> (x .@? "CurrentApplyDate")
instance Hashable PendingMaintenanceAction where
instance NFData PendingMaintenanceAction where
data PendingModifiedValues = PendingModifiedValues'
{ _pmvEngineVersion :: !(Maybe Text)
, _pmvMasterUserPassword :: !(Maybe Text)
, _pmvDBSubnetGroupName :: !(Maybe Text)
, _pmvIOPS :: !(Maybe Int)
, _pmvDBInstanceClass :: !(Maybe Text)
, _pmvLicenseModel :: !(Maybe Text)
, _pmvCACertificateIdentifier :: !(Maybe Text)
, _pmvDBInstanceIdentifier :: !(Maybe Text)
, _pmvBackupRetentionPeriod :: !(Maybe Int)
, _pmvMultiAZ :: !(Maybe Bool)
, _pmvAllocatedStorage :: !(Maybe Int)
, _pmvPort :: !(Maybe Int)
, _pmvStorageType :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
pendingModifiedValues
:: PendingModifiedValues
pendingModifiedValues =
PendingModifiedValues'
{ _pmvEngineVersion = Nothing
, _pmvMasterUserPassword = Nothing
, _pmvDBSubnetGroupName = Nothing
, _pmvIOPS = Nothing
, _pmvDBInstanceClass = Nothing
, _pmvLicenseModel = Nothing
, _pmvCACertificateIdentifier = Nothing
, _pmvDBInstanceIdentifier = Nothing
, _pmvBackupRetentionPeriod = Nothing
, _pmvMultiAZ = Nothing
, _pmvAllocatedStorage = Nothing
, _pmvPort = Nothing
, _pmvStorageType = Nothing
}
pmvEngineVersion :: Lens' PendingModifiedValues (Maybe Text)
pmvEngineVersion = lens _pmvEngineVersion (\ s a -> s{_pmvEngineVersion = a});
pmvMasterUserPassword :: Lens' PendingModifiedValues (Maybe Text)
pmvMasterUserPassword = lens _pmvMasterUserPassword (\ s a -> s{_pmvMasterUserPassword = a});
pmvDBSubnetGroupName :: Lens' PendingModifiedValues (Maybe Text)
pmvDBSubnetGroupName = lens _pmvDBSubnetGroupName (\ s a -> s{_pmvDBSubnetGroupName = a});
pmvIOPS :: Lens' PendingModifiedValues (Maybe Int)
pmvIOPS = lens _pmvIOPS (\ s a -> s{_pmvIOPS = a});
pmvDBInstanceClass :: Lens' PendingModifiedValues (Maybe Text)
pmvDBInstanceClass = lens _pmvDBInstanceClass (\ s a -> s{_pmvDBInstanceClass = a});
pmvLicenseModel :: Lens' PendingModifiedValues (Maybe Text)
pmvLicenseModel = lens _pmvLicenseModel (\ s a -> s{_pmvLicenseModel = a});
pmvCACertificateIdentifier :: Lens' PendingModifiedValues (Maybe Text)
pmvCACertificateIdentifier = lens _pmvCACertificateIdentifier (\ s a -> s{_pmvCACertificateIdentifier = a});
pmvDBInstanceIdentifier :: Lens' PendingModifiedValues (Maybe Text)
pmvDBInstanceIdentifier = lens _pmvDBInstanceIdentifier (\ s a -> s{_pmvDBInstanceIdentifier = a});
pmvBackupRetentionPeriod :: Lens' PendingModifiedValues (Maybe Int)
pmvBackupRetentionPeriod = lens _pmvBackupRetentionPeriod (\ s a -> s{_pmvBackupRetentionPeriod = a});
pmvMultiAZ :: Lens' PendingModifiedValues (Maybe Bool)
pmvMultiAZ = lens _pmvMultiAZ (\ s a -> s{_pmvMultiAZ = a});
pmvAllocatedStorage :: Lens' PendingModifiedValues (Maybe Int)
pmvAllocatedStorage = lens _pmvAllocatedStorage (\ s a -> s{_pmvAllocatedStorage = 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 .@? "EngineVersion") <*>
(x .@? "MasterUserPassword")
<*> (x .@? "DBSubnetGroupName")
<*> (x .@? "Iops")
<*> (x .@? "DBInstanceClass")
<*> (x .@? "LicenseModel")
<*> (x .@? "CACertificateIdentifier")
<*> (x .@? "DBInstanceIdentifier")
<*> (x .@? "BackupRetentionPeriod")
<*> (x .@? "MultiAZ")
<*> (x .@? "AllocatedStorage")
<*> (x .@? "Port")
<*> (x .@? "StorageType")
instance Hashable PendingModifiedValues where
instance NFData PendingModifiedValues where
data Range = Range'
{ _rTo :: !(Maybe Int)
, _rFrom :: !(Maybe Int)
, _rStep :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
range
:: Range
range = Range' {_rTo = Nothing, _rFrom = Nothing, _rStep = Nothing}
rTo :: Lens' Range (Maybe Int)
rTo = lens _rTo (\ s a -> s{_rTo = a});
rFrom :: Lens' Range (Maybe Int)
rFrom = lens _rFrom (\ s a -> s{_rFrom = a});
rStep :: Lens' Range (Maybe Int)
rStep = lens _rStep (\ s a -> s{_rStep = a});
instance FromXML Range where
parseXML x
= Range' <$>
(x .@? "To") <*> (x .@? "From") <*> (x .@? "Step")
instance Hashable Range where
instance NFData Range where
data RecurringCharge = RecurringCharge'
{ _rcRecurringChargeFrequency :: !(Maybe Text)
, _rcRecurringChargeAmount :: !(Maybe Double)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
recurringCharge
:: RecurringCharge
recurringCharge =
RecurringCharge'
{_rcRecurringChargeFrequency = Nothing, _rcRecurringChargeAmount = Nothing}
rcRecurringChargeFrequency :: Lens' RecurringCharge (Maybe Text)
rcRecurringChargeFrequency = lens _rcRecurringChargeFrequency (\ s a -> s{_rcRecurringChargeFrequency = a});
rcRecurringChargeAmount :: Lens' RecurringCharge (Maybe Double)
rcRecurringChargeAmount = lens _rcRecurringChargeAmount (\ s a -> s{_rcRecurringChargeAmount = a});
instance FromXML RecurringCharge where
parseXML x
= RecurringCharge' <$>
(x .@? "RecurringChargeFrequency") <*>
(x .@? "RecurringChargeAmount")
instance Hashable RecurringCharge where
instance NFData RecurringCharge where
data ReservedDBInstance = ReservedDBInstance'
{ _rdiDBInstanceCount :: !(Maybe Int)
, _rdiState :: !(Maybe Text)
, _rdiCurrencyCode :: !(Maybe Text)
, _rdiStartTime :: !(Maybe ISO8601)
, _rdiProductDescription :: !(Maybe Text)
, _rdiReservedDBInstanceId :: !(Maybe Text)
, _rdiReservedDBInstanceARN :: !(Maybe Text)
, _rdiDBInstanceClass :: !(Maybe Text)
, _rdiMultiAZ :: !(Maybe Bool)
, _rdiReservedDBInstancesOfferingId :: !(Maybe Text)
, _rdiRecurringCharges :: !(Maybe [RecurringCharge])
, _rdiOfferingType :: !(Maybe Text)
, _rdiUsagePrice :: !(Maybe Double)
, _rdiFixedPrice :: !(Maybe Double)
, _rdiDuration :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
reservedDBInstance
:: ReservedDBInstance
reservedDBInstance =
ReservedDBInstance'
{ _rdiDBInstanceCount = Nothing
, _rdiState = Nothing
, _rdiCurrencyCode = Nothing
, _rdiStartTime = Nothing
, _rdiProductDescription = Nothing
, _rdiReservedDBInstanceId = Nothing
, _rdiReservedDBInstanceARN = Nothing
, _rdiDBInstanceClass = Nothing
, _rdiMultiAZ = Nothing
, _rdiReservedDBInstancesOfferingId = Nothing
, _rdiRecurringCharges = Nothing
, _rdiOfferingType = Nothing
, _rdiUsagePrice = Nothing
, _rdiFixedPrice = Nothing
, _rdiDuration = Nothing
}
rdiDBInstanceCount :: Lens' ReservedDBInstance (Maybe Int)
rdiDBInstanceCount = lens _rdiDBInstanceCount (\ s a -> s{_rdiDBInstanceCount = a});
rdiState :: Lens' ReservedDBInstance (Maybe Text)
rdiState = lens _rdiState (\ s a -> s{_rdiState = a});
rdiCurrencyCode :: Lens' ReservedDBInstance (Maybe Text)
rdiCurrencyCode = lens _rdiCurrencyCode (\ s a -> s{_rdiCurrencyCode = a});
rdiStartTime :: Lens' ReservedDBInstance (Maybe UTCTime)
rdiStartTime = lens _rdiStartTime (\ s a -> s{_rdiStartTime = a}) . mapping _Time;
rdiProductDescription :: Lens' ReservedDBInstance (Maybe Text)
rdiProductDescription = lens _rdiProductDescription (\ s a -> s{_rdiProductDescription = a});
rdiReservedDBInstanceId :: Lens' ReservedDBInstance (Maybe Text)
rdiReservedDBInstanceId = lens _rdiReservedDBInstanceId (\ s a -> s{_rdiReservedDBInstanceId = a});
rdiReservedDBInstanceARN :: Lens' ReservedDBInstance (Maybe Text)
rdiReservedDBInstanceARN = lens _rdiReservedDBInstanceARN (\ s a -> s{_rdiReservedDBInstanceARN = a});
rdiDBInstanceClass :: Lens' ReservedDBInstance (Maybe Text)
rdiDBInstanceClass = lens _rdiDBInstanceClass (\ s a -> s{_rdiDBInstanceClass = a});
rdiMultiAZ :: Lens' ReservedDBInstance (Maybe Bool)
rdiMultiAZ = lens _rdiMultiAZ (\ s a -> s{_rdiMultiAZ = a});
rdiReservedDBInstancesOfferingId :: Lens' ReservedDBInstance (Maybe Text)
rdiReservedDBInstancesOfferingId = lens _rdiReservedDBInstancesOfferingId (\ s a -> s{_rdiReservedDBInstancesOfferingId = a});
rdiRecurringCharges :: Lens' ReservedDBInstance [RecurringCharge]
rdiRecurringCharges = lens _rdiRecurringCharges (\ s a -> s{_rdiRecurringCharges = a}) . _Default . _Coerce;
rdiOfferingType :: Lens' ReservedDBInstance (Maybe Text)
rdiOfferingType = lens _rdiOfferingType (\ s a -> s{_rdiOfferingType = a});
rdiUsagePrice :: Lens' ReservedDBInstance (Maybe Double)
rdiUsagePrice = lens _rdiUsagePrice (\ s a -> s{_rdiUsagePrice = a});
rdiFixedPrice :: Lens' ReservedDBInstance (Maybe Double)
rdiFixedPrice = lens _rdiFixedPrice (\ s a -> s{_rdiFixedPrice = a});
rdiDuration :: Lens' ReservedDBInstance (Maybe Int)
rdiDuration = lens _rdiDuration (\ s a -> s{_rdiDuration = a});
instance FromXML ReservedDBInstance where
parseXML x
= ReservedDBInstance' <$>
(x .@? "DBInstanceCount") <*> (x .@? "State") <*>
(x .@? "CurrencyCode")
<*> (x .@? "StartTime")
<*> (x .@? "ProductDescription")
<*> (x .@? "ReservedDBInstanceId")
<*> (x .@? "ReservedDBInstanceArn")
<*> (x .@? "DBInstanceClass")
<*> (x .@? "MultiAZ")
<*> (x .@? "ReservedDBInstancesOfferingId")
<*>
(x .@? "RecurringCharges" .!@ mempty >>=
may (parseXMLList "RecurringCharge"))
<*> (x .@? "OfferingType")
<*> (x .@? "UsagePrice")
<*> (x .@? "FixedPrice")
<*> (x .@? "Duration")
instance Hashable ReservedDBInstance where
instance NFData ReservedDBInstance where
data ReservedDBInstancesOffering = ReservedDBInstancesOffering'
{ _rdioCurrencyCode :: !(Maybe Text)
, _rdioProductDescription :: !(Maybe Text)
, _rdioDBInstanceClass :: !(Maybe Text)
, _rdioMultiAZ :: !(Maybe Bool)
, _rdioReservedDBInstancesOfferingId :: !(Maybe Text)
, _rdioRecurringCharges :: !(Maybe [RecurringCharge])
, _rdioOfferingType :: !(Maybe Text)
, _rdioUsagePrice :: !(Maybe Double)
, _rdioFixedPrice :: !(Maybe Double)
, _rdioDuration :: !(Maybe Int)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
reservedDBInstancesOffering
:: ReservedDBInstancesOffering
reservedDBInstancesOffering =
ReservedDBInstancesOffering'
{ _rdioCurrencyCode = Nothing
, _rdioProductDescription = Nothing
, _rdioDBInstanceClass = Nothing
, _rdioMultiAZ = Nothing
, _rdioReservedDBInstancesOfferingId = Nothing
, _rdioRecurringCharges = Nothing
, _rdioOfferingType = Nothing
, _rdioUsagePrice = Nothing
, _rdioFixedPrice = Nothing
, _rdioDuration = Nothing
}
rdioCurrencyCode :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdioCurrencyCode = lens _rdioCurrencyCode (\ s a -> s{_rdioCurrencyCode = a});
rdioProductDescription :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdioProductDescription = lens _rdioProductDescription (\ s a -> s{_rdioProductDescription = a});
rdioDBInstanceClass :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdioDBInstanceClass = lens _rdioDBInstanceClass (\ s a -> s{_rdioDBInstanceClass = a});
rdioMultiAZ :: Lens' ReservedDBInstancesOffering (Maybe Bool)
rdioMultiAZ = lens _rdioMultiAZ (\ s a -> s{_rdioMultiAZ = a});
rdioReservedDBInstancesOfferingId :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdioReservedDBInstancesOfferingId = lens _rdioReservedDBInstancesOfferingId (\ s a -> s{_rdioReservedDBInstancesOfferingId = a});
rdioRecurringCharges :: Lens' ReservedDBInstancesOffering [RecurringCharge]
rdioRecurringCharges = lens _rdioRecurringCharges (\ s a -> s{_rdioRecurringCharges = a}) . _Default . _Coerce;
rdioOfferingType :: Lens' ReservedDBInstancesOffering (Maybe Text)
rdioOfferingType = lens _rdioOfferingType (\ s a -> s{_rdioOfferingType = a});
rdioUsagePrice :: Lens' ReservedDBInstancesOffering (Maybe Double)
rdioUsagePrice = lens _rdioUsagePrice (\ s a -> s{_rdioUsagePrice = a});
rdioFixedPrice :: Lens' ReservedDBInstancesOffering (Maybe Double)
rdioFixedPrice = lens _rdioFixedPrice (\ s a -> s{_rdioFixedPrice = a});
rdioDuration :: Lens' ReservedDBInstancesOffering (Maybe Int)
rdioDuration = lens _rdioDuration (\ s a -> s{_rdioDuration = a});
instance FromXML ReservedDBInstancesOffering where
parseXML x
= ReservedDBInstancesOffering' <$>
(x .@? "CurrencyCode") <*>
(x .@? "ProductDescription")
<*> (x .@? "DBInstanceClass")
<*> (x .@? "MultiAZ")
<*> (x .@? "ReservedDBInstancesOfferingId")
<*>
(x .@? "RecurringCharges" .!@ mempty >>=
may (parseXMLList "RecurringCharge"))
<*> (x .@? "OfferingType")
<*> (x .@? "UsagePrice")
<*> (x .@? "FixedPrice")
<*> (x .@? "Duration")
instance Hashable ReservedDBInstancesOffering where
instance NFData ReservedDBInstancesOffering where
data ResourcePendingMaintenanceActions = ResourcePendingMaintenanceActions'
{ _rpmaPendingMaintenanceActionDetails :: !(Maybe [PendingMaintenanceAction])
, _rpmaResourceIdentifier :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
resourcePendingMaintenanceActions
:: ResourcePendingMaintenanceActions
resourcePendingMaintenanceActions =
ResourcePendingMaintenanceActions'
{ _rpmaPendingMaintenanceActionDetails = Nothing
, _rpmaResourceIdentifier = Nothing
}
rpmaPendingMaintenanceActionDetails :: Lens' ResourcePendingMaintenanceActions [PendingMaintenanceAction]
rpmaPendingMaintenanceActionDetails = lens _rpmaPendingMaintenanceActionDetails (\ s a -> s{_rpmaPendingMaintenanceActionDetails = a}) . _Default . _Coerce;
rpmaResourceIdentifier :: Lens' ResourcePendingMaintenanceActions (Maybe Text)
rpmaResourceIdentifier = lens _rpmaResourceIdentifier (\ s a -> s{_rpmaResourceIdentifier = a});
instance FromXML ResourcePendingMaintenanceActions
where
parseXML x
= ResourcePendingMaintenanceActions' <$>
(x .@? "PendingMaintenanceActionDetails" .!@ mempty
>>= may (parseXMLList "PendingMaintenanceAction"))
<*> (x .@? "ResourceIdentifier")
instance Hashable ResourcePendingMaintenanceActions
where
instance NFData ResourcePendingMaintenanceActions
where
data SourceRegion = SourceRegion'
{ _srStatus :: !(Maybe Text)
, _srRegionName :: !(Maybe Text)
, _srEndpoint :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
sourceRegion
:: SourceRegion
sourceRegion =
SourceRegion'
{_srStatus = Nothing, _srRegionName = Nothing, _srEndpoint = Nothing}
srStatus :: Lens' SourceRegion (Maybe Text)
srStatus = lens _srStatus (\ s a -> s{_srStatus = a});
srRegionName :: Lens' SourceRegion (Maybe Text)
srRegionName = lens _srRegionName (\ s a -> s{_srRegionName = a});
srEndpoint :: Lens' SourceRegion (Maybe Text)
srEndpoint = lens _srEndpoint (\ s a -> s{_srEndpoint = a});
instance FromXML SourceRegion where
parseXML x
= SourceRegion' <$>
(x .@? "Status") <*> (x .@? "RegionName") <*>
(x .@? "Endpoint")
instance Hashable SourceRegion where
instance NFData SourceRegion where
data Subnet = Subnet'
{ _sSubnetStatus :: !(Maybe Text)
, _sSubnetIdentifier :: !(Maybe Text)
, _sSubnetAvailabilityZone :: !(Maybe AvailabilityZone)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
subnet
:: Subnet
subnet =
Subnet'
{ _sSubnetStatus = Nothing
, _sSubnetIdentifier = Nothing
, _sSubnetAvailabilityZone = Nothing
}
sSubnetStatus :: Lens' Subnet (Maybe Text)
sSubnetStatus = lens _sSubnetStatus (\ s a -> s{_sSubnetStatus = a});
sSubnetIdentifier :: Lens' Subnet (Maybe Text)
sSubnetIdentifier = lens _sSubnetIdentifier (\ s a -> s{_sSubnetIdentifier = a});
sSubnetAvailabilityZone :: Lens' Subnet (Maybe AvailabilityZone)
sSubnetAvailabilityZone = lens _sSubnetAvailabilityZone (\ s a -> s{_sSubnetAvailabilityZone = a});
instance FromXML Subnet where
parseXML x
= Subnet' <$>
(x .@? "SubnetStatus") <*> (x .@? "SubnetIdentifier")
<*> (x .@? "SubnetAvailabilityZone")
instance Hashable Subnet where
instance NFData Subnet where
data Tag = Tag'
{ _tagValue :: !(Maybe Text)
, _tagKey :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
tag
:: Tag
tag = Tag' {_tagValue = Nothing, _tagKey = Nothing}
tagValue :: Lens' Tag (Maybe Text)
tagValue = lens _tagValue (\ s a -> s{_tagValue = a});
tagKey :: Lens' Tag (Maybe Text)
tagKey = lens _tagKey (\ s a -> s{_tagKey = a});
instance FromXML Tag where
parseXML x
= Tag' <$> (x .@? "Value") <*> (x .@? "Key")
instance Hashable Tag where
instance NFData Tag where
instance ToQuery Tag where
toQuery Tag'{..}
= mconcat ["Value" =: _tagValue, "Key" =: _tagKey]
newtype Timezone = Timezone'
{ _tTimezoneName :: Maybe Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
timezone
:: Timezone
timezone = Timezone' {_tTimezoneName = Nothing}
tTimezoneName :: Lens' Timezone (Maybe Text)
tTimezoneName = lens _tTimezoneName (\ s a -> s{_tTimezoneName = a});
instance FromXML Timezone where
parseXML x = Timezone' <$> (x .@? "TimezoneName")
instance Hashable Timezone where
instance NFData Timezone where
data UpgradeTarget = UpgradeTarget'
{ _utEngineVersion :: !(Maybe Text)
, _utIsMajorVersionUpgrade :: !(Maybe Bool)
, _utEngine :: !(Maybe Text)
, _utAutoUpgrade :: !(Maybe Bool)
, _utDescription :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
upgradeTarget
:: UpgradeTarget
upgradeTarget =
UpgradeTarget'
{ _utEngineVersion = Nothing
, _utIsMajorVersionUpgrade = Nothing
, _utEngine = Nothing
, _utAutoUpgrade = Nothing
, _utDescription = Nothing
}
utEngineVersion :: Lens' UpgradeTarget (Maybe Text)
utEngineVersion = lens _utEngineVersion (\ s a -> s{_utEngineVersion = a});
utIsMajorVersionUpgrade :: Lens' UpgradeTarget (Maybe Bool)
utIsMajorVersionUpgrade = lens _utIsMajorVersionUpgrade (\ s a -> s{_utIsMajorVersionUpgrade = a});
utEngine :: Lens' UpgradeTarget (Maybe Text)
utEngine = lens _utEngine (\ s a -> s{_utEngine = a});
utAutoUpgrade :: Lens' UpgradeTarget (Maybe Bool)
utAutoUpgrade = lens _utAutoUpgrade (\ s a -> s{_utAutoUpgrade = a});
utDescription :: Lens' UpgradeTarget (Maybe Text)
utDescription = lens _utDescription (\ s a -> s{_utDescription = a});
instance FromXML UpgradeTarget where
parseXML x
= UpgradeTarget' <$>
(x .@? "EngineVersion") <*>
(x .@? "IsMajorVersionUpgrade")
<*> (x .@? "Engine")
<*> (x .@? "AutoUpgrade")
<*> (x .@? "Description")
instance Hashable UpgradeTarget where
instance NFData UpgradeTarget where
data VPCSecurityGroupMembership = VPCSecurityGroupMembership'
{ _vsgmStatus :: !(Maybe Text)
, _vsgmVPCSecurityGroupId :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
vpcSecurityGroupMembership
:: VPCSecurityGroupMembership
vpcSecurityGroupMembership =
VPCSecurityGroupMembership'
{_vsgmStatus = Nothing, _vsgmVPCSecurityGroupId = 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 Hashable VPCSecurityGroupMembership where
instance NFData VPCSecurityGroupMembership where
newtype ValidDBInstanceModificationsMessage = ValidDBInstanceModificationsMessage'
{ _vdimmStorage :: Maybe [ValidStorageOptions]
} deriving (Eq, Read, Show, Data, Typeable, Generic)
validDBInstanceModificationsMessage
:: ValidDBInstanceModificationsMessage
validDBInstanceModificationsMessage =
ValidDBInstanceModificationsMessage' {_vdimmStorage = Nothing}
vdimmStorage :: Lens' ValidDBInstanceModificationsMessage [ValidStorageOptions]
vdimmStorage = lens _vdimmStorage (\ s a -> s{_vdimmStorage = a}) . _Default . _Coerce;
instance FromXML ValidDBInstanceModificationsMessage
where
parseXML x
= ValidDBInstanceModificationsMessage' <$>
(x .@? "Storage" .!@ mempty >>=
may (parseXMLList "ValidStorageOptions"))
instance Hashable ValidDBInstanceModificationsMessage
where
instance NFData ValidDBInstanceModificationsMessage
where
data ValidStorageOptions = ValidStorageOptions'
{ _vsoStorageSize :: !(Maybe [Range])
, _vsoProvisionedIOPS :: !(Maybe [Range])
, _vsoIOPSToStorageRatio :: !(Maybe [DoubleRange])
, _vsoStorageType :: !(Maybe Text)
} deriving (Eq, Read, Show, Data, Typeable, Generic)
validStorageOptions
:: ValidStorageOptions
validStorageOptions =
ValidStorageOptions'
{ _vsoStorageSize = Nothing
, _vsoProvisionedIOPS = Nothing
, _vsoIOPSToStorageRatio = Nothing
, _vsoStorageType = Nothing
}
vsoStorageSize :: Lens' ValidStorageOptions [Range]
vsoStorageSize = lens _vsoStorageSize (\ s a -> s{_vsoStorageSize = a}) . _Default . _Coerce;
vsoProvisionedIOPS :: Lens' ValidStorageOptions [Range]
vsoProvisionedIOPS = lens _vsoProvisionedIOPS (\ s a -> s{_vsoProvisionedIOPS = a}) . _Default . _Coerce;
vsoIOPSToStorageRatio :: Lens' ValidStorageOptions [DoubleRange]
vsoIOPSToStorageRatio = lens _vsoIOPSToStorageRatio (\ s a -> s{_vsoIOPSToStorageRatio = a}) . _Default . _Coerce;
vsoStorageType :: Lens' ValidStorageOptions (Maybe Text)
vsoStorageType = lens _vsoStorageType (\ s a -> s{_vsoStorageType = a});
instance FromXML ValidStorageOptions where
parseXML x
= ValidStorageOptions' <$>
(x .@? "StorageSize" .!@ mempty >>=
may (parseXMLList "Range"))
<*>
(x .@? "ProvisionedIops" .!@ mempty >>=
may (parseXMLList "Range"))
<*>
(x .@? "IopsToStorageRatio" .!@ mempty >>=
may (parseXMLList "DoubleRange"))
<*> (x .@? "StorageType")
instance Hashable ValidStorageOptions where
instance NFData ValidStorageOptions where