DBInstance.fromXml constructor
DBInstance.fromXml(
- XmlElement elem
Implementation
factory DBInstance.fromXml(_s.XmlElement elem) {
return DBInstance(
allocatedStorage: _s.extractXmlIntValue(elem, 'AllocatedStorage'),
associatedRoles: _s.extractXmlChild(elem, 'AssociatedRoles')?.let(
(elem) => elem
.findElements('DBInstanceRole')
.map((c) => DBInstanceRole.fromXml(c))
.toList()),
autoMinorVersionUpgrade:
_s.extractXmlBoolValue(elem, 'AutoMinorVersionUpgrade'),
availabilityZone: _s.extractXmlStringValue(elem, 'AvailabilityZone'),
backupRetentionPeriod:
_s.extractXmlIntValue(elem, 'BackupRetentionPeriod'),
cACertificateIdentifier:
_s.extractXmlStringValue(elem, 'CACertificateIdentifier'),
characterSetName: _s.extractXmlStringValue(elem, 'CharacterSetName'),
copyTagsToSnapshot: _s.extractXmlBoolValue(elem, 'CopyTagsToSnapshot'),
customerOwnedIpEnabled:
_s.extractXmlBoolValue(elem, 'CustomerOwnedIpEnabled'),
dBClusterIdentifier:
_s.extractXmlStringValue(elem, 'DBClusterIdentifier'),
dBInstanceArn: _s.extractXmlStringValue(elem, 'DBInstanceArn'),
dBInstanceAutomatedBackupsReplications: _s
.extractXmlChild(elem, 'DBInstanceAutomatedBackupsReplications')
?.let((elem) => elem
.findElements('DBInstanceAutomatedBackupsReplication')
.map((c) => DBInstanceAutomatedBackupsReplication.fromXml(c))
.toList()),
dBInstanceClass: _s.extractXmlStringValue(elem, 'DBInstanceClass'),
dBInstanceIdentifier:
_s.extractXmlStringValue(elem, 'DBInstanceIdentifier'),
dBInstanceStatus: _s.extractXmlStringValue(elem, 'DBInstanceStatus'),
dBName: _s.extractXmlStringValue(elem, 'DBName'),
dBParameterGroups: _s.extractXmlChild(elem, 'DBParameterGroups')?.let(
(elem) => elem
.findElements('DBParameterGroup')
.map((c) => DBParameterGroupStatus.fromXml(c))
.toList()),
dBSecurityGroups: _s.extractXmlChild(elem, 'DBSecurityGroups')?.let(
(elem) => elem
.findElements('DBSecurityGroup')
.map((c) => DBSecurityGroupMembership.fromXml(c))
.toList()),
dBSubnetGroup: _s
.extractXmlChild(elem, 'DBSubnetGroup')
?.let((e) => DBSubnetGroup.fromXml(e)),
dbInstancePort: _s.extractXmlIntValue(elem, 'DbInstancePort'),
dbiResourceId: _s.extractXmlStringValue(elem, 'DbiResourceId'),
deletionProtection: _s.extractXmlBoolValue(elem, 'DeletionProtection'),
domainMemberships: _s.extractXmlChild(elem, 'DomainMemberships')?.let(
(elem) => elem
.findElements('DomainMembership')
.map((c) => DomainMembership.fromXml(c))
.toList()),
enabledCloudwatchLogsExports: _s
.extractXmlChild(elem, 'EnabledCloudwatchLogsExports')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
endpoint:
_s.extractXmlChild(elem, 'Endpoint')?.let((e) => Endpoint.fromXml(e)),
engine: _s.extractXmlStringValue(elem, 'Engine'),
engineVersion: _s.extractXmlStringValue(elem, 'EngineVersion'),
enhancedMonitoringResourceArn:
_s.extractXmlStringValue(elem, 'EnhancedMonitoringResourceArn'),
iAMDatabaseAuthenticationEnabled:
_s.extractXmlBoolValue(elem, 'IAMDatabaseAuthenticationEnabled'),
instanceCreateTime:
_s.extractXmlDateTimeValue(elem, 'InstanceCreateTime'),
iops: _s.extractXmlIntValue(elem, 'Iops'),
kmsKeyId: _s.extractXmlStringValue(elem, 'KmsKeyId'),
latestRestorableTime:
_s.extractXmlDateTimeValue(elem, 'LatestRestorableTime'),
licenseModel: _s.extractXmlStringValue(elem, 'LicenseModel'),
listenerEndpoint: _s
.extractXmlChild(elem, 'ListenerEndpoint')
?.let((e) => Endpoint.fromXml(e)),
masterUsername: _s.extractXmlStringValue(elem, 'MasterUsername'),
maxAllocatedStorage: _s.extractXmlIntValue(elem, 'MaxAllocatedStorage'),
monitoringInterval: _s.extractXmlIntValue(elem, 'MonitoringInterval'),
monitoringRoleArn: _s.extractXmlStringValue(elem, 'MonitoringRoleArn'),
multiAZ: _s.extractXmlBoolValue(elem, 'MultiAZ'),
ncharCharacterSetName:
_s.extractXmlStringValue(elem, 'NcharCharacterSetName'),
optionGroupMemberships: _s
.extractXmlChild(elem, 'OptionGroupMemberships')
?.let((elem) => elem
.findElements('OptionGroupMembership')
.map((c) => OptionGroupMembership.fromXml(c))
.toList()),
pendingModifiedValues: _s
.extractXmlChild(elem, 'PendingModifiedValues')
?.let((e) => PendingModifiedValues.fromXml(e)),
performanceInsightsEnabled:
_s.extractXmlBoolValue(elem, 'PerformanceInsightsEnabled'),
performanceInsightsKMSKeyId:
_s.extractXmlStringValue(elem, 'PerformanceInsightsKMSKeyId'),
performanceInsightsRetentionPeriod:
_s.extractXmlIntValue(elem, 'PerformanceInsightsRetentionPeriod'),
preferredBackupWindow:
_s.extractXmlStringValue(elem, 'PreferredBackupWindow'),
preferredMaintenanceWindow:
_s.extractXmlStringValue(elem, 'PreferredMaintenanceWindow'),
processorFeatures: _s.extractXmlChild(elem, 'ProcessorFeatures')?.let(
(elem) => elem
.findElements('ProcessorFeature')
.map((c) => ProcessorFeature.fromXml(c))
.toList()),
promotionTier: _s.extractXmlIntValue(elem, 'PromotionTier'),
publiclyAccessible: _s.extractXmlBoolValue(elem, 'PubliclyAccessible'),
readReplicaDBClusterIdentifiers: _s
.extractXmlChild(elem, 'ReadReplicaDBClusterIdentifiers')
?.let((elem) => _s.extractXmlStringListValues(
elem, 'ReadReplicaDBClusterIdentifier')),
readReplicaDBInstanceIdentifiers: _s
.extractXmlChild(elem, 'ReadReplicaDBInstanceIdentifiers')
?.let((elem) => _s.extractXmlStringListValues(
elem, 'ReadReplicaDBInstanceIdentifier')),
readReplicaSourceDBInstanceIdentifier: _s.extractXmlStringValue(
elem, 'ReadReplicaSourceDBInstanceIdentifier'),
replicaMode:
_s.extractXmlStringValue(elem, 'ReplicaMode')?.toReplicaMode(),
secondaryAvailabilityZone:
_s.extractXmlStringValue(elem, 'SecondaryAvailabilityZone'),
statusInfos: _s.extractXmlChild(elem, 'StatusInfos')?.let((elem) => elem
.findElements('DBInstanceStatusInfo')
.map((c) => DBInstanceStatusInfo.fromXml(c))
.toList()),
storageEncrypted: _s.extractXmlBoolValue(elem, 'StorageEncrypted'),
storageType: _s.extractXmlStringValue(elem, 'StorageType'),
tagList: _s.extractXmlChild(elem, 'TagList')?.let((elem) =>
elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
tdeCredentialArn: _s.extractXmlStringValue(elem, 'TdeCredentialArn'),
timezone: _s.extractXmlStringValue(elem, 'Timezone'),
vpcSecurityGroups: _s.extractXmlChild(elem, 'VpcSecurityGroups')?.let(
(elem) => elem
.findElements('VpcSecurityGroupMembership')
.map((c) => VpcSecurityGroupMembership.fromXml(c))
.toList()),
);
}