IdentityPoolRoleAttachmentRoleMapping.fromMap constructor
IdentityPoolRoleAttachmentRoleMapping.fromMap(
- Map<String, dynamic> map
)
Implementation
factory IdentityPoolRoleAttachmentRoleMapping.fromMap(Map<String, dynamic> map) {
return IdentityPoolRoleAttachmentRoleMapping(
ambiguousRoleResolution: (() { final guardedValue = map['ambiguousRoleResolution']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
identityProvider: pulumi.Input.fromValue(map['identityProvider'] as String),
mappingRules: (() { final guardedValue = map['mappingRules']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<IdentityPoolRoleAttachmentRoleMappingMappingRule>(guardedValue, (value) => IdentityPoolRoleAttachmentRoleMappingMappingRule.fromMap((value as Map).cast<String, dynamic>()))); })(),
type: pulumi.Input.fromValue(map['type'] as String),
);
}