StreamingDistributionConfig.fromXml constructor

StreamingDistributionConfig.fromXml(
  1. XmlElement elem
)

Implementation

factory StreamingDistributionConfig.fromXml(_s.XmlElement elem) {
  return StreamingDistributionConfig(
    callerReference: _s.extractXmlStringValue(elem, 'CallerReference'),
    comment: _s.extractXmlStringValue(elem, 'Comment'),
    enabled: _s.extractXmlBoolValue(elem, 'Enabled'),
    s3Origin:
        _s.extractXmlChild(elem, 'S3Origin')?.let((e) => S3Origin.fromXml(e)),
    trustedSigners: _s
        .extractXmlChild(elem, 'TrustedSigners')
        ?.let((e) => TrustedSigners.fromXml(e)),
    aliases:
        _s.extractXmlChild(elem, 'Aliases')?.let((e) => Aliases.fromXml(e)),
    logging: _s
        .extractXmlChild(elem, 'Logging')
        ?.let((e) => StreamingLoggingConfig.fromXml(e)),
    priceClass: _s.extractXmlStringValue(elem, 'PriceClass')?.toPriceClass(),
  );
}