PublicAccessBlockConfiguration.fromXml constructor

PublicAccessBlockConfiguration.fromXml(
  1. XmlElement xml
)

Implementation

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