ClusterSecurityGroup.fromXml constructor

ClusterSecurityGroup.fromXml(
  1. XmlElement elem
)

Implementation

factory ClusterSecurityGroup.fromXml(_s.XmlElement elem) {
  return ClusterSecurityGroup(
    clusterSecurityGroupName:
        _s.extractXmlStringValue(elem, 'ClusterSecurityGroupName'),
    description: _s.extractXmlStringValue(elem, 'Description'),
    eC2SecurityGroups: _s.extractXmlChild(elem, 'EC2SecurityGroups')?.let(
        (elem) => elem
            .findElements('EC2SecurityGroup')
            .map((c) => EC2SecurityGroup.fromXml(c))
            .toList()),
    iPRanges: _s.extractXmlChild(elem, 'IPRanges')?.let((elem) =>
        elem.findElements('IPRange').map((c) => IPRange.fromXml(c)).toList()),
    tags: _s.extractXmlChild(elem, 'Tags')?.let((elem) =>
        elem.findElements('Tag').map((c) => Tag.fromXml(c)).toList()),
  );
}