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: S3Origin.fromXml(_s.extractXmlChild(elem, 'S3Origin')!),
    trustedSigners:
        TrustedSigners.fromXml(_s.extractXmlChild(elem, 'TrustedSigners')!),
    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(),
  );
}