PublicAccessBlockConfiguration.fromXml constructor
PublicAccessBlockConfiguration.fromXml(
- XmlElement xml
Implementation
PublicAccessBlockConfiguration.fromXml(XmlElement xml) {
blockPublicAcls =
getProp(xml, 'BlockPublicAcls')?.innerText.toUpperCase() == 'TRUE';
blockPublicPolicy =
getProp(xml, 'BlockPublicPolicy')?.innerText.toUpperCase() == 'TRUE';
ignorePublicAcls =
getProp(xml, 'IgnorePublicAcls')?.innerText.toUpperCase() == 'TRUE';
restrictPublicBuckets =
getProp(xml, 'RestrictPublicBuckets')?.innerText.toUpperCase() ==
'TRUE';
}