GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRule.fromMap constructor
GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRule.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRule.fromMap(Map<String, dynamic> map) {
return GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRule(
cidr: pulumi.Input.fromValue(map['cidr'] as String),
direction: pulumi.Input.fromValue(map['direction'] as String),
portRanges: pulumi.Input.fromValue(pulumi.Input.decodeList<GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRulePortRange>(map['portRanges']!, (value) => GetNetworkInsightsAnalysisReturnPathComponentSecurityGroupRulePortRange.fromMap((value as Map).cast<String, dynamic>()))),
prefixListId: pulumi.Input.fromValue(map['prefixListId'] as String),
protocol: pulumi.Input.fromValue(map['protocol'] as String),
securityGroupId: pulumi.Input.fromValue(map['securityGroupId'] as String),
);
}