AgentcoreGatewayRuleCondition.fromMap constructor

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

Implementation

factory AgentcoreGatewayRuleCondition.fromMap(Map<String, dynamic> map) {
  return AgentcoreGatewayRuleCondition(
    matchPaths: (() { final guardedValue = map['matchPaths']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AgentcoreGatewayRuleConditionMatchPaths.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    matchPrincipals: (() { final guardedValue = map['matchPrincipals']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AgentcoreGatewayRuleConditionMatchPrincipals.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}