IdentityPoolRoleAttachmentState.fromMap constructor
IdentityPoolRoleAttachmentState.fromMap(
- Map<String, dynamic> map
)
Implementation
factory IdentityPoolRoleAttachmentState.fromMap(Map<String, dynamic> map) {
return IdentityPoolRoleAttachmentState(
identityPoolId: (() { final guardedValue = map['identityPoolId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
roleMappings: (() { final guardedValue = map['roleMappings']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<IdentityPoolRoleAttachmentRoleMapping>(guardedValue, (value) => IdentityPoolRoleAttachmentRoleMapping.fromMap((value as Map).cast<String, dynamic>()))); })(),
roles: (() { final guardedValue = map['roles']; if (guardedValue == null) return null; return pulumi.Input.fromValue((guardedValue as Map).cast<String, String>()); })(),
);
}