WebAclRuleStatement.fromMap constructor
WebAclRuleStatement.fromMap(
- Map<String, dynamic> map
)
Implementation
factory WebAclRuleStatement.fromMap(Map<String, dynamic> map) {
return WebAclRuleStatement(
andStatement: (() { final guardedValue = map['andStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementAndStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
asnMatchStatement: (() { final guardedValue = map['asnMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementAsnMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
byteMatchStatement: (() { final guardedValue = map['byteMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementByteMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
geoMatchStatement: (() { final guardedValue = map['geoMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementGeoMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
ipSetReferenceStatement: (() { final guardedValue = map['ipSetReferenceStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementIpSetReferenceStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
labelMatchStatement: (() { final guardedValue = map['labelMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementLabelMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
managedRuleGroupStatement: (() { final guardedValue = map['managedRuleGroupStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementManagedRuleGroupStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
notStatement: (() { final guardedValue = map['notStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementNotStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
orStatement: (() { final guardedValue = map['orStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementOrStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
rateBasedStatement: (() { final guardedValue = map['rateBasedStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
regexMatchStatement: (() { final guardedValue = map['regexMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRegexMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
regexPatternSetReferenceStatement: (() { final guardedValue = map['regexPatternSetReferenceStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRegexPatternSetReferenceStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
ruleGroupReferenceStatement: (() { final guardedValue = map['ruleGroupReferenceStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRuleGroupReferenceStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
sizeConstraintStatement: (() { final guardedValue = map['sizeConstraintStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementSizeConstraintStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
sqliMatchStatement: (() { final guardedValue = map['sqliMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementSqliMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
xssMatchStatement: (() { final guardedValue = map['xssMatchStatement']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementXssMatchStatement.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}