NodeGroupConfiguration.fromXml constructor

NodeGroupConfiguration.fromXml(
  1. XmlElement elem
)

Implementation

factory NodeGroupConfiguration.fromXml(_s.XmlElement elem) {
  return NodeGroupConfiguration(
    nodeGroupId: _s.extractXmlStringValue(elem, 'NodeGroupId'),
    primaryAvailabilityZone:
        _s.extractXmlStringValue(elem, 'PrimaryAvailabilityZone'),
    primaryOutpostArn: _s.extractXmlStringValue(elem, 'PrimaryOutpostArn'),
    replicaAvailabilityZones: _s
        .extractXmlChild(elem, 'ReplicaAvailabilityZones')
        ?.let((elem) =>
            _s.extractXmlStringListValues(elem, 'AvailabilityZone')),
    replicaCount: _s.extractXmlIntValue(elem, 'ReplicaCount'),
    replicaOutpostArns: _s
        .extractXmlChild(elem, 'ReplicaOutpostArns')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'OutpostArn')),
    slots: _s.extractXmlStringValue(elem, 'Slots'),
  );
}