WebAclRuleStatementRateBasedStatementCustomKey.fromMap constructor

WebAclRuleStatementRateBasedStatementCustomKey.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory WebAclRuleStatementRateBasedStatementCustomKey.fromMap(Map<String, dynamic> map) {
  return WebAclRuleStatementRateBasedStatementCustomKey(
    asn: (() { final guardedValue = map['asn']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, dynamic>()); })(),
    cookie: (() { final guardedValue = map['cookie']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyCookie.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    forwardedIp: (() { final guardedValue = map['forwardedIp']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, dynamic>()); })(),
    header: (() { final guardedValue = map['header']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyHeader.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    httpMethod: (() { final guardedValue = map['httpMethod']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, dynamic>()); })(),
    ip: (() { final guardedValue = map['ip']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, dynamic>()); })(),
    ja3Fingerprint: (() { final guardedValue = map['ja3Fingerprint']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyJa3Fingerprint.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    ja4Fingerprint: (() { final guardedValue = map['ja4Fingerprint']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyJa4Fingerprint.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    labelNamespace: (() { final guardedValue = map['labelNamespace']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyLabelNamespace.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    queryArgument: (() { final guardedValue = map['queryArgument']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyQueryArgument.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    queryString: (() { final guardedValue = map['queryString']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyQueryString.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    uriPath: (() { final guardedValue = map['uriPath']; if (guardedValue == null) return null; return pulumi.Input.fromValue(WebAclRuleStatementRateBasedStatementCustomKeyUriPath.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}