CloudFrontOriginAccessIdentity.fromXml constructor

CloudFrontOriginAccessIdentity.fromXml(
  1. XmlElement elem
)

Implementation

factory CloudFrontOriginAccessIdentity.fromXml(_s.XmlElement elem) {
  return CloudFrontOriginAccessIdentity(
    id: _s.extractXmlStringValue(elem, 'Id')!,
    s3CanonicalUserId: _s.extractXmlStringValue(elem, 'S3CanonicalUserId')!,
    cloudFrontOriginAccessIdentityConfig: _s
        .extractXmlChild(elem, 'CloudFrontOriginAccessIdentityConfig')
        ?.let((e) => CloudFrontOriginAccessIdentityConfig.fromXml(e)),
  );
}